!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="https://ps-static.cdn-tinkoff.ru/projects/99/prod/babbc7d16d388f0693ef886fadb685af335fb1a4/",n(n.s=378)}([function(e,t,n){"use strict";e.exports=n(592)},function(e,t,n){"use strict";var r={template:function(e,t){return e.replace(/%.+?%/g,function(e){var n=e.replace(/\W/g,"");return t[n]})},setData:function(e){Object.assign(r,e)}};e.exports=r},function(e,t,n){var r=n(11),i=n(29).f,o=n(38),a=n(32),s=n(193),u=n(255),c=n(132);e.exports=function(e,t){var n,l,f,h,p,d=e.target,m=e.global,v=e.stat;if(n=m?r:v?r[d]||s(d,{}):(r[d]||{}).prototype)for(l in t){if(h=t[l],f=e.noTargetGet?(p=i(n,l))&&p.value:n[l],!c(m?l:d+(v?".":"#")+l,e.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(e.sham||f&&f.sham)&&o(h,"sham",!0),a(n,l,h,e)}}},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"e",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return u});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(35);var i=n(185);function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,o=Object(r.a)(e);if(t){var a=Object(r.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Object(i.a)(this,n)}}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",function(){return i})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r;
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(85))},function(e,t,n){e.exports=n(290)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(13);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(11),i=n(155),o=n(25),a=n(127),s=n(195),u=n(250),c=i("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return o(c,e)&&(s||"string"==typeof c[e])||(s&&o(l,e)?c[e]=l[e]:c[e]=f("Symbol."+e)),c[e]}},function(e,t,n){"use strict";var r,i=n(267),o=n(19),a=n(11),s=n(13),u=n(25),c=n(133),l=n(38),f=n(32),h=n(21).f,p=n(54),d=n(74),m=n(15),v=n(127),g=a.Int8Array,y=g&&g.prototype,b=a.Uint8ClampedArray,x=b&&b.prototype,_=g&&p(g),w=y&&p(y),E=Object.prototype,S=E.isPrototypeOf,T=m("toStringTag"),M=v("TYPED_ARRAY_TAG"),O=i&&!!d&&"Opera"!==c(a.opera),A=!1,k={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},C={BigInt64Array:8,BigUint64Array:8},P=function(e){if(!s(e))return!1;var t=c(e);return u(k,t)||u(C,t)};for(r in k)a[r]||(O=!1);if((!O||"function"!=typeof _||_===Function.prototype)&&(_=function(){throw TypeError("Incorrect invocation")},O))for(r in k)a[r]&&d(a[r],_);if((!O||!w||w===E)&&(w=_.prototype,O))for(r in k)a[r]&&d(a[r].prototype,w);if(O&&p(x)!==w&&d(x,w),o&&!u(w,T))for(r in A=!0,h(w,T,{get:function(){return s(this)?this[M]:void 0}}),k)a[r]&&l(a[r],M,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:A&&M,aTypedArray:function(e){if(P(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(d){if(S.call(_,e))return e}else for(var t in k)if(u(k,r)){var n=a[t];if(n&&(e===n||S.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(o){if(n)for(var r in k){var i=a[r];if(i&&u(i.prototype,e))try{delete i.prototype[e]}catch(e){}}w[e]&&!n||f(w,e,n?t:O&&y[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(o){if(d){if(n)for(r in k)if((i=a[r])&&u(i,e))try{delete i[e]}catch(e){}if(_[e]&&!n)return;try{return f(_,e,n?t:O&&_[e]||t)}catch(e){}}for(r in k)!(i=a[r])||i[e]&&!n||f(i,e,t)}},isView:function(e){if(!s(e))return!1;var t=c(e);return"DataView"===t||u(k,t)||u(C,t)},isTypedArray:P,TypedArray:_,TypedArrayPrototype:w}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(181);var i=n(81),o=n(182);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},function(e,t,n){var r=n(49),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(9);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){"use strict";(function(e,r){n.d(t,"d",function(){return o}),n.d(t,"j",function(){return a}),n.d(t,"g",function(){return u}),n.d(t,"n",function(){return c}),n.d(t,"l",function(){return l}),n.d(t,"e",function(){return f}),n.d(t,"c",function(){return h}),n.d(t,"b",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"h",function(){return m}),n.d(t,"i",function(){return v}),n.d(t,"m",function(){return y}),n.d(t,"k",function(){return x}),n.d(t,"f",function(){return w});var i=n(26);n(95);function o(e,t){return e.require(t)}function a(){return"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)}var s={};function u(){return a()?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:s}function c(){var e=u(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function l(e){if(!e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function f(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function h(e){var t=u();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)});var i=e();return Object.keys(r).forEach(function(e){n[e]=r[e]}),i}function p(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function d(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach(function(n){e.exception.values[0].mechanism[n]=t[n]})}catch(e){}}function m(){try{return document.location.href}catch(e){return""}}function v(e){try{for(var t=e,n=[],r=0,i=0,o=" > ".length,a=void 0;t&&r++<5&&!("html"===(a=g(t))||r>1&&i+n.length*o+a.length>=80);)n.push(a),i+=a.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function g(e){var t,n,r,o,a,s=e,u=[];if(!s||!s.tagName)return"";if(u.push(s.tagName.toLowerCase()),s.id&&u.push("#"+s.id),(t=s.className)&&Object(i.k)(t))for(n=t.split(/\s+/),a=0;a<n.length;a++)u.push("."+n[a]);var c=["type","name","title","alt"];for(a=0;a<c.length;a++)r=c[a],(o=s.getAttribute(r))&&u.push("["+r+'="'+o+'"]');return u.join("")}function y(){return(new Date).getTime()/1e3}var b=6e4;function x(e,t){if(!t)return b;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?b:r-e}var _="<anonymous>";function w(e){try{return e&&"function"==typeof e&&e.name||_}catch(e){return _}}}).call(this,n(221),n(85))},function(e,t,n){var r=n(19),i=n(249),o=n(14),a=n(52),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(37);e.exports=function(e){return Object(r(e))}},,function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return s}),n.d(t,"e",function(){return u}),n.d(t,"d",function(){return f}),n.d(t,"c",function(){return d}),n.d(t,"a",function(){return m});var r=n(26),i=n(358),o=n(20),a=n(95);function s(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=i}}function u(e){return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")}function c(e){if(Object(r.d)(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}if(Object(r.f)(e)){var a=e,s={};s.type=a.type;try{s.target=Object(r.c)(a.target)?Object(o.i)(a.target):Object.prototype.toString.call(a.target)}catch(e){s.target="<unknown>"}try{s.currentTarget=Object(r.c)(a.currentTarget)?Object(o.i)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(e){s.currentTarget="<unknown>"}for(var i in"undefined"!=typeof CustomEvent&&Object(r.g)(e,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,i)&&(s[i]=a);return s}return e}function l(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function f(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=d(e,t);return l(r)>n?f(e,t-1,n):r}function h(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==e&&t===e?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":Object(r.l)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+Object(o.f)(t)+"]":t}function p(e,t,n,o){if(void 0===n&&(n=1/0),void 0===o&&(o=new i.a),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=h(e);return Object(r.i)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var a=h(t,e);if(Object(r.i)(a))return a;var s=c(t),u=Array.isArray(t)?[]:{};if(o.memoize(t))return"[Circular ~]";for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(u[l]=p(l,s[l],n-1,o));return o.unmemoize(t),u}function d(e,t){try{return JSON.parse(JSON.stringify(e,function(e,n){return p(e,n,t)}))}catch(e){return"**non-serializable**"}}function m(e,t){void 0===t&&(t=40);var n=Object.keys(c(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(a.d)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Object(a.d)(i,t)}return""}}).call(this,n(85))},function(e,t,n){var r=n(22),i={}.hasOwnProperty;e.exports=function(e,t){return i.call(r(e),t)}},function(e,t,n){"use strict";function r(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(e,Error)}}function i(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function o(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function a(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function u(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(e){return"undefined"!=typeof Event&&m(e,Event)}function f(e){return"undefined"!=typeof Element&&m(e,Element)}function h(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function p(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function d(e){return c(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function m(e,t){try{return e instanceof t}catch(e){return!1}}n.d(t,"d",function(){return r}),n.d(t,"e",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"k",function(){return s}),n.d(t,"i",function(){return u}),n.d(t,"h",function(){return c}),n.d(t,"f",function(){return l}),n.d(t,"c",function(){return f}),n.d(t,"j",function(){return h}),n.d(t,"m",function(){return p}),n.d(t,"l",function(){return d}),n.d(t,"g",function(){return m})},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(688));t.matchMediaListener=i.default;var o=n(700);t.useMatchMediaListener=o.useMatchMediaListener;var a=r(n(704));t.matchMedia=a.default;var s=n(223);t.initMatchMediaListener=s.initMatchMediaListener},function(e,t,n){e.exports={devToolsOpenButton:"_2aJrY",label:"_3wmsE",radioGroupWrapper:"Qxmr4",options:"_2Yjv-",achievementsWrapper:"Lsh0S",optionGroup:"WZedY",achievementTitle:"cLsdC",achievementBox:"_1MpBz",achievementImg:"_2rBue",selectedAchievement:"_3mlef",achievementButton:"_2g1aM",helpersWrapper:"_1PCSe"}},function(e,t,n){var r=n(19),i=n(158),o=n(71),a=n(39),s=n(52),u=n(25),c=n(249),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OK=t.TW=t.FB=t.VK=t.init=t.SocialLink=void 0;var r,i=n(664),o=(r=i)&&r.__esModule?r:{default:r},a=n(222),s=n(219);t.SocialLink=o.default,t.init=a.init,t.VK=s.VK,t.FB=s.FB,t.TW=s.TW,t.OK=s.OK},function(e,t,n){var r=n(11),i=n(38),o=n(25),a=n(193),s=n(198),u=n(40),c=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var u,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),(u=l(n)).source||(u.source=f.join("string"==typeof t?t:""))),e!==r?(c?!p&&e[t]&&(h=!0):delete e[t],h?e[t]=n:i(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s(this)})},function(e,t,n){var r=n(76),i=n(126),o=n(22),a=n(18),s=n(135),u=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,l=4==e,f=6==e,h=7==e,p=5==e||f;return function(d,m,v,g){for(var y,b,x=o(d),_=i(x),w=r(m,v,3),E=a(_.length),S=0,T=g||s,M=t?T(d,E):n||h?T(d,0):void 0;E>S;S++)if((p||S in _)&&(b=w(y=_[S],S,x),e))if(t)M[S]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:u.call(M,y)}else switch(e){case 4:return!1;case 7:u.call(M,y)}return f?-1:c||l?l:M}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},function(e,t,n){var r=n(325),i=n(173),o=n(226),a=n(79),s=n(174),u=n(227),c=n(172),l=n(331),f="[object Map]",h="[object Set]",p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||l(e)||o(e)))return!e.length;var t=i(e);if(t==f||t==h)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return r})},function(e,t,n){var r=n(805);"string"==typeof r&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};n(94)(r,i);r.locals&&(e.exports=r.locals)},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(19),i=n(21),o=n(71);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(126),i=n(37);e.exports=function(e){return r(i(e))}},function(e,t,n){var r,i,o,a=n(254),s=n(11),u=n(13),c=n(38),l=n(25),f=n(192),h=n(157),p=n(130),d=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new d),v=m.get,g=m.has,y=m.set;r=function(e,t){if(g.call(m,e))throw new TypeError("Object already initialized");return t.facade=e,y.call(m,e,t),t},i=function(e){return v.call(m,e)||{}},o=function(e){return g.call(m,e)}}else{var b=h("state");p[b]=!0,r=function(e,t){if(l(e,b))throw new TypeError("Object already initialized");return t.facade=e,c(e,b,t),t},i=function(e){return l(e,b)?e[b]:{}},o=function(e){return l(e,b)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(196),i=n(25),o=n(261),a=n(21).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,n){var r=n(37),i=/"/g;e.exports=function(e,t,n,o){var a=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(o).replace(i,"&quot;")+'"'),s+">"+a+"</"+t+">"}},function(e,t,n){var r=n(9);e.exports=function(e){return r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},function(e,t,n){"use strict";var r=n(317),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function n(n,r){u(t[r])&&u(n)?t[r]=e(t[r],n):u(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";var r=n(235),i=n(798),o=n(799),a=n(800);e.exports=Object.assign({},r,i,o,a)},function(e,t,n){e.exports={text:"_2Kpuk",align_left:"_3hzQw",align_center:"eJb2R",align_right:"_9Bz47",alignDesktop:"b0Lse",alignDesktop_left:"JBIpS",alignDesktop_center:"_3QlJO",alignDesktop_right:"_1CY0e",color_white:"SePDz",color_black:"YgKIV",color_grey:"_2nOyt",color_lemon:"_18Md-",color_magenta:"jR9yS",display_block:"ceOkt",display_inlineBlock:"_3IjB1",display_inline:"_3DfJj",fontFamily_haas:"_3getx",fontFamily_highway:"_53Mnc",fontFamily_olegSans:"koj5j",fontFamily_olegLogo:"_3iGr2",fontFamily_jost:"P6AG-",weight_200:"_2Eyq5",weight_300:"AffSw",weight_400:"_2tBl_",weight_500:"_2bFXB",weight_600:"_2Pckr",weight_700:"_3CiVQ",weight_800:"_2S1dZ",whiteSpace_noWrap:"_2ROtf",whiteSpace_preWrap:"_1DP3o",isUppercase:"_2n5jZ",isEllipsis:"_323Sh",h1:"_3VIyx",h2:"_2aCjB",h3:"_2bp5j",h4:"Ti3L5",h5:"_3mpnL",h6:"_3tZDG",p1:"_3buCb",p2:"wTq5V",p3:"_1LWEi",p4:"_1ZvZW",p5:"_2zpWq",link:"_2-W0I _3d5yv _3dlAu"}},function(e,t,n){e.exports={root:"_2IPSz",list:"o5yzl",listItem:"Xllzg",disablesListItem:"_21Yfc",disablesAchievementCardIcon:"_16tpj",achievementCard:"_2GN2b",achievementCard_disabled:"_1K2vJ",achievementCardIconWrapper:"kbwkd",achievementCardIcon:"_2N3tW",achievementCardDescriptionWrapper:"_1Viag",achievementCardDescriptionWrapper_disabled:"_3qOj5"}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";var r=n(306),i=n(307),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function s(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:i,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){var r=n(13);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(196),i=n(11),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(25),i=n(22),o=n(157),a=n(202),s=o("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,n){e.exports={root:"_2h4FY",container:"_2XnLa",backButton:"WD2jt",title:"_Rqxw",image:"BEm5_",description:"_38vpy",button:"_3z-AH",qrWrapper:"_2bOZy",qrText:"_3bsUd",qrImage:"hvzn1"}},function(e,t){e.exports=!1},function(e,t,n){var r=n(21).f,i=n(25),o=n(15)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(328),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){e.exports=n(597)()},function(e,t,n){e.exports=n(713)},function(e,t,n){e.exports={root:"_3lPit",root_open:"_3VtAV",container:"_190qe",content:"_2kHop",info:"_1i-UE",title:"_1u9mN",list:"_3TRir",listItem:"_2fBB4",qrImage:"_1CRin"}},function(e,t,n){e.exports={root:"QnFxW",link:"_1avqJ",svg:"_2Jg9K"}},function(e,t,n){e.exports={root:"_3nySz",buttonToggle:"_3HE62",title:"_1bSa_",arrow:"_17guI",arrow_open:"_1_vQa",ruleList:"_1sV-x",ruleList_open:"_3LWAM",ruleItem:"_2Tbai",titleRule:"_3AJBM"}},function(e,t,n){e.exports={root:"BY1Jc",main:"sCjJo",container:"_2dzZT",backButton:"iBnPF",content:"_3xIHZ",title:"_2_vWX",image:"lbIlh",list:"_1xozx",listItem:"_38ujP"}},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(19),a=n(215),s=n(16),u=n(206),c=n(75),l=n(71),f=n(38),h=n(18),p=n(268),d=n(286),m=n(52),v=n(25),g=n(133),y=n(13),b=n(72),x=n(74),_=n(86).f,w=n(287),E=n(33).forEach,S=n(113),T=n(21),M=n(29),O=n(40),A=n(162),k=O.get,C=O.set,P=T.f,L=M.f,R=Math.round,j=i.RangeError,N=u.ArrayBuffer,I=u.DataView,D=s.NATIVE_ARRAY_BUFFER_VIEWS,B=s.TYPED_ARRAY_TAG,F=s.TypedArray,U=s.TypedArrayPrototype,z=s.aTypedArrayConstructor,H=s.isTypedArray,G=function(e,t){for(var n=0,r=t.length,i=new(z(e))(r);r>n;)i[n]=t[n++];return i},W=function(e,t){P(e,t,{get:function(){return k(this)[t]}})},V=function(e){var t;return e instanceof N||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},q=function(e,t){return H(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Y=function(e,t){return q(e,t=m(t,!0))?l(2,e[t]):L(e,t)},X=function(e,t,n){return!(q(e,t=m(t,!0))&&y(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?P(e,t,n):(e[t]=n.value,e)};o?(D||(M.f=Y,T.f=X,W(U,"buffer"),W(U,"byteOffset"),W(U,"byteLength"),W(U,"length")),r({target:"Object",stat:!0,forced:!D},{getOwnPropertyDescriptor:Y,defineProperty:X}),e.exports=function(e,t,n){var o=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",u="get"+e,l="set"+e,m=i[s],v=m,g=v&&v.prototype,T={},M=function(e,t){P(e,t,{get:function(){return function(e,t){var n=k(e);return n.view[u](t*o+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=k(e);n&&(r=(r=R(r))<0?0:r>255?255:255&r),i.view[l](t*o+i.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};D?a&&(v=t(function(e,t,n,r){return c(e,v,s),A(y(t)?V(t)?void 0!==r?new m(t,d(n,o),r):void 0!==n?new m(t,d(n,o)):new m(t):H(t)?G(v,t):w.call(v,t):new m(p(t)),e,v)}),x&&x(v,F),E(_(m),function(e){e in v||f(v,e,m[e])}),v.prototype=g):(v=t(function(e,t,n,r){c(e,v,s);var i,a,u,l=0,f=0;if(y(t)){if(!V(t))return H(t)?G(v,t):w.call(v,t);i=t,f=d(n,o);var m=t.byteLength;if(void 0===r){if(m%o)throw j("Wrong length");if((a=m-f)<0)throw j("Wrong length")}else if((a=h(r)*o)+f>m)throw j("Wrong length");u=a/o}else u=p(t),i=new N(a=u*o);for(C(e,{buffer:i,byteOffset:f,byteLength:a,length:u,view:new I(i)});l<u;)M(e,l++)}),x&&x(v,F),g=v.prototype=b(U)),g.constructor!==v&&f(g,"constructor",v),B&&f(g,B,s),T[s]=v,r({global:!0,forced:v!=m,sham:!D},T),"BYTES_PER_ELEMENT"in v||f(v,"BYTES_PER_ELEMENT",o),"BYTES_PER_ELEMENT"in g||f(g,"BYTES_PER_ELEMENT",o),S(s)}):e.exports=function(){}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){e.exports={footer:"_34Y4P",footer_primary:"_26IPB",footer_secondary:"_2EqPQ",wrapper:"gL0nP",wrapper_hasBorder:"_3nHl-",copyright:"_226KK",copyright_primary:"_1-VH3",copyright_secondary:"_39CrR",links:"t5L_W",itemLink:"_39pGG"}},function(e,t,n){e.exports={container:"_3KdqH",sectionTitle:"KcOuv",cylindersWrapper:"P5Oy7",sectionCylinder:"jX3-D",sectionRules:"dcWdu",sectionPrizes:"_3ivN-",sectionCard:"_2VWvO",formWrapper:"_6potc"}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(15),i=n(72),o=n(21),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r,i=n(14),o=n(251),a=n(197),s=n(130),u=n(253),c=n(194),l=n(157),f=l("IE_PROTO"),h=function(){},p=function(e){return"<script>"+e+"<\/script>"},d=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;d=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete d.prototype[a[n]];return d()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h.prototype=i(e),n=new h,h.prototype=null,n[f]=e):n=d(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(49),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t,n){var r=n(14),i=n(258);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(50);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(14),i=n(50),o=n(15)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccessLevel=t.AbstractAuthStrategy=t.IframeEventType=void 0,function(e){e.StateChange="spec:project-user:state-change"}(t.IframeEventType||(t.IframeEventType={}));var r=function(){return function(e){this.config=e}}();t.AbstractAuthStrategy=r,function(e){e.anonymous="ANONYMOUS",e.client="CLIENT",e.registered="REGISTERED"}(t.AccessLevel||(t.AccessLevel={}))},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r=n(666),i=n(667),o=n(305);e.exports={formats:o,parse:i,stringify:r}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(145);function i(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return r})},function(e,t,n){e.exports={root:"_1X7CS",root_label:"_3jikV",root_disabled:"_1hOSh",input:"_3Z6ai",icon:"_3FfAS",icon_hover:"_3U_ur",text:"_3O8c4"}},function(e,t,n){e.exports={root:"_2qOoL",imageWrapper:"_1tNPj",image:"_3V1R0",info:"_3Vy_W",title:"_2tTzR",description:"_3vfcr",button:"_3qGiv"}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(252),i=n(197).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(52),i=n(21),o=n(71);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t,n){var r=n(130),i=n(13),o=n(25),a=n(21).f,s=n(127),u=n(137),c=s("meta"),l=0,f=Object.isExtensible||function(){return!0},h=function(e){a(e,c,{value:{objectID:"O"+ ++l,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,c)){if(!f(e))return"F";if(!t)return"E";h(e)}return e[c].objectID},getWeakData:function(e,t){if(!o(e,c)){if(!f(e))return!0;if(!t)return!1;h(e)}return e[c].weakData},onFreeze:function(e){return u&&p.REQUIRED&&f(e)&&!o(e,c)&&h(e),e}};r[c]=!0},function(e,t,n){var r=n(736),i=n(741);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),o=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")});return[n].concat(o).concat([i]).join("\n")}var a,s,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];null!=o&&(r[o]=!0)}for(var a=0;a<e.length;a++){var s=e[a];null!=s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="(".concat(s[2],") and (").concat(n,")")),t.push(s))}},t}},function(e,t,n){"use strict";var r,i={},o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}();function s(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function u(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id],a=0;if(o){for(o.refs++;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(m(r.parts[a],t))}else{for(var s=[];a<r.parts.length;a++)s.push(m(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:s}}}}function c(e){var t=document.createElement("style");if(void 0===e.attributes.nonce){var r=n.nc;r&&(e.attributes.nonce=r)}if(Object.keys(e.attributes).forEach(function(n){t.setAttribute(n,e.attributes[n])}),"function"==typeof e.insert)e.insert(t);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function h(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}var p=null,d=0;function m(e,t){var n,r,i;if(t.singleton){var o=d++;n=p||(p=c(t)),r=h.bind(null,n,o,!1),i=h.bind(null,n,o,!0)}else n=c(t),r=function(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i&&e.setAttribute("media",i),o&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).attributes="object"==typeof t.attributes?t.attributes:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=s(e,t);return u(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o],c=i[a.id];c&&(c.refs--,r.push(c))}e&&u(s(e,t),t);for(var l=0;l<r.length;l++){var f=r[l];if(0===f.refs){for(var h=0;h<f.parts.length;h++)f.parts[h]();delete i[f.id]}}}}},function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s});var r=n(26);function i(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t?e:e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var i=Math.max(t-60,0);i<5&&(i=0);var o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n="'{snip} "+n),o<r&&(n+=" {snip}"),n}function a(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var i=e[r];try{n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t){return Object(r.j)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(20),i=Object(r.g)(),o="Sentry Logger ",a=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(r.c)(function(){i.console.log(o+"[Log]: "+e.join(" "))})},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(r.c)(function(){i.console.warn(o+"[Warn]: "+e.join(" "))})},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(r.c)(function(){i.console.error(o+"[Error]: "+e.join(" "))})},e}();i.__SENTRY__=i.__SENTRY__||{};var s=i.__SENTRY__.logger||(i.__SENTRY__.logger=new a)},function(e,t,n){e.exports={wrapper:"_3wN3k",catWrapper:"_1ATqA",cat:"_9KCWx","shake-small":"_8vLxv","shake-large":"M7kaR",textWrapper:"_2_H0l",text:"jPQe9"}},function(e,t,n){e.exports={title:"_2soGo",list:"_2lv7_",buttonsWrapper:"_1rD_P",button:"d2Ebw",button_application:"Ki4LD"}},function(e,t,n){e.exports={title:"_2anu_",description:"_1gRxl",advantagesWrapper:"_1MlVa",advantagesList:"_3o_XZ",advantageListItem:"_1618z",cardIcon:"rdrqj"}},function(e,t,n){e.exports={wrapper:"_3Nusb",root:"_1HP0q",title:"mNYut",description:"_3PIcC",image:"_30ZY-",button:"_1Q7ZZ"}},function(e,t,n){e.exports={title:"_1LIlm",listWrapper:"_18Une",list:"_7mF4F",buttonsWrapper:"_3pGiO",agreementButton:"_3U5Zg"}},function(e,t,n){e.exports={root:"EZMLL",heading:"UUgUU",icon:"_2Po7u",description:"_1T33l",sharingsWrapper:"Ok6Ix",sharingsText:"_1d_C-"}},function(e,t,n){e.exports={main:"_3nkF4",container:"ibxka",title:"v25vx",subtitle:"fcQy1",list:"_2zYwA"}},function(e,t,n){e.exports={root:"_1ksZA",title:"_1417M",description:"TvnjX",image:"_2Apax",button:"_2anZy"}},function(e,t,n){e.exports={wrapper:"_35LeZ",root:"_2eNvi",title:"_3eLJ7",description:"VhwZg",image:"_2T4RI",button:"_2dTNC"}},function(e,t,n){e.exports={wrapper:"_2UM4Z",root:"_2-Gud",title:"_2ZELn",description:"_3bTHi",image:"_2Nm0a",button:"_3Tif4"}},function(e,t,n){e.exports={wrapper:"_2ecMu",root:"_1f5rj",title:"_3jXYw",description:"y0PlV",image:"_1GJZw",button:"IRXZS"}},,function(e,t,n){var r,i,o=n(11),a=n(156),s=o.process,u=s&&s.versions,c=u&&u.v8;c?i=(r=c.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){var r=n(32);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){var r=n(69);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(69),i=n(11);e.exports="process"==r(i.process)},function(e,t,n){"use strict";var r=n(53),i=n(21),o=n(15),a=n(19),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(37),i="["+n(164)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wuidLC=t.wuid=t.utmSource=t.utma=t.userType=t.source=t.position=t.sessionId=t.pageLanding=t.dspId=t.dmpId=t.block=void 0,t.block="block",t.dmpId="dmp.id",t.dspId="dsp_click_id",t.pageLanding="pageLanding",t.sessionId="psid",t.position="position",t.source="source",t.userType="userType",t.utma="__utma",t.utmSource="utm_source",t.wuid="__P__wuid",t.wuidLC="__P__wuid_last_update_time"},function(e,t,n){var r=n(140),i=n(737),o=n(738),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?i(e):o(e)}},function(e,t,n){e.exports=n(705).default},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(340),t),i(n(78),t),i(n(788),t),i(n(789),t),i(n(790),t)},function(e,t,n){"use strict";t.a=function(e){var t=e.dataQaType,n=e.dataQaData;return{"data-qa-type":t,"data-qa-data":"object"==typeof n?JSON.stringify(n):n}}},function(e,t,n){var r;
/*!
  Copyright (c) 2018 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/*!
  Copyright (c) 2018 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&e.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){e.exports={listItem:"_3ZnxD",iconColumn:"_2zDTo",icon:"_1317l",title:"_2ROh9",text:"_2kpPs"}},function(e,t,n){e.exports={title:"Ey88m",description:"_1dUlg",iconWrapper:"lxXbq",icon:"_2txa6",socials:"_1TQSS"}},function(e,t,n){e.exports={root:"_1kTTb",title:"AT5Op",image:"_3vyHs",description:"_7iXqC",button:"_2LRZk"}},function(e,t,n){e.exports={root:"_3kRbX",title:"_51GQX",description:"_6-d7A",image:"f3QXI",button:"_3Pjd"}},function(e,t,n){e.exports={root:"_2Gbvq",main:"_3SBe4",loginContainer:"_2kyv5",errorContainer:"SKuI0"}},function(e,t,n){var r=n(9),i=n(69),o="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(252),i=n(197);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(39),i=n(18),o=n(73),a=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t){e.exports={}},function(e,t){e.exports={}},function(e,t,n){var r=n(9),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=u&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(203),i=n(69),o=n(15)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r=n(133),i=n(131),o=n(15)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(13),i=n(111),o=n(15)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(9),i=n(15),o=n(109),a=i("species");e.exports=function(e){return o>=51||!r(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,n){var r=n(9);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){var r=n(14),i=n(205),o=n(18),a=n(76),s=n(134),u=n(265),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var l,f,h,p,d,m,v,g=n&&n.that,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),_=a(t,g,1+y+x),w=function(e){return l&&u(l),new c(!0,e)},E=function(e){return y?(r(e),x?_(e[0],e[1],w):_(e[0],e[1])):x?_(e,w):_(e)};if(b)l=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(i(f)){for(h=0,p=o(e.length);p>h;h++)if((d=E(e[h]))&&d instanceof c)return d;return new c(!1)}l=f.call(e)}for(m=l.next;!(v=m.call(l)).done;){try{d=E(v.value)}catch(e){throw u(l),e}if("object"==typeof d&&d&&d instanceof c)return d}return new c(!1)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TWO_SECONDS=t.FOREVER=t.SIXTY_DAYS=t.internalMarkers=t.contextMarkers=t.utmMarkers=t.positionPattern=t.defaults=void 0;var o=i(n(610));t.defaults=r({global:"tracking",initialState:{},disableJsonp:!1,enrichTimeout:1500},o.default),t.positionPattern=/^\d+(0|s|t)\d+$/,t.utmMarkers=["utm_source","utm_content","utm_campaign","utm_medium","utm_term","sid","wm"],t.contextMarkers=["ctx_position","ctx_block","ctx_source"],t.internalMarkers=["internal_source"],t.SIXTY_DAYS=5184e3,t.FOREVER=31536e4,t.TWO_SECONDS=2e3},function(e,t,n){var r=n(58).Symbol;e.exports=r},function(e,t,n){var r=n(116),i=n(92),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&r(e)==o}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(347),i=n(348);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=o?o(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?i(n,c,l):r(n,c,l)}return n}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(593)},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r,i=n(26);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(r||(r={}));var o=function(){function e(e){var t=this;this._state=r.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(r.RESOLVED,e)},this._reject=function(e){t._setResult(r.REJECTED,e)},this._setResult=function(e,n){t._state===r.PENDING&&(Object(i.m)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){t._state!==r.PENDING&&(t._state===r.REJECTED?t._handlers.forEach(function(e){e.onrejected&&e.onrejected(t._value)}):t._handlers.forEach(function(e){e.onfulfilled&&e.onfulfilled(t._value)}),t._handlers=[])};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.toString=function(){return"[object SyncPromise]"},e.resolve=function(t){return new e(function(e){e(t)})},e.reject=function(t){return new e(function(e,n){n(t)})},e.all=function(t){return new e(function(n,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach(function(t,a){e.resolve(t).then(function(e){o[a]=e,0===(i-=1)&&n(o)}).then(null,r)})}else n([]);else r(new TypeError("Promise.all requires an array as input."))})},e.prototype.then=function(t,n){var r=this;return new e(function(e,i){r._attachHandler({onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void i(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void i(e)}else i(t)}})})},e.prototype.catch=function(e){return this.then(function(e){return e},e)},e.prototype.finally=function(t){var n=this;return new e(function(e,r){var i,o;return n.then(function(e){o=!1,i=e,t&&t()},function(e){o=!0,i=e,t&&t()}).then(function(){o?r(i):e(i)})})},e}()},function(e,t,n){e.exports={wrapper:"_1-FwQ",radioItem:"_38muU",label:"_357IB",radioInput:"_2m3Kt"}},function(e,t,n){var r=n(801);"string"==typeof r&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};n(94)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){e.exports={wrapper:"_1UUtZ",heading:"_2bbMp",description:"_2KPdH",button:"_1p4sj"}},function(e,t,n){e.exports={root:"i2-iU",content:"_3qxeY",logo:"_3Durs",control:"_1nOnW"}},function(e,t,n){e.exports={wrapper:"_3gh_-",svg:"_1fwOa","spinner-rotate":"_366Ml",circle:"_33be-","spinner-offset":"_1WZl_",circle_color_yellow:"_34QNA",circle_color_white:"_3cq65"}},function(e,t,n){e.exports={container:"_1u6Y7",sectionFocusedAchievement:"_1Ji8a",sectionHowInvest:"_3v7yP",sectionAchievementList:"_1gj04"}},,function(e,t,n){"use strict";var r=n(39),i=n(70),o=n(131),a=n(40),s=n(199),u=a.set,c=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){u(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){var r=n(56),i=n(192);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(53);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(155),i=n(127),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(15)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var r=n(50),i=n(22),o=n(126),a=n(18),s=function(e){return function(t,n,s,u){r(n);var c=i(t),l=o(c),f=a(c.length),h=e?f-1:0,p=e?-1:1;if(s<2)for(;;){if(h in l){u=l[h],h+=p;break}if(h+=p,e?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;e?h>=0:f>h;h+=p)h in l&&(u=n(u,l[h],h,c));return u}};e.exports={left:s(!1),right:s(!0)}},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(132),a=n(32),s=n(89),u=n(138),c=n(75),l=n(13),f=n(9),h=n(159),p=n(57),d=n(162);e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),g=m?"set":"add",y=i[e],b=y&&y.prototype,x=y,_={},w=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof y||!(v||b.forEach&&!f(function(){(new y).entries().next()}))))x=n.getConstructor(t,e,m,g),s.REQUIRED=!0;else if(o(e,!0)){var E=new x,S=E[g](v?{}:-0,1)!=E,T=f(function(){E.has(1)}),M=h(function(e){new y(e)}),O=!v&&f(function(){for(var e=new y,t=5;t--;)e[g](t,t);return!e.has(-0)});M||((x=t(function(t,n){c(t,x,e);var r=d(new y,t,x);return null!=n&&u(n,r[g],{that:r,AS_ENTRIES:m}),r})).prototype=b,b.constructor=x),(T||O)&&(w("delete"),w("has"),m&&w("get")),(O||S)&&w(g),v&&b.clear&&delete b.clear}return _[e]=x,r({global:!0,forced:x!=y},_),p(x,e),v||n.setStrong(x,e,m),x}},function(e,t,n){var r=n(13),i=n(74);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},function(e,t){var n=Math.expm1,r=Math.exp;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:r(e)-1}:n},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(56),i=n(11),o=n(9);e.exports=r||!o(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete i[e]})},function(e,t,n){"use strict";var r=n(14);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(9);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r(function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),t.BROKEN_CARET=r(function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},function(e,t,n){"use strict";var r,i,o=n(166),a=n(167),s=n(155),u=RegExp.prototype.exec,c=s("native-string-replace",String.prototype.replace),l=u,f=(r=/a/,i=/b*/g,u.call(r,"a"),u.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),h=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(f||p||h)&&(l=function(e){var t,n,r,i,a=this,s=h&&a.sticky,l=o.call(a),d=a.source,m=0,v=e;return s&&(-1===(l=l.replace("y","")).indexOf("g")&&(l+="g"),v=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(d="(?: "+d+")",v=" "+v,m++),n=new RegExp("^(?:"+d+")",l)),p&&(n=new RegExp("^"+d+"$(?!\\s)",l)),f&&(t=a.lastIndex),r=u.call(s?n:a,v),s?r?(r.input=r.input.slice(m),r[0]=r[0].slice(m),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:f&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),p&&r&&r.length>1&&c.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}),e.exports=l},function(e,t,n){var r=n(49),i=n(37),o=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){"use strict";n(282);var r=n(32),i=n(168),o=n(9),a=n(15),s=n(38),u=a("species"),c=RegExp.prototype,l=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),f="$0"==="a".replace(/./,"$0"),h=a("replace"),p=!!/./[h]&&""===/./[h]("a","$0"),d=!o(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});e.exports=function(e,t,n,h){var m=a(e),v=!o(function(){var t={};return t[m]=function(){return 7},7!=""[e](t)}),g=v&&!o(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t});if(!v||!g||"replace"===e&&(!l||!f||p)||"split"===e&&!d){var y=/./[m],b=n(m,""[e],function(e,t,n,r,o){var a=t.exec;return a===i||a===c.exec?v&&!o?{done:!0,value:y.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),x=b[0],_=b[1];r(String.prototype,e,x),r(c,m,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}h&&s(c[m],"sham",!0)}},function(e,t,n){var r=n(69),i=n(168);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(735),i=n(225),o=n(742),a=n(743),s=n(744),u=n(116),c=n(329),l=c(r),f=c(i),h=c(o),p=c(a),d=c(s),m=u;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case d:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(327),i=n(330);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(90)(Object,"create");e.exports=r},function(e,t,n){var r=n(762),i=n(763),o=n(764),a=n(765),s=n(766);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(233);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(768);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=typeof e;return!!(t=null==t?n:t)&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(596),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isSameOrigin=t.notifyParentPage=t.isMessageFromProjectUser=t.replaceSensitiveQueryParams=t.createInitUserState=t.createInitialStrategies=void 0;var o=n(729),a=n(730),s=n(731),u=n(732),c=n(733),l=n(78),f=i(n(80));t.createInitialStrategies=function(e){return{projectTokenLocalStorage:new o.AuthStrategyProjectTokenLocalStorage(e),tinkoffTokenQueryParams:new a.AuthStrategyTinkoffTokenQueryParams(e),tinkoffInternetBank:new s.AuthStrategyTinkoffInternetBank(e),tinkoffNotClient:new c.AuthStrategyTinkoffNotClient(e),ssoQueryParams:new u.AuthStrategySSOQueryParams(e)}},t.createInitUserState=function(e){return void 0===e&&(e={}),r({isLoggedIn:!1,isLoading:!1,tinkoff:void 0,error:void 0},e)},t.replaceSensitiveQueryParams=function(e){var t=function(e,t){for(var n={},r=0,i=Object.entries(e);r<i.length;r++){var o=i[r],a=o[0],s=o[1],u=t.includes(a);u||(n[a]=s)}return n}(f.default.parse(window.location.search.slice(1)),e),n=window.location.pathname,r=f.default.stringify(t);r&&(n+="?"+r),window.location.hash&&(n+=window.location.hash),window.history.replaceState({},document.title,n)},t.isMessageFromProjectUser=function(e){var t;return Boolean((null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.type)===l.IframeEventType.StateChange)},t.notifyParentPage=function(e,t){var n=t.srcOrigin;if(window.parent!==window){var r={type:l.IframeEventType.StateChange,state:e};window.parent.postMessage(r,n)}},t.isSameOrigin=function(e,t){return e.origin===t||e.origin+"/"===t}},function(e,t,n){"use strict";var r=n(344),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(d){var i=p(n);i&&i!==d&&e(t,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),m=u(n),v=0;v<a.length;++v){var g=a[v];if(!(o[g]||r&&r[g]||m&&m[g]||s&&s[g])){var y=h(n,g);try{c(t,g,y)}catch(e){}}}}return t}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",function(){return o});var i=n(82);function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?Object(i.a)(e):t}},function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return l});var r=n(3),i=n(146),o=n(26),a=n(24),s=n(20),u=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}return e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout(function(){e._scopeListeners.forEach(function(t){t(e)}),e._notifyingListeners=!1}))},e.prototype._notifyEventProcessors=function(e,t,n,a){var s=this;return void 0===a&&(a=0),new i.a(function(i,u){var c=e[a];if(null===t||"function"!=typeof c)i(t);else{var l=c(r.a({},t),n);Object(o.m)(l)?l.then(function(t){return s._notifyEventProcessors(e,t,n,a+1).then(i)}).then(null,u):s._notifyEventProcessors(e,l,n,a+1).then(i).then(null,u)}})},e.prototype.setUser=function(e){return this._user=Object(a.c)(e),this._notifyScopeListeners(),this},e.prototype.setTags=function(e){return this._tags=r.a({},this._tags,Object(a.c)(e)),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=r.a({},this._tags,((n={})[e]=Object(a.c)(t),n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=r.a({},this._extra,Object(a.c)(e)),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=r.a({},this._extra,((n={})[e]=Object(a.c)(t),n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=Object(a.c)(e),this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=Object(a.c)(e),this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this._transaction=e,this._span&&(this._span.transaction=e),this._notifyScopeListeners(),this},e.prototype.setContext=function(e,t){return this._context[e]=t?Object(a.c)(t):void 0,this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=r.d(t._breadcrumbs),n._tags=r.a({},t._tags),n._extra=r.a({},t._extra),n._context=r.a({},t._context),n._user=t._user,n._level=t._level,n._span=t._span,n._transaction=t._transaction,n._fingerprint=t._fingerprint,n._eventProcessors=r.d(t._eventProcessors)),n},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._context={},this._level=void 0,this._transaction=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=Object(s.m)(),i=r.a({timestamp:n},e);return this._breadcrumbs=void 0!==t&&t>=0?r.d(this._breadcrumbs,[Object(a.c)(i)]).slice(-t):r.d(this._breadcrumbs,[Object(a.c)(i)]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e.prototype.applyToEvent=function(e,t){return this._extra&&Object.keys(this._extra).length&&(e.extra=r.a({},this._extra,e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=r.a({},this._tags,e.tags)),this._user&&Object.keys(this._user).length&&(e.user=r.a({},this._user,e.user)),this._context&&Object.keys(this._context).length&&(e.contexts=r.a({},this._context,e.contexts)),this._level&&(e.level=this._level),this._transaction&&(e.transaction=this._transaction),this._applyFingerprint(e),e.breadcrumbs=r.d(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(r.d(c(),this._eventProcessors),e,t)},e}();function c(){var e=Object(s.g)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function l(e){c().push(e)}},function(e,t,n){e.exports={root:"_32QdB",tinkoff:"_3cU1a",logo:"_1cst_",secondPart:"_2eKUU"}},function(e,t,n){e.exports={title:"_1xA4t",daysLeft:"_3IVWt",calendarIcon:"b7e-h"}},,function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(s[c]=n[c]);if(r){a=r(n);for(var l=0;l<a.length;l++)o.call(n,a[l])&&(s[a[l]]=n[a[l]])}}return s}},function(e,t,n){"use strict";n(154);var r=n(2),i=n(53),o=n(259),a=n(32),s=n(110),u=n(57),c=n(256),l=n(40),f=n(75),h=n(25),p=n(76),d=n(133),m=n(14),v=n(13),g=n(72),y=n(71),b=n(384),x=n(134),_=n(15),w=i("fetch"),E=i("Headers"),S=_("iterator"),T=l.set,M=l.getterFor("URLSearchParams"),O=l.getterFor("URLSearchParamsIterator"),A=/\+/g,k=Array(4),C=function(e){return k[e-1]||(k[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},P=function(e){try{return decodeURIComponent(e)}catch(t){return e}},L=function(e){var t=e.replace(A," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(C(n--),P);return t}},R=/[!'()~]|%20/g,j={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},N=function(e){return j[e]},I=function(e){return encodeURIComponent(e).replace(R,N)},D=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:L(r.shift()),value:L(r.join("="))}))},B=function(e){this.entries.length=0,D(this.entries,e)},F=function(e,t){if(e<t)throw TypeError("Not enough arguments")},U=c(function(e,t){T(this,{type:"URLSearchParamsIterator",iterator:b(M(e).entries),kind:t})},"Iterator",function(){var e=O(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),z=function(){f(this,z,"URLSearchParams");var e,t,n,r,i,o,a,s,u,c=arguments.length>0?arguments[0]:void 0,l=[];if(T(this,{type:"URLSearchParams",entries:l,updateURL:function(){},updateSearchParams:B}),void 0!==c)if(v(c))if("function"==typeof(e=x(c)))for(n=(t=e.call(c)).next;!(r=n.call(t)).done;){if((a=(o=(i=b(m(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");l.push({key:a.value+"",value:s.value+""})}else for(u in c)h(c,u)&&l.push({key:u,value:c[u]+""});else D(l,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},H=z.prototype;s(H,{append:function(e,t){F(arguments.length,2);var n=M(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){F(arguments.length,1);for(var t=M(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){F(arguments.length,1);for(var t=M(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){F(arguments.length,1);for(var t=M(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){F(arguments.length,1);for(var t=M(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){F(arguments.length,1);for(var n,r=M(this),i=r.entries,o=!1,a=e+"",s=t+"",u=0;u<i.length;u++)(n=i[u]).key===a&&(o?i.splice(u--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=M(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=M(this).entries,r=p(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new U(this,"keys")},values:function(){return new U(this,"values")},entries:function(){return new U(this,"entries")}},{enumerable:!0}),a(H,S,H.entries),a(H,"toString",function(){for(var e,t=M(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(I(e.key)+"="+I(e.value));return n.join("&")},{enumerable:!0}),u(z,"URLSearchParams"),r({global:!0,forced:!o},{URLSearchParams:z}),o||"function"!=typeof w||"function"!=typeof E||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],v(t)&&(n=t.body,"URLSearchParams"===d(n)&&((r=t.headers?new E(t.headers):new E).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:y(0,String(n)),headers:y(0,r)}))),i.push(t)),w.apply(this,i)}}),e.exports={URLSearchParams:z,getState:M}},function(e,t,n){var r=n(11),i=n(193),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,n){var r=n(11),i=n(38);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(11),i=n(13),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(109),i=n(9);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())||!Symbol.sham&&r&&r<41})},function(e,t,n){var r=n(11);e.exports=r},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(192),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){"use strict";var r=n(2),i=n(256),o=n(54),a=n(74),s=n(57),u=n(38),c=n(32),l=n(15),f=n(56),h=n(131),p=n(257),d=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,v=l("iterator"),g=function(){return this};e.exports=function(e,t,n,l,p,y,b){i(n,t,l);var x,_,w,E=function(e){if(e===p&&A)return A;if(!m&&e in M)return M[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},S=t+" Iterator",T=!1,M=e.prototype,O=M[v]||M["@@iterator"]||p&&M[p],A=!m&&O||E(p),k="Array"==t&&M.entries||O;if(k&&(x=o(k.call(new e)),d!==Object.prototype&&x.next&&(f||o(x)===d||(a?a(x,d):"function"!=typeof x[v]&&u(x,v,g)),s(x,S,!0,!0),f&&(h[S]=g))),"values"==p&&O&&"values"!==O.name&&(T=!0,A=function(){return O.call(this)}),f&&!b||M[v]===A||u(M,v,A),h[t]=A,p)if(_={values:E("values"),keys:y?A:E("keys"),entries:E("entries")},b)for(w in _)!m&&!T&&w in M||c(M,w,_[w]);else r({target:t,proto:!0,forced:m||T},_);return _}},function(e,t,n){var r=n(53),i=n(86),o=n(201),a=n(14);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(9);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var r={};r[n(15)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(22),i=n(73),o=n(18);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)t[s++]=e;return t}},function(e,t,n){var r=n(15),i=n(131),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){"use strict";var r=n(11),i=n(19),o=n(267),a=n(38),s=n(110),u=n(9),c=n(75),l=n(49),f=n(18),h=n(268),p=n(426),d=n(54),m=n(74),v=n(86).f,g=n(21).f,y=n(204),b=n(57),x=n(40),_=x.get,w=x.set,E=r.ArrayBuffer,S=E,T=r.DataView,M=T&&T.prototype,O=Object.prototype,A=r.RangeError,k=p.pack,C=p.unpack,P=function(e){return[255&e]},L=function(e){return[255&e,e>>8&255]},R=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},j=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},N=function(e){return k(e,23,4)},I=function(e){return k(e,52,8)},D=function(e,t){g(e.prototype,t,{get:function(){return _(this)[t]}})},B=function(e,t,n,r){var i=h(n),o=_(e);if(i+t>o.byteLength)throw A("Wrong index");var a=_(o.buffer).bytes,s=i+o.byteOffset,u=a.slice(s,s+t);return r?u:u.reverse()},F=function(e,t,n,r,i,o){var a=h(n),s=_(e);if(a+t>s.byteLength)throw A("Wrong index");for(var u=_(s.buffer).bytes,c=a+s.byteOffset,l=r(+i),f=0;f<t;f++)u[c+f]=l[o?f:t-f-1]};if(o){if(!u(function(){E(1)})||!u(function(){new E(-1)})||u(function(){return new E,new E(1.5),new E(NaN),"ArrayBuffer"!=E.name})){for(var U,z=(S=function(e){return c(this,S),new E(h(e))}).prototype=E.prototype,H=v(E),G=0;H.length>G;)(U=H[G++])in S||a(S,U,E[U]);z.constructor=S}m&&d(M)!==O&&m(M,O);var W=new T(new S(2)),V=M.setInt8;W.setInt8(0,2147483648),W.setInt8(1,2147483649),!W.getInt8(0)&&W.getInt8(1)||s(M,{setInt8:function(e,t){V.call(this,e,t<<24>>24)},setUint8:function(e,t){V.call(this,e,t<<24>>24)}},{unsafe:!0})}else S=function(e){c(this,S,"ArrayBuffer");var t=h(e);w(this,{bytes:y.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},T=function(e,t,n){c(this,T,"DataView"),c(e,S,"DataView");var r=_(e).byteLength,o=l(t);if(o<0||o>r)throw A("Wrong offset");if(o+(n=void 0===n?r-o:f(n))>r)throw A("Wrong length");w(this,{buffer:e,byteLength:n,byteOffset:o}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},i&&(D(S,"byteLength"),D(T,"buffer"),D(T,"byteLength"),D(T,"byteOffset")),s(T.prototype,{getInt8:function(e){return B(this,1,e)[0]<<24>>24},getUint8:function(e){return B(this,1,e)[0]},getInt16:function(e){var t=B(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=B(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return j(B(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return j(B(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return C(B(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return C(B(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){F(this,1,e,P,t)},setUint8:function(e,t){F(this,1,e,P,t)},setInt16:function(e,t){F(this,2,e,L,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){F(this,2,e,L,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){F(this,4,e,R,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){F(this,4,e,R,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){F(this,4,e,N,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){F(this,8,e,I,t,arguments.length>2?arguments[2]:void 0)}});b(S,"ArrayBuffer"),b(T,"DataView"),e.exports={ArrayBuffer:S,DataView:T}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){"use strict";var r=n(49),i=n(37);e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t,n){var r,i,o,a=n(11),s=n(9),u=n(76),c=n(253),l=n(194),f=n(278),h=n(112),p=a.location,d=a.setImmediate,m=a.clearImmediate,v=a.process,g=a.MessageChannel,y=a.Dispatch,b=0,x={},_=function(e){if(x.hasOwnProperty(e)){var t=x[e];delete x[e],t()}},w=function(e){return function(){_(e)}},E=function(e){_(e.data)},S=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};d&&m||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return x[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},m=function(e){delete x[e]},h?r=function(e){v.nextTick(w(e))}:y&&y.now?r=function(e){y.now(w(e))}:g&&!f?(o=(i=new g).port2,i.port1.onmessage=E,r=u(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&p&&"file:"!==p.protocol&&!s(S)?(r=S,a.addEventListener("message",E,!1)):r="onreadystatechange"in l("script")?function(e){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),_(e)}}:function(e){setTimeout(w(e),0)}),e.exports={set:d,clear:m}},function(e,t,n){var r=n(13),i=n(69),o=n(15)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(210);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(15)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(169).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(9),i=n(164);e.exports=function(e){return r(function(){return!!i[e]()||"​…᠎"!="​…᠎"[e]()||i[e].name!==e})}},function(e,t,n){var r=n(11),i=n(9),o=n(159),a=n(16).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,u=r.Int8Array;e.exports=!a||!i(function(){u(1)})||!i(function(){new u(-1)})||!o(function(e){new u,new u(null),new u(1.5),new u(e)},!0)||i(function(){return 1!==new u(new s(2),1,void 0).length})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var r,i=n(603);var o=((r=i)&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.canUseDOM=o.canUseDOM;t.default=a},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(298)),a=i(n(218));t.default=function(e){void 0===e&&(e=document.location);var t=r(r({},o.default(["hash","host","hostname","href","pathname","port","protocol","search","origin"],e)),{query:a.default(e.search.slice(1))});return"/"!==t.pathname[0]&&(t.pathname="/"+t.pathname),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){void 0===t&&(t="&"),void 0===n&&(n="=");for(var r={},i=0,o=e.split(t);i<o.length;i++){var a=o[i],s=String(a).split(n);if(s[0]&&s[1]){var u=s[1];try{u=decodeURIComponent(s[1])}catch(e){}r[decodeURIComponent(s[0])]=u}}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OK=t.TW=t.FB=t.VK=t.defaults=void 0;var r,i=n(0);(r=i)&&r.__esModule;var o={vk:{id:"vk",title:"Поделиться во Вконтакте"},fb:{id:"fb",title:"Поделиться в Фейсбуке"},tw:{id:"tw",title:"Поделиться в Твиттере"},ok:{id:"ok",title:"Поделиться в Одноклассниках"}},a=o.vk.id,s=o.fb.id,u=o.tw.id,c=o.ok.id;t.defaults=o,t.VK=a,t.FB=s,t.TW=u,t.OK=c},function(e,t,n){"use strict";(function(t){var r=n(51),i=n(674),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={adapter:("undefined"!=typeof XMLHttpRequest?s=n(308):void 0!==t&&(s=n(308)),s),transformRequest:[function(e,t){return i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){u.headers[e]={}}),r.forEach(["post","put","patch"],function(e){u.headers[e]=r.merge(o)}),e.exports=u}).call(this,n(221))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var e=s(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new d(e,t)),1!==c.length||l||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getParams=t.init=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(219),o=Object.keys(i.defaults),a={};t.init=function(e){var t=function(t){var n=t[0],o=t[1];a[n]||(a[n]={}),a[n][o]=r({},i.defaults[o],e[o]&&e[o][n])};o.forEach(function(e){t(["common",e]),t(["sharedObject",e])}),a.env=e.env},t.getParams=function(e){if(!Object.keys(a))throw new Error("You should run init first");return function(e,t){for(var n=t,r=0;r<e.length;){if(null===n)return;n=n[e[r]],r+=1}return n}(e,a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(699),i={};t.initMatchMediaListener=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i=Object.assign(Object.assign({},r.defaultListMedia),e)},t.getInitialListMedia=function(){if(!Object.keys(i))throw new Error("Init method has not been called yet. Should initialize with initListMedia before render");return i}},function(e,t,n){var r=n(315);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){var r=n(90)(n(58),"Map");e.exports=r},function(e,t,n){var r=n(745),i=n(92),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){(function(e){var r=n(58),i=n(746),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u}).call(this,n(228)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(328),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(228)(e))},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){var r=n(79),i=n(751),o=n(752),a=n(772);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){"use strict";e.exports={"yellow-100":"#FFDD2D","yellow-200":"#FCC521","yellow-300":"#FAB619","black-100":"#909090","black-200":"#666666","black-300":"#333333","black-400":"#000000","gray-100":"#F5F5F6","gray-200":"#E7E8EA","gray-300":"#CBCFD3","gray-400":"#959BA4","gray-500":"#79818C","gray-600":"#616871","lightBlue-100":"#ECF1F7","lightBlue-200":"#E4EBF3","lightBlue-300":"#DDE4ED","blue-100":"#1771E6","blue-200":"#1464CC","blue-300":"#0953B3","green-100":"#39B54A","green-200":"#2CA53A","green-300":"#168821","red-100":"#E01F19","red-200":"#D3120E","red-300":"#C40B08",white:"#FFFFFF"}},function(e,t,n){var r=n(349),i=n(325),o=n(174);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(349),i=n(843),o=n(174);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t,n){var r=n(848),i=n(350),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;e.exports=s},function(e,t,n){var r=n(326)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(853);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(333);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(814);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",l=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],h=n[1],p=n.index;if(s+=e.slice(a,p),a=p+f.length,h)s+=h[1];else{var d=e[a],m=n[2],v=n[3],g=n[4],y=n[5],b=n[6],x=n[7];s&&(r.push(s),s="");var _=null!=m&&null!=d&&d!==m,w="+"===b||"*"===b,E="?"===b||"*"===b,S=n[2]||l,T=g||y;r.push({name:v||o++,prefix:m||"",delimiter:S,optional:E,repeat:w,partial:_,asterisk:!!x,pattern:T?c(T):x?".*":"[^"+u(S)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",s=t||{},u=(i||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var l=e[c];if("string"!=typeof l){var f,h=s[l.name];if(null==h){if(l.optional){l.partial&&(o+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(h)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var p=0;p<h.length;p++){if(f=u(h[p]),!n[c].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===p?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(h).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}):u(h),!n[c].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');o+=l.prefix+f}}else o+=l}return o}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function h(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)a+=u(c);else{var h=u(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+h+p+")*"),a+=p=c.optional?c.partial?h+"("+p+")?":"(?:"+h+"("+p+"))?":h+"("+p+")"}}var d=u(n.delimiter||"/"),m=a.slice(-d.length)===d;return i||(a=(m?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+d+"|$)",l(new RegExp("^"+a,f(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(p(e[i],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return h(o(e,n),t,n)}(e,t,n)}},function(e,t,n){e.exports={root:"_3GHMS",arrow:"FhjAN"}},function(e,t,n){e.exports={root:"_1JOEr",container:"_26XyP"}},function(e,t,n){e.exports={root:"_6jRoY",arrowIcon:"_2DAKH"}},function(e,t,n){"use strict";var r=n(314),i=n(824),o=n(825),a=n(829),s=n(830),u=n(831);function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?a(e):encodeURIComponent(e):e}function f(e,t){return t.decode?s(e):e}function h(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){var t=(e=h(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var i="string"==typeof n&&n.split("").indexOf(e.arrayFormatSeparator)>-1?n.split(e.arrayFormatSeparator).map(function(t){return f(t,e)}):null===n?n:f(n,e);r[t]=i};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;var a,s=i(e.split("&"));try{for(s.s();!(a=s.n()).done;){var l=a.value,h=u(t.decode?l.replace(/\+/g," "):l,"="),p=r(h,2),m=p[0],v=p[1];v=void 0===v?null:["comma","separator"].includes(t.arrayFormat)?v:f(v,t),n(f(m,t),v,o)}}catch(e){s.e(e)}finally{s.f()}for(var g=0,y=Object.keys(o);g<y.length;g++){var b=y[g],x=o[b];if("object"==typeof x&&null!==x)for(var _=0,w=Object.keys(x);_<w.length;_++){var E=w[_];x[E]=d(x[E],t)}else o[b]=d(x,t)}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce(function(e,t){var n=o[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort(function(e,t){return Number(e)-Number(t)}).map(function(e){return t[e]}):t}(n):e[t]=n,e},Object.create(null))}t.extract=p,t.parse=m,t.stringify=function(e,t){if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var n=function(n){return t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n]},r=function(e){switch(e.arrayFormat){case"index":return function(t){return function(n,r){var i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[l(t,e),"[",i,"]"].join("")]:[[l(t,e),"[",l(i,e),"]=",l(r,e)].join("")])}};case"bracket":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[l(t,e),"[]"].join("")]:[[l(t,e),"[]=",l(r,e)].join("")])}};case"comma":case"separator":return function(t){return function(n,r){return null==r||0===r.length?n:0===n.length?[[l(t,e),"=",l(r,e)].join("")]:[[n,l(r,e)].join(e.arrayFormatSeparator)]}};default:return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[l(t,e)]:[[l(t,e),"=",l(r,e)].join("")])}}}}(t),i={},a=0,s=Object.keys(e);a<s.length;a++){var u=s[a];n(u)||(i[u]=e[u])}var f=Object.keys(i);return!1!==t.sort&&f.sort(t.sort),f.map(function(n){var i=e[n];return void 0===i?"":null===i?l(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):l(n,t)+"="+l(i,t)}).filter(function(e){return e.length>0}).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=u(e,"#"),i=r(n,2),o=i[0],a=i[1];return Object.assign({url:o.split("?")[0]||"",query:m(p(e),t)},t&&t.parseFragmentIdentifier&&a?{fragmentIdentifier:f(a,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r=h(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query),s=t.stringify(a,n);s&&(s="?".concat(s));var u=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#".concat(l(e.fragmentIdentifier,n))),"".concat(r).concat(s).concat(u)}},function(e,t,n){"use strict";n.r(t),n.d(t,"Headers",function(){return c}),n.d(t,"Request",function(){return v}),n.d(t,"Response",function(){return y}),n.d(t,"DOMException",function(){return x}),n.d(t,"fetch",function(){return _});var r={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(r.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function h(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:r.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r.arrayBuffer&&r.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var e,t,n,r=l(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=a(e),t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},c.prototype.delete=function(e){delete this.map[a(e)]},c.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},c.prototype.set=function(e,t){this.map[a(e)]=s(t)},c.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},r.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){var n,r,i=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new c(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),m.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function y(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},d.call(v.prototype),d.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];y.redirect=function(e,t){if(-1===b.indexOf(t))throw new RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})};var x=self.DOMException;try{new x}catch(e){(x=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),x.prototype.constructor=x}function _(e,t){return new Promise(function(n,i){var o=new v(e,t);if(o.signal&&o.signal.aborted)return i(new x("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new y(i,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new x("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&r.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",s),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",s)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})}_.polyfill=!0,self.fetch||(self.fetch=_,self.Headers=c,self.Request=v,self.Response=y)},function(e,t,n){"use strict";var r=n(381);function i(){}var o=null,a={};function s(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("Promise constructor's argument is not a function");this._40=0,this._65=0,this._55=null,this._72=null,e!==i&&p(e,this)}function u(e,t){for(;3===e._65;)e=e._55;if(s._37&&s._37(e),0===e._65)return 0===e._40?(e._40=1,void(e._72=t)):1===e._40?(e._40=2,void(e._72=[e._72,t])):void e._72.push(t);!function(e,t){r(function(){var n=1===e._65?t.onFulfilled:t.onRejected;if(null!==n){var r=function(e,t){try{return e(t)}catch(e){return o=e,a}}(n,e._55);r===a?l(t.promise,o):c(t.promise,r)}else 1===e._65?c(t.promise,e._55):l(t.promise,e._55)})}(e,t)}function c(e,t){if(t===e)return l(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var n=function(e){try{return e.then}catch(e){return o=e,a}}(t);if(n===a)return l(e,o);if(n===e.then&&t instanceof s)return e._65=3,e._55=t,void f(e);if("function"==typeof n)return void p(n.bind(t),e)}e._65=1,e._55=t,f(e)}function l(e,t){e._65=2,e._55=t,s._87&&s._87(e,t),f(e)}function f(e){if(1===e._40&&(u(e,e._72),e._72=null),2===e._40){for(var t=0;t<e._72.length;t++)u(e,e._72[t]);e._72=null}}function h(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function p(e,t){var n=!1,r=function(e,t,n){try{e(t,n)}catch(e){return o=e,a}}(e,function(e){n||(n=!0,c(t,e))},function(e){n||(n=!0,l(t,e))});n||r!==a||(n=!0,l(t,o))}e.exports=s,s._37=null,s._87=null,s._61=i,s.prototype.then=function(e,t){if(this.constructor!==s)return function(e,t,n){return new e.constructor(function(r,o){var a=new s(i);a.then(r,o),u(e,new h(t,n,a))})}(this,e,t);var n=new s(i);return u(this,new h(e,t,n)),n}},function(e,t,n){var r=n(19),i=n(9),o=n(194);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(195);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(19),i=n(21),o=n(14),a=n(128);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,u=0;s>u;)i.f(e,n=r[u++],t[n]);return e}},function(e,t,n){var r=n(25),i=n(39),o=n(129).indexOf,a=n(130);e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(53);e.exports=r("document","documentElement")},function(e,t,n){var r=n(11),i=n(198),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(25),i=n(200),o=n(29),a=n(21);e.exports=function(e,t){for(var n=i(t),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];r(e,l)||s(e,l,u(t,l))}}},function(e,t,n){"use strict";var r=n(257).IteratorPrototype,i=n(72),o=n(71),a=n(57),s=n(131),u=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,c,!1,!0),s[c]=u,e}},function(e,t,n){"use strict";var r,i,o,a=n(9),s=n(54),u=n(38),c=n(25),l=n(15),f=n(56),h=l("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):p=!0);var d=null==r||a(function(){var e={};return r[h].call(e)!==e});d&&(r={}),f&&!d||c(r,h)||u(r,h,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){var r=n(13);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(9),i=n(15),o=n(56),a=i("iterator");e.exports=!r(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),n+=r+e}),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})},function(e,t,n){var r=n(39),i=n(86).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(15);t.f=r},function(e,t,n){"use strict";var r=n(22),i=n(73),o=n(18),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=o(n.length),u=i(e,s),c=i(t,s),l=arguments.length>2?arguments[2]:void 0,f=a((void 0===l?s:i(l,s))-c,s-u),h=1;for(c<u&&u<c+f&&(h=-1,c+=f-1,u+=f-1);f-- >0;)c in n?n[u]=n[c]:delete n[u],u+=h,c+=h;return n}},function(e,t,n){"use strict";var r=n(111),i=n(18),o=n(76);e.exports=function e(t,n,a,s,u,c,l,f){for(var h,p=u,d=0,m=!!l&&o(l,f,3);d<s;){if(d in a){if(h=m?m(a[d],d,n):a[d],c>0&&r(h))p=e(t,n,h,i(h.length),p,c-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[p]=h}p++}d++}return p}},function(e,t,n){"use strict";var r=n(76),i=n(22),o=n(409),a=n(205),s=n(18),u=n(87),c=n(134);e.exports=function(e){var t,n,l,f,h,p,d=i(e),m="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:void 0,y=void 0!==g,b=c(d),x=0;if(y&&(g=r(g,v>2?arguments[2]:void 0,2)),null==b||m==Array&&a(b))for(n=new m(t=s(d.length));t>x;x++)p=y?g(d[x],x):d[x],u(n,x,p);else for(h=(f=b.call(d)).next,n=new m;!(l=h.call(f)).done;x++)p=y?o(f,g,[l.value,x],!0):l.value,u(n,x,p);return n.length=x,n}},function(e,t,n){var r=n(14);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){"use strict";var r=n(39),i=n(49),o=n(18),a=n(88),s=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),f=c||!l;e.exports=f?function(e){if(c)return u.apply(this,arguments)||0;var t=r(this),n=o(t.length),a=n-1;for(arguments.length>1&&(a=s(a,i(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:u},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){var r=n(49),i=n(18);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(21).f,i=n(72),o=n(110),a=n(76),s=n(75),u=n(138),c=n(199),l=n(113),f=n(19),h=n(89).fastKey,p=n(40),d=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var l=e(function(e,r){s(e,l,t),d(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&u(r,e[c],{that:e,AS_ENTRIES:n})}),p=m(t),v=function(e,t,n){var r,i,o=p(e),a=g(e,t);return a?a.value=n:(o.last=a={index:i=h(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),f?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},g=function(e,t){var n,r=p(e),i=h(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(l.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=p(this),n=g(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=p(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),o(l.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return p(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),o=m(r);c(e,t,function(e,t){d(this,{type:r,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),l(t)}}},function(e,t){var n=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:n(1+e)}},function(e,t,n){var r=n(13),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var r=n(11),i=n(114).trim,o=n(164),a=r.parseFloat,s=1/a(o+"-0")!=-1/0;e.exports=s?function(e){var t=i(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){var r=n(11),i=n(114).trim,o=n(164),a=r.parseInt,s=/^[+-]?0[Xx]/,u=8!==a(o+"08")||22!==a(o+"0x16");e.exports=u?function(e,t){var n=i(String(e));return a(n,t>>>0||(s.test(n)?16:10))}:a},function(e,t,n){"use strict";var r=n(19),i=n(9),o=n(128),a=n(201),s=n(158),u=n(22),c=n(126),l=Object.assign,f=Object.defineProperty;e.exports=!l||i(function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=o(l({},t)).join("")})?function(e,t){for(var n=u(e),i=arguments.length,l=1,f=a.f,h=s.f;i>l;)for(var p,d=c(arguments[l++]),m=f?o(d).concat(f(d)):o(d),v=m.length,g=0;v>g;)p=m[g++],r&&!h.call(d,p)||(n[p]=d[p]);return n}:l},function(e,t,n){var r=n(19),i=n(128),o=n(39),a=n(158).f,s=function(e){return function(t){for(var n,s=o(t),u=i(s),c=u.length,l=0,f=[];c>l;)n=u[l++],r&&!a.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}};e.exports={entries:s(!0),values:s(!1)}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(11);e.exports=r.Promise},function(e,t,n){var r=n(156);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r,i,o,a,s,u,c,l,f=n(11),h=n(29).f,p=n(209).set,d=n(278),m=n(493),v=n(112),g=f.MutationObserver||f.WebKitMutationObserver,y=f.document,b=f.process,x=f.Promise,_=h(f,"queueMicrotask"),w=_&&_.value;w||(r=function(){var e,t;for(v&&(e=b.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},d||v||m||!g||!y?x&&x.resolve?((c=x.resolve(void 0)).constructor=x,l=c.then,a=function(){l.call(c,r)}):a=v?function(){b.nextTick(r)}:function(){p.call(f,r)}:(s=!0,u=y.createTextNode(""),new g(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),e.exports=w||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,n){var r=n(14),i=n(13),o=n(281);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(50),i=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},function(e,t,n){"use strict";var r=n(2),i=n(168);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,n){"use strict";var r=n(169).charAt,i=n(40),o=n(199),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(18),i=n(208),o=n(37),a=Math.ceil,s=function(e){return function(t,n,s){var u,c,l=String(o(t)),f=l.length,h=void 0===s?" ":String(s),p=r(n);return p<=f||""==h?l:(u=p-f,(c=i.call(h,a(u/h.length))).length>u&&(c=c.slice(0,u)),e?l+c:c+l)}};e.exports={start:s(!1),end:s(!0)}},function(e,t,n){var r=n(156);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){var r=n(547);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){var r=n(22),i=n(18),o=n(134),a=n(205),s=n(76),u=n(16).aTypedArrayConstructor;e.exports=function(e){var t,n,c,l,f,h,p=r(e),d=arguments.length,m=d>1?arguments[1]:void 0,v=void 0!==m,g=o(p);if(null!=g&&!a(g))for(h=(f=g.call(p)).next,p=[];!(l=h.call(f)).done;)p.push(l.value);for(v&&d>2&&(m=s(m,arguments[2],2)),n=i(p.length),c=new(u(this))(n),t=0;n>t;t++)c[t]=v?m(p[t],t):p[t];return c}},function(e,t,n){"use strict";var r=n(110),i=n(89).getWeakData,o=n(14),a=n(13),s=n(75),u=n(138),c=n(33),l=n(25),f=n(40),h=f.set,p=f.getterFor,d=c.find,m=c.findIndex,v=0,g=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return d(e.entries,function(e){return e[0]===t})};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,c){var f=e(function(e,r){s(e,f,t),h(e,{type:t,id:v++,frozen:void 0}),null!=r&&u(r,e[c],{that:e,AS_ENTRIES:n})}),d=p(t),m=function(e,t,n){var r=d(e),a=i(o(t),!0);return!0===a?g(r).set(t,n):a[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=d(this);if(!a(e))return!1;var n=i(e);return!0===n?g(t).delete(e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=d(this);if(!a(e))return!1;var n=i(e);return!0===n?g(t).has(e):n&&l(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=d(this);if(a(e)){var n=i(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),f}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new A(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return C()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?d:h,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",h="suspendedYield",p="executing",d="completed",m={};function v(){}function g(){}function y(){}var b={};u(b,o,function(){return this});var x=Object.getPrototypeOf,_=x&&x(x(k([])));_&&_!==n&&r.call(_,o)&&(b=_);var w=y.prototype=v.prototype=Object.create(b);function E(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){var n;this._invoke=function(i,o){function a(){return new t(function(n,a){!function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(f).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,s)})}s(u.arg)}(i,o,n,a)})}return n=n?n.then(a,a):a()}}function T(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function k(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:C}}function C(){return{value:t,done:!0}}return g.prototype=y,u(w,"constructor",y),u(y,"constructor",g),g.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(S.prototype),u(S.prototype,a,function(){return this}),e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},E(w),u(w,s,"Generator"),u(w,o,function(){return this}),u(w,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(a)};
/*!
 * Adapted from jQuery UI core
 *
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/category/ui-core/
 */
var r=/input|select|textarea|button|object/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}function o(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(i(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&o(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=u,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);u(n,t),t="length"in n?n[0]:n}return s=t||s},t.validateElement=c,t.hide=function(e){c(e)&&(e||s).setAttribute("aria-hidden","true")},t.show=function(e){c(e)&&(e||s).removeAttribute("aria-hidden")},t.documentNotReadyOrSSRTesting=function(){s=null},t.resetForTesting=function(){s=null};var r,i=n(602),o=(r=i)&&r.__esModule?r:{default:r},a=n(216);var s=null;function u(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function c(e){return!(!e&&!s)||((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=new function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]};t.default=r,e.exports=t.default},function(e,t,n){"use strict";n.r(t),n.d(t,"assoc",function(){return f}),n.d(t,"deepMerge",function(){return y}),n.d(t,"dissoc",function(){return d}),n.d(t,"get",function(){return u}),n.d(t,"merge",function(){return v}),n.d(t,"update",function(){return m});var r=Array.prototype.slice;function i(e){return"object"==typeof e}function o(e){if(Array.isArray(e))return e.slice();var t={};for(var n in e)t[n]=e[n];return t}function a(e,t,n){return i(e)&&null!==e&&t in e?e[t]:n}function s(e,t,n){var r=t[0],i=t.slice(1);return a(e,r)&&i.length?s(e[r],i,n):a(e,r,n)}function u(e,t,n){return Array.isArray(t)?s(e,t,n):a(e,t,n)}function c(e,t,n){if(e[t]===n)return e;var r=o(e);return r[t]=n,r}function l(e,t,n){if(s(e,t)===n)return e;var r=t[0],i=t.slice(1),a=o(e);return i.length?a[r]=l(r in a?a[r]:{},i,n):a[r]=n,a}function f(e){for(var t,n,r=arguments,i=arguments.length,o=e,a=1;a<i;a+=2)t=r[a],n=r[a+1],o=Array.isArray(t)?l(o,t,n):c(o,t,n);return o}function h(e,t){if(!(t in e))return e;var n=o(e);return delete n[t],n}function p(e,t){if(!function e(t,n){var r=n[0],i=n.slice(1);return i.length?r in t&&e(t[r],i):r in t}(e,t))return e;var n=t[0],r=t.slice(1),i=o(e);return 0!==r.length?(i[n]=p(e[n],r),0===Object.keys(i[n]).length&&delete i[n]):delete i[n],i}function d(e){for(var t,n=arguments,r=arguments.length,i=0,o=e;++i<r;)t=n[i],o=Array.isArray(t)?p(o,t):h(o,t);return o}function m(e,t){return Array.isArray(t)?function(e,t,n){var i=s(e,t);return l(e,t,n.apply(i,[i].concat(r.call(arguments,3))))}.apply(this,arguments):function(e,t,n){var i=a(e,t);return c(e,t,n.apply(i,[i].concat(r.call(arguments,3))))}.apply(this,arguments)}function v(){for(var e,t=arguments,n=arguments.length,r=0,i=arguments[0];++r<n;)for(var o in e=t[r])i=c(i,o,e[o]);return i}function g(e,t){for(var n,r,a=Object.keys(t),s=a.length,u=-1,l=e;++u<s;)l=i(n=t[r=a[u]])&&null!==n?c(l,r,r in l?g(l[r],n):o(n)):c(l,r,n);return l}function y(){for(var e=arguments,t=arguments.length,n=0,r=arguments[0];++n<t;)r=g(r,e[n]);return r}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(296)),o={name:"url",run:function(e){var t=i.default(e),n=t||e.location;return t&&(n.frameurl=e.location.pathname),n}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.location.query.parent_url,n=e.get("parseUrl");if(t)return n(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Promise.all(e.map(function(e){return e.then(function(e){return{status:"fulfilled",value:e}}).catch(function(e){return{status:"rejected",reason:e}})}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n={},r=0,i=e;r<i.length;r++){var o=i[r];o in t&&(n[o]=t[o])}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.get=void 0,t.get=function(e){try{return localStorage.getItem(e)}catch(e){}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(217));t.default=function(e){var t=document.createElement("a");return t.href=e,i.default(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){try{var e=new CustomEvent("a",{detail:{b:"c"}});return"a"===e.type&&"c"===e.detail.b}catch(e){}return!1}()?function(e,t){return new CustomEvent(e,t)}:function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n};t.default=function(e,t,n){void 0===n&&(n=document.body),n.dispatchEvent(r(e,{detail:t,bubbles:!0}))}},function(e,t,n){"use strict";e.exports=function(e,t){return function n(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e?t.apply(this,i):function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(this,i.concat(t))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={name:"referrer",run:function(e){var t="",n=e.getOr("referrer");return n&&n.hostname!==e.location.hostname&&(t=n.hostname),t}}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:o,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],a=Object.keys(o),s=0;s<a.length;++s){var u=a[s],c=o[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:o,prop:u}),n.push(c))}return function(e){for(var t;e.length;){var n=e.pop();if(t=n.obj[n.prop],Array.isArray(t)){for(var r=[],i=0;i<t.length;++i)void 0!==t[i]&&r.push(t[i]);n.obj[n.prop]=r}}return t}(t)},decode:function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},encode:function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),n="",r=0;r<t.length;++r){var o=t.charCodeAt(r);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?n+=t.charAt(r):o<128?n+=i[o]:o<2048?n+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?n+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(r+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(r)),n+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return n},isBuffer:function(e){return null!=e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(Array.isArray(t))t.push(n);else{if("object"!=typeof t)return[t,n];(i.plainObjects||i.allowPrototypes||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if("object"!=typeof t)return[t].concat(n);var a=t;return Array.isArray(t)&&!Array.isArray(n)&&(a=o(t,i)),Array.isArray(t)&&Array.isArray(n)?(n.forEach(function(n,o){r.call(t,o)?t[o]&&"object"==typeof t[o]?t[o]=e(t[o],n,i):t.push(n):t[o]=n}),t):Object.keys(n).reduce(function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t},a)}}},function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t){
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var r=n(51),i=n(675),o=n(677),a=n(678),s=n(679),u=n(309);e.exports=function(e){return new Promise(function(t,c){var l=e.data,f=e.headers;r.isFormData(l)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",d=e.auth.password||"";f.Authorization="Basic "+btoa(p+":"+d)}if(h.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};i(t,c,r),h=null}},h.onerror=function(){c(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var m=n(680),v=(e.withCredentials||s(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;v&&(f[e.xsrfHeaderName]=v)}if("setRequestHeader"in h&&r.forEach(f,function(e,t){void 0===l&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)}),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){h&&(h.abort(),c(e),h=null)}),void 0===l&&(l=null),h.send(l)})}},function(e,t,n){"use strict";var r=n(676);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return function(){var r=arguments,i=this;clearTimeout(t),t=window.setTimeout(function(){t=null,e.apply(i,r)},n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_INTERVAL=100,function(e){e.mobile="mobile",e.tablet="tablet",e.desktop="desktop",e.desktop_s="desktop_s",e.desktop_l="desktop_l"}(t.MediaType||(t.MediaType={}))},function(e,t,n){var r=n(701),i=n(702),o=n(224),a=n(703);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractStorage=void 0;var r=function(){return function(){}}();t.AbstractStorage=r},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(44);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(44),i=n(718),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={adapter:("undefined"!=typeof XMLHttpRequest?s=n(321):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(s=n(321)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){u.headers[e]={}}),r.forEach(["post","put","patch"],function(e){u.headers[e]=r.merge(o)}),e.exports=u}).call(this,n(221))},function(e,t,n){"use strict";var r=n(44),i=n(719),o=n(721),a=n(318),s=n(722),u=n(725),c=n(726),l=n(322);e.exports=function(e){return new Promise(function(t,n){var f=e.data,h=e.headers;r.isFormData(f)&&delete h["Content-Type"],(r.isBlob(f)||r.isFile(f))&&f.type&&delete h["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",m=unescape(encodeURIComponent(e.auth.password))||"";h.Authorization="Basic "+btoa(d+":"+m)}var v=s(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?u(p.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};i(t,n,o),p=null}},p.onabort=function(){p&&(n(l("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(l("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||c(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;g&&(h[e.xsrfHeaderName]=g)}if("setRequestHeader"in p&&r.forEach(h,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete h[t]:p.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),n(e),p=null)}),f||(f=null),p.send(f)})}},function(e,t,n){"use strict";var r=n(720);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(44);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(e[i],t[i])}r.forEach(i,function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))}),r.forEach(o,c),r.forEach(a,function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(void 0,t[i])}),r.forEach(s,function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))});var l=i.concat(o).concat(a).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter(function(e){return-1===l.indexOf(e)});return r.forEach(f,c),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){var r=n(172),i=n(734),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(116),i=n(91),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==u}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(85))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(747),i=n(229),o=n(230),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){"use strict";var r=n(60),i=n(749),o=n(307),a=Object.prototype.toString,s=!!r.create().defaults.headers;function u(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];if(t(i))return i}}function c(e){return"[object Function]"===a.call(e)}function l(e){return null!==e&&"object"==typeof e}function f(e,t){return e?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):t}function h(e,t){return("/"===e[0]?e.substr(1):e)===("/"===t[0]?t.substr(1):t)}function p(e,t,n,r){return["delete","get","head","options"].indexOf(e.toLowerCase())>=0?d(n,r?r.params:void 0):function(e,t){if(void 0===t)return!0;var n;try{n=JSON.parse(e)}catch(e){}return d(n||e,t)}(t,r)}function d(e,t){return void 0===t||("function"==typeof t.asymmetricMatch?t.asymmetricMatch(e):i(e,t))}function m(e,t,n,r){if(!s)return n;var i=new Error(e);return i.isAxiosError=!0,i.config=t,void 0!==n&&(i.response=n),void 0!==r&&(i.code=r),i}e.exports={find:u,findHandler:function(e,t,n,r,i,o,a){return u(e[t.toLowerCase()],function(e){return"string"==typeof e[0]?(h(n,e[0])||h(f(a,n),e[0]))&&p(t,r,i,e[1])&&d(o,e[2]):e[0]instanceof RegExp?(e[0].test(n)||e[0].test(f(a,n)))&&p(t,r,i,e[1])&&d(o,e[2]):void 0})},purgeIfReplyOnce:function(e,t){Object.keys(e.handlers).forEach(function(n){var r=e.handlers[n].indexOf(t);r>-1&&e.handlers[n].splice(r,1)})},settle:function e(t,n,r,i){i>0?setTimeout(function(){e(t,n,r)},i):r.config&&r.config.validateStatus?r.config.validateStatus(r.status)?t(r):n(m("Request failed with status code "+r.status,r.config,r)):r.status>=200&&r.status<300?t(r):n(r)},isStream:function(e){return l(e)&&c(e.pipe)},isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isFunction:c,isObjectOrArray:l,isBuffer:o,isEqual:i,createAxiosError:m}},function(e,t,n){var r=n(232),i=n(335);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(755),i=n(767),o=n(769),a=n(770),s=n(771);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(141),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},function(e,t,n){var r=n(232),i=n(775),o=n(776),a=n(335);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},function(e,t){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},function(e,t,n){var r=n(778),i=n(781),o=n(783);e.exports=function(e){return o(i(e,void 0,r),e+"")}},function(e,t,n){var r=n(90),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.User=void 0;var a=n(183),s=function(){function e(e){var t=this;this.getUserState=function(){return t.state},this.onChange=function(e){t.stateChangeSubscribers.push(e)},this.auth=function(){return i(t,void 0,void 0,function(){var e,t,n,r;return o(this,function(i){switch(i.label){case 0:this.onAuthStart(),e=[this.authStrategies.ssoQueryParams,this.authStrategies.projectTokenLocalStorage,this.authStrategies.tinkoffTokenQueryParams],t=0,n=e,i.label=1;case 1:return t<n.length?(r=n[t],this.state.isLoggedIn?[3,3]:[4,this.authByAutoStartableStrategy(r)]):[3,4];case 2:i.sent(),i.label=3;case 3:return t++,[3,1];case 4:return a.replaceSensitiveQueryParams([this.config.token.ssoCodeTokenName,this.config.token.ssoStateTokenName,this.config.token.ssoSessionStateTokenName,this.config.token.tinkoffTokenName]),this.onAuthEnd(),[2]}})})},this.setState=function(e){t.state=e},this.authByTinkoffTokenQueryParams=function(){return i(t,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return this.onAuthStart(),[4,this.authByAutoStartableStrategy(this.authStrategies.tinkoffTokenQueryParams)];case 1:return e.sent(),this.onAuthEnd(),[2]}})})},this.authByProjectTokenLocalStorage=function(){return i(t,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return this.onAuthStart(),[4,this.authByAutoStartableStrategy(this.authStrategies.projectTokenLocalStorage)];case 1:return e.sent(),this.onAuthEnd(),[2]}})})},this.authBySsoQueryParams=function(){return i(t,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return this.onAuthStart(),[4,this.authByAutoStartableStrategy(this.authStrategies.ssoQueryParams)];case 1:return e.sent(),this.onAuthEnd(),[2]}})})},this.authByTinkoffNotClient=function(e){return i(t,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return this.onAuthStart(),t=this.setState,[4,this.authStrategies.tinkoffNotClient.auth(e).catch(this.authStrategies.tinkoffNotClient.onFail)];case 1:return t.apply(this,[n.sent()]),this.onAuthEnd(),[2]}})})},this.authByTinkoffInternetBank=function(e){return i(t,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return this.onAuthStart(),t=this.setState,[4,this.authStrategies.tinkoffInternetBank.auth(e).catch(this.authStrategies.tinkoffInternetBank.onFail)];case 1:return t.apply(this,[n.sent()]),this.onAuthEnd(),[2]}})})},this.config=e,this.stateChangeSubscribers=[],this.state=a.createInitUserState(),this.authStrategies=a.createInitialStrategies(e),this.listenMessageFromIframe()}return e.createOrGetSingleton=function(t){return e.user||(this.user=new e(t)),this.user},e.prototype.listenMessageFromIframe=function(){var e=this;if(this.config.updateParentProjectUserByPostMessage){var t=this.config.updateParentProjectUserByPostMessage.srcOrigin;window.addEventListener("message",function(n){a.isSameOrigin(n,t)&&a.isMessageFromProjectUser(n)&&(n.data.state.isLoggedIn&&e.config.projectApi.onAuthSuccess(n.data.state.project.token),e.setState(n.data.state),e.notifyStateChangeSubscribers(n.data.state))})}},e.prototype.authByAutoStartableStrategy=function(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return t=this.setState,[4,e.autoAuth().catch(e.onFail)];case 1:return t.apply(this,[n.sent()]),[2]}})})},e.prototype.onAuthStart=function(){this.setState(r(r({},this.state),{isLoading:!0})),this.notifyStateChangeSubscribers(this.state)},e.prototype.onAuthEnd=function(){this.setState(r(r({},this.state),{isLoading:!1})),this.notifyStateChangeSubscribers(this.state)},e.prototype.notifyStateChangeSubscribers=function(e){this.stateChangeSubscribers.forEach(function(t){return t(e)}),this.config.updateParentProjectUserByPostMessage&&a.notifyParentPage(this.state,this.config.updateParentProjectUserByPostMessage)},e}();t.User=s},function(e,t,n){var r=n(792).default;function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(793);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r;
/*!
  Copyright (c) 2018 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/*!
  Copyright (c) 2018 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&e.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";e.exports=n(804)},function(e,t,n){"use strict";var r=n(341),i=n(142);t.__esModule=!0,t.default=void 0;var o=i(n(342)),a=r(n(0)),s=(i(n(59)),i(n(343))),u=i(n(807)),c=i(n(354)),l=n(808),f=i(n(809)),h=i(n(346)),p=function(){},d=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateSize=function(){n.setState({windowHeight:window.innerHeight})},n.setPopup=function(e){e?(e.querySelector("*:focus")||(n.lastActiveElement=document.activeElement,e.parentElement.focus()),(0,l.disableBodyScroll)(e)):n.popupWrapper&&(0,l.enableBodyScroll)(n.popupWrapper),n.popupWrapper=e},n.handleAnimationEnd=function(){n.setState({mounted:!1})},n.handleKeyDown=function(e){var t=n.props,r=t.onClose,i=t.onKeyDown;"esc"===(0,u.default)(e)&&r(e),i(e)},n.handleFocusOnBeforeElement=function(e){if(e.preventDefault(),n.popupWrapper){var t=n.popupWrapper.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),r=t[t.length-1];r&&r.focus()}},n.handleFocusOnAfterElement=function(e){e.preventDefault(),n.popupWrapper&&n.popupWrapper.focus()},n.handleMouseDown=function(e){n.clickedElement=e.target},n.handleMouseUp=function(e){n.clickedElement===n.popupWrapper&&(n.props.onClose(e),n.clickedElement=null)},n.clickedElement=null,n.lastActiveElement=null,n.state={mounted:t.opened,forceScroll:!1},n}(0,o.default)(t,e),t.getDerivedStateFromProps=function(e){return e.opened?{mounted:!0}:!e.opened&&e.disableAnimation?{mounted:!1}:null};var n=t.prototype;return n.componentDidMount=function(){this.props.opened&&(this.setState({forceScroll:(0,l.bodyHasScrollBar)()}),this.connectToWindowSize())},n.componentDidUpdate=function(e){!e.opened&&this.props.opened&&(this.setState({forceScroll:(0,l.bodyHasScrollBar)()}),this.connectToWindowSize()),e.opened&&!this.props.opened&&(this.returnFocus(),this.disconnectFromWindowSize())},n.componentWillUnmount=function(){this.returnFocus(),this.disconnectFromWindowSize()},n.connectToWindowSize=function(){this.updateSize(),window.addEventListener("resize",this.updateSize)},n.disconnectFromWindowSize=function(){window.removeEventListener("resize",this.updateSize)},n.returnFocus=function(){this.lastActiveElement&&(this.lastActiveElement.focus(),this.lastActiveElement=null)},n.render=function(){var e,t,n=this.props,r=n.children,i=n.opened,o=n.dataQaType,u=n.theme,l=n.onKeyUp,h=n.popupOpenedClass,p=n.popupClosedClass,d=n.zIndex,m=n.dataQaData,v=n.disableAnimation,g=this.state,y=g.mounted,b=g.forceScroll,x=g.windowHeight;return y?a.default.createElement(c.default,{toBody:!0},a.default.createElement("div",{"data-qa-data":"object"==typeof m?JSON.stringify(m):m,"data-qa-type":o,className:(0,s.default)((e={},e[f.default.root]=!0,e[f.default.root_closed]=!i,e[f.default.root_opened]=i,e[f.default["root_theme_"+u]]=u,e[f.default.root_forceScroll]=b,e[f.default.root_disabledAnimation]=v,e)),style:{height:x,zIndex:d},role:"dialog",onAnimationEnd:i||v?void 0:this.handleAnimationEnd,onKeyDown:this.handleKeyDown,onKeyUp:l},a.default.createElement("div",{tabIndex:0,onFocus:this.handleFocusOnBeforeElement}),a.default.createElement("div",{className:f.default.popupScrollableWrapper,tabIndex:0},a.default.createElement("div",{className:(0,s.default)((t={},t[f.default.popupWrapper]=!0,t[h]=!v&&i,t[p]=!v&&!i,t)),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,ref:this.setPopup},r)),a.default.createElement("div",{tabIndex:0,onFocus:this.handleFocusOnAfterElement}))):null},t}(a.PureComponent);d.defaultProps={dataQaType:"uikit/overlay",children:null,opened:!1,theme:"light",onClose:p,onKeyDown:p,popupOpenedClass:h.default.fade_open,popupClosedClass:h.default.fade_close,disableAnimation:!1};var m=d;t.default=m},function(e,t,n){var r=n(811);"string"==typeof r&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};n(94)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(348),i=n(233),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(339);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(841),i=n(226),o=n(79),a=n(227),s=n(179),u=n(331),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),f=!n&&!l&&a(e),h=!n&&!l&&!f&&u(e),p=n||l||f||h,d=p?r(e.length,String):[],m=d.length;for(var v in e)!t&&!c.call(e,v)||p&&("length"==v||f&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||d.push(v);return d}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(234),i=n(239),o=n(238),a=n(350),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},function(e,t,n){var r=n(234),i=n(79);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t,n){var r=n(352),i=n(351),o=n(237);e.exports=function(e){return r(e,o,i)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return d}),n.d(t,"PortalExit",function(){return y}),n.d(t,"PortalWrapper",function(){return w}),n.d(t,"PortalContainer",function(){return M}),n.d(t,"PortalContext",function(){return E});var r=n(17),i=n(66),o=n.n(i),a=n(30),s=n.n(a),u=n(0),c=n.n(u),l=n(144),f=function(e,t){e&&("function"==typeof e?e(t):e.current=t)},h=function(e,t){return t?"string"==typeof t?"body"===(r=t)?document.body:document.querySelector("[".concat("data-tds-portal-exit","=").concat(r,"]"))||document.body:document.body:(n=e.closest("[".concat("data-tds-portal-wrapper","]")))&&n.querySelector("[".concat("data-tds-portal-exit","]"))||document.body;var n,r},p=["tagName","toBody","to","exitRef","prerender","children"],d=function(e){var t=e.tagName,n=void 0===t?"div":t,i=e.toBody,a=e.to,u=void 0===a?i?"body":void 0:a,d=e.exitRef,m=e.prerender,v=e.children,g=s()(e,p),y=c.a.useState(null),b=Object(r.a)(y,2),x=b[0],_=b[1],w=c.a.useCallback(function(e){if(e){var t=h(e,u);return _(t),f(d,t),function(){f(d,null)}}f(d,null)},[u,d]);return c.a.createElement(c.a.Fragment,null,c.a.createElement(n,o()({ref:w,hidden:!0},g),m&&!x?v:null),x&&Object(l.createPortal)(v,x))},m=n(5),v=n(119),g=["dataQaType","dataQaData","tagName","exitId"],y=c.a.forwardRef(function(e,t){var n=e.dataQaType,r=void 0===n?"uikit/portalExit":n,i=e.dataQaData,a=e.tagName,u=void 0===a?"div":a,l=e.exitId,f=void 0===l?"":l,h=s()(e,g);return c.a.createElement(u,o()({},h,Object(v.a)({dataQaType:r,dataQaData:i}),Object(m.a)({ref:t},"data-tds-portal-exit",f)))}),b=n(362),x=n.n(b),_=["dataQaType","dataQaData","tagName","exitId","exitRef","exitProps","children","className"],w=c.a.forwardRef(function(e,t){var n=e.dataQaType,r=void 0===n?"uikit/portalWrapper":n,i=e.dataQaData,a=e.tagName,u=void 0===a?"div":a,l=e.exitId,f=void 0===l?"":l,h=e.exitRef,p=e.exitProps,d=e.children,g=e.className,b=s()(e,_);return c.a.createElement(u,o()({},b,Object(v.a)({dataQaType:r,dataQaData:i}),Object(m.a)({ref:t,className:[g,x.a.root].filter(Boolean).join(" ")},"data-tds-portal-wrapper",f)),c.a.createElement(y,Object.assign({dataQaType:"".concat(r,".exit"),exitId:f,ref:h},p)),d)}),E=Object(u.createContext)({getPortalContainer:function(){return"undefined"==typeof document?null:document.body}}),S=n(363),T=n.n(S),M=function(e){var t=e.children,n=c.a.useRef(null),r=c.a.useMemo(function(){return{getPortalContainer:function(){return n.current}}},[]);return c.a.createElement(E.Provider,{value:r},c.a.createElement(w,{className:T.a.container,exitRef:n},t))}},function(e,t,n){"use strict";var r=new Promise(function(e){"interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",function(){e()},{capture:!0,once:!0,passive:!0})});e.exports=r,e.exports.default=r},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(607)),o=r(n(635));t.default=function(e){return i.default(o.default,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(707);Object.defineProperty(t,"initLocalStorage",{enumerable:!0,get:function(){return r.initLocalStorage}}),Object.defineProperty(t,"initSessionStorage",{enumerable:!0,get:function(){return r.initSessionStorage}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}()},function(e,t,n){"use strict";var r=n(748),i=n(332),o=["get","post","head","delete","patch","put","options","list"];function a(){return o.reduce(function(e,t){return e[t]=[],e},{})}function s(){u.call(this),c.call(this)}function u(){this.handlers=a()}function c(){this.history=a()}function l(e,t){s.call(this),e&&(this.axiosInstance=e,this.originalAdapter=e.defaults.adapter,this.delayResponse=t&&t.delayResponse>0?t.delayResponse:null,this.onNoMatch=t&&t.onNoMatch||null,e.defaults.adapter=this.adapter.call(this))}function f(e,t,n){if("any"===e)o.forEach(function(e){t[e].push(n)});else{var r=function(e,t,n){for(var r=-1,o=0;o<t[e].length;o+=1){var a=t[e][o],s=7===a.length;(a[0]instanceof RegExp&&n[0]instanceof RegExp?String(a[0])===String(n[0]):a[0]===n[0])&&i.isEqual(a[1],n[1])&&i.isEqual(a[2],n[2])&&!s&&(r=o)}return r}(e,t,n);r>-1&&n.length<7?t[e].splice(r,1,n):t[e].push(n)}}l.prototype.adapter=function(){return function(e){var t=this;if(3!==arguments.length)return new Promise(function(n,i){r(t,n,i,e)});r(t,arguments[0],arguments[1],arguments[2])}.bind(this)},l.prototype.restore=function(){this.axiosInstance&&(this.axiosInstance.defaults.adapter=this.originalAdapter,this.axiosInstance=void 0)},l.prototype.reset=s,l.prototype.resetHandlers=u,l.prototype.resetHistory=c,o.concat("any").forEach(function(e){var t="on"+e.charAt(0).toUpperCase()+e.slice(1);l.prototype[t]=function(t,n,r){var o=this;t=void 0===t?/.*/:t;function a(i,a,s){var u=[t,n,r,i,a,s];return f(e,o.handlers,u),o}function s(i,a,s){var u=[t,n,r,i,a,s,!0];return f(e,o.handlers,u),o}return{reply:a,replyOnce:s,passThrough:function(){var r=[t,n];return f(e,o.handlers,r),o},abortRequest:function(){return a(function(e){var t=i.createAxiosError("Request aborted",e,void 0,"ECONNABORTED");return Promise.reject(t)})},abortRequestOnce:function(){return s(function(e){var t=i.createAxiosError("Request aborted",e,void 0,"ECONNABORTED");return Promise.reject(t)})},networkError:function(){return a(function(e){var t=i.createAxiosError("Network Error",e);return Promise.reject(t)})},networkErrorOnce:function(){return s(function(e){var t=i.createAxiosError("Network Error",e);return Promise.reject(t)})},timeout:function(){return a(function(e){var t=i.createAxiosError(e.timeoutErrorMessage||"timeout of "+e.timeout+"ms exceeded",e,void 0,"ECONNABORTED");return Promise.reject(t)})},timeoutOnce:function(){return s(function(e){var t=i.createAxiosError(e.timeoutErrorMessage||"timeout of "+e.timeout+"ms exceeded",e,void 0,"ECONNABORTED");return Promise.reject(t)})}}}}),e.exports=l,e.exports.default=l},function(e,t,n){var r=n(231),i=n(750),o=n(774),a=n(777),s=n(338),u=n(179),c=s(function(e,t){var n=null==e?0:e.length,s=i(e,t);return o(e,r(t,function(e){return u(e,n)?+e:e}).sort(a)),s});e.exports=c},function(e,t,n){"use strict";var r=n(142);t.__esModule=!0,t.Overlay=void 0;var i=r(n(791));t.default=i.default;var o=r(n(345));t.Overlay=o.default},function(e,t,n){var r=n(794);"string"==typeof r&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};n(94)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(795);"string"==typeof r&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};n(94)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";var r=n(302);e.exports=r(2,function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),t.slice(0,e.length)===e})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=Object.create(null);r=function(e){return i[e]=i[e]||new Promise(function(t,n){var r=new XMLHttpRequest;r.open("GET",e),r.onload=function(){this.status>=200&&this.status<300?t(r.response):n({status:this.status,statusText:r.statusText}),i[e]=void 0},r.onerror=function(){n({status:this.status,statusText:r.statusText}),i[e]=void 0},r.send()}),i[e]};t.default=function(e){return r(e)}},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(45),a=n(59),s=n.n(a),u=1073741823,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};var l=i.a.createContext||function(e,t){var n,i,a,l="__create-react-context-"+(c[a="__global_unique_id__"]=(c[a]||0)+1)+"__",f=function(e){function n(){var t,n,r;return(t=e.apply(this,arguments)||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter(function(t){return t!==e})},get:function(){return n},set:function(e,t){n=e,r.forEach(function(e){return e(n,t)})}}),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[l]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(r,i):u,0!=(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[l]=s.a.object.isRequired,n);var h=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?u:t},r.componentDidMount=function(){this.context[l]&&this.context[l].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?u:e},r.componentWillUnmount=function(){this.context[l]&&this.context[l].off(this.onUpdate)},r.getValue=function(){return this.context[l]?this.context[l].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return h.contextTypes=((i={})[l]=s.a.object,i),{Provider:f,Consumer:h}};t.a=l}).call(this,n(85))},function(e,t,n){e.exports={"link-transition":"_2ZchT","link-default":"_2ci0o _2ZchT",button:"_1wpW3",root_link:"_2v44U _2ci0o _2ZchT","root_link-faded":"_2NVSm _2ZchT","root_link-lemon":"_3uicd _2ZchT","root_link-inherit":"_28LjJ","root_link-underline":"_38rEW",root_button_yellow:"wnNsH _1wpW3",root_button_lemon:"JJEEw _1wpW3",root_button_ghost:"_2iG_k _1wpW3",root_button_small:"_1LT8u _1wpW3",root_button_white:"QoqXS _1wpW3"}},function(e,t,n){e.exports={wrapper:"_2PvuL"}},function(e,t,n){e.exports={"link-transition":"_1tZxo","link-default":"_3uZN5 _1tZxo",button:"_3E-M_",root_link:"_1C3Hk _3uZN5 _1tZxo","root_link-faded":"uzn9f _1tZxo","root_link-lemon":"OPGf- _1tZxo","root_link-inherit":"_1K6of","root_link-underline":"lZqrG",root_button_yellow:"_3ILjY _3E-M_",root_button_lemon:"_30ki1 _3E-M_",root_button_ghost:"_2pN8W _3E-M_",root_button_small:"_1-FiF _3E-M_",root_button_white:"_1h5et _3E-M_"}},function(e,t,n){e.exports={container:"_1h3eK"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(815);Object.defineProperty(t,"Iframe",{enumerable:!0,get:function(){return r.Iframe}})},function(e,t,n){e.exports={iframe:"_3FYt2"}},function(e,t,n){var r=n(337),i=n(820),o=n(821),a=Math.ceil,s=Math.max;e.exports=function(e,t,n){t=(n?i(e,t,n):void 0===t)?1:s(o(t),0);var u=null==e?0:e.length;if(!u||t<1)return[];for(var c=0,l=0,f=Array(a(u/t));c<u;)f[l++]=r(e,c,c+=t);return f}},function(e,t,n){"use strict";function r(e){var t=[].slice.call(arguments,1),n=0;return e.replace(/%d/g,function(){return t[n++]})}e.exports=function(e,t,n,i,o){if(!e)return r(t,e);switch((a=e)%10==1&&a%100!=11?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2){case 0:return r(n,e);case 1:return r(i,e);default:return r(o,e)}var a}},function(e,t,n){var r=n(231),i=n(832),o=n(336),a=n(232),s=n(143),u=n(864),c=n(338),l=n(353),f=c(function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,function(t){return t=a(t,e),c||(c=t.length>1),t}),s(e,l(e),n),c&&(n=i(n,7,u));for(var f=t.length;f--;)o(n,t[f]);return n});e.exports=f},function(e,t,n){!function(){"use strict";e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style&&!0!==e.__forceSmoothScrollPolyfill__)){var n,r=e.HTMLElement||e.Element,i=468,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||u,scrollIntoView:r.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,s=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?d.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):o.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?o.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):d.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var e=arguments[0].left,t=arguments[0].top;d.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==c(arguments[0])){var n=function(e){for(;e!==t.body&&!1===h(e);)e=e.parentNode||e.host;return e}(this),r=n.getBoundingClientRect(),i=this.getBoundingClientRect();n!==t.body?(d.call(this,n,n.scrollLeft+i.left-r.left,n.scrollTop+i.top-r.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function u(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function l(e,t){return"Y"===t?e.clientHeight+s<e.scrollHeight:"X"===t?e.clientWidth+s<e.scrollWidth:void 0}function f(t,n){var r=e.getComputedStyle(t,null)["overflow"+n];return"auto"===r||"scroll"===r}function h(e){var t=l(e,"Y")&&f(e,"Y"),n=l(e,"X")&&f(e,"X");return t||n}function p(t){var n,r,o,s,u=(a()-t.startTime)/i;s=u=u>1?1:u,n=.5*(1-Math.cos(Math.PI*s)),r=t.startX+(t.x-t.startX)*n,o=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,r,o),r===t.x&&o===t.y||e.requestAnimationFrame(p.bind(e,t))}function d(n,r,i){var s,c,l,f,h=a();n===t.body?(s=e,c=e.scrollX||e.pageXOffset,l=e.scrollY||e.pageYOffset,f=o.scroll):(s=n,c=n.scrollLeft,l=n.scrollTop,f=u),p({scrollable:s,method:f,startTime:h,startX:c,startY:l,x:r,y:i})}}}}()},function(e,t,n){"use strict";e.exports=n(868)},function(e,t,n){n(379),e.exports=n(385)},function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});r(n(1));var i=n(247);n(247),e.Response=i.Response,e.Request=i.Request,e.Headers=i.Headers,e.fetch=i.fetch,"undefined"==typeof Promise&&(n(380).enable(),window.Promise=n(382)),Object.assign=n(190),"undefined"==typeof URLSearchParams&&n(383),window.matchMedia=window.matchMedia||function(){return{matches:!1,addListener:function(){},removeListener:function(){}}}}).call(this,n(85))},function(e,t,n){"use strict";var r=n(248),i=[ReferenceError,TypeError,RangeError],o=!1;function a(){o=!1,r._37=null,r._87=null}function s(e,t){return t.some(function(t){return e instanceof t})}t.disable=a,t.enable=function(e){e=e||{},o&&a();o=!0;var t=0,n=0,u={};function c(t){(e.allRejections||s(u[t].error,e.whitelist||i))&&(u[t].displayId=n++,e.onUnhandled?(u[t].logged=!0,e.onUnhandled(u[t].displayId,u[t].error)):(u[t].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach(function(e){console.warn("  "+e)})}(u[t].displayId,u[t].error)))}r._37=function(t){var n;2===t._65&&u[t._51]&&(u[t._51].logged?(n=t._51,u[n].logged&&(e.onHandled?e.onHandled(u[n].displayId,u[n].error):u[n].onUnhandled||(console.warn("Promise Rejection Handled (id: "+u[n].displayId+"):"),console.warn('  This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+u[n].displayId+".")))):clearTimeout(u[t._51].timeout),delete u[t._51])},r._87=function(e,n){0===e._40&&(e._51=t++,u[e._51]={displayId:null,error:n,timeout:setTimeout(c.bind(null,e._51),s(n,i)?100:2e3),logged:!1})}}},function(e,t,n){"use strict";(function(t){function n(e){i.length||(r(),!0),i[i.length]=e}e.exports=n;var r,i=[],o=0,a=1024;function s(){for(;o<i.length;){var e=o;if(o+=1,i[e].call(),o>a){for(var t=0,n=i.length-o;t<n;t++)i[t]=i[t+o];i.length-=o,o=0}}i.length=0,o=0,!1}var u,c,l,f=void 0!==t?t:self,h=f.MutationObserver||f.WebKitMutationObserver;function p(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}"function"==typeof h?(u=1,c=new h(s),l=document.createTextNode(""),c.observe(l,{characterData:!0}),r=function(){u=-u,l.data=u}):r=p(s),n.requestFlush=r,n.makeRequestCallFromTimer=p}).call(this,n(85))},function(e,t,n){"use strict";var r=n(248);e.exports=r;var i=l(!0),o=l(!1),a=l(null),s=l(void 0),u=l(0),c=l("");function l(e){var t=new r(r._61);return t._65=1,t._55=e,t}r.resolve=function(e){if(e instanceof r)return e;if(null===e)return a;if(void 0===e)return s;if(!0===e)return i;if(!1===e)return o;if(0===e)return u;if(""===e)return c;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new r(t.bind(e))}catch(e){return new r(function(t,n){n(e)})}return l(e)},r.all=function(e){var t=Array.prototype.slice.call(e);return new r(function(e,n){if(0===t.length)return e([]);var i=t.length;function o(a,s){if(s&&("object"==typeof s||"function"==typeof s)){if(s instanceof r&&s.then===r.prototype.then){for(;3===s._65;)s=s._55;return 1===s._65?o(a,s._55):(2===s._65&&n(s._55),void s.then(function(e){o(a,e)},n))}var u=s.then;if("function"==typeof u)return void new r(u.bind(s)).then(function(e){o(a,e)},n)}t[a]=s,0==--i&&e(t)}for(var a=0;a<t.length;a++)o(a,t[a])})},r.reject=function(e){return new r(function(t,n){n(e)})},r.race=function(e){return new r(function(t,n){e.forEach(function(e){r.resolve(e).then(t,n)})})},r.prototype.catch=function(e){return this.then(null,e)}},function(e,t,n){n(191);var r=n(196);e.exports=r.URLSearchParams},function(e,t,n){var r=n(14),i=n(134);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n.n(r);window.__messages__&&i.a.setData(window.__messages__),window.__webpack_public_path__&&(n.p=window.__webpack_public_path__),n(869)},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(53),a=n(56),s=n(19),u=n(195),c=n(250),l=n(9),f=n(25),h=n(111),p=n(13),d=n(14),m=n(22),v=n(39),g=n(52),y=n(71),b=n(72),x=n(128),_=n(86),w=n(260),E=n(201),S=n(29),T=n(21),M=n(158),O=n(38),A=n(32),k=n(155),C=n(157),P=n(130),L=n(127),R=n(15),j=n(261),N=n(41),I=n(57),D=n(40),B=n(33).forEach,F=C("hidden"),U=R("toPrimitive"),z=D.set,H=D.getterFor("Symbol"),G=Object.prototype,W=i.Symbol,V=o("JSON","stringify"),q=S.f,Y=T.f,X=w.f,Z=M.f,J=k("symbols"),Q=k("op-symbols"),K=k("string-to-symbol-registry"),$=k("symbol-to-string-registry"),ee=k("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&l(function(){return 7!=b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=q(G,t);r&&delete G[t],Y(e,t,n),r&&e!==G&&Y(G,t,r)}:Y,ie=function(e,t){var n=J[e]=b(W.prototype);return z(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},oe=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},ae=function(e,t,n){e===G&&ae(Q,t,n),d(e);var r=g(t,!0);return d(n),f(J,r)?(n.enumerable?(f(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:y(0,!1)})):(f(e,F)||Y(e,F,y(1,{})),e[F][r]=!0),re(e,r,n)):Y(e,r,n)},se=function(e,t){d(e);var n=v(t),r=x(n).concat(fe(n));return B(r,function(t){s&&!ue.call(n,t)||ae(e,t,n[t])}),e},ue=function(e){var t=g(e,!0),n=Z.call(this,t);return!(this===G&&f(J,t)&&!f(Q,t))&&(!(n||!f(this,t)||!f(J,t)||f(this,F)&&this[F][t])||n)},ce=function(e,t){var n=v(e),r=g(t,!0);if(n!==G||!f(J,r)||f(Q,r)){var i=q(n,r);return!i||!f(J,r)||f(n,F)&&n[F][r]||(i.enumerable=!0),i}},le=function(e){var t=X(v(e)),n=[];return B(t,function(e){f(J,e)||f(P,e)||n.push(e)}),n},fe=function(e){var t=e===G,n=X(t?Q:v(e)),r=[];return B(n,function(e){!f(J,e)||t&&!f(G,e)||r.push(J[e])}),r};(u||(A((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=L(e);return s&&ne&&re(G,t,{configurable:!0,set:function e(n){this===G&&e.call(Q,n),f(this,F)&&f(this[F],t)&&(this[F][t]=!1),re(this,t,y(1,n))}}),ie(t,e)}).prototype,"toString",function(){return H(this).tag}),A(W,"withoutSetter",function(e){return ie(L(e),e)}),M.f=ue,T.f=ae,S.f=ce,_.f=w.f=le,E.f=fe,j.f=function(e){return ie(R(e),e)},s&&(Y(W.prototype,"description",{configurable:!0,get:function(){return H(this).description}}),a||A(G,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),B(x(ee),function(e){N(e)}),r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=String(e);if(f(K,t))return K[t];var n=W(t);return K[t]=n,$[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(f($,e))return $[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:le,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:l(function(){E.f(1)})},{getOwnPropertySymbols:function(e){return E.f(m(e))}}),V)&&r({target:"JSON",stat:!0,forced:!u||l(function(){var e=W();return"[null]"!=V([e])||"{}"!=V({a:e})||"{}"!=V(Object(e))})},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(p(t)||void 0!==e)&&!oe(e))return h(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!oe(t))return t}),i[1]=t,V.apply(null,i)}});W.prototype[U]||O(W.prototype,U,W.prototype.valueOf),I(W,"Symbol"),P[F]=!0},function(e,t,n){"use strict";var r=n(2),i=n(19),o=n(11),a=n(25),s=n(13),u=n(21).f,c=n(255),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var f={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new l(e):void 0===e?l():l(e);return""===e&&(f[t]=!0),t};c(h,l);var p=h.prototype=l.prototype;p.constructor=h;var d=p.toString,m="Symbol(test)"==String(l("test")),v=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=d.call(e);if(a(f,e))return"";var n=m?t.slice(7,-1):t.replace(v,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:h})}},function(e,t,n){n(41)("asyncIterator")},function(e,t,n){n(41)("hasInstance")},function(e,t,n){n(41)("isConcatSpreadable")},function(e,t,n){n(41)("iterator")},function(e,t,n){n(41)("match")},function(e,t,n){n(41)("replace")},function(e,t,n){n(41)("search")},function(e,t,n){n(41)("species")},function(e,t,n){n(41)("split")},function(e,t,n){n(41)("toPrimitive")},function(e,t,n){n(41)("toStringTag")},function(e,t,n){n(41)("unscopables")},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(111),a=n(13),s=n(22),u=n(18),c=n(87),l=n(135),f=n(136),h=n(15),p=n(109),d=h("isConcatSpreadable"),m=p>=51||!i(function(){var e=[];return e[d]=!1,e.concat()[0]!==e}),v=f("concat"),g=function(e){if(!a(e))return!1;var t=e[d];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!m||!v},{concat:function(e){var t,n,r,i,o,a=s(this),f=l(a,0),h=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],g(o)){if(h+(i=u(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,h++)n in o&&c(f,h,o[n])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(f,h++,o)}return f.length=h,f}})},function(e,t,n){var r=n(2),i=n(262),o=n(70);r({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},function(e,t,n){var r=n(2),i=n(204),o=n(70);r({target:"Array",proto:!0},{fill:i}),o("fill")},function(e,t,n){"use strict";var r=n(2),i=n(33).filter;r({target:"Array",proto:!0,forced:!n(136)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(33).find,o=n(70),a=!0;"find"in[]&&Array(1).find(function(){a=!1}),r({target:"Array",proto:!0,forced:a},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(e,t,n){"use strict";var r=n(2),i=n(33).findIndex,o=n(70),a=!0;"findIndex"in[]&&Array(1).findIndex(function(){a=!1}),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},function(e,t,n){"use strict";var r=n(2),i=n(263),o=n(22),a=n(18),s=n(49),u=n(135);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=a(t.length),r=u(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:s(e)),r}})},function(e,t,n){"use strict";var r=n(2),i=n(263),o=n(22),a=n(18),s=n(50),u=n(135);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=o(this),r=a(n.length);return s(e),(t=u(n,0)).length=i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},function(e,t,n){var r=n(2),i=n(264);r({target:"Array",stat:!0,forced:!n(159)(function(e){Array.from(e)})},{from:i})},function(e,t,n){var r=n(14),i=n(265);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){throw i(e),t}}},function(e,t,n){"use strict";var r=n(2),i=n(129).includes,o=n(70);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){"use strict";var r=n(2),i=n(129).indexOf,o=n(88),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,u=o("indexOf");r({target:"Array",proto:!0,forced:s||!u},{indexOf:function(e){return s?a.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(126),o=n(39),a=n(88),s=[].join,u=i!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},function(e,t,n){var r=n(2),i=n(266);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(e,t,n){"use strict";var r=n(2),i=n(33).map;r({target:"Array",proto:!0,forced:!n(136)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(87);r({target:"Array",stat:!0,forced:i(function(){function e(){}return!(Array.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(2),i=n(160).left,o=n(88),a=n(109),s=n(112);r({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(160).right,o=n(88),a=n(109),s=n(112);r({target:"Array",proto:!0,forced:!o("reduceRight")||!s&&a>79&&a<83},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(111),o=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},function(e,t,n){"use strict";var r=n(2),i=n(13),o=n(111),a=n(73),s=n(18),u=n(39),c=n(87),l=n(15),f=n(136)("slice"),h=l("species"),p=[].slice,d=Math.max;r({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var n,r,l,f=u(this),m=s(f.length),v=a(e,m),g=a(void 0===t?m:t,m);if(o(f)&&("function"!=typeof(n=f.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return p.call(f,v,g);for(r=new(void 0===n?Array:n)(d(g-v,0)),l=0;v<g;v++,l++)v in f&&c(r,l,f[v]);return r.length=l,r}})},function(e,t,n){"use strict";var r=n(2),i=n(50),o=n(22),a=n(9),s=n(88),u=[],c=u.sort,l=a(function(){u.sort(void 0)}),f=a(function(){u.sort(null)}),h=s("sort");r({target:"Array",proto:!0,forced:l||!f||!h},{sort:function(e){return void 0===e?c.call(o(this)):c.call(o(this),i(e))}})},function(e,t,n){n(113)("Array")},function(e,t,n){"use strict";var r=n(2),i=n(73),o=n(49),a=n(18),s=n(22),u=n(135),c=n(87),l=n(136)("splice"),f=Math.max,h=Math.min;r({target:"Array",proto:!0,forced:!l},{splice:function(e,t){var n,r,l,p,d,m,v=s(this),g=a(v.length),y=i(e,g),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=g-y):(n=b-2,r=h(f(o(t),0),g-y)),g+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(l=u(v,r),p=0;p<r;p++)(d=y+p)in v&&c(l,p,v[d]);if(l.length=r,n<r){for(p=y;p<g-r;p++)m=p+n,(d=p+r)in v?v[m]=v[d]:delete v[m];for(p=g;p>g-r+n;p--)delete v[p-1]}else if(n>r)for(p=g-r;p>y;p--)m=p+n-1,(d=p+r-1)in v?v[m]=v[d]:delete v[m];for(p=0;p<n;p++)v[p+y]=arguments[p+2];return v.length=g-r+n,l}})},function(e,t,n){n(70)("flat")},function(e,t,n){n(70)("flatMap")},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(206),a=n(113),s=o.ArrayBuffer;r({global:!0,forced:i.ArrayBuffer!==s},{ArrayBuffer:s}),a("ArrayBuffer")},function(e,t){var n=Math.abs,r=Math.pow,i=Math.floor,o=Math.log,a=Math.LN2;e.exports={pack:function(e,t,s){var u,c,l,f=new Array(s),h=8*s-t-1,p=(1<<h)-1,d=p>>1,m=23===t?r(2,-24)-r(2,-77):0,v=e<0||0===e&&1/e<0?1:0,g=0;for((e=n(e))!=e||e===1/0?(c=e!=e?1:0,u=p):(u=i(o(e)/a),e*(l=r(2,-u))<1&&(u--,l*=2),(e+=u+d>=1?m/l:m*r(2,1-d))*l>=2&&(u++,l/=2),u+d>=p?(c=0,u=p):u+d>=1?(c=(e*l-1)*r(2,t),u+=d):(c=e*r(2,d-1)*r(2,t),u=0));t>=8;f[g++]=255&c,c/=256,t-=8);for(u=u<<t|c,h+=t;h>0;f[g++]=255&u,u/=256,h-=8);return f[--g]|=128*v,f},unpack:function(e,t){var n,i=e.length,o=8*i-t-1,a=(1<<o)-1,s=a>>1,u=o-7,c=i-1,l=e[c--],f=127&l;for(l>>=7;u>0;f=256*f+e[c],c--,u-=8);for(n=f&(1<<-u)-1,f>>=-u,u+=t;u>0;n=256*n+e[c],c--,u-=8);if(0===f)f=1-s;else{if(f===a)return n?NaN:l?-1/0:1/0;n+=r(2,t),f-=s}return(l?-1:1)*n*r(2,f-t)}}},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(206),a=n(14),s=n(73),u=n(18),c=n(77),l=o.ArrayBuffer,f=o.DataView,h=l.prototype.slice;r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i(function(){return!new l(2).slice(1,void 0).byteLength})},{slice:function(e,t){if(void 0!==h&&void 0===t)return h.call(a(this),e);for(var n=a(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),o=new(c(this,l))(u(i-r)),p=new f(this),d=new f(o),m=0;r<i;)d.setUint8(m++,p.getUint8(r++));return o}})},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(22),a=n(52);r({target:"Date",proto:!0,forced:i(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(e){var t=o(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(38),i=n(430),o=n(15)("toPrimitive"),a=Date.prototype;o in a||r(a,o,i)},function(e,t,n){"use strict";var r=n(14),i=n(52);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),"number"!==e)}},function(e,t,n){"use strict";var r=n(13),i=n(21),o=n(54),a=n(15)("hasInstance"),s=Function.prototype;a in s||i.f(s,a,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(19),i=n(21).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;!r||"name"in o||i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,n){var r=n(11);n(57)(r.JSON,"JSON",!0)},function(e,t,n){"use strict";var r=n(161),i=n(269);e.exports=r("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,n){var r=n(2),i=n(270),o=Math.acosh,a=Math.log,s=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!o||710!=Math.floor(o(Number.MAX_VALUE))||o(1/0)!=1/0},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?a(e)+u:i(e-1+s(e-1)*s(e+1))}})},function(e,t,n){var r=n(2),i=Math.asinh,o=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):o(t+a(t*t+1)):t}})},function(e,t,n){var r=n(2),i=Math.atanh,o=Math.log;r({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:o((1+e)/(1-e))/2}})},function(e,t,n){var r=n(2),i=n(207),o=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){return i(e=+e)*a(o(e),1/3)}})},function(e,t,n){var r=n(2),i=Math.floor,o=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-i(o(e+.5)*a):32}})},function(e,t,n){var r=n(2),i=n(163),o=Math.cosh,a=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(e){var t=i(a(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},function(e,t,n){var r=n(2),i=n(163);r({target:"Math",stat:!0,forced:i!=Math.expm1},{expm1:i})},function(e,t,n){n(2)({target:"Math",stat:!0},{fround:n(443)})},function(e,t,n){var r=n(207),i=Math.abs,o=Math.pow,a=o(2,-52),s=o(2,-23),u=o(2,127)*(2-s),c=o(2,-126);e.exports=Math.fround||function(e){var t,n,o=i(e),l=r(e);return o<c?l*(o/c/s+1/a-1/a)*c*s:(n=(t=(1+s/a)*o)-(t-o))>u||n!=n?l*(1/0):l*n}},function(e,t,n){var r=n(2),i=Math.hypot,o=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,i=0,s=0,u=arguments.length,c=0;s<u;)c<(n=o(arguments[s++]))?(i=i*(r=c/n)*r+1,c=n):i+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*a(i)}})},function(e,t,n){var r=n(2),i=n(9),o=Math.imul;r({target:"Math",stat:!0,forced:i(function(){return-5!=o(4294967295,5)||2!=o.length})},{imul:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(2),i=Math.log,o=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(e){return i(e)*o}})},function(e,t,n){n(2)({target:"Math",stat:!0},{log1p:n(270)})},function(e,t,n){var r=n(2),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return i(e)/o}})},function(e,t,n){n(2)({target:"Math",stat:!0},{sign:n(207)})},function(e,t,n){var r=n(2),i=n(9),o=n(163),a=Math.abs,s=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:i(function(){return-2e-17!=Math.sinh(-2e-17)})},{sinh:function(e){return a(e=+e)<1?(o(e)-o(-e))/2:(s(e-1)-s(-e-1))*(u/2)}})},function(e,t,n){var r=n(2),i=n(163),o=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},function(e,t,n){n(57)(Math,"Math",!0)},function(e,t,n){var r=n(2),i=Math.ceil,o=Math.floor;r({target:"Math",stat:!0},{trunc:function(e){return(e>0?o:i)(e)}})},function(e,t,n){"use strict";var r=n(19),i=n(11),o=n(132),a=n(32),s=n(25),u=n(69),c=n(162),l=n(52),f=n(9),h=n(72),p=n(86).f,d=n(29).f,m=n(21).f,v=n(114).trim,g=i.Number,y=g.prototype,b="Number"==u(h(y)),x=function(e){var t,n,r,i,o,a,s,u,c=l(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=v(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=c.slice(2)).length,s=0;s<a;s++)if((u=o.charCodeAt(s))<48||u>i)return NaN;return parseInt(o,r)}return+c};if(o("Number",!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var _,w=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof w&&(b?f(function(){y.valueOf.call(n)}):"Number"!=u(n))?c(new g(x(t)),n,w):x(t)},E=r?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),S=0;E.length>S;S++)s(g,_=E[S])&&!s(w,_)&&m(w,_,d(g,_));w.prototype=y,y.constructor=w,a(i,"Number",w)}},function(e,t,n){n(2)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){n(2)({target:"Number",stat:!0},{isFinite:n(457)})},function(e,t,n){var r=n(11).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){n(2)({target:"Number",stat:!0},{isInteger:n(271)})},function(e,t,n){n(2)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(2),i=n(271),o=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,n){n(2)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){n(2)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(2),i=n(272);r({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},function(e,t,n){var r=n(2),i=n(273);r({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},function(e,t,n){"use strict";var r=n(2),i=n(49),o=n(466),a=n(208),s=n(9),u=1..toFixed,c=Math.floor,l=function e(t,n,r){return 0===n?r:n%2==1?e(t,n-1,r*t):e(t*t,n/2,r)},f=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=c(i/1e7)},h=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=c(r/t),r=r%t*1e7},p=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=String(e[t]);n=""===n?r:n+a.call("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s(function(){u.call({})})},{toFixed:function(e){var t,n,r,s,u=o(this),c=i(e),d=[0,0,0,0,0,0],m="",v="0";if(c<0||c>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(m="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*l(2,69,1))-69)<0?u*l(2,-t,1):u/l(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(d,0,n),r=c;r>=7;)f(d,1e7,0),r-=7;for(f(d,l(10,r,1),0),r=t-1;r>=23;)h(d,1<<23),r-=23;h(d,1<<r),f(d,1,1),h(d,2),v=p(d)}else f(d,0,n),f(d,1<<-t,0),v=p(d)+a.call("0",c);return v=c>0?m+((s=v.length)<=c?"0."+a.call("0",c-s)+v:v.slice(0,s-c)+"."+v.slice(s-c)):m+v}})},function(e,t,n){var r=n(69);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){var r=n(2),i=n(274);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){"use strict";var r=n(2),i=n(19),o=n(165),a=n(22),s=n(50),u=n(21);i&&r({target:"Object",proto:!0,forced:o},{__defineGetter__:function(e,t){u.f(a(this),e,{get:s(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(2),i=n(19),o=n(165),a=n(22),s=n(50),u=n(21);i&&r({target:"Object",proto:!0,forced:o},{__defineSetter__:function(e,t){u.f(a(this),e,{set:s(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var r=n(2),i=n(275).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},function(e,t,n){var r=n(2),i=n(137),o=n(9),a=n(13),s=n(89).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:o(function(){u(1)}),sham:!i},{freeze:function(e){return u&&a(e)?u(s(e)):e}})},function(e,t,n){var r=n(2),i=n(138),o=n(87);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,function(e,n){o(t,e,n)},{AS_ENTRIES:!0}),t}})},function(e,t,n){var r=n(2),i=n(9),o=n(39),a=n(29).f,s=n(19),u=i(function(){a(1)});r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},function(e,t,n){var r=n(2),i=n(19),o=n(200),a=n(39),s=n(29),u=n(87);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=i(r,t=c[f++]))&&u(l,t,n);return l}})},function(e,t,n){var r=n(2),i=n(9),o=n(260).f;r({target:"Object",stat:!0,forced:i(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:o})},function(e,t,n){var r=n(2),i=n(9),o=n(22),a=n(54),s=n(202);r({target:"Object",stat:!0,forced:i(function(){a(1)}),sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},function(e,t,n){n(2)({target:"Object",stat:!0},{is:n(276)})},function(e,t,n){var r=n(2),i=n(9),o=n(13),a=Object.isExtensible;r({target:"Object",stat:!0,forced:i(function(){a(1)})},{isExtensible:function(e){return!!o(e)&&(!a||a(e))}})},function(e,t,n){var r=n(2),i=n(9),o=n(13),a=Object.isFrozen;r({target:"Object",stat:!0,forced:i(function(){a(1)})},{isFrozen:function(e){return!o(e)||!!a&&a(e)}})},function(e,t,n){var r=n(2),i=n(9),o=n(13),a=Object.isSealed;r({target:"Object",stat:!0,forced:i(function(){a(1)})},{isSealed:function(e){return!o(e)||!!a&&a(e)}})},function(e,t,n){var r=n(2),i=n(22),o=n(128);r({target:"Object",stat:!0,forced:n(9)(function(){o(1)})},{keys:function(e){return o(i(e))}})},function(e,t,n){"use strict";var r=n(2),i=n(19),o=n(165),a=n(22),s=n(52),u=n(54),c=n(29).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(e){var t,n=a(this),r=s(e,!0);do{if(t=c(n,r))return t.get}while(n=u(n))}})},function(e,t,n){"use strict";var r=n(2),i=n(19),o=n(165),a=n(22),s=n(52),u=n(54),c=n(29).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(e){var t,n=a(this),r=s(e,!0);do{if(t=c(n,r))return t.set}while(n=u(n))}})},function(e,t,n){var r=n(2),i=n(13),o=n(89).onFreeze,a=n(137),s=n(9),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:s(function(){u(1)}),sham:!a},{preventExtensions:function(e){return u&&i(e)?u(o(e)):e}})},function(e,t,n){var r=n(2),i=n(13),o=n(89).onFreeze,a=n(137),s=n(9),u=Object.seal;r({target:"Object",stat:!0,forced:s(function(){u(1)}),sham:!a},{seal:function(e){return u&&i(e)?u(o(e)):e}})},function(e,t,n){n(2)({target:"Object",stat:!0},{setPrototypeOf:n(74)})},function(e,t,n){var r=n(203),i=n(32),o=n(488);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){"use strict";var r=n(203),i=n(133);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){var r=n(2),i=n(275).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t,n){var r=n(2),i=n(272);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(e,t,n){var r=n(2),i=n(273);r({global:!0,forced:parseInt!=i},{parseInt:i})},function(e,t,n){"use strict";var r,i,o,a,s=n(2),u=n(56),c=n(11),l=n(53),f=n(277),h=n(32),p=n(110),d=n(74),m=n(57),v=n(113),g=n(13),y=n(50),b=n(75),x=n(198),_=n(138),w=n(159),E=n(77),S=n(209).set,T=n(279),M=n(280),O=n(494),A=n(281),k=n(495),C=n(40),P=n(132),L=n(15),R=n(496),j=n(112),N=n(109),I=L("species"),D="Promise",B=C.get,F=C.set,U=C.getterFor(D),z=f&&f.prototype,H=f,G=z,W=c.TypeError,V=c.document,q=c.process,Y=A.f,X=Y,Z=!!(V&&V.createEvent&&c.dispatchEvent),J="function"==typeof PromiseRejectionEvent,Q=!1,K=P(D,function(){var e=x(H)!==String(H);if(!e&&66===N)return!0;if(u&&!G.finally)return!0;if(N>=51&&/native code/.test(H))return!1;var t=new H(function(e){e(1)}),n=function(e){e(function(){},function(){})};return(t.constructor={})[I]=n,!(Q=t.then(function(){})instanceof n)||!e&&R&&!J}),$=K||!w(function(e){H.all(e).catch(function(){})}),ee=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},te=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;T(function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,u,c=n[o++],l=i?c.ok:c.fail,f=c.resolve,h=c.reject,p=c.domain;try{l?(i||(2===e.rejection&&oe(e),e.rejection=1),!0===l?a=r:(p&&p.enter(),a=l(r),p&&(p.exit(),u=!0)),a===c.promise?h(W("Promise-chain cycle")):(s=ee(a))?s.call(a,f,h):f(a)):h(r)}catch(e){p&&!u&&p.exit(),h(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&re(e)})}},ne=function(e,t,n){var r,i;Z?((r=V.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!J&&(i=c["on"+e])?i(r):"unhandledrejection"===e&&O("Unhandled promise rejection",n)},re=function(e){S.call(c,function(){var t,n=e.facade,r=e.value;if(ie(e)&&(t=k(function(){j?q.emit("unhandledRejection",r,n):ne("unhandledrejection",n,r)}),e.rejection=j||ie(e)?2:1,t.error))throw t.value})},ie=function(e){return 1!==e.rejection&&!e.parent},oe=function(e){S.call(c,function(){var t=e.facade;j?q.emit("rejectionHandled",t):ne("rejectionhandled",t,e.value)})},ae=function(e,t,n){return function(r){e(t,r,n)}},se=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,te(e,!0))},ue=function e(t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===n)throw W("Promise can't be resolved itself");var i=ee(n);i?T(function(){var r={done:!1};try{i.call(n,ae(e,r,t),ae(se,r,t))}catch(e){se(r,e,t)}}):(t.value=n,t.state=1,te(t,!1))}catch(e){se({done:!1},e,t)}}};if(K&&(G=(H=function(e){b(this,H,D),y(e),r.call(this);var t=B(this);try{e(ae(ue,t),ae(se,t))}catch(e){se(t,e)}}).prototype,(r=function(e){F(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(G,{then:function(e,t){var n=U(this),r=Y(E(this,H));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=j?q.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&te(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=B(e);this.promise=e,this.resolve=ae(ue,t),this.reject=ae(se,t)},A.f=Y=function(e){return e===H||e===o?new i(e):X(e)},!u&&"function"==typeof f&&z!==Object.prototype)){a=z.then,Q||(h(z,"then",function(e,t){var n=this;return new H(function(e,t){a.call(n,e,t)}).then(e,t)},{unsafe:!0}),h(z,"catch",G.catch,{unsafe:!0}));try{delete z.constructor}catch(e){}d&&d(z,G)}s({global:!0,wrap:!0,forced:K},{Promise:H}),m(H,D,!1,!0),v(D),o=l(D),s({target:D,stat:!0,forced:K},{reject:function(e){var t=Y(this);return t.reject.call(void 0,e),t.promise}}),s({target:D,stat:!0,forced:u||K},{resolve:function(e){return M(u&&this===o?H:this,e)}}),s({target:D,stat:!0,forced:$},{all:function(e){var t=this,n=Y(t),r=n.resolve,i=n.reject,o=k(function(){var n=y(t.resolve),o=[],a=0,s=1;_(e,function(e){var u=a++,c=!1;o.push(void 0),s++,n.call(t,e).then(function(e){c||(c=!0,o[u]=e,--s||r(o))},i)}),--s||r(o)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=Y(t),r=n.reject,i=k(function(){var i=y(t.resolve);_(e,function(e){i.call(t,e).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}})},function(e,t,n){var r=n(156);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){var r=n(11);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t){e.exports="object"==typeof window},function(e,t,n){"use strict";var r=n(2),i=n(56),o=n(277),a=n(9),s=n(53),u=n(77),c=n(280),l=n(32);if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=u(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return c(t,e()).then(function(){return n})}:e,n?function(n){return c(t,e()).then(function(){throw n})}:e)}}),!i&&"function"==typeof o){var f=s("Promise").prototype.finally;o.prototype.finally!==f&&l(o.prototype,"finally",f,{unsafe:!0})}},function(e,t,n){var r=n(2),i=n(53),o=n(50),a=n(14),s=n(9),u=i("Reflect","apply"),c=Function.apply;r({target:"Reflect",stat:!0,forced:!s(function(){u(function(){})})},{apply:function(e,t,n){return o(e),a(n),u?u(e,t,n):c.call(e,t,n)}})},function(e,t,n){var r=n(2),i=n(53),o=n(50),a=n(14),s=n(13),u=n(72),c=n(500),l=n(9),f=i("Reflect","construct"),h=l(function(){function e(){}return!(f(function(){},[],e)instanceof e)}),p=!l(function(){f(function(){})}),d=h||p;r({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(p&&!h)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var i=n.prototype,l=u(s(i)?i:Object.prototype),d=Function.apply.call(e,l,t);return s(d)?d:l}})},function(e,t,n){"use strict";var r=n(50),i=n(13),o=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),s=function(){var r=n.concat(o.call(arguments));return this instanceof s?function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)}(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){var r=n(2),i=n(19),o=n(14),a=n(52),s=n(21);r({target:"Reflect",stat:!0,forced:n(9)(function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})}),sham:!i},{defineProperty:function(e,t,n){o(e);var r=a(t,!0);o(n);try{return s.f(e,r,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(2),i=n(14),o=n(29).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=o(i(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){var r=n(2),i=n(13),o=n(14),a=n(25),s=n(29),u=n(54);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,c,l=arguments.length<3?t:arguments[2];return o(t)===l?t[n]:(r=s.f(t,n))?a(r,"value")?r.value:void 0===r.get?void 0:r.get.call(l):i(c=u(t))?e(c,n,l):void 0}})},function(e,t,n){var r=n(2),i=n(19),o=n(14),a=n(29);r({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(e,t){return a.f(o(e),t)}})},function(e,t,n){var r=n(2),i=n(14),o=n(54);r({target:"Reflect",stat:!0,sham:!n(202)},{getPrototypeOf:function(e){return o(i(e))}})},function(e,t,n){n(2)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,n){var r=n(2),i=n(14),o=Object.isExtensible;r({target:"Reflect",stat:!0},{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,n){n(2)({target:"Reflect",stat:!0},{ownKeys:n(200)})},function(e,t,n){var r=n(2),i=n(53),o=n(14);r({target:"Reflect",stat:!0,sham:!n(137)},{preventExtensions:function(e){o(e);try{var t=i("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(2),i=n(14),o=n(13),a=n(25),s=n(9),u=n(21),c=n(29),l=n(54),f=n(71);r({target:"Reflect",stat:!0,forced:s(function(){var e=function(){},t=u.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)})},{set:function e(t,n,r){var s,h,p=arguments.length<4?t:arguments[3],d=c.f(i(t),n);if(!d){if(o(h=l(t)))return e(h,n,r,p);d=f(0)}if(a(d,"value")){if(!1===d.writable||!o(p))return!1;if(s=c.f(p,n)){if(s.get||s.set||!1===s.writable)return!1;s.value=r,u.f(p,n,s)}else u.f(p,n,f(0,r));return!0}return void 0!==d.set&&(d.set.call(p,r),!0)}})},function(e,t,n){var r=n(2),i=n(14),o=n(258),a=n(74);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){i(e),o(t);try{return a(e,t),!0}catch(e){return!1}}})},function(e,t,n){var r=n(19),i=n(11),o=n(132),a=n(162),s=n(21).f,u=n(86).f,c=n(210),l=n(166),f=n(167),h=n(32),p=n(9),d=n(40).enforce,m=n(113),v=n(15)("match"),g=i.RegExp,y=g.prototype,b=/a/g,x=/a/g,_=new g(b)!==b,w=f.UNSUPPORTED_Y;if(r&&o("RegExp",!_||w||p(function(){return x[v]=!1,g(b)!=b||g(x)==x||"/a/i"!=g(b,"i")}))){for(var E=function(e,t){var n,r=this instanceof E,i=c(e),o=void 0===t;if(!r&&i&&e.constructor===E&&o)return e;_?i&&!o&&(e=e.source):e instanceof E&&(o&&(t=l.call(e)),e=e.source),w&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var s=a(_?new g(e,t):g(e,t),r?this:y,E);w&&n&&(d(s).sticky=!0);return s},S=function(e){e in E||s(E,e,{configurable:!0,get:function(){return g[e]},set:function(t){g[e]=t}})},T=u(g),M=0;T.length>M;)S(T[M++]);y.constructor=E,E.prototype=y,h(i,"RegExp",E)}m("RegExp")},function(e,t,n){var r=n(19),i=n(21),o=n(166),a=n(167).UNSUPPORTED_Y;r&&("g"!=/./g.flags||a)&&i.f(RegExp.prototype,"flags",{configurable:!0,get:o})},function(e,t,n){"use strict";var r=n(32),i=n(14),o=n(9),a=n(166),s=RegExp.prototype,u=s.toString,c=o(function(){return"/a/b"!=u.call({source:"a",flags:"b"})}),l="toString"!=u.name;(c||l)&&r(RegExp.prototype,"toString",function(){var e=i(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?a.call(e):n)},{unsafe:!0})},function(e,t,n){"use strict";var r=n(161),i=n(269);e.exports=r("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,n){"use strict";var r=n(2),i=n(169).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r,i=n(2),o=n(29).f,a=n(18),s=n(211),u=n(37),c=n(212),l=n(56),f="".endsWith,h=Math.min,p=c("endsWith");i({target:"String",proto:!0,forced:!!(l||p||(r=o(String.prototype,"endsWith"),!r||r.writable))&&!p},{endsWith:function(e){var t=String(u(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),i=void 0===n?r:h(a(n),r),o=String(e);return f?f.call(t,o,i):t.slice(i-o.length,i)===o}})},function(e,t,n){var r=n(2),i=n(73),o=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(2),i=n(211),o=n(37);r({target:"String",proto:!0,forced:!n(212)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(170),i=n(14),o=n(18),a=n(37),s=n(213),u=n(171);r("match",1,function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=i(e),c=String(this);if(!a.global)return u(a,c);var l=a.unicode;a.lastIndex=0;for(var f,h=[],p=0;null!==(f=u(a,c));){var d=String(f[0]);h[p]=d,""===d&&(a.lastIndex=s(c,o(a.lastIndex),l)),p++}return 0===p?null:h}]})},function(e,t,n){"use strict";var r=n(2),i=n(284).end;r({target:"String",proto:!0,forced:n(285)},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(284).start;r({target:"String",proto:!0,forced:n(285)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(2),i=n(39),o=n(18);r({target:"String",stat:!0},{raw:function(e){for(var t=i(e.raw),n=o(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},function(e,t,n){n(2)({target:"String",proto:!0},{repeat:n(208)})},function(e,t,n){"use strict";var r=n(170),i=n(14),o=n(18),a=n(49),s=n(37),u=n(213),c=n(526),l=n(171),f=Math.max,h=Math.min;r("replace",2,function(e,t,n,r){var p=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,d=r.REPLACE_KEEPS_$0,m=p?"$":"$0";return[function(n,r){var i=s(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!p&&d||"string"==typeof r&&-1===r.indexOf(m)){var s=n(t,e,this,r);if(s.done)return s.value}var v=i(e),g=String(this),y="function"==typeof r;y||(r=String(r));var b=v.global;if(b){var x=v.unicode;v.lastIndex=0}for(var _=[];;){var w=l(v,g);if(null===w)break;if(_.push(w),!b)break;""===String(w[0])&&(v.lastIndex=u(g,o(v.lastIndex),x))}for(var E,S="",T=0,M=0;M<_.length;M++){w=_[M];for(var O=String(w[0]),A=f(h(a(w.index),g.length),0),k=[],C=1;C<w.length;C++)k.push(void 0===(E=w[C])?E:String(E));var P=w.groups;if(y){var L=[O].concat(k,A,g);void 0!==P&&L.push(P);var R=String(r.apply(void 0,L))}else R=c(O,g,A,k,P,r);A>=T&&(S+=g.slice(T,A)+R,T=A+O.length)}return S+g.slice(T)}]})},function(e,t,n){var r=n(22),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,u,c,l){var f=n+e.length,h=u.length,p=s;return void 0!==c&&(c=r(c),p=a),o.call(l,p,function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(f);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>h){var l=i(s/10);return 0===l?r:l<=h?void 0===u[l-1]?o.charAt(1):u[l-1]+o.charAt(1):r}a=u[s-1]}return void 0===a?"":a})}},function(e,t,n){"use strict";var r=n(170),i=n(14),o=n(37),a=n(276),s=n(171);r("search",1,function(e,t,n){return[function(t){var n=o(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=i(e),u=String(this),c=o.lastIndex;a(c,0)||(o.lastIndex=0);var l=s(o,u);return a(o.lastIndex,c)||(o.lastIndex=c),null===l?-1:l.index}]})},function(e,t,n){"use strict";var r=n(170),i=n(210),o=n(14),a=n(37),s=n(77),u=n(213),c=n(18),l=n(171),f=n(168),h=n(167).UNSUPPORTED_Y,p=[].push,d=Math.min;r("split",2,function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,o);for(var s,u,c,l=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,m=new RegExp(e.source,h+"g");(s=f.call(m,r))&&!((u=m.lastIndex)>d&&(l.push(r.slice(d,s.index)),s.length>1&&s.index<r.length&&p.apply(l,s.slice(1)),c=s[0].length,d=u,l.length>=o));)m.lastIndex===s.index&&m.lastIndex++;return d===r.length?!c&&m.test("")||l.push(""):l.push(r.slice(d)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var a=n(r,e,this,i,r!==t);if(a.done)return a.value;var f=o(e),p=String(this),m=s(f,RegExp),v=f.unicode,g=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(h?"g":"y"),y=new m(h?"^(?:"+f.source+")":f,g),b=void 0===i?4294967295:i>>>0;if(0===b)return[];if(0===p.length)return null===l(y,p)?[p]:[];for(var x=0,_=0,w=[];_<p.length;){y.lastIndex=h?0:_;var E,S=l(y,h?p.slice(_):p);if(null===S||(E=d(c(y.lastIndex+(h?_:0)),p.length))===x)_=u(p,_,v);else{if(w.push(p.slice(x,_)),w.length===b)return w;for(var T=1;T<=S.length-1;T++)if(w.push(S[T]),w.length===b)return w;_=x=E}}return w.push(p.slice(x)),w}]},h)},function(e,t,n){"use strict";var r,i=n(2),o=n(29).f,a=n(18),s=n(211),u=n(37),c=n(212),l=n(56),f="".startsWith,h=Math.min,p=c("startsWith");i({target:"String",proto:!0,forced:!!(l||p||(r=o(String.prototype,"startsWith"),!r||r.writable))&&!p},{startsWith:function(e){var t=String(u(this));s(e);var n=a(h(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return f?f.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";var r=n(2),i=n(114).trim;r({target:"String",proto:!0,forced:n(214)("trim")},{trim:function(){return i(this)}})},function(e,t,n){"use strict";var r=n(2),i=n(114).end,o=n(214)("trimEnd"),a=o?function(){return i(this)}:"".trimEnd;r({target:"String",proto:!0,forced:o},{trimEnd:a,trimRight:a})},function(e,t,n){"use strict";var r=n(2),i=n(114).start,o=n(214)("trimStart"),a=o?function(){return i(this)}:"".trimStart;r({target:"String",proto:!0,forced:o},{trimStart:a,trimLeft:a})},function(e,t,n){"use strict";var r=n(2),i=n(42);r({target:"String",proto:!0,forced:n(43)("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},function(e,t,n){"use strict";var r=n(2),i=n(42);r({target:"String",proto:!0,forced:n(43)("big")},{big:function(){return i(this,"big","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(42);r({target:"String",proto:!0,forced:n(43)("blink")},{blink:function(){return i(this,"blink","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(42);r({target:"String",proto:!0,forced:n(43)("bold")},{bold:function(){return i(this,"b","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(42);r({target:"String",proto:!0,forced:n(43)("fixed")},{fixed:function(){return i(this,"tt","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(42);r({target:"String",proto:!0,forced:n(43)("fontcolor")},{fontcolor:function(e){return i(this,"font","color",e)}})},function(e,t,n){"use strict";var r=n(2),i=n(42);r({target:"String",proto:!0,forced:n(43)("fontsize")},{fontsize:function(e){return i(this,"font","size",e)}})},function(e,t,n){"use strict";var r=n(2),i=n(42);r({target:"String",proto:!0,forced:n(43)("italics")},{italics:function(){return i(this,"i","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(42);r({target:"String",proto:!0,forced:n(43)("link")},{link:function(e){return i(this,"a","href",e)}})},function(e,t,n){"use strict";var r=n(2),i=n(42);r({target:"String",proto:!0,forced:n(43)("small")},{small:function(){return i(this,"small","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(42);r({target:"String",proto:!0,forced:n(43)("strike")},{strike:function(){return i(this,"strike","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(42);r({target:"String",proto:!0,forced:n(43)("sub")},{sub:function(){return i(this,"sub","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(42);r({target:"String",proto:!0,forced:n(43)("sup")},{sup:function(){return i(this,"sup","","")}})},function(e,t,n){n(65)("Float32",function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){var r=n(49);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){n(65)("Float64",function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(65)("Int8",function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(65)("Int16",function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(65)("Int32",function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(65)("Uint8",function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(65)("Uint8",function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},function(e,t,n){n(65)("Uint16",function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(65)("Uint32",function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){"use strict";var r=n(16),i=n(262),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",function(e,t){return i.call(o(this),e,t,arguments.length>2?arguments[2]:void 0)})},function(e,t,n){"use strict";var r=n(16),i=n(33).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(16),i=n(204),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",function(e){return i.apply(o(this),arguments)})},function(e,t,n){"use strict";var r=n(16),i=n(33).filter,o=n(560),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)})},function(e,t,n){var r=n(16).aTypedArrayConstructor,i=n(77);e.exports=function(e,t){for(var n=i(e,e.constructor),o=0,a=t.length,s=new(r(n))(a);a>o;)s[o]=t[o++];return s}},function(e,t,n){"use strict";var r=n(16),i=n(33).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(16),i=n(33).findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(16),i=n(33).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(215);(0,n(16).exportTypedArrayStaticMethod)("from",n(287),r)},function(e,t,n){"use strict";var r=n(16),i=n(129).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(16),i=n(129).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(11),i=n(16),o=n(154),a=n(15)("iterator"),s=r.Uint8Array,u=o.values,c=o.keys,l=o.entries,f=i.aTypedArray,h=i.exportTypedArrayMethod,p=s&&s.prototype[a],d=!!p&&("values"==p.name||null==p.name),m=function(){return u.call(f(this))};h("entries",function(){return l.call(f(this))}),h("keys",function(){return c.call(f(this))}),h("values",m,!d),h(a,m,!d)},function(e,t,n){"use strict";var r=n(16),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=[].join;o("join",function(e){return a.apply(i(this),arguments)})},function(e,t,n){"use strict";var r=n(16),i=n(266),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",function(e){return i.apply(o(this),arguments)})},function(e,t,n){"use strict";var r=n(16),i=n(33).map,o=n(77),a=r.aTypedArray,s=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("map",function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0,function(e,t){return new(s(o(e,e.constructor)))(t)})})},function(e,t,n){"use strict";var r=n(16),i=n(215),o=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",function(){for(var e=0,t=arguments.length,n=new(o(this))(t);t>e;)n[e]=arguments[e++];return n},i)},function(e,t,n){"use strict";var r=n(16),i=n(160).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",function(e){return i(o(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(16),i=n(160).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",function(e){return i(o(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(16),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=Math.floor;o("reverse",function(){for(var e,t=i(this).length,n=a(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this})},function(e,t,n){"use strict";var r=n(16),i=n(18),o=n(286),a=n(22),s=n(9),u=r.aTypedArray;(0,r.exportTypedArrayMethod)("set",function(e){u(this);var t=o(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=a(e),s=i(r.length),c=0;if(s+t>n)throw RangeError("Wrong length");for(;c<s;)this[t+c]=r[c++]},s(function(){new Int8Array(1).set({})}))},function(e,t,n){"use strict";var r=n(16),i=n(77),o=n(9),a=r.aTypedArray,s=r.aTypedArrayConstructor,u=r.exportTypedArrayMethod,c=[].slice;u("slice",function(e,t){for(var n=c.call(a(this),e,t),r=i(this,this.constructor),o=0,u=n.length,l=new(s(r))(u);u>o;)l[o]=n[o++];return l},o(function(){new Int8Array(1).slice()}))},function(e,t,n){"use strict";var r=n(16),i=n(33).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(16),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=[].sort;o("sort",function(e){return a.call(i(this),e)})},function(e,t,n){"use strict";var r=n(16),i=n(18),o=n(73),a=n(77),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",function(e,t){var n=s(this),r=n.length,u=o(e,r);return new(a(n,n.constructor))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,i((void 0===t?r:o(t,r))-u))})},function(e,t,n){"use strict";var r=n(11),i=n(16),o=n(9),a=r.Int8Array,s=i.aTypedArray,u=i.exportTypedArrayMethod,c=[].toLocaleString,l=[].slice,f=!!a&&o(function(){c.call(new a(1))});u("toLocaleString",function(){return c.apply(f?l.call(s(this)):s(this),arguments)},o(function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()})||!o(function(){a.prototype.toLocaleString.call([1,2])}))},function(e,t,n){"use strict";var r=n(16).exportTypedArrayMethod,i=n(9),o=n(11).Uint8Array,a=o&&o.prototype||{},s=[].toString,u=[].join;i(function(){s.call({})})&&(s=function(){return u.call(this)});var c=a.toString!=s;r("toString",s,c)},function(e,t,n){"use strict";var r,i=n(11),o=n(110),a=n(89),s=n(161),u=n(288),c=n(13),l=n(40).enforce,f=n(254),h=!i.ActiveXObject&&"ActiveXObject"in i,p=Object.isExtensible,d=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=e.exports=s("WeakMap",d,u);if(f&&h){r=u.getConstructor(d,"WeakMap",!0),a.REQUIRED=!0;var v=m.prototype,g=v.delete,y=v.has,b=v.get,x=v.set;o(v,{delete:function(e){if(c(e)&&!p(e)){var t=l(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen.delete(e)}return g.call(this,e)},has:function(e){if(c(e)&&!p(e)){var t=l(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.has(e)}return y.call(this,e)},get:function(e){if(c(e)&&!p(e)){var t=l(this);return t.frozen||(t.frozen=new r),y.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(c(e)&&!p(e)){var n=l(this);n.frozen||(n.frozen=new r),y.call(this,e)?x.call(this,e,t):n.frozen.set(e,t)}else x.call(this,e,t);return this}})}},function(e,t,n){"use strict";n(161)("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(288))},function(e,t,n){var r=n(11),i=n(289),o=n(585),a=n(38);for(var s in i){var u=r[s],c=u&&u.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(e){c.forEach=o}}},function(e,t,n){"use strict";var r=n(33).forEach,i=n(88)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(11),i=n(289),o=n(154),a=n(38),s=n(15),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var f in i){var h=r[f],p=h&&h.prototype;if(p){if(p[u]!==l)try{a(p,u,l)}catch(e){p[u]=l}if(p[c]||a(p,c,f),i[f])for(var d in o)if(p[d]!==o[d])try{a(p,d,o[d])}catch(e){p[d]=o[d]}}}},function(e,t,n){var r=n(2),i=n(11),o=n(209);r({global:!0,bind:!0,enumerable:!0,forced:!i.setImmediate||!i.clearImmediate},{setImmediate:o.set,clearImmediate:o.clear})},function(e,t,n){var r=n(2),i=n(11),o=n(279),a=n(112),s=i.process;r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=a&&s.domain;o(t?t.bind(e):e)}})},function(e,t,n){"use strict";n(283);var r,i=n(2),o=n(19),a=n(259),s=n(11),u=n(251),c=n(32),l=n(75),f=n(25),h=n(274),p=n(264),d=n(169).codeAt,m=n(590),v=n(57),g=n(191),y=n(40),b=s.URL,x=g.URLSearchParams,_=g.getState,w=y.set,E=y.getterFor("URL"),S=Math.floor,T=Math.pow,M=/[A-Za-z]/,O=/[\d+-.A-Za-z]/,A=/\d/,k=/^(0x|0X)/,C=/^[0-7]+$/,P=/^\d+$/,L=/^[\dA-Fa-f]+$/,R=/[\0\t\n\r #%/:?@[\\]]/,j=/[\0\t\n\r #/:?@[\\]]/,N=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,I=/[\t\n\r]/g,D=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=F(t.slice(1,-1))))return"Invalid host";e.host=n}else if(Y(e)){if(t=m(t),R.test(t))return"Invalid host";if(null===(n=B(t)))return"Invalid host";e.host=n}else{if(j.test(t))return"Invalid host";for(n="",r=p(t),i=0;i<r.length;i++)n+=V(r[i],z);e.host=n}},B=function(e){var t,n,r,i,o,a,s,u=e.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),(t=u.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=u[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=k.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?P:8==o?C:L).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=T(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*T(256,3-r);return s},F=function(e){var t,n,r,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return e.charAt(f)};if(":"==h()){if(":"!=e.charAt(1))return;f+=2,l=++c}for(;h();){if(8==c)return;if(":"!=h()){for(t=n=0;n<4&&L.test(h());)t=16*t+parseInt(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,c>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!A.test(h()))return;for(;A.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;u[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!=c)return;return u},U=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},z={},H=h({},z,{" ":1,'"':1,"<":1,">":1,"`":1}),G=h({},H,{"#":1,"?":1,"{":1,"}":1}),W=h({},G,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),V=function(e,t){var n=d(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(e){return f(q,e.scheme)},X=function(e){return""!=e.username||""!=e.password},Z=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},J=function(e,t){var n;return 2==e.length&&M.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},Q=function(e){var t;return e.length>1&&J(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},K=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&J(t[0],!0)||t.pop()},$=function(e){return"."===e||"%2e"===e.toLowerCase()},ee={},te={},ne={},re={},ie={},oe={},ae={},se={},ue={},ce={},le={},fe={},he={},pe={},de={},me={},ve={},ge={},ye={},be={},xe={},_e=function(e,t,n,i){var o,a,s,u,c,l=n||ee,h=0,d="",m=!1,v=!1,g=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(N,"")),t=t.replace(I,""),o=p(t);h<=o.length;){switch(a=o[h],l){case ee:if(!a||!M.test(a)){if(n)return"Invalid scheme";l=ne;continue}d+=a.toLowerCase(),l=te;break;case te:if(a&&(O.test(a)||"+"==a||"-"==a||"."==a))d+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";d="",l=ne,h=0;continue}if(n&&(Y(e)!=f(q,d)||"file"==d&&(X(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void(Y(e)&&q[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?l=pe:Y(e)&&i&&i.scheme==e.scheme?l=re:Y(e)?l=se:"/"==o[h+1]?(l=ie,h++):(e.cannotBeABaseURL=!0,e.path.push(""),l=ye)}break;case ne:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,l=xe;break}l="file"==i.scheme?pe:oe;continue;case re:if("/"!=a||"/"!=o[h+1]){l=oe;continue}l=ue,h++;break;case ie:if("/"==a){l=ce;break}l=ge;continue;case oe:if(e.scheme=i.scheme,a==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==a||"\\"==a&&Y(e))l=ae;else if("?"==a)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",l=be;else{if("#"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),l=ge;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=xe}break;case ae:if(!Y(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,l=ge;continue}l=ce}else l=ue;break;case se:if(l=ue,"/"!=a||"/"!=d.charAt(h+1))continue;h++;break;case ue:if("/"!=a&&"\\"!=a){l=ce;continue}break;case ce:if("@"==a){m&&(d="%40"+d),m=!0,s=p(d);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||g){var x=V(b,W);g?e.password+=x:e.username+=x}else g=!0}d=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(e)){if(m&&""==d)return"Invalid authority";h-=p(d).length+1,d="",l=le}else d+=a;break;case le:case fe:if(n&&"file"==e.scheme){l=me;continue}if(":"!=a||v){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(e)){if(Y(e)&&""==d)return"Invalid host";if(n&&""==d&&(X(e)||null!==e.port))return;if(u=D(e,d))return u;if(d="",l=ve,n)return;continue}"["==a?v=!0:"]"==a&&(v=!1),d+=a}else{if(""==d)return"Invalid host";if(u=D(e,d))return u;if(d="",l=he,n==fe)return}break;case he:if(!A.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(e)||n){if(""!=d){var _=parseInt(d,10);if(_>65535)return"Invalid port";e.port=Y(e)&&_===q[e.scheme]?null:_,d=""}if(n)return;l=ve;continue}return"Invalid port"}d+=a;break;case pe:if(e.scheme="file","/"==a||"\\"==a)l=de;else{if(!i||"file"!=i.scheme){l=ge;continue}if(a==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==a)e.host=i.host,e.path=i.path.slice(),e.query="",l=be;else{if("#"!=a){Q(o.slice(h).join(""))||(e.host=i.host,e.path=i.path.slice(),K(e)),l=ge;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=xe}}break;case de:if("/"==a||"\\"==a){l=me;break}i&&"file"==i.scheme&&!Q(o.slice(h).join(""))&&(J(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),l=ge;continue;case me:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&J(d))l=ge;else if(""==d){if(e.host="",n)return;l=ve}else{if(u=D(e,d))return u;if("localhost"==e.host&&(e.host=""),n)return;d="",l=ve}continue}d+=a;break;case ve:if(Y(e)){if(l=ge,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(l=ge,"/"!=a))continue}else e.fragment="",l=xe;else e.query="",l=be;break;case ge:if(a==r||"/"==a||"\\"==a&&Y(e)||!n&&("?"==a||"#"==a)){if(".."===(c=(c=d).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(K(e),"/"==a||"\\"==a&&Y(e)||e.path.push("")):$(d)?"/"==a||"\\"==a&&Y(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&J(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",l=be):"#"==a&&(e.fragment="",l=xe)}else d+=V(a,G);break;case ye:"?"==a?(e.query="",l=be):"#"==a?(e.fragment="",l=xe):a!=r&&(e.path[0]+=V(a,z));break;case be:n||"#"!=a?a!=r&&("'"==a&&Y(e)?e.query+="%27":e.query+="#"==a?"%23":V(a,z)):(e.fragment="",l=xe);break;case xe:a!=r&&(e.fragment+=V(a,H))}h++}},we=function(e){var t,n,r=l(this,we,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=w(r,{type:"URL"});if(void 0!==i)if(i instanceof we)t=E(i);else if(n=_e(t={},String(i)))throw TypeError(n);if(n=_e(s,a,null,t))throw TypeError(n);var u=s.searchParams=new x,c=_(u);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(u)||null},o||(r.href=Se.call(r),r.origin=Te.call(r),r.protocol=Me.call(r),r.username=Oe.call(r),r.password=Ae.call(r),r.host=ke.call(r),r.hostname=Ce.call(r),r.port=Pe.call(r),r.pathname=Le.call(r),r.search=Re.call(r),r.searchParams=je.call(r),r.hash=Ne.call(r))},Ee=we.prototype,Se=function(){var e=E(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",X(e)&&(c+=n+(r?":"+r:"")+"@"),c+=U(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},Te=function(){var e=E(this),t=e.scheme,n=e.port;if("blob"==t)try{return new we(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Y(e)?t+"://"+U(e.host)+(null!==n?":"+n:""):"null"},Me=function(){return E(this).scheme+":"},Oe=function(){return E(this).username},Ae=function(){return E(this).password},ke=function(){var e=E(this),t=e.host,n=e.port;return null===t?"":null===n?U(t):U(t)+":"+n},Ce=function(){var e=E(this).host;return null===e?"":U(e)},Pe=function(){var e=E(this).port;return null===e?"":String(e)},Le=function(){var e=E(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Re=function(){var e=E(this).query;return e?"?"+e:""},je=function(){return E(this).searchParams},Ne=function(){var e=E(this).fragment;return e?"#"+e:""},Ie=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&u(Ee,{href:Ie(Se,function(e){var t=E(this),n=String(e),r=_e(t,n);if(r)throw TypeError(r);_(t.searchParams).updateSearchParams(t.query)}),origin:Ie(Te),protocol:Ie(Me,function(e){var t=E(this);_e(t,String(e)+":",ee)}),username:Ie(Oe,function(e){var t=E(this),n=p(String(e));if(!Z(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=V(n[r],W)}}),password:Ie(Ae,function(e){var t=E(this),n=p(String(e));if(!Z(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=V(n[r],W)}}),host:Ie(ke,function(e){var t=E(this);t.cannotBeABaseURL||_e(t,String(e),le)}),hostname:Ie(Ce,function(e){var t=E(this);t.cannotBeABaseURL||_e(t,String(e),fe)}),port:Ie(Pe,function(e){var t=E(this);Z(t)||(""==(e=String(e))?t.port=null:_e(t,e,he))}),pathname:Ie(Le,function(e){var t=E(this);t.cannotBeABaseURL||(t.path=[],_e(t,e+"",ve))}),search:Ie(Re,function(e){var t=E(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",_e(t,e,be)),_(t.searchParams).updateSearchParams(t.query)}),searchParams:Ie(je),hash:Ie(Ne,function(e){var t=E(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",_e(t,e,xe)):t.fragment=null})}),c(Ee,"toJSON",function(){return Se.call(this)},{enumerable:!0}),c(Ee,"toString",function(){return Se.call(this)},{enumerable:!0}),b){var De=b.createObjectURL,Be=b.revokeObjectURL;De&&c(we,"createObjectURL",function(e){return De.apply(b,arguments)}),Be&&c(we,"revokeObjectURL",function(e){return Be.apply(b,arguments)})}v(we,"URL"),i({global:!0,forced:!a,sham:!o},{URL:we})},function(e,t,n){"use strict";var r=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,u=function(e){return e+22+75*(e<26)},c=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;r+=36)e=a(e/35);return a(r+36*e/(e+38))},l=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,l=128,f=0,h=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(s(n));var p=r.length,d=p;for(p&&r.push("-");d<i;){var m=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=l&&n<m&&(m=n);var v=d+1;if(m-l>a((2147483647-f)/v))throw RangeError(o);for(f+=(m-l)*v,l=m,t=0;t<e.length;t++){if((n=e[t])<l&&++f>2147483647)throw RangeError(o);if(n==l){for(var g=f,y=36;;y+=36){var b=y<=h?1:y>=h+26?26:y-h;if(g<b)break;var x=g-b,_=36-b;r.push(s(u(b+x%_))),g=a(x/_)}r.push(s(u(g))),h=c(f,v,d==p),f=0,++d}}++f,++l}return r.join("")};e.exports=function(e){var t,n,o=[],a=e.toLowerCase().replace(i,".").split(".");for(t=0;t<a.length;t++)n=a[t],o.push(r.test(n)?"xn--"+l(n):n);return o.join(".")}},function(e,t,n){"use strict";n(2)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,n){"use strict";
/** @license React v16.13.1
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(190),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,d=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function _(){}function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=x.prototype;var E=w.prototype=new _;E.constructor=w,r(E,x.prototype),E.isPureReactComponent=!0;var S={current:null},T=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!M.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:S.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var k=/\/+/g,C=[];function P(e,t,n,r){if(C.length){var i=C.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function L(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>C.length&&C.push(e)}function R(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case a:u=!0}}if(u)return r(i,t,""===n?"."+j(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var l=n+j(s=t[c],c);u+=e(s,l,r,i)}else if(l=null===t||"object"!=typeof t?null:"function"==typeof(l=v&&t[v]||t["@@iterator"])?l:null,"function"==typeof l)for(t=l.call(t),c=0;!(s=t.next()).done;)u+=e(s=s.value,l=n+j(s,c++),r,i);else if("object"===s)throw r=""+t,Error(g(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return u}(e,"",t,n)}function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function N(e,t){e.func.call(e.context,t,e.count++)}function I(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?D(e,r,n,function(e){return e}):null!=e&&(A(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(k,"$&/")+"/")+n)),r.push(e))}function D(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(k,"$&/")+"/"),R(e,I,t=P(t,o,r,i)),L(t)}var B={current:null};function F(){var e=B.current;if(null===e)throw Error(g(321));return e}var U={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return D(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,N,t=P(null,null,t,n)),L(t)},count:function(e){return R(e,function(){return null},null)},toArray:function(e){var t=[];return D(e,t,null,function(e){return e}),t},only:function(e){if(!A(e))throw Error(g(143));return e}},t.Component=x,t.Fragment=s,t.Profiler=c,t.PureComponent=w,t.StrictMode=u,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,t.cloneElement=function(e,t,n){if(null==e)throw Error(g(267,e));var i=r({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)T.call(t,l)&&!M.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:h,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return F().useCallback(e,t)},t.useContext=function(e,t){return F().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return F().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return F().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return F().useLayoutEffect(e,t)},t.useMemo=function(e,t){return F().useMemo(e,t)},t.useReducer=function(e,t,n){return F().useReducer(e,t,n)},t.useRef=function(e){return F().useRef(e)},t.useState=function(e){return F().useState(e)},t.version="16.13.1"},function(e,t,n){"use strict";
/** @license React v16.13.1
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(0),i=n(190),o=n(594);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=!1,u=null,c=!1,l=null,f={onError:function(e){s=!0,u=e}};function h(e,t,n,r,i,o,a,c,l){s=!1,u=null,function(e,t,n,r,i,o,a,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}.apply(f,arguments)}var p=null,d=null,m=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=m(n),function(e,t,n,r,i,o,f,p,d){if(h.apply(this,arguments),s){if(!s)throw Error(a(198));var m=u;s=!1,u=null,c||(c=!0,l=m)}}(r,t,void 0,e),e.currentTarget=null}var g=null,y={};function b(){if(g)for(var e in y){var t=y[e],n=g.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!_[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in _[n]=t,n=t.eventTypes){var i=void 0,o=n[r],s=t,u=r;if(w.hasOwnProperty(u))throw Error(a(99,u));w[u]=o;var c=o.phasedRegistrationNames;if(c){for(i in c)c.hasOwnProperty(i)&&x(c[i],s,u);i=!0}else o.registrationName?(x(o.registrationName,s,u),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function x(e,t,n){if(E[e])throw Error(a(100,e));E[e]=t,S[e]=t.eventTypes[n].dependencies}var _=[],w={},E={},S={};function T(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!y.hasOwnProperty(t)||y[t]!==r){if(y[t])throw Error(a(102,t));y[t]=r,n=!0}}n&&b()}var M=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),O=null,A=null,k=null;function C(e){if(e=d(e)){if("function"!=typeof O)throw Error(a(280));var t=e.stateNode;t&&(t=p(t),O(e.stateNode,e.type,t))}}function P(e){A?k?k.push(e):k=[e]:A=e}function L(){if(A){var e=A,t=k;if(k=A=null,C(e),t)for(e=0;e<t.length;e++)C(t[e])}}function R(e,t){return e(t)}function j(e,t,n,r,i){return e(t,n,r,i)}function N(){}var I=R,D=!1,B=!1;function F(){null===A&&null===k||(N(),L())}function U(e,t,n){if(B)return e(t,n);B=!0;try{return I(e,t,n)}finally{B=!1,F()}}var z=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H=Object.prototype.hasOwnProperty,G={},W={};function V(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){q[e]=new V(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];q[t]=new V(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){q[e]=new V(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){q[e]=new V(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){q[e]=new V(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){q[e]=new V(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){q[e]=new V(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){q[e]=new V(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){q[e]=new V(e,5,!1,e.toLowerCase(),null,!1)});var Y=/[\-:]([a-z])/g;function X(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Y,X);q[t]=new V(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Y,X);q[t]=new V(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Y,X);q[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){q[e]=new V(e,1,!1,e.toLowerCase(),null,!1)}),q.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){q[e]=new V(e,1,!1,e.toLowerCase(),null,!0)});var Z=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function J(e,t,n,r){var i=q.hasOwnProperty(t)?q[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!H.call(W,e)||!H.call(G,e)&&(z.test(e)?W[e]=!0:(G[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Z.hasOwnProperty("ReactCurrentDispatcher")||(Z.ReactCurrentDispatcher={current:null}),Z.hasOwnProperty("ReactCurrentBatchConfig")||(Z.ReactCurrentBatchConfig={suspense:null});var Q=/^(.*)[\\\/]/,K="function"==typeof Symbol&&Symbol.for,$=K?Symbol.for("react.element"):60103,ee=K?Symbol.for("react.portal"):60106,te=K?Symbol.for("react.fragment"):60107,ne=K?Symbol.for("react.strict_mode"):60108,re=K?Symbol.for("react.profiler"):60114,ie=K?Symbol.for("react.provider"):60109,oe=K?Symbol.for("react.context"):60110,ae=K?Symbol.for("react.concurrent_mode"):60111,se=K?Symbol.for("react.forward_ref"):60112,ue=K?Symbol.for("react.suspense"):60113,ce=K?Symbol.for("react.suspense_list"):60120,le=K?Symbol.for("react.memo"):60115,fe=K?Symbol.for("react.lazy"):60116,he=K?Symbol.for("react.block"):60121,pe="function"==typeof Symbol&&Symbol.iterator;function de(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=pe&&e[pe]||e["@@iterator"])?e:null}function me(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case te:return"Fragment";case ee:return"Portal";case re:return"Profiler";case ne:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case oe:return"Context.Consumer";case ie:return"Context.Provider";case se:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case le:return me(e.type);case he:return me(e.render);case fe:if(e=1===e._status?e._result:null)return me(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=me(e.type);n=null,r&&(n=me(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Q,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function ge(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function be(e){e._valueTracker||(e._valueTracker=function(e){var t=ye(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function xe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ye(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function _e(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function we(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ge(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ee(e,t){null!=(t=t.checked)&&J(e,"checked",t,!1)}function Se(e,t){Ee(e,t);var n=ge(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Me(e,t.type,n):t.hasOwnProperty("defaultValue")&&Me(e,t.type,ge(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Me(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function Ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ge(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ke(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ce(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ge(n)}}function Pe(e,t){var n=ge(t.value),r=ge(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Re="http://www.w3.org/1999/xhtml",je="http://www.w3.org/2000/svg";function Ne(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ie(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ne(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var De,Be,Fe=(Be=function(e,t){if(e.namespaceURI!==je||"innerHTML"in e)e.innerHTML=t;else{for((De=De||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=De.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return Be(e,t)})}:Be);function Ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function ze(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var He={animationend:ze("Animation","AnimationEnd"),animationiteration:ze("Animation","AnimationIteration"),animationstart:ze("Animation","AnimationStart"),transitionend:ze("Transition","TransitionEnd")},Ge={},We={};function Ve(e){if(Ge[e])return Ge[e];if(!He[e])return e;var t,n=He[e];for(t in n)if(n.hasOwnProperty(t)&&t in We)return Ge[e]=n[t];return e}M&&(We=document.createElement("div").style,"AnimationEvent"in window||(delete He.animationend.animation,delete He.animationiteration.animation,delete He.animationstart.animation),"TransitionEvent"in window||delete He.transitionend.transition);var qe=Ve("animationend"),Ye=Ve("animationiteration"),Xe=Ve("animationstart"),Ze=Ve("transitionend"),Je="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qe=new("function"==typeof WeakMap?WeakMap:Map);function Ke(e){var t=Qe.get(e);return void 0===t&&(t=new Map,Qe.set(e,t)),t}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if($e(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return tt(i),e;if(o===r)return tt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(ot=rt(ot,e)),e=ot,ot=null,e){if(it(e,at),ot)throw Error(a(95));if(c)throw e=l,c=!1,l=null,e}}function ut(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!M)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var lt=[];function ft(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>lt.length&&lt.push(e)}function ht(e,t,n,r){if(lt.length){var i=lt.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=kn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=ut(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,u=0;u<_.length;u++){var c=_[u];c&&(c=c.extractEvents(r,t,o,i,a))&&(s=rt(s,c))}st(s)}}function dt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Xt(t,"scroll",!0);break;case"focus":case"blur":Xt(t,"focus",!0),Xt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Xt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Je.indexOf(e)&&Yt(e,t)}n.set(e,null)}}var mt,vt,gt,yt=!1,bt=[],xt=null,_t=null,wt=null,Et=new Map,St=new Map,Tt=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ot="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function At(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function kt(e,t){switch(e){case"focus":case"blur":xt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":wt=null;break;case"pointerover":case"pointerout":Et.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function Ct(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=At(t,n,r,i,o),null!==t&&(null!==(t=Cn(t))&&vt(t)),e):(e.eventSystemFlags|=r,e)}function Pt(e){var t=kn(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,function(){gt(n)})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Cn(t);return null!==n&&vt(n),e.blockedOn=t,!1}return!0}function Rt(e,t,n){Lt(e)&&n.delete(t)}function jt(){for(yt=!1;0<bt.length;){var e=bt[0];if(null!==e.blockedOn){null!==(e=Cn(e.blockedOn))&&mt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:bt.shift()}null!==xt&&Lt(xt)&&(xt=null),null!==_t&&Lt(_t)&&(_t=null),null!==wt&&Lt(wt)&&(wt=null),Et.forEach(Rt),St.forEach(Rt)}function Nt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,jt)))}function It(e){function t(t){return Nt(t,e)}if(0<bt.length){Nt(bt[0],e);for(var n=1;n<bt.length;n++){var r=bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==xt&&Nt(xt,e),null!==_t&&Nt(_t,e),null!==wt&&Nt(wt,e),Et.forEach(t),St.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)Pt(n),null===n.blockedOn&&Tt.shift()}var Dt={},Bt=new Map,Ft=new Map,Ut=["abort","abort",qe,"animationEnd",Ye,"animationIteration",Xe,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ze,"transitionEnd","waiting","waiting"];function zt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Ft.set(r,t),Bt.set(r,o),Dt[i]=o}}zt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),zt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),zt(Ut,2);for(var Ht="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Gt=0;Gt<Ht.length;Gt++)Ft.set(Ht[Gt],0);var Wt=o.unstable_UserBlockingPriority,Vt=o.unstable_runWithPriority,qt=!0;function Yt(e,t){Xt(t,e,!1)}function Xt(e,t,n){var r=Ft.get(t);switch(void 0===r?2:r){case 0:r=function(e,t,n,r){D||N();var i=Zt,o=D;D=!0;try{j(i,e,t,n,r)}finally{(D=o)||F()}}.bind(null,t,1,e);break;case 1:r=function(e,t,n,r){Vt(Wt,Zt.bind(null,e,t,n,r))}.bind(null,t,1,e);break;default:r=Zt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Zt(e,t,n,r){if(qt)if(0<bt.length&&-1<Mt.indexOf(e))e=At(null,e,t,n,r),bt.push(e);else{var i=Jt(e,t,n,r);if(null===i)kt(e,r);else if(-1<Mt.indexOf(e))e=At(i,e,t,n,r),bt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return xt=Ct(xt,e,t,n,r,i),!0;case"dragenter":return _t=Ct(_t,e,t,n,r,i),!0;case"mouseover":return wt=Ct(wt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Et.set(o,Ct(Et.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,St.set(o,Ct(St.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){kt(e,r),e=ht(e,r,null,t);try{U(pt,e)}finally{ft(e)}}}}function Jt(e,t,n,r){if(null!==(n=kn(n=ut(r)))){var i=$e(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=et(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=ht(e,r,n,t);try{U(pt,e)}finally{ft(e)}return null}var Qt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Kt=["Webkit","ms","Moz","O"];function $t(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Qt.hasOwnProperty(e)&&Qt[e]?(""+t).trim():t+"px"}function en(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=$t(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Qt).forEach(function(e){Kt.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qt[t]=Qt[e]})});var tn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nn(e,t){if(t){if(tn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function rn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var on=Re;function an(e,t){var n=Ke(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var r=0;r<t.length;r++)dt(t[r],e,n)}function sn(){}function un(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ln(e,t){var n,r=cn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cn(r)}}function fn(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pn="$",dn="/$",mn="$?",vn="$!",gn=null,yn=null;function bn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function xn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var _n="function"==typeof setTimeout?setTimeout:void 0,wn="function"==typeof clearTimeout?clearTimeout:void 0;function En(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Sn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===pn||n===vn||n===mn){if(0===t)return e;t--}else n===dn&&t++}e=e.previousSibling}return null}var Tn=Math.random().toString(36).slice(2),Mn="__reactInternalInstance$"+Tn,On="__reactEventHandlers$"+Tn,An="__reactContainere$"+Tn;function kn(e){var t=e[Mn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[An]||n[Mn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Sn(e);null!==e;){if(n=e[Mn])return n;e=Sn(e)}return t}n=(e=n).parentNode}return null}function Cn(e){return!(e=e[Mn]||e[An])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Pn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Ln(e){return e[On]||null}function Rn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function jn(e,t){var n=e.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Nn(e,t,n){(t=jn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function In(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Rn(t);for(t=n.length;0<t--;)Nn(n[t],"captured",e);for(t=0;t<n.length;t++)Nn(n[t],"bubbled",e)}}function Dn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=jn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Bn(e){e&&e.dispatchConfig.registrationName&&Dn(e._targetInst,null,e)}function Fn(e){it(e,In)}var Un=null,zn=null,Hn=null;function Gn(){if(Hn)return Hn;var e,t,n=zn,r=n.length,i="value"in Un?Un.value:Un.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Hn=i.slice(e,1<t?1-t:void 0)}function Wn(){return!0}function Vn(){return!1}function qn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Wn:Vn,this.isPropagationStopped=Vn,this}function Yn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Xn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Zn(e){e.eventPool=[],e.getPooled=Yn,e.release=Xn}i(qn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Wn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Wn)},persist:function(){this.isPersistent=Wn},isPersistent:Vn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Vn,this._dispatchInstances=this._dispatchListeners=null}}),qn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},qn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Zn(n),n},Zn(qn);var Jn=qn.extend({data:null}),Qn=qn.extend({data:null}),Kn=[9,13,27,32],$n=M&&"CompositionEvent"in window,er=null;M&&"documentMode"in document&&(er=document.documentMode);var tr=M&&"TextEvent"in window&&!er,nr=M&&(!$n||er&&8<er&&11>=er),rr=String.fromCharCode(32),ir={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},or=!1;function ar(e,t){switch(e){case"keyup":return-1!==Kn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function sr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ur=!1;var cr={eventTypes:ir,extractEvents:function(e,t,n,r){var i;if($n)e:{switch(e){case"compositionstart":var o=ir.compositionStart;break e;case"compositionend":o=ir.compositionEnd;break e;case"compositionupdate":o=ir.compositionUpdate;break e}o=void 0}else ur?ar(e,n)&&(o=ir.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=ir.compositionStart);return o?(nr&&"ko"!==n.locale&&(ur||o!==ir.compositionStart?o===ir.compositionEnd&&ur&&(i=Gn()):(zn="value"in(Un=r)?Un.value:Un.textContent,ur=!0)),o=Jn.getPooled(o,t,n,r),i?o.data=i:null!==(i=sr(n))&&(o.data=i),Fn(o),i=o):i=null,(e=tr?function(e,t){switch(e){case"compositionend":return sr(t);case"keypress":return 32!==t.which?null:(or=!0,rr);case"textInput":return(e=t.data)===rr&&or?null:e;default:return null}}(e,n):function(e,t){if(ur)return"compositionend"===e||!$n&&ar(e,t)?(e=Gn(),Hn=zn=Un=null,ur=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nr&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Qn.getPooled(ir.beforeInput,t,n,r)).data=e,Fn(t)):t=null,null===i?t:null===t?i:[i,t]}},lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lr[e.type]:"textarea"===t}var hr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function pr(e,t,n){return(e=qn.getPooled(hr.change,e,t,n)).type="change",P(n),Fn(e),e}var dr=null,mr=null;function vr(e){st(e)}function gr(e){if(xe(Pn(e)))return e}function yr(e,t){if("change"===e)return t}var br=!1;function xr(){dr&&(dr.detachEvent("onpropertychange",_r),mr=dr=null)}function _r(e){if("value"===e.propertyName&&gr(mr))if(e=pr(mr,e,ut(e)),D)st(e);else{D=!0;try{R(vr,e)}finally{D=!1,F()}}}function wr(e,t,n){"focus"===e?(xr(),mr=n,(dr=t).attachEvent("onpropertychange",_r)):"blur"===e&&xr()}function Er(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return gr(mr)}function Sr(e,t){if("click"===e)return gr(t)}function Tr(e,t){if("input"===e||"change"===e)return gr(t)}M&&(br=ct("input")&&(!document.documentMode||9<document.documentMode));var Mr={eventTypes:hr,_isInputEventSupported:br,extractEvents:function(e,t,n,r){var i=t?Pn(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=yr;else if(fr(i))if(br)a=Tr;else{a=Er;var s=wr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Sr);if(a&&(a=a(e,t)))return pr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Me(i,"number",i.value)}},Or=qn.extend({view:null,detail:null}),Ar={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ar[e])&&!!t[e]}function Cr(){return kr}var Pr=0,Lr=0,Rr=!1,jr=!1,Nr=Or.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Cr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Pr;return Pr=e.screenX,Rr?"mousemove"===e.type?e.screenX-t:0:(Rr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Lr;return Lr=e.screenY,jr?"mousemove"===e.type?e.screenY-t:0:(jr=!0,0)}}),Ir=Nr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Dr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Br={eventTypes:Dr,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?kn(t):null)&&(t!==$e(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Nr,u=Dr.mouseLeave,c=Dr.mouseEnter,l="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Ir,u=Dr.pointerLeave,c=Dr.pointerEnter,l="pointer");if(e=null==a?o:Pn(a),o=null==t?o:Pn(t),(u=s.getPooled(u,a,n,r)).type=l+"leave",u.target=e,u.relatedTarget=o,(n=s.getPooled(c,t,n,r)).type=l+"enter",n.target=o,n.relatedTarget=e,l=t,(r=a)&&l)e:{for(c=l,a=0,e=s=r;e;e=Rn(e))a++;for(e=0,t=c;t;t=Rn(t))e++;for(;0<a-e;)s=Rn(s),a--;for(;0<e-a;)c=Rn(c),e--;for(;a--;){if(s===c||s===c.alternate)break e;s=Rn(s),c=Rn(c)}s=null}else s=null;for(c=s,s=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)s.push(r),r=Rn(r);for(r=[];l&&l!==c&&(null===(a=l.alternate)||a!==c);)r.push(l),l=Rn(l);for(l=0;l<s.length;l++)Dn(s[l],"bubbled",u);for(l=r.length;0<l--;)Dn(r[l],"captured",n);return 0==(64&i)?[u]:[u,n]}};var Fr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ur=Object.prototype.hasOwnProperty;function zr(e,t){if(Fr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Ur.call(t,n[r])||!Fr(e[n[r]],t[n[r]]))return!1;return!0}var Hr=M&&"documentMode"in document&&11>=document.documentMode,Gr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Wr=null,Vr=null,qr=null,Yr=!1;function Xr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Yr||null==Wr||Wr!==un(n)?null:("selectionStart"in(n=Wr)&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},qr&&zr(qr,n)?null:(qr=n,(e=qn.getPooled(Gr.select,Vr,e,t)).type="select",e.target=Wr,Fn(e),e))}var Zr={eventTypes:Gr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Ke(i),o=S.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?Pn(t):window,e){case"focus":(fr(i)||"true"===i.contentEditable)&&(Wr=i,Vr=t,qr=null);break;case"blur":qr=Vr=Wr=null;break;case"mousedown":Yr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yr=!1,Xr(n,r);case"selectionchange":if(Hr)break;case"keydown":case"keyup":return Xr(n,r)}return null}},Jr=qn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qr=qn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kr=Or.extend({relatedTarget:null});function $r(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ei={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ti={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ni=Or.extend({key:function(e){if(e.key){var t=ei[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=$r(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ti[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Cr,charCode:function(e){return"keypress"===e.type?$r(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?$r(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ri=Nr.extend({dataTransfer:null}),ii=Or.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Cr}),oi=qn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ai=Nr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),si={eventTypes:Dt,extractEvents:function(e,t,n,r){var i=Bt.get(e);if(!i)return null;switch(e){case"keypress":if(0===$r(n))return null;case"keydown":case"keyup":e=ni;break;case"blur":case"focus":e=Kr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Nr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ri;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ii;break;case qe:case Ye:case Xe:e=Jr;break;case Ze:e=oi;break;case"scroll":e=Or;break;case"wheel":e=ai;break;case"copy":case"cut":case"paste":e=Qr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Ir;break;default:e=qn}return Fn(t=e.getPooled(i,t,n,r)),t}};if(g)throw Error(a(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),b(),p=Ln,d=Cn,m=Pn,T({SimpleEventPlugin:si,EnterLeaveEventPlugin:Br,ChangeEventPlugin:Mr,SelectEventPlugin:Zr,BeforeInputEventPlugin:cr});var ui=[],ci=-1;function li(e){0>ci||(e.current=ui[ci],ui[ci]=null,ci--)}function fi(e,t){ui[++ci]=e.current,e.current=t}var hi={},pi={current:hi},di={current:!1},mi=hi;function vi(e,t){var n=e.type.contextTypes;if(!n)return hi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gi(e){return null!=(e=e.childContextTypes)}function yi(){li(di),li(pi)}function bi(e,t,n){if(pi.current!==hi)throw Error(a(168));fi(pi,t),fi(di,n)}function xi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,me(t)||"Unknown",o));return i({},n,{},r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hi,mi=pi.current,fi(pi,e),fi(di,di.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=xi(e,t,mi),r.__reactInternalMemoizedMergedChildContext=e,li(di),li(pi),fi(pi,e)):li(di),fi(di,n)}var Ei=o.unstable_runWithPriority,Si=o.unstable_scheduleCallback,Ti=o.unstable_cancelCallback,Mi=o.unstable_requestPaint,Oi=o.unstable_now,Ai=o.unstable_getCurrentPriorityLevel,ki=o.unstable_ImmediatePriority,Ci=o.unstable_UserBlockingPriority,Pi=o.unstable_NormalPriority,Li=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,ji={},Ni=o.unstable_shouldYield,Ii=void 0!==Mi?Mi:function(){},Di=null,Bi=null,Fi=!1,Ui=Oi(),zi=1e4>Ui?Oi:function(){return Oi()-Ui};function Hi(){switch(Ai()){case ki:return 99;case Ci:return 98;case Pi:return 97;case Li:return 96;case Ri:return 95;default:throw Error(a(332))}}function Gi(e){switch(e){case 99:return ki;case 98:return Ci;case 97:return Pi;case 96:return Li;case 95:return Ri;default:throw Error(a(332))}}function Wi(e,t){return e=Gi(e),Ei(e,t)}function Vi(e,t,n){return e=Gi(e),Si(e,t,n)}function qi(e){return null===Di?(Di=[e],Bi=Si(ki,Xi)):Di.push(e),ji}function Yi(){if(null!==Bi){var e=Bi;Bi=null,Ti(e)}Xi()}function Xi(){if(!Fi&&null!==Di){Fi=!0;var e=0;try{var t=Di;Wi(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Di=null}catch(t){throw null!==Di&&(Di=Di.slice(e+1)),Si(ki,Yi),t}finally{Fi=!1}}}function Zi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Ji(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Qi={current:null},Ki=null,$i=null,eo=null;function to(){eo=$i=Ki=null}function no(e){var t=Qi.current;li(Qi),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function io(e,t){Ki=e,eo=$i=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(La=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===$i){if(null===Ki)throw Error(a(308));$i=t,Ki.dependencies={expirationTime:0,firstContext:t,responders:null}}else $i=$i.next=t;return e._currentValue}var ao=!1;function so(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function uo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function co(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function lo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fo(e,t){var n=e.alternate;null!==n&&uo(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function ho(e,t,n,r){var o=e.updateQueue;ao=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var u=a.next;a.next=s.next,s.next=u}a=s,o.shared.pending=null,null!==(u=e.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=s))}if(null!==a){u=a.next;var c=o.baseState,l=0,f=null,h=null,p=null;if(null!==u)for(var d=u;;){if((s=d.expirationTime)<r){var m={expirationTime:d.expirationTime,suspenseConfig:d.suspenseConfig,tag:d.tag,payload:d.payload,callback:d.callback,next:null};null===p?(h=p=m,f=c):p=p.next=m,s>l&&(l=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:d.suspenseConfig,tag:d.tag,payload:d.payload,callback:d.callback,next:null}),mu(s,d.suspenseConfig);e:{var v=e,g=d;switch(s=t,m=n,g.tag){case 1:if("function"==typeof(v=g.payload)){c=v.call(m,c,s);break e}c=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null==(s="function"==typeof(v=g.payload)?v.call(m,c,s):v))break e;c=i({},c,s);break e;case 2:ao=!0}}null!==d.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[d]:s.push(d))}if(null===(d=d.next)||d===u){if(null===(s=o.shared.pending))break;d=a.next=s.next,s.next=u,o.baseQueue=a=s,o.shared.pending=null}}null===p?f=c:p.next=h,o.baseState=f,o.baseQueue=p,vu(l),e.expirationTime=l,e.memoizedState=c}}function po(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var mo=Z.ReactCurrentBatchConfig,vo=(new r.Component).refs;function go(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var yo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=ru(),i=mo.suspense;(i=co(r=iu(r,e,i),i)).payload=t,null!=n&&(i.callback=n),lo(e,i),ou(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=ru(),i=mo.suspense;(i=co(r=iu(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),lo(e,i),ou(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ru(),r=mo.suspense;(r=co(n=iu(n,e,r),r)).tag=2,null!=t&&(r.callback=t),lo(e,r),ou(e,n)}};function bo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!zr(n,r)||!zr(i,o))}function xo(e,t,n){var r=!1,i=hi,o=t.contextType;return"object"==typeof o&&null!==o?o=oo(o):(i=gi(t)?mi:pi.current,o=(r=null!=(r=t.contextTypes))?vi(e,i):hi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function _o(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yo.enqueueReplaceState(t,t.state,null)}function wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=vo,so(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=oo(o):(o=gi(t)?mi:pi.current,i.context=vi(e,o)),ho(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(go(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&yo.enqueueReplaceState(i,i.state,null),ho(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var Eo=Array.isArray;function So(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===vo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function To(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Mo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=ju(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Du(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=So(e,t,n),r.return=e,r):((r=Nu(n.type,n.key,n.props,null,e.mode,r)).ref=So(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Iu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case $:return(n=Nu(t.type,t.key,t.props,null,e.mode,n)).ref=So(e,null,t),n.return=e,n;case ee:return(t=Bu(t,e.mode,n)).return=e,t}if(Eo(t)||de(t))return(t=Iu(t,e.mode,n,null)).return=e,t;To(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case $:return n.key===i?n.type===te?f(e,t,n.props.children,r,i):c(e,t,n,r):null;case ee:return n.key===i?l(e,t,n,r):null}if(Eo(n)||de(n))return null!==i?null:f(e,t,n,r,null);To(e,n)}return null}function d(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case $:return e=e.get(null===r.key?n:r.key)||null,r.type===te?f(t,e,r.props.children,i,r.key):c(t,e,r,i);case ee:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(Eo(r)||de(r))return f(t,e=e.get(n)||null,r,i,null);To(t,r)}return null}function m(i,a,s,u){for(var c=null,l=null,f=a,m=a=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=p(i,f,s[m],u);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(i,f),a=o(g,a,m),null===l?c=g:l.sibling=g,l=g,f=v}if(m===s.length)return n(i,f),c;if(null===f){for(;m<s.length;m++)null!==(f=h(i,s[m],u))&&(a=o(f,a,m),null===l?c=f:l.sibling=f,l=f);return c}for(f=r(i,f);m<s.length;m++)null!==(v=d(f,i,m,s[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=o(v,a,m),null===l?c=v:l.sibling=v,l=v);return e&&f.forEach(function(e){return t(i,e)}),c}function v(i,s,u,c){var l=de(u);if("function"!=typeof l)throw Error(a(150));if(null==(u=l.call(u)))throw Error(a(151));for(var f=l=null,m=s,v=s=0,g=null,y=u.next();null!==m&&!y.done;v++,y=u.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(i,m,y.value,c);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,v),null===f?l=b:f.sibling=b,f=b,m=g}if(y.done)return n(i,m),l;if(null===m){for(;!y.done;v++,y=u.next())null!==(y=h(i,y.value,c))&&(s=o(y,s,v),null===f?l=y:f.sibling=y,f=y);return l}for(m=r(i,m);!y.done;v++,y=u.next())null!==(y=d(m,i,v,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=o(y,s,v),null===f?l=y:f.sibling=y,f=y);return e&&m.forEach(function(e){return t(i,e)}),l}return function(e,r,o,u){var c="object"==typeof o&&null!==o&&o.type===te&&null===o.key;c&&(o=o.props.children);var l="object"==typeof o&&null!==o;if(l)switch(o.$$typeof){case $:e:{for(l=o.key,c=r;null!==c;){if(c.key===l){switch(c.tag){case 7:if(o.type===te){n(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}break;default:if(c.elementType===o.type){n(e,c.sibling),(r=i(c,o.props)).ref=So(e,c,o),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}o.type===te?((r=Iu(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=Nu(o.type,o.key,o.props,null,e.mode,u)).ref=So(e,r,o),u.return=e,e=u)}return s(e);case ee:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Bu(o,e.mode,u)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Du(o,e.mode,u)).return=e,e=r),s(e);if(Eo(o))return m(e,r,o,u);if(de(o))return v(e,r,o,u);if(l&&To(e,o),void 0===o&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Oo=Mo(!0),Ao=Mo(!1),ko={},Co={current:ko},Po={current:ko},Lo={current:ko};function Ro(e){if(e===ko)throw Error(a(174));return e}function jo(e,t){switch(fi(Lo,t),fi(Po,e),fi(Co,ko),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ie(null,"");break;default:t=Ie(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}li(Co),fi(Co,t)}function No(){li(Co),li(Po),li(Lo)}function Io(e){Ro(Lo.current);var t=Ro(Co.current),n=Ie(t,e.type);t!==n&&(fi(Po,e),fi(Co,n))}function Do(e){Po.current===e&&(li(Co),li(Po))}var Bo={current:0};function Fo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===mn||n.data===vn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Uo(e,t){return{responder:e,props:t}}var zo=Z.ReactCurrentDispatcher,Ho=Z.ReactCurrentBatchConfig,Go=0,Wo=null,Vo=null,qo=null,Yo=!1;function Xo(){throw Error(a(321))}function Zo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function Jo(e,t,n,r,i,o){if(Go=o,Wo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,zo.current=null===e||null===e.memoizedState?ba:xa,e=n(r,i),t.expirationTime===Go){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,qo=Vo=null,t.updateQueue=null,zo.current=_a,e=n(r,i)}while(t.expirationTime===Go)}if(zo.current=ya,t=null!==Vo&&null!==Vo.next,Go=0,qo=Vo=Wo=null,Yo=!1,t)throw Error(a(300));return e}function Qo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qo?Wo.memoizedState=qo=e:qo=qo.next=e,qo}function Ko(){if(null===Vo){var e=Wo.alternate;e=null!==e?e.memoizedState:null}else e=Vo.next;var t=null===qo?Wo.memoizedState:qo.next;if(null!==t)qo=t,Vo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Vo=e).memoizedState,baseState:Vo.baseState,baseQueue:Vo.baseQueue,queue:Vo.queue,next:null},null===qo?Wo.memoizedState=qo=e:qo=qo.next=e}return qo}function $o(e,t){return"function"==typeof t?t(e):t}function ea(e){var t=Ko(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Vo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=o=null,c=i;do{var l=c.expirationTime;if(l<Go){var f={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,l>Wo.expirationTime&&(Wo.expirationTime=l,vu(l))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),mu(l,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==i);null===u?o=r:u.next=s,Fr(r,t.memoizedState)||(La=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ta(e){var t=Ko(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Fr(o,t.memoizedState)||(La=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function na(e){var t=Qo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:$o,lastRenderedState:e}).dispatch=ga.bind(null,Wo,e),[t.memoizedState,e]}function ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Wo.updateQueue)?(t={lastEffect:null},Wo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ia(){return Ko().memoizedState}function oa(e,t,n,r){var i=Qo();Wo.effectTag|=e,i.memoizedState=ra(1|t,n,void 0,void 0===r?null:r)}function aa(e,t,n,r){var i=Ko();r=void 0===r?null:r;var o=void 0;if(null!==Vo){var a=Vo.memoizedState;if(o=a.destroy,null!==r&&Zo(r,a.deps))return void ra(t,n,o,r)}Wo.effectTag|=e,i.memoizedState=ra(1|t,n,o,r)}function sa(e,t){return oa(516,4,e,t)}function ua(e,t){return aa(516,4,e,t)}function ca(e,t){return aa(4,2,e,t)}function la(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function fa(e,t,n){return n=null!=n?n.concat([e]):null,aa(4,2,la.bind(null,t,e),n)}function ha(){}function pa(e,t){return Qo().memoizedState=[e,void 0===t?null:t],e}function da(e,t){var n=Ko();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Zo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ma(e,t){var n=Ko();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Zo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function va(e,t,n){var r=Hi();Wi(98>r?98:r,function(){e(!0)}),Wi(97<r?97:r,function(){var r=Ho.suspense;Ho.suspense=void 0===t?null:t;try{e(!1),n()}finally{Ho.suspense=r}})}function ga(e,t,n){var r=ru(),i=mo.suspense;i={expirationTime:r=iu(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Wo||null!==o&&o===Wo)Yo=!0,i.expirationTime=Go,Wo.expirationTime=Go;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,Fr(s,a))return}catch(e){}ou(e,r)}}var ya={readContext:oo,useCallback:Xo,useContext:Xo,useEffect:Xo,useImperativeHandle:Xo,useLayoutEffect:Xo,useMemo:Xo,useReducer:Xo,useRef:Xo,useState:Xo,useDebugValue:Xo,useResponder:Xo,useDeferredValue:Xo,useTransition:Xo},ba={readContext:oo,useCallback:pa,useContext:oo,useEffect:sa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oa(4,2,la.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oa(4,2,e,t)},useMemo:function(e,t){var n=Qo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ga.bind(null,Wo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Qo().memoizedState=e},useState:na,useDebugValue:ha,useResponder:Uo,useDeferredValue:function(e,t){var n=na(e),r=n[0],i=n[1];return sa(function(){var n=Ho.suspense;Ho.suspense=void 0===t?null:t;try{i(e)}finally{Ho.suspense=n}},[e,t]),r},useTransition:function(e){var t=na(!1),n=t[0];return t=t[1],[pa(va.bind(null,t,e),[t,e]),n]}},xa={readContext:oo,useCallback:da,useContext:oo,useEffect:ua,useImperativeHandle:fa,useLayoutEffect:ca,useMemo:ma,useReducer:ea,useRef:ia,useState:function(){return ea($o)},useDebugValue:ha,useResponder:Uo,useDeferredValue:function(e,t){var n=ea($o),r=n[0],i=n[1];return ua(function(){var n=Ho.suspense;Ho.suspense=void 0===t?null:t;try{i(e)}finally{Ho.suspense=n}},[e,t]),r},useTransition:function(e){var t=ea($o),n=t[0];return t=t[1],[da(va.bind(null,t,e),[t,e]),n]}},_a={readContext:oo,useCallback:da,useContext:oo,useEffect:ua,useImperativeHandle:fa,useLayoutEffect:ca,useMemo:ma,useReducer:ta,useRef:ia,useState:function(){return ta($o)},useDebugValue:ha,useResponder:Uo,useDeferredValue:function(e,t){var n=ta($o),r=n[0],i=n[1];return ua(function(){var n=Ho.suspense;Ho.suspense=void 0===t?null:t;try{i(e)}finally{Ho.suspense=n}},[e,t]),r},useTransition:function(e){var t=ta($o),n=t[0];return t=t[1],[da(va.bind(null,t,e),[t,e]),n]}},wa=null,Ea=null,Sa=!1;function Ta(e,t){var n=Lu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ma(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Oa(e){if(Sa){var t=Ea;if(t){var n=t;if(!Ma(e,t)){if(!(t=En(n.nextSibling))||!Ma(e,t))return e.effectTag=-1025&e.effectTag|2,Sa=!1,void(wa=e);Ta(wa,n)}wa=e,Ea=En(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Sa=!1,wa=e}}function Aa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wa=e}function ka(e){if(e!==wa)return!1;if(!Sa)return Aa(e),Sa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!xn(t,e.memoizedProps))for(t=Ea;t;)Ta(e,t),t=En(t.nextSibling);if(Aa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===dn){if(0===t){Ea=En(e.nextSibling);break e}t--}else n!==pn&&n!==vn&&n!==mn||t++}e=e.nextSibling}Ea=null}}else Ea=wa?En(e.stateNode.nextSibling):null;return!0}function Ca(){Ea=wa=null,Sa=!1}var Pa=Z.ReactCurrentOwner,La=!1;function Ra(e,t,n,r){t.child=null===e?Ao(t,null,n,r):Oo(t,e.child,n,r)}function ja(e,t,n,r,i){n=n.render;var o=t.ref;return io(t,i),r=Jo(e,t,n,r,o,i),null===e||La?(t.effectTag|=1,Ra(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Qa(e,t,i))}function Na(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Ru(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nu(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ia(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:zr)(i,r)&&e.ref===t.ref)?Qa(e,t,o):(t.effectTag|=1,(e=ju(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ia(e,t,n,r,i,o){return null!==e&&zr(e.memoizedProps,r)&&e.ref===t.ref&&(La=!1,i<o)?(t.expirationTime=e.expirationTime,Qa(e,t,o)):Ba(e,t,n,r,o)}function Da(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ba(e,t,n,r,i){var o=gi(n)?mi:pi.current;return o=vi(t,o),io(t,i),n=Jo(e,t,n,r,o,i),null===e||La?(t.effectTag|=1,Ra(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Qa(e,t,i))}function Fa(e,t,n,r,i){if(gi(n)){var o=!0;_i(t)}else o=!1;if(io(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),xo(t,n,r),wo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=oo(c):c=vi(t,c=gi(n)?mi:pi.current);var l=n.getDerivedStateFromProps,f="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==c)&&_o(t,a,r,c),ao=!1;var h=t.memoizedState;a.state=h,ho(t,r,a,i),u=t.memoizedState,s!==r||h!==u||di.current||ao?("function"==typeof l&&(go(t,n,l,r),u=t.memoizedState),(s=ao||bo(t,n,s,r,h,u,c))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,uo(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Ji(t.type,s),u=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=oo(c):c=vi(t,c=gi(n)?mi:pi.current),(f="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==c)&&_o(t,a,r,c),ao=!1,u=t.memoizedState,a.state=u,ho(t,r,a,i),h=t.memoizedState,s!==r||u!==h||di.current||ao?("function"==typeof l&&(go(t,n,l,r),h=t.memoizedState),(l=ao||bo(t,n,s,r,u,h,c))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=c,r=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Ua(e,t,n,r,o,i)}function Ua(e,t,n,r,i,o){Da(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&wi(t,n,!1),Qa(e,t,o);r=t.stateNode,Pa.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Oo(t,e.child,null,o),t.child=Oo(t,null,s,o)):Ra(e,t,s,o),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function za(e){var t=e.stateNode;t.pendingContext?bi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bi(0,t.context,!1),jo(e,t.containerInfo)}var Ha,Ga,Wa,Va,qa={dehydrated:null,retryTime:0};function Ya(e,t,n){var r,i=t.mode,o=t.pendingProps,a=Bo.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),fi(Bo,1&a),null===e){if(void 0!==o.fallback&&Oa(t),s){if(s=o.fallback,(o=Iu(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Iu(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=qa,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Ao(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=ju(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=ju(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=qa,t.child=n,i}return n=Oo(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=Iu(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Iu(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=qa,t.child=o,n}return t.memoizedState=null,t.child=Oo(t,e,o.children,n)}function Xa(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ro(e.return,t)}function Za(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Ja(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ra(e,t,r.children,n),0!=(2&(r=Bo.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xa(e,n);else if(19===e.tag)Xa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fi(Bo,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Fo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Za(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Fo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Za(t,!0,n,null,o,t.lastEffect);break;case"together":Za(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Qa(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&vu(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=ju(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ju(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ka(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $a(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return gi(t.type)&&yi(),null;case 3:return No(),li(di),li(pi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!ka(t)||(t.effectTag|=4),Ga(t),null;case 5:Do(t),n=Ro(Lo.current);var o=t.type;if(null!==e&&null!=t.stateNode)Wa(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ro(Co.current),ka(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[Mn]=t,r[On]=s,o){case"iframe":case"object":case"embed":Yt("load",r);break;case"video":case"audio":for(e=0;e<Je.length;e++)Yt(Je[e],r);break;case"source":Yt("error",r);break;case"img":case"image":case"link":Yt("error",r),Yt("load",r);break;case"form":Yt("reset",r),Yt("submit",r);break;case"details":Yt("toggle",r);break;case"input":we(r,s),Yt("invalid",r),an(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Yt("invalid",r),an(n,"onChange");break;case"textarea":Ce(r,s),Yt("invalid",r),an(n,"onChange")}for(var u in nn(o,s),e=null,s)if(s.hasOwnProperty(u)){var c=s[u];"children"===u?"string"==typeof c?r.textContent!==c&&(e=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(e=["children",""+c]):E.hasOwnProperty(u)&&null!=c&&an(n,u)}switch(o){case"input":be(r),Te(r,s,!0);break;case"textarea":be(r),Le(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=sn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,e===on&&(e=Ne(o)),e===on?"script"===o?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(o,{is:r.is}):(e=u.createElement(o),"select"===o&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,o),e[Mn]=t,e[On]=r,Ha(e,t,!1,!1),t.stateNode=e,u=rn(o,r),o){case"iframe":case"object":case"embed":Yt("load",e),c=r;break;case"video":case"audio":for(c=0;c<Je.length;c++)Yt(Je[c],e);c=r;break;case"source":Yt("error",e),c=r;break;case"img":case"image":case"link":Yt("error",e),Yt("load",e),c=r;break;case"form":Yt("reset",e),Yt("submit",e),c=r;break;case"details":Yt("toggle",e),c=r;break;case"input":we(e,r),c=_e(e,r),Yt("invalid",e),an(n,"onChange");break;case"option":c=Oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=i({},r,{value:void 0}),Yt("invalid",e),an(n,"onChange");break;case"textarea":Ce(e,r),c=ke(e,r),Yt("invalid",e),an(n,"onChange");break;default:c=r}nn(o,c);var l=c;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];"style"===s?en(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&Fe(e,f):"children"===s?"string"==typeof f?("textarea"!==o||""!==f)&&Ue(e,f):"number"==typeof f&&Ue(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(E.hasOwnProperty(s)?null!=f&&an(n,s):null!=f&&J(e,s,f,u))}switch(o){case"input":be(e),Te(e,r,!1);break;case"textarea":be(e),Le(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ge(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ae(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=sn)}bn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Va(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ro(Lo.current),Ro(Co.current),ka(t)?(n=t.stateNode,r=t.memoizedProps,n[Mn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Mn]=t,t.stateNode=n)}return null;case 13:return li(Bo),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&ka(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Bo.current)?Ds===Os&&(Ds=Cs):(Ds!==Os&&Ds!==Cs||(Ds=Ps),0!==Hs&&null!==js&&(zu(js,Is),Hu(js,Hs)))),(n||r)&&(t.effectTag|=4),null);case 4:return No(),Ga(t),null;case 10:return no(t),null;case 17:return gi(t.type)&&yi(),null;case 19:if(li(Bo),null===(r=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(s=r.rendering)){if(o)Ka(r,!1);else if(Ds!==Os||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Fo(s))){for(t.effectTag|=64,Ka(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return fi(Bo,1&Bo.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=Fo(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ka(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Ka(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=zi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=Bo.current,fi(Bo,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function es(e){switch(e.tag){case 1:gi(e.type)&&yi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(No(),li(di),li(pi),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Do(e),null;case 13:return li(Bo),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return li(Bo),null;case 4:return No(),null;case 10:return no(e),null;default:return null}}function ts(e,t){return{value:e,source:t,stack:ve(t)}}Ha=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ga=function(){},Wa=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,u,c=t.stateNode;switch(Ro(Co.current),e=null,n){case"input":a=_e(c,a),r=_e(c,r),e=[];break;case"option":a=Oe(c,a),r=Oe(c,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=ke(c,a),r=ke(c,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(c.onclick=sn)}for(s in nn(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(u in c=a[s])c.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(E.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var l=r[s];if(c=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&l!==c&&(null!=l||null!=c))if("style"===s)if(c){for(u in c)!c.hasOwnProperty(u)||l&&l.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in l)l.hasOwnProperty(u)&&c[u]!==l[u]&&(n||(n={}),n[u]=l[u])}else n||(e||(e=[]),e.push(s,n)),n=l;else"dangerouslySetInnerHTML"===s?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(e=e||[]).push(s,l)):"children"===s?c===l||"string"!=typeof l&&"number"!=typeof l||(e=e||[]).push(s,""+l):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(E.hasOwnProperty(s)?(null!=l&&an(o,s),e||c===l||(e=[])):(e=e||[]).push(s,l))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},Va=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var ns="function"==typeof WeakSet?WeakSet:Set;function rs(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&me(n.type),t=t.value,null!==e&&1===e.tag&&me(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function is(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ou(e,t)}else t.current=null}function os(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ji(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function as(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function ss(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function us(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void ss(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Ji(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&po(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}po(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&bn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&It(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function cs(e,t,n){switch("function"==typeof Cu&&Cu(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Wi(97<n?97:n,function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){Ou(i,e)}}e=e.next}while(e!==r)})}break;case 1:is(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ou(e,t)}}(t,n);break;case 5:is(t);break;case 4:ps(e,t,n)}}function ls(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ls(t)}function fs(e){return 5===e.tag||3===e.tag||4===e.tag}function hs(e){e:{for(var t=e.return;null!==t;){if(fs(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Ue(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||fs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode,n.insertBefore(t,r)):(n=r,n.appendChild(t)),r=r._reactRootContainer,null!=r||null!==n.onclick||(n.onclick=sn));else if(4!==i&&(t=t.child,null!==t))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&(t=t.child,null!==t))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function ps(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var u=e,c=o,l=n,f=c;;)if(cs(u,f,l),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break e;for(;null===f.sibling;){if(null===f.return||f.return===c)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(u=r,c=o.stateNode,8===u.nodeType?u.parentNode.removeChild(c):u.removeChild(c)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(cs(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function ds(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void as(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[On]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ee(n,r),rn(e,i),t=rn(e,r),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?en(n,u):"dangerouslySetInnerHTML"===s?Fe(n,u):"children"===s?Ue(n,u):J(n,s,u,t)}switch(e){case"input":Se(n,r);break;case"textarea":Pe(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ae(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ae(n,!!r.multiple,r.defaultValue,!0):Ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,It(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ws=zi()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=$t("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ms(t);case 19:return void ms(t);case 17:return}throw Error(a(163))}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ns),t.forEach(function(t){var r=function(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=iu(t=ru(),e,null)),null!==(e=au(e,t))&&uu(e)}.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}var vs="function"==typeof WeakMap?WeakMap:Map;function gs(e,t,n){(n=co(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Xs=r),rs(e,t)},n}function ys(e,t,n){(n=co(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return rs(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Zs?Zs=new Set([this]):Zs.add(this),rs(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var bs,xs=Math.ceil,_s=Z.ReactCurrentDispatcher,ws=Z.ReactCurrentOwner,Es=0,Ss=8,Ts=16,Ms=32,Os=0,As=1,ks=2,Cs=3,Ps=4,Ls=5,Rs=Es,js=null,Ns=null,Is=0,Ds=Os,Bs=null,Fs=1073741823,Us=1073741823,zs=null,Hs=0,Gs=!1,Ws=0,Vs=500,qs=null,Ys=!1,Xs=null,Zs=null,Js=!1,Qs=null,Ks=90,$s=null,eu=0,tu=null,nu=0;function ru(){return(Rs&(Ts|Ms))!==Es?1073741821-(zi()/10|0):0!==nu?nu:nu=1073741821-(zi()/10|0)}function iu(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Hi();if(0==(4&t))return 99===r?1073741823:1073741822;if((Rs&Ts)!==Es)return Is;if(null!==n)e=Zi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Zi(e,150,100);break;case 97:case 96:e=Zi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==js&&e===Is&&--e,e}function ou(e,t){if(50<eu)throw eu=0,tu=null,Error(a(185));if(null!==(e=au(e,t))){var n=Hi();1073741823===t?(Rs&Ss)!==Es&&(Rs&(Ts|Ms))===Es?cu(e):(uu(e),Rs===Es&&Yi()):uu(e),(4&Rs)===Es||98!==n&&99!==n||(null===$s?$s=new Map([[e,t]]):(void 0===(n=$s.get(e))||n>t)&&$s.set(e,t))}}function au(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(js===i&&(vu(t),Ds===Ps&&zu(i,Is)),Hu(i,t)),i}function su(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Uu(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function uu(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=qi(cu.bind(null,e));else{var t=su(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=ru();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==ji&&Ti(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?qi(cu.bind(null,e)):Vi(r,function e(t,n){nu=0;if(n)return n=ru(),Gu(t,n),uu(t),null;var r=su(t);if(0!==r){if(n=t.callbackNode,(Rs&(Ts|Ms))!==Es)throw Error(a(327));if(Su(),t===js&&r===Is||hu(t,r),null!==Ns){var i=Rs;Rs|=Ts;for(var o=du();;)try{yu();break}catch(e){pu(t,e)}if(to(),Rs=i,_s.current=o,Ds===As)throw n=Bs,hu(t,r),zu(t,r),uu(t),n;if(null===Ns)switch(o=t.finishedWork=t.current.alternate,t.finishedExpirationTime=r,i=Ds,js=null,i){case Os:case As:throw Error(a(345));case ks:Gu(t,2<r?2:r);break;case Cs:if(zu(t,r),i=t.lastSuspendedTime,r===i&&(t.nextKnownPendingLevel=_u(o)),1073741823===Fs&&10<(o=Ws+Vs-zi())){if(Gs){var s=t.lastPingedTime;if(0===s||s>=r){t.lastPingedTime=r,hu(t,r);break}}if(0!==(s=su(t))&&s!==r)break;if(0!==i&&i!==r){t.lastPingedTime=i;break}t.timeoutHandle=_n(wu.bind(null,t),o);break}wu(t);break;case Ps:if(zu(t,r),i=t.lastSuspendedTime,r===i&&(t.nextKnownPendingLevel=_u(o)),Gs&&(0===(o=t.lastPingedTime)||o>=r)){t.lastPingedTime=r,hu(t,r);break}if(0!==(o=su(t))&&o!==r)break;if(0!==i&&i!==r){t.lastPingedTime=i;break}if(1073741823!==Us?i=10*(1073741821-Us)-zi():1073741823===Fs?i=0:(i=10*(1073741821-Fs)-5e3,o=zi(),r=10*(1073741821-r)-o,0>(i=o-i)&&(i=0),i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*xs(i/1960))-i,r<i&&(i=r)),10<i){t.timeoutHandle=_n(wu.bind(null,t),i);break}wu(t);break;case Ls:if(1073741823!==Fs&&null!==zs){s=Fs;var u=zs;if(0>=(i=0|u.busyMinDurationMs)?i=0:(o=0|u.busyDelayMs,s=zi()-(10*(1073741821-s)-(0|u.timeoutMs||5e3)),i=s<=o?0:o+i-s),10<i){zu(t,r),t.timeoutHandle=_n(wu.bind(null,t),i);break}}wu(t);break;default:throw Error(a(329))}if(uu(t),t.callbackNode===n)return e.bind(null,t)}}return null}.bind(null,e),{timeout:10*(1073741821-t)-zi()}),e.callbackNode=t}}}function cu(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(Rs&(Ts|Ms))!==Es)throw Error(a(327));if(Su(),e===js&&t===Is||hu(e,t),null!==Ns){var n=Rs;Rs|=Ts;for(var r=du();;)try{gu();break}catch(t){pu(e,t)}if(to(),Rs=n,_s.current=r,Ds===As)throw n=Bs,hu(e,t),zu(e,t),uu(e),n;if(null!==Ns)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,js=null,wu(e),uu(e)}return null}function lu(e,t){var n=Rs;Rs|=1;try{return e(t)}finally{(Rs=n)===Es&&Yi()}}function fu(e,t){var n=Rs;Rs&=-2,Rs|=Ss;try{return e(t)}finally{(Rs=n)===Es&&Yi()}}function hu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wn(n)),null!==Ns)for(n=Ns.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&yi();break;case 3:No(),li(di),li(pi);break;case 5:Do(r);break;case 4:No();break;case 13:case 19:li(Bo);break;case 10:no(r)}n=n.return}js=e,Ns=ju(e.current,null),Is=t,Ds=Os,Bs=null,Us=Fs=1073741823,zs=null,Hs=0,Gs=!1}function pu(e,t){for(;;){try{if(to(),zo.current=ya,Yo)for(var n=Wo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Go=0,qo=Vo=Wo=null,Yo=!1,null===Ns||null===Ns.return)return Ds=As,Bs=t,Ns=null;e:{var i=e,o=Ns.return,a=Ns,s=t;if(t=Is,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s;if(0==(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var l=0!=(1&Bo.current),f=o;do{var h;if(h=13===f.tag){var p=f.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var d=f.memoizedProps;h=void 0!==d.fallback&&(!0!==d.unstable_avoidThisFallback||!l)}}if(h){var m=f.updateQueue;if(null===m){var v=new Set;v.add(u),f.updateQueue=v}else m.add(u);if(0==(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=co(1073741823,null);g.tag=2,lo(a,g)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new vs,s=new Set,y.set(u,s)):void 0===(s=y.get(u))&&(s=new Set,y.set(u,s)),!s.has(a)){s.add(a);var b=Au.bind(null,i,u,a);u.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);s=Error((me(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}Ds!==Ls&&(Ds=ks),s=ts(s,a),f=o;do{switch(f.tag){case 3:u=s,f.effectTag|=4096,f.expirationTime=t,fo(f,gs(f,u,t));break e;case 1:u=s;var x=f.type,_=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof x.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===Zs||!Zs.has(_)))){f.effectTag|=4096,f.expirationTime=t,fo(f,ys(f,u,t));break e}}f=f.return}while(null!==f)}Ns=xu(Ns)}catch(e){t=e;continue}break}}function du(){var e=_s.current;return _s.current=ya,null===e?ya:e}function mu(e,t){e<Fs&&2<e&&(Fs=e),null!==t&&e<Us&&2<e&&(Us=e,zs=t)}function vu(e){e>Hs&&(Hs=e)}function gu(){for(;null!==Ns;)Ns=bu(Ns)}function yu(){for(;null!==Ns&&!Ni();)Ns=bu(Ns)}function bu(e){var t=bs(e.alternate,e,Is);return e.memoizedProps=e.pendingProps,null===t&&(t=xu(e)),ws.current=null,t}function xu(e){Ns=e;do{var t=Ns.alternate;if(e=Ns.return,0==(2048&Ns.effectTag)){if(t=$a(t,Ns,Is),1===Is||1!==Ns.childExpirationTime){for(var n=0,r=Ns.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Ns.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ns.firstEffect),null!==Ns.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ns.firstEffect),e.lastEffect=Ns.lastEffect),1<Ns.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ns:e.firstEffect=Ns,e.lastEffect=Ns))}else{if(null!==(t=es(Ns)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ns.sibling))return t;Ns=e}while(null!==Ns);return Ds===Os&&(Ds=Ls),null}function _u(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function wu(e){var t=Hi();return Wi(99,function(e,t){do{Su()}while(null!==Qs);if((Rs&(Ts|Ms))!==Es)throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=_u(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===js&&(Ns=js=null,Is=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Rs;Rs|=Ms,ws.current=null,gn=qt;var s=fn();if(hn(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else e:{var c=(u=(u=s.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(c&&0!==c.rangeCount){u=c.anchorNode;var l=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{u.nodeType,f.nodeType}catch(e){u=null;break e}var h=0,p=-1,d=-1,m=0,v=0,g=s,y=null;t:for(;;){for(var b;g!==u||0!==l&&3!==g.nodeType||(p=h+l),g!==f||0!==c&&3!==g.nodeType||(d=h+c),3===g.nodeType&&(h+=g.nodeValue.length),null!==(b=g.firstChild);)y=g,g=b;for(;;){if(g===s)break t;if(y===u&&++m===l&&(p=h),y===f&&++v===c&&(d=h),null!==(b=g.nextSibling))break;y=(g=y).parentNode}g=b}u=-1===p||-1===d?null:{start:p,end:d}}else u=null}u=u||{start:0,end:0}}else u=null;yn={activeElementDetached:null,focusedElem:s,selectionRange:u},qt=!1,qs=i;do{try{Eu()}catch(e){if(null===qs)throw Error(a(330));Ou(qs,e),qs=qs.nextEffect}}while(null!==qs);qs=i;do{try{for(s=e,u=t;null!==qs;){var x=qs.effectTag;if(16&x&&Ue(qs.stateNode,""),128&x){var _=qs.alternate;if(null!==_){var w=_.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&x){case 2:hs(qs),qs.effectTag&=-3;break;case 6:hs(qs),qs.effectTag&=-3,ds(qs.alternate,qs);break;case 1024:qs.effectTag&=-1025;break;case 1028:qs.effectTag&=-1025,ds(qs.alternate,qs);break;case 4:ds(qs.alternate,qs);break;case 8:ps(s,l=qs,u),ls(l)}qs=qs.nextEffect}}catch(e){if(null===qs)throw Error(a(330));Ou(qs,e),qs=qs.nextEffect}}while(null!==qs);if(w=yn,_=fn(),x=w.focusedElem,u=w.selectionRange,_!==x&&x&&x.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(x.ownerDocument.documentElement,x)){null!==u&&hn(x)&&(_=u.start,void 0===(w=u.end)&&(w=_),"selectionStart"in x?(x.selectionStart=_,x.selectionEnd=Math.min(w,x.value.length)):(w=(_=x.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),l=x.textContent.length,s=Math.min(u.start,l),u=void 0===u.end?s:Math.min(u.end,l),!w.extend&&s>u&&(l=u,u=s,s=l),l=ln(x,s),f=ln(x,u),l&&f&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==f.node||w.focusOffset!==f.offset)&&((_=_.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),s>u?(w.addRange(_),w.extend(f.node,f.offset)):(_.setEnd(f.node,f.offset),w.addRange(_))))),_=[];for(w=x;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof x.focus&&x.focus(),x=0;x<_.length;x++)(w=_[x]).element.scrollLeft=w.left,w.element.scrollTop=w.top}qt=!!gn,yn=gn=null,e.current=n,qs=i;do{try{for(x=e;null!==qs;){var E=qs.effectTag;if(36&E&&us(x,qs.alternate,qs),128&E){_=void 0;var S=qs.ref;if(null!==S){var T=qs.stateNode;switch(qs.tag){case 5:_=T;break;default:_=T}"function"==typeof S?S(_):S.current=_}}qs=qs.nextEffect}}catch(e){if(null===qs)throw Error(a(330));Ou(qs,e),qs=qs.nextEffect}}while(null!==qs);qs=null,Ii(),Rs=o}else e.current=n;if(Js)Js=!1,Qs=e,Ks=t;else for(qs=i;null!==qs;)t=qs.nextEffect,qs.nextEffect=null,qs=t;if(0===(t=e.firstPendingTime)&&(Zs=null),1073741823===t?e===tu?eu++:(eu=0,tu=e):eu=0,"function"==typeof ku&&ku(n.stateNode,r),uu(e),Ys)throw Ys=!1,e=Xs,Xs=null,e;return(Rs&Ss)!==Es?null:(Yi(),null)}.bind(null,e,t)),null}function Eu(){for(;null!==qs;){var e=qs.effectTag;0!=(256&e)&&os(qs.alternate,qs),0==(512&e)||Js||(Js=!0,Vi(97,function(){return Su(),null})),qs=qs.nextEffect}}function Su(){if(90!==Ks){var e=97<Ks?97:Ks;return Ks=90,Wi(e,Tu)}}function Tu(){if(null===Qs)return!1;var e=Qs;if(Qs=null,(Rs&(Ts|Ms))!==Es)throw Error(a(331));var t=Rs;for(Rs|=Ms,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:as(5,n),ss(5,n)}}catch(t){if(null===e)throw Error(a(330));Ou(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Rs=t,Yi(),!0}function Mu(e,t,n){lo(e,t=gs(e,t=ts(n,t),1073741823)),null!==(e=au(e,1073741823))&&uu(e)}function Ou(e,t){if(3===e.tag)Mu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Mu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Zs||!Zs.has(r))){lo(n,e=ys(n,e=ts(t,e),1073741823)),null!==(n=au(n,1073741823))&&uu(n);break}}n=n.return}}function Au(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),js===e&&Is===n?Ds===Ps||Ds===Cs&&1073741823===Fs&&zi()-Ws<Vs?hu(e,Is):Gs=!0:Uu(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,uu(e)))}bs=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||di.current)La=!0;else{if(r<n){switch(La=!1,t.tag){case 3:za(t),Ca();break;case 5:if(Io(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:gi(t.type)&&_i(t);break;case 4:jo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,fi(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ya(e,t,n):(fi(Bo,1&Bo.current),null!==(t=Qa(e,t,n))?t.sibling:null);fi(Bo,1&Bo.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Ja(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),fi(Bo,Bo.current),!r)return null}return Qa(e,t,n)}La=!1}}else La=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=vi(t,pi.current),io(t,n),i=Jo(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,gi(r)){var o=!0;_i(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&go(t,r,s,e),i.updater=yo,t.stateNode=i,i._reactInternalFiber=t,wo(t,r,e,n),t=Ua(null,t,r,!0,o,n)}else t.tag=0,Ra(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===se)return 11;if(e===le)return 14}return 2}(i),e=Ji(i,e),o){case 0:t=Ba(null,t,i,e,n);break e;case 1:t=Fa(null,t,i,e,n);break e;case 11:t=ja(null,t,i,e,n);break e;case 14:t=Na(null,t,i,Ji(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ba(e,t,r,i=t.elementType===r?i:Ji(r,i),n);case 1:return r=t.type,i=t.pendingProps,Fa(e,t,r,i=t.elementType===r?i:Ji(r,i),n);case 3:if(za(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,uo(e,t),ho(t,r,null,n),(r=t.memoizedState.element)===i)Ca(),t=Qa(e,t,n);else{if((i=t.stateNode.hydrate)&&(Ea=En(t.stateNode.containerInfo.firstChild),wa=t,i=Sa=!0),i)for(n=Ao(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ra(e,t,r,n),Ca();t=t.child}return t;case 5:return Io(t),null===e&&Oa(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,xn(r,i)?s=null:null!==o&&xn(r,o)&&(t.effectTag|=16),Da(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ra(e,t,s,n),t=t.child),t;case 6:return null===e&&Oa(t),null;case 13:return Ya(e,t,n);case 4:return jo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Oo(t,null,r,n):Ra(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ja(e,t,r,i=t.elementType===r?i:Ji(r,i),n);case 7:return Ra(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ra(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var u=t.type._context;if(fi(Qi,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=Fr(u,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!di.current){t=Qa(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){s=u.child;for(var l=c.firstContext;null!==l;){if(l.context===r&&0!=(l.observedBits&o)){1===u.tag&&((l=co(n,null)).tag=2,lo(u,l)),u.expirationTime<n&&(u.expirationTime=n),null!==(l=u.alternate)&&l.expirationTime<n&&(l.expirationTime=n),ro(u.return,n),c.expirationTime<n&&(c.expirationTime=n);break}l=l.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Ra(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,io(t,n),r=r(i=oo(i,o.unstable_observedBits)),t.effectTag|=1,Ra(e,t,r,n),t.child;case 14:return o=Ji(i=t.type,t.pendingProps),Na(e,t,i,o=Ji(i.type,o),r,n);case 15:return Ia(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ji(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,gi(r)?(e=!0,_i(t)):e=!1,io(t,n),xo(t,r,i),wo(t,r,i,n),Ua(null,t,r,!0,e,n);case 19:return Ja(e,t,n)}throw Error(a(156,t.tag))};var ku=null,Cu=null;function Pu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Lu(e,t,n,r){return new Pu(e,t,n,r)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ju(e,t){var n=e.alternate;return null===n?((n=Lu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nu(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Ru(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case te:return Iu(n.children,i,o,t);case ae:s=8,i|=7;break;case ne:s=8,i|=1;break;case re:return(e=Lu(12,n,t,8|i)).elementType=re,e.type=re,e.expirationTime=o,e;case ue:return(e=Lu(13,n,t,i)).type=ue,e.elementType=ue,e.expirationTime=o,e;case ce:return(e=Lu(19,n,t,i)).elementType=ce,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:s=10;break e;case oe:s=9;break e;case se:s=11;break e;case le:s=14;break e;case fe:s=16,r=null;break e;case he:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Lu(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Iu(e,t,n,r){return(e=Lu(7,e,r,t)).expirationTime=n,e}function Du(e,t,n){return(e=Lu(6,e,null,t)).expirationTime=n,e}function Bu(e,t,n){return(t=Lu(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Uu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function zu(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Hu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Gu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Wu(e,t,n,r){var i=t.current,o=ru(),s=mo.suspense;o=iu(o,i,s);e:if(n){t:{if($e(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(gi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var c=n.type;if(gi(c)){n=xi(n,c,u);break e}}n=u}else n=hi;return null===t.context?t.context=n:t.pendingContext=n,(t=co(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),lo(i,t),ou(i,o),o}function Vu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function qu(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Yu(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}function Xu(e,t,n){var r=new Fu(e,t,n=null!=n&&!0===n.hydrate),i=Lu(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,so(i),e[An]=r.current,n&&0!==t&&function(e,t){var n=Ke(t);Mt.forEach(function(e){dt(e,t,n)}),Ot.forEach(function(e){dt(e,t,n)})}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Vu(a);s.call(e)}}Wu(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Xu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var u=i;i=function(){var e=Vu(a);u.call(e)}}fu(function(){Wu(t,a,e,i)})}return Vu(a)}function Qu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ee,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Xu.prototype.render=function(e){Wu(e,this._internalRoot,null,null)},Xu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Wu(null,e,null,function(){t[An]=null})},mt=function(e){if(13===e.tag){var t=Zi(ru(),150,100);ou(e,t),Yu(e,t)}},vt=function(e){13===e.tag&&(ou(e,3),Yu(e,3))},gt=function(e){if(13===e.tag){var t=ru();ou(e,t=iu(t,e,null)),Yu(e,t)}},O=function(e,t,n){switch(t){case"input":if(Se(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Ln(r);if(!i)throw Error(a(90));xe(r),Se(r,i)}}}break;case"textarea":Pe(e,n);break;case"select":null!=(t=n.value)&&Ae(e,!!n.multiple,t,!1)}},R=lu,j=function(e,t,n,r,i){var o=Rs;Rs|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{(Rs=o)===Es&&Yi()}},N=function(){(Rs&(1|Ts|Ms))===Es&&(function(){if(null!==$s){var e=$s;$s=null,e.forEach(function(e,t){Gu(t,e),uu(t)}),Yi()}}(),Su())},I=function(e,t){var n=Rs;Rs|=2;try{return e(t)}finally{(Rs=n)===Es&&Yi()}};var Ku={Events:[Cn,Pn,Ln,T,w,Fn,function(e){it(e,Bn)},P,L,Zt,st,Su,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);ku=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Cu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Z.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:kn,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ku,t.createPortal=Qu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if((Rs&(Ts|Ms))!==Es)throw Error(a(187));var n=Rs;Rs|=1;try{return Wi(99,e.bind(null,t))}finally{Rs=n,Yi()}},t.hydrate=function(e,t,n){if(!Zu(t))throw Error(a(200));return Ju(null,e,t,!0,n)},t.render=function(e,t,n){if(!Zu(t))throw Error(a(200));return Ju(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zu(e))throw Error(a(40));return!!e._reactRootContainer&&(fu(function(){Ju(null,null,e,!1,function(){e._reactRootContainer=null,e[An]=null})}),!0)},t.unstable_batchedUpdates=lu,t.unstable_createPortal=function(e,t){return Qu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zu(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Ju(e,t,n,!1,r)},t.version="16.13.1"},function(e,t,n){"use strict";e.exports=n(595)},function(e,t,n){"use strict";
/** @license React v0.19.1
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r,i,o,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,l=function e(){if(null!==u)try{var n=t.unstable_now();u(!0,n),u=null}catch(t){throw setTimeout(e,0),t}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(l,0))},i=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var h=window.performance,p=window.Date,d=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof h&&"function"==typeof h.now)t.unstable_now=function(){return h.now()};else{var g=p.now();t.unstable_now=function(){return p.now()-g}}var y=!1,b=null,x=-1,_=5,w=0;a=function(){return t.unstable_now()>=w},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):_=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,S=E.port2;E.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();w=e+_;try{b(!0,e)?S.postMessage(null):(y=!1,b=null)}catch(e){throw S.postMessage(null),e}}else y=!1},r=function(e){b=e,y||(y=!0,S.postMessage(null))},i=function(e,n){x=d(function(){e(t.unstable_now())},n)},o=function(){m(x),x=-1}}function T(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<A(i,t)))break e;e[r]=t,e[n]=i,n=r}}function M(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,u=e[s];if(void 0!==a&&0>A(a,n))void 0!==u&&0>A(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>A(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function A(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],C=[],P=1,L=null,R=3,j=!1,N=!1,I=!1;function D(e){for(var t=M(C);null!==t;){if(null===t.callback)O(C);else{if(!(t.startTime<=e))break;O(C),t.sortIndex=t.expirationTime,T(k,t)}t=M(C)}}function B(e){if(I=!1,D(e),!N)if(null!==M(k))N=!0,r(F);else{var t=M(C);null!==t&&i(B,t.startTime-e)}}function F(e,n){N=!1,I&&(I=!1,o()),j=!0;var r=R;try{for(D(n),L=M(k);null!==L&&(!(L.expirationTime>n)||e&&!a());){var s=L.callback;if(null!==s){L.callback=null,R=L.priorityLevel;var u=s(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?L.callback=u:L===M(k)&&O(k),D(n)}else O(k);L=M(k)}if(null!==L)var c=!0;else{var l=M(C);null!==l&&i(B,l.startTime-n),c=!1}return c}finally{L=null,R=r,j=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||j||(N=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return M(k)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var u=a.delay;u="number"==typeof u&&0<u?s+u:s,a="number"==typeof a.timeout?a.timeout:U(e)}else a=U(e),u=s;return e={id:P++,callback:n,priorityLevel:e,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>s?(e.sortIndex=u,T(C,e),null===M(k)&&e===M(C)&&(I?o():I=!0,i(B,u-s))):(e.sortIndex=a,T(k,e),N||j||(N=!0,r(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();D(e);var n=M(k);return n!==L&&null!==L&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<L.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=d(o),s=d(n(144)),u=d(n(59)),c=d(n(599)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(292)),f=n(216),h=d(f),p=n(606);function d(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var v=t.portalClassName="ReactModalPortal",g=t.bodyOpenClassName="ReactModal__Body--open",y=void 0!==s.default.createPortal,b=function(){return y?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function x(e){return e()}var _=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,u=Array(o),l=0;l<o;l++)u[l]=arguments[l];return n=i=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.removePortal=function(){!y&&s.default.unmountComponentAtNode(i.node);var e=x(i.props.parentSelector);e?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var n=b()(i,a.default.createElement(c.default,r({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(n)},m(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),i(t,[{key:"componentDidMount",value:function(){f.canUseDOM&&(y||(this.node=document.createElement("div")),this.node.className=this.props.portalClassName,x(this.props.parentSelector).appendChild(this.node),!y&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:x(e.parentSelector),nextParent:x(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(f.canUseDOM){var r=this.props,i=r.isOpen,o=r.portalClassName;e.portalClassName!==o&&(this.node.className=o);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||i)&&!y&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(f.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return f.canUseDOM&&y?(!this.node&&y&&(this.node=document.createElement("div")),b()(a.default.createElement(c.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){l.setElement(e)}}]),t}();_.propTypes={isOpen:u.default.bool.isRequired,style:u.default.shape({content:u.default.object,overlay:u.default.object}),portalClassName:u.default.string,bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,className:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),overlayClassName:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),appElement:u.default.instanceOf(h.default),onAfterOpen:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,ariaHideApp:u.default.bool,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,parentSelector:u.default.func,aria:u.default.object,data:u.default.object,role:u.default.string,contentLabel:u.default.string,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func},_.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:g,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,parentSelector:function(){return document.body}},_.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(_),t.default=_},function(e,t,n){"use strict";var r=n(598);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=v(a),u=v(n(59)),c=m(n(600)),l=v(n(601)),f=m(n(292)),h=m(n(604)),p=v(n(216)),d=v(n(293));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function v(e){return e&&e.__esModule?e:{default:e}}n(605);var g={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=9,b=27,x=0,_=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,i=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&h.remove(document.body,o),i&&h.remove(document.getElementsByTagName("html")[0],i),r&&x>0&&0===(x-=1)&&f.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(c.returnFocus(),c.teardownScopedFocus()):c.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),d.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(c.setupScopedFocus(n.node),c.markForFocusLater()),n.setState({isOpen:!0},function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus()},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){e.keyCode===y&&(0,l.default)(n.content,e),n.props.shouldCloseOnEsc&&e.keyCode===b&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":i(t))?t:{base:g[e],afterOpen:g[e]+"--after-open",beforeClose:g[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&h.add(document.body,i),r&&h.add(document.getElementsByTagName("html")[0],r),n&&(x+=1,f.hide(t)),d.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,o=e.defaultStyles,a=n?{}:o.content,u=i?{}:o.overlay;return this.shouldBeClosed()?null:s.default.createElement("div",{ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:r({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},s.default.createElement("div",r({id:t,ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",this.props.aria||{}),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),this.props.children))}}]),t}();_.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},_.propTypes={isOpen:u.default.bool.isRequired,defaultStyles:u.default.shape({content:u.default.object,overlay:u.default.object}),style:u.default.shape({content:u.default.object,overlay:u.default.object}),className:u.default.oneOfType([u.default.string,u.default.object]),overlayClassName:u.default.oneOfType([u.default.string,u.default.object]),bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,ariaHideApp:u.default.bool,appElement:u.default.instanceOf(p.default),onAfterOpen:u.default.func,onAfterClose:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,role:u.default.string,contentLabel:u.default.string,aria:u.default.object,data:u.default.object,children:u.default.node,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,testId:u.default.string},t.default=_,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleBlur=c,t.handleFocus=l,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return void(0!==a.length&&(e=a.pop()).focus())}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",c,!1),document.addEventListener("focus",l,!0)):(window.attachEvent("onBlur",c),document.attachEvent("onFocus",l))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",c),document.removeEventListener("focus",l)):(window.detachEvent("onBlur",c),document.detachEvent("onFocus",l))};var r,i=n(291),o=(r=i)&&r.__esModule?r:{default:r};var a=[],s=null,u=!1;function c(){u=!0}function l(){if(u){if(u=!1,!s)return;setTimeout(function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()},0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,i=t.shiftKey,a=n[0],s=n[n.length-1];if(e===document.activeElement){if(!i)return;r=s}s!==document.activeElement||i||(r=a);a===document.activeElement&&i&&(r=s);if(r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var c=n.indexOf(document.activeElement);c>-1&&(c+=i?-1:1);if(void 0===(r=n[c]))return t.preventDefault(),void(r=i?s:a).focus();t.preventDefault(),r.focus()};var r,i=n(291),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){var r;
/*!
  Copyright (c) 2015 Jed Watson.
  Based on code that is Copyright 2013-2015, Facebook, Inc.
  All rights reserved.
*/
/*!
  Copyright (c) 2015 Jed Watson.
  Based on code that is Copyright 2013-2015, Facebook, Inc.
  All rights reserved.
*/
!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dumpClassLists=function(){0};var r={},i={};t.add=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:i,void t.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),n.add(e)});var n,o},t.remove=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:i,void t.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&n.remove(e)});var n,o}},function(e,t,n){"use strict";var r,i=n(293),o=(r=i)&&r.__esModule?r:{default:r};var a=void 0,s=void 0,u=[];function c(){0!==u.length&&u[u.length-1].focusContent()}o.default.subscribe(function(e,t){a&&s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",c),(s=a.cloneNode()).addEventListener("focus",c)),(u=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))})},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var u=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",function(){return a}),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(608)),a=i(n(617)),s=i(n(632)),u=i(n(633));t.default=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.default.apply(void 0,r([a.default()],e)).use(s.default).use(function(e){var t=e.config;e.tracking.use(u.default(t.plugins&&t.plugins.pageLoad))})}},function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(609)),a=n(139),s=n(294),u=i(n(295)),c=i(n(611)),l=i(n(612)),f=i(n(217)),h=i(n(613)),p=n(615),d=i(n(297)),m=i(n(616)),v=function(){};t.default=function(e,t,n){Array.isArray(t)||(n=t,t=[]);var i=Object.assign({},a.defaults,n);e.bind("config",i);var g=m.default(e);e.bind("logger",g);var y="u"!==(typeof window)[0],b={};y&&(b=window[i.global]?window[i.global]:b,window[i.global]=b);var x=e.emitter||o.default();Object.assign(b,x),b.on=function(e,t){e&&"event:"===e.substr(0,6)&&y?document.body.addEventListener(e.substr(6),function(e){t(e.detail)}):x.on(e,t)},b.state=Object.assign({},b.state,i.initialState);var _=[],w=!1;function E(e){w=!0,_.push(e)}function S(t,n){b.emit("event",t,n),e.getOr("event",v)(t,n),g.info("Dispatched event: ",t,n)}var T=!1,M=function(e){var t=b.state;return t!==e&&(b.state=e,b.emit("change",e,t)),b},O=h.default();b.use=function(t){var n=t.plugin||t;try{n({config:i,tracking:b,context:e,update:M,providersPipeline:O,addEventsBlocker:E})}catch(e){g.error(e,"Failed to initialize plugin "+t.name)}return b},b.event=function e(t,n){return!y||document.body||T||(E(new Promise(function(e){document.addEventListener("DOMContentLoaded",e)})),T=!0),!1===w?S(t,n):Promise.all(_).then(function(r){w=r.length!==_.length,e(t,n)}),b},b.addPixel=c.default(b),b.addPixels=l.default(b),b.utils={},b.addUtil=function(t){var n=t.name,r=t.init;return b.utils[n]=r({tracking:b,context:e}),b.emit("util-provided:"+n,b.utils[n]),b},b.callUtil=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Promise(function(n){var r;e in b.utils?n((r=b.utils)[e].apply(r,t)):b.on("util-provided:"+e,function(e){n(e.apply(void 0,t))})}).catch(function(t){throw g.error(t,"Tracking util "+e+" code failed"),t})},b.extend=function(e){g.info("Tracking extend:",e);var t=Object.keys(e).reduce(function(t,n){var r=n.split(".");return s.assoc(t,r,e[n])},b.state);return M(t)},b.remove=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];g.info("Tracking remove:",e.join(", "));var n=s.dissoc.apply(void 0,r([b.state],e.map(function(e){return e.split(".")})));return M(n)},b.updateLocation=function(){var t;return M((t=b.state,"client"===e.env&&e.bind("location",f.default()),s.assoc(t,"url",u.default.run(e)))),b.emit("newLocation"),b},b.update=M;var A=i.providers||{},k=function(t,n){void 0===n&&(n=!0);var r,i=t.stateKey||t.name,o=A[t.name];if(b.emit("provider-run",t.name),!n&&t.lazy)if("."===i)g.error("Provider "+t.name+" with stateKey='.' cannot be lazy");else{var a=s.get(b.state,i.split("."));if(void 0!==a)return b.emit("provider-resolved",t.name,a),Promise.resolve()}try{r=Promise.resolve(O.run(t,t.run,e,o))}catch(e){r=Promise.reject(e)}return r.then(function(e){!function(e,t){var n;e&&"."!==e?b.extend(((n={})[e]=t,n)):b.extend(t)}(i,e),b.emit("provider-resolved",t.name,e)}).catch(function(e){if(!e||e.code!==p.ESkipApply)throw b.emit("provider-error",t.name,e),g.error(e,"Provider "+t.name+" error"),e})},C=function(t){var n=t.map(function(t){return"client"===e.env&&t.observe&&t.observe(e,function(){k(t,!0)}),k(t,!1)});return n.length?d.default(n):Promise.resolve()};return b.ready=Promise.resolve().then(function(){return C(t)}),b.waitFor=function(e){return e in b.state?Promise.resolve(b.state[e]):new Promise(function(t,n){b.on("provider-resolved",function(n,r){n===e&&t(r)}),b.on("provider-error",function(t,r){t===e&&n(r)})})},b.fullfill=C,b._version="4.67.0",S("tracking-created",b),b}},function(e,t,n){"use strict";n.r(t),t.default=function(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t){var n=[].slice.call(arguments,1);(e[t]||[]).map(function(e){e.apply(void 0,n)}),(e["*"]||[]).map(function(e){e.apply(void 0,[t].concat(n))})}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={api:"https://www.tinkoff.ru/api/v1/",configApi:"https://config.tinkoff.ru/",papiBase:"https://www.tinkoff.ru/",enrichApi:"https://enrichment.tinkoff.ru/"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){return function(t){return document.createElement("img").src=t,e}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(297)),o=3e3,a="pixelRequestsCompleted",s="undefined"!=typeof Request&&"keepalive"in new Request(""),u=function(e){return fetch(e,{mode:"no-cors",credentials:"include",keepalive:s})};t.default=function(e){return function(t,n){void 0===n&&(n={});var r=n.timeout,c=void 0===r?o:r,l=n.completeEvent,f=void 0===l?a:l,h=t.map(u),p=!1;return s?Promise.resolve(e.event(f,{timeout:p,urls:t})):Promise.race([i.default(h),new Promise(function(e){return setTimeout(function(){p=!0,e()},c)})]).then(function(){return e.event(f,{timeout:p,urls:t})})}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(614));t.default=function(){var e=[];return{run:function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var a=e.map(function(e){return e(t)});return i.default.apply(void 0,a)(n).apply(void 0,r)},add:function(t){e.push(t)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return e}:1===e.length?e[0]:e.reduce(function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(void 0,n))}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ESkipApply=void 0,t.ESkipApply="ESkipApply";var r=function(){function e(e){this.message=e,this.code=t.ESkipApply}return e.prototype.toString=function(){return this.code+": "+this.message},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLoggerObject=void 0;var r=function(){},i="log function is now deprecated, use logger object instead";function o(e){return{warn:e,debug:e,error:e,info:e,log:e}}t.createLoggerObject=o,t.default=function(e){var t=e.get("config"),n=e.getOr("log"),a=t.log,s=e.getOr("logger"),u=t.logger;n&&n(i),a&&a(i);var c=u||a||s||n;return"object"==typeof c?c:o("function"==typeof c?c:r)}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(618)),o=r(n(619));t.default=function(){return new i.default(o.default())}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){void 0===e&&(e={}),this.env="u"===(typeof window)[0]?"server":"client",this.services={};for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];this.bind(r,e[r])}}return e.prototype.get=function(e){if(e in this.services)return this.services[e];throw new Error("No service "+e)},e.prototype.getOr=function(e,t){return void 0===t&&(t=void 0),e in this.services?this.services[e]:t},e.prototype.bind=function(e,t){this.services[e]=t},Object.defineProperty(e.prototype,"location",{get:function(){return this.get("location")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cookies",{get:function(){return this.get("cookies")},enumerable:!1,configurable:!0}),e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(620)),a=i(n(623)),s=i(n(624)),u=i(n(300)),c=i(n(627)),l=i(n(217)),f=i(n(629)),h=i(n(631)),p=i(n(301));t.default=function(){return r(r({},o.default),{logger:a.default(),jsonp:s.default,parseUrl:u.default,request:c.default,location:l.default(),cookies:f.default(),referrer:h.default(),event:p.default})}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(621)),o=r(n(622));t.default={tapi:i.default,configApi:o.default}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return void 0===n&&(n={}),e.get("request")(""+e.get("config").api+t,r({},n)).then(function(e){return e.json()})}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){void 0===n&&(n={});var i=e.get("config").configApi;return e.get("request")(""+i+t,r({},n)).then(function(e){return e.json()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(299);t.default=function(){return-1!==(r.get("debug")||"").indexOf("Tinkoff:info:tracking")?console:null}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(625)),a=i(n(626));t.default=function(e){var t,n=e.url,i=e.payload,s=e.timeout,u=e.cbname,c=void 0===u?"callback":u,l="cb"+o.default(),f=a.default(r(((t={})[c]=l,t),i));return new Promise(function(e,t){var r=document.createElement("script"),i=!1;r.addEventListener("error",function(e){i||(t(e),i=!0)}),window[l]=function(t){delete window[l],document.head.removeChild(r),i||(e(t),i=!0)},r.src=n+f,document.head.appendChild(r),s&&setTimeout(function(){i||(i=!0,t(new Error("Timeout")))},s)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function e(t){void 0===t&&(t=10);var n=Math.random().toString(36).slice(2);return n.length>=10?n:e(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){for(var t=[],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];e[i]&&t.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]))}return t.length?"?"+t.join("&"):""}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var o=n(628);t.default=function(e,t){void 0===t&&(t={});var n=t.headers,a=t.timeout,s=void 0===a?1500:a,u=t.body,c=t.method,l=void 0===c?"GET":c,f=i(t,["headers","timeout","body","method"]),h={},p={method:l,headers:h},d=function(e){if("AbortController"in window){var t=new AbortController;return setTimeout(function(){t.abort()},e),t.signal}}(s);return d&&(p.signal=d),void 0!==u&&(p.body="string"==typeof u?u:JSON.stringify(u),h["Content-Type"]="application/json"),Object.assign(p.headers,n),fetch(e,r(r({},p),f)).then(o.checkStatusCode)}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.isSerachParamMap=t.checkStatusCode=void 0;var o=function(e){function t(t){var n=e.call(this,"Not success status code of request: "+t.status+" "+t.statusText)||this;return n.statusCode=t.status,n.statusText=t.statusText,n.url=t.url,n}return i(t,e),t}(Error);t.checkStatusCode=function(e){if(e.status<200||e.status>=400)throw new o(e);return e},t.isSerachParamMap=function(e){return"object"==typeof e&&Object.keys(e).every(function(t){return"string"==typeof t&&"string"==typeof e[t]})}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getCookie=void 0;var i=r(n(218)),o=n(630);function a(e){var t=(("; "+document.cookie).split("; "+e+"=")[1]||"").split("; ")[0];try{return decodeURIComponent(t)}catch(e){return t}}t.getCookie=a,t.default=function(){var e=o.extractDomain(location.hostname),t=(document.cookie="test_cookie_QpHfCYJQhs=true; samesite=none; secure",""!==a("test_cookie_QpHfCYJQhs"));function n(n,r,i,o){document.cookie=n+"="+encodeURIComponent(r)+(i?"; expires="+new Date(Number(new Date)+1e3*i).toUTCString():"")+"; path=/"+(o?"; domain="+e:"")+(t?"; samesite=none; secure":"")}return{all:i.default(document.cookie,"; ","="),get:a,set:n,remove:function(e,t){n(e,"",-1,t)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractDomain=void 0;var r=/^(?:::(?:ffff:(0:)?)?)?(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/,i=/^([0-9a-fA-F]{1,4}:){1,4}:(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/;t.extractDomain=function(e){return t=e,r.test(t)||i.test(t)?e:e.indexOf("localhost")>=0?"localhost":"."+e.split(".").slice(-2).join(".");var t}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(300));t.default=function(){return document.referrer?i.default(document.referrer):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.tracking,n=performance.timing.navigationStart;t.on("newLocation",function(){n=+new Date,t.remove("timing")});for(var r=function(e){t.on("event:"+e,function(){var r;n&&t.extend(((r={})["timing."+e]=+new Date-n,r))})},i=0,o=["pageLoad","partnerLoad"];i<o.length;i++)r(o[i])}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(634)),o={wuid:7e3};t.default=function(e){void 0===e&&(e={});var t=e.timeouts,n=void 0===t?o:t,r=e.waitFor,a=e.tracked,s=i.default({readyEvent:"pageLoad",beforeEvent:"beforePageLoad",timeouts:n,tracked:a,resetOnSPATransition:!0,blocked:!!r});return r&&r.then(function(){s.setBlocked(!1)}),s}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(294),u=o(n(299)),c=a(n(301));function l(e,t){return s.get(e,t.split("."))}function f(e,t,n){return Object.keys(t).every(function(r){return function(e,t){return t.split("|").some(function(t){return void 0!==l(e,t)})}(e,r)||t[r]&&Date.now()-n>=t[r]})}t.default=function(e){var t,n=e.timeouts,r=void 0===n?{}:n,i=e.readyEvent,o=e.beforeEvent,a=e.tracked,s=void 0!==a&&a,h=e.blocked,p=void 0!==h&&h,d=e.resetOnSPATransition,m=void 0!==d&&d,v=s,g=p,y=Date.now(),b=!1,x=function(){if(!t)throw new Error("plugin isn't bound");var e;b||g||v||!function(){if(!t)throw new Error("plugin isn't bound");return f(t.state,r,y)}()||(b=!0,o&&c.default(o,{waitFor:function(t){e=t}},document),e?Promise.resolve(e).then(function(){t.event(i)}):t.event(i))},_=Object.keys(r),w=function(){y=Date.now(),v=!1,b=!1,x(),b||E()},E=function(){_.forEach(function(e){var t=r[e];isFinite(t)&&t&&setTimeout(x,t+1)})};return{name:"data-observer",trySend:x,setTracked:function(e){v=e,b=e},setBlocked:function(e){g=e,t&&!g&&x()},plugin:function(e){t=e.tracking,E(),setTimeout(x),t.on("event:"+i,function(){if(v=!0,u.get("tcs:tracking:do")){console.group("do:"+i);for(var e=0,n=_;e<n.length;e++)for(var r=0,o=n[e].split("|");r<o.length;r++){var a=o[r],s=l(t.state,a);console.log(a,": "+typeof s,"=",s)}console.groupEnd()}}),t.on("change",x),t.on("do:"+i+":invalidate",x),m&&t.on("newLocation",w)}}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(636)),o=r(n(637)),a=r(n(639)),s=r(n(644)),u=r(n(645)),c=r(n(646)),l=r(n(651)),f=r(n(653)),h=r(n(295)),p=r(n(654)),d=r(n(655)),m=r(n(656)),v=r(n(303)),g=r(n(657));t.default=[l.default,f.default,i.default,o.default,a.default,s.default,u.default,c.default,h.default,p.default,d.default,m.default,v.default,g.default]},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=n(139),s=o(n(115)),u={name:"dmpId",run:function(e){var t=e.getOr("config",{disableJsonp:!1}).disableJsonp;return e.cookies.all[s.dmpId]&&"no dmp_id"!==e.cookies.all[s.dmpId]?Promise.resolve(e.cookies.all[s.dmpId]):t||"client"!==e.env?Promise.resolve(""):e.get("jsonp")({url:"https://sync.datamind.ru/cookie/emitter/jsonp/",timeout:a.TWO_SECONDS}).then(function(e){try{return e.data.dmp_id}catch(e){return""}}).catch(function(){return""})}};t.default=u},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(638)),o={name:"layoutMedia",run:function(){var e={desktopLarge:"(min-width: 1600px)",desktopMedium:"(min-width: 1360px)",desktopSmall:"(min-width: 1024px)",tabletLarge:"(min-width: 768px)",tabletSmall:"(min-width: 600px)",mobile:"(min-width: 599x)"},t=Object.keys(e),n="mobile";try{for(var r=0,i=t;r<i.length;r++){var o=i[r];if(matchMedia(e[o]).matches){n=o;break}}}catch(e){}return n},observe:function(e,t){addEventListener("resize",i.default(300,t))}};t.default=o},function(e,t,n){"use strict";var r=n(302);e.exports=r(2,function(e,t){var n;function r(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){return t.apply(r,i)},e)}return r.cancel=function(){return clearTimeout(n)},r})},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(n(640)),s=o(n(642)),u=o(n(643)),c={name:"pageSpeed",run:function(e){return s.default().then(function(){return u.default(0)}).then(function(){var e=a.default(),t=e.requests,n=e.timings,o=i(e,["requests","timings"]);return r(r(r({},o),n),{requests:t,timings:n})})}};t.default=c},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(641);t.default=function(){try{var e=window.performance,t=i.browserTimings(),n=function(e){var t=e;if(!t.download)return{};var n={sizeTransferred:0,sizeResources:0};return Object.keys(t.download).forEach(function(e){n.sizeTransferred+=t.download[e].transferSize,n.sizeResources+=t.download[e].encodedBodySize}),n}(t),o=e.timing.navigationStart;return r({navigationStart:o,timezone:-1*(new Date).getTimezoneOffset()/60,timings:t,requests:(a=e,a.getEntries?a.getEntriesByType("resource").sort(function(e,t){var n=e.duration,r=t.duration;return n>r?1:n===r?0:-1}).reduce(function(e,t){var n,r,i=function(e){var t,n=e.name,r=e.duration;return{name:n=n.split("?",1)[0],duration:(t=r,Math.round(t)/1e3)}}(t),o=i.name,a=i.duration,s=/\.js$/.test(r=o)?"js":/\.css$/.test(r)?"css":/\.(?:svg|png|jpeg)$/.test(r)?"img":/\.(?:woff|eot|woff2|ttf)/.test(r)?"font":"other";return e[s]?e[s][o]=a:e[s]=((n={})[o]=a,n),e},{}):{})},n)}catch(e){return{}}var a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(e){return Math.round(e)/1e3},o=function(e){return function(t){return e.test(t)}},a=o(/\.js$/),s=o(/\.css$/),u=o(/\.(?:svg|png|jpeg|webp|jpg)$/),c=o(/\.(?:woff|eot|woff2|ttf)/);!function(e){e.html="html",e.js="js",e.css="css",e.img="img",e.font="font",e.other="other"}(r||(r={}));var l=function(e,t){if(e.getEntriesByType)return e.getEntriesByType(t)},f=function(e){var t=l(e,"paint");if(t&&t[0])return t[0].startTime},h=function(e,t){return e&&e[t]||0},p=function(e,t){return{duration:h(e,"duration")+i(t.duration),transferSize:h(e,"transferSize")+t.transferSize,encodedBodySize:h(e,"encodedBodySize")+t.encodedBodySize}},d=function(e){var t={},n=l(e,"resource");n&&n.length>0&&n.forEach(function(e){var n=function(e){switch(!0){case s(e):return r.css;case a(e):return r.js;case u(e):return r.img;case c(e):return r.font;default:return r.other}}(e.name.split("?",1)[0]);r[n]&&(t[n]=p(t[n],e))});var i=l(e,"navigation");return i&&i.length>0&&(t[r.html]=p({},i[0])),t};t.browserTimings=function(){var e;try{if(!(e=window.performance).timing||!e.timing.loadEventEnd)throw 0===e.timing.loadEventEnd&&console.error("Library used at browser initialization page. Reed docs"),new Error("Not implemented timing api")}catch(e){return{}}var t=e.timing,n=t.requestStart,r=t.responseStart,o=t.responseEnd,a=t.domComplete,s=t.loadEventEnd,u=t.domInteractive,c=t.navigationStart,l=[{key:"connection",start:c,end:n},{key:"backend",start:n,end:r},{key:"pageDownload",start:r,end:o},{key:"first-paint",start:0,end:f(e)},{key:"domInteractive",start:c,end:u},{key:"domComplete",start:c,end:a},{key:"pageLoadTime",start:c,end:s}],h={};return l.forEach(function(e){var t=i(e.end-e.start);h[e.key]=t>0||t<2e3?t:void 0}),h.download=d(e),h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return new Promise(function(e){"complete"===document.readyState?e():window.addEventListener("load",e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return void 0===e&&(e=0),new Promise(function(n){setTimeout(function(){return n(t)},e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={name:"adblock",run:function(e,t){var n;return void 0===t&&(t={}),t.fakeDivId?n=document.getElementById(t.fakeDivId):((n=document.createElement("div")).setAttribute("class","ads ad adsbox ad-placement carbon-ads"),n.setAttribute("style","height: 1px;width: 1px;position: absolute;left: -9999px;top: -9999px"),document.body.appendChild(n)),new Promise(function(e){setTimeout(function(){var t=n&&0===n.offsetHeight;e(t?"yes":"no")},20)})}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={name:"mobileOrientation",run:function(){var e=!0;try{e=window.orientation?90===Math.abs(Number(window.orientation)):"landscape"===screen.orientation.type.split("-")[0]}catch(e){}return e?"landscape":"portrait"},observe:function(e,t){window.addEventListener("orientationchange",t)}};t.default=r},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrent=void 0;var s=n(139),u=o(n(115)),c=n(647),l=a(n(649));function f(e){var t=e.cookies.all[u.wuid]||c.get(u.wuid);return"undefined"===t?null:t}function h(e,t){var n;if(!t){n=f(e);var r=e.cookies.all[u.wuidLC]||c.get(u.wuidLC),i=Date.now(),o=new Date(Number(r));if(!(!isFinite(Number(r))||i>o.setHours(o.getHours()+24))&&n)return Promise.resolve(n)}var a=e.get("tapi"),l=e.cookies.all[u.utma],h=[];l&&h.push("ga_utma="+encodeURIComponent(l)),!t&&n&&h.push("wuid="+encodeURIComponent(n));var p="webuser?"+h.join("&");return a(e,p).then(function(t){var n=t&&t.payload?t.payload.wuid:null;if(n)return function(t){var n=Date.now();e.cookies.set(u.wuid,t,s.FOREVER,!0),e.cookies.set(u.wuidLC,n,s.FOREVER,!0),c.set(u.wuid,t),c.set(u.wuidLC,n)}(n),n})}t.getCurrent=f;var p={name:"wuid",getCurrent:f,run:l.default(function(e){return h(e,!1)}),invalidate:l.default(function(e){return h(e,!0)})};t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.get=t.set=void 0;var r=n(648);function i(e,t){r.localStorageUsable()&&localStorage.setItem(e,JSON.stringify(t)),r.sessionStorageUsable()&&sessionStorage.setItem(e,JSON.stringify(t))}t.set=i,t.get=function(e){var t,n,o;if(r.localStorageUsable())try{(t=localStorage.getItem(e))&&(o=JSON.parse(t))}catch(e){}if(void 0===t&&r.sessionStorageUsable())try{(n=sessionStorage.getItem(e))&&(o=JSON.parse(n))}catch(e){}return void 0===o||t&&n||i(e,o),o}},function(e,t,n){"use strict";var r;function i(e){var t;return function(){return void 0===t&&(t=function(){try{var t="__storage_test__",n=e===r.SessionStorage?sessionStorage:localStorage;return n.setItem(t,t),n.removeItem(t),!0}catch(e){return!1}}()),t}}Object.defineProperty(t,"__esModule",{value:!0}),t.sessionStorageUsable=t.localStorageUsable=void 0,function(e){e[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage"}(r||(r={})),t.localStorageUsable=i(r.LocalStorage),t.sessionStorageUsable=i(r.SessionStorage)},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(650));t.default=function(e){return i.default(e,function(e){return"undefined"!=typeof window?window:e})}},function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===t&&(t=function(e){return e});var n=new WeakMap;return function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];var s=t(i),u=n.get(s);if(u)return u;var c=function(){n.delete(s)};return(u=e.apply(void 0,r([i],o))).then(c).catch(c),n.set(s,u),u}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taUidCookie=void 0;var r=n(652);t.taUidCookie="ta_uid";var i=80352e5;var o={name:"uid",run:function(e){var n,o,a=e.cookies.get(t.taUidCookie);return a&&!function(e){if(19!==e.length)return!0;var t=parseInt(e.substr(0,13),10);return t<1558602046426||t>Date.now()+i}(a)||(n=Date.now(),o=Math.floor(999999*Math.random()),a=n.toString()+r.leftpad(o.toString(),6)),e.cookies.set(t.taUidCookie,a,63072e3,!0),a}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.leftpad=void 0,t.leftpad=function(e,t,n){return void 0===n&&(n="0"),e.length<t?new Array(t-e.length+1).join(n)+e:e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="ta_visit_start_ts",i="ta_visit_num",o="ta_nr",a={name:"taVisit",stateKey:".",run:function(e){var t=Number(e.cookies.get(i)||void 0);isFinite(t)||(t=0),e.cookies.get(r)||(t?t+=1:t=1);var n=1===(t=t||1)?"new":"return";e.cookies.set(o,n,63072e3,!0),e.cookies.set(i,t,63072e3,!0);var a=Number(e.cookies.get(r)||void 0);return isFinite(a)||(a=Date.now()),e.cookies.set(r,a,1800,!0),{visitNum:t,visitStartTs:a,nr:n}}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(115),i={name:"userType",run:function(e){return e.cookies.all[r.userType]||"Visitor"}};t.default=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=n(139),s=o(n(115)),u={name:"dspClickId",run:function(e){var t=e.location.query[s.dspId]||e.cookies.all[s.dspId]||"no dsp_click_id";return e.cookies.set("dsp_click_id",t,a.SIXTY_DAYS,!0),t}};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(115),i={name:"pageLanding",run:function(e){var t=e.cookies.all[r.pageLanding];t&&"/"===t[0]&&(t=e.location.origin+t);var n=e.location.origin+e.location.pathname,i=t||n;return e.cookies.set(r.pageLanding,i,!1,!0),i}};t.default=i},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=s(n(298)),c=n(139),l=s(n(658)),f=a(n(115)),h=s(n(303)),p=s(n(296)),d=s(n(218)),m=s(n(659)),v={name:"utmMarkers",stateKey:".",run:function(e){var t,n=e.location,i=p.default(e),o=n.query.utm_source||!i?n.query:i.query,a=n.hash.replace("#",""),s=a&&d.default(a),v=u.default(c.internalMarkers,o),g=c.SIXTY_DAYS,y=u.default(c.utmMarkers,o),b=a&&u.default(c.utmMarkers,s),x=m.default(y)?b:y;function _(t,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];n[o]?e.cookies.set(o,n[o],g,!0):e.cookies.remove(o,!0)}}function w(t){return u.default(t,e.cookies.all)}function E(){return r({internal_source:""},v)}return x.utm_source?Object.assign({},(t=Date.now(),_(c.utmMarkers,x),e.cookies.set("utm_date_set",t,g,!0),{utmMarkers:Object.assign({},x,E(),{cookieDate:t,collectionMethod:"get"})}),function(){var e=o[f.position];if(!l.default(e))return _(c.contextMarkers,{});var t,n={};return c.positionPattern.test(e)?(t=e.split(/\D/),n.ctx_position=t.length>1?t[1]:"",n.ctx_block=t[0]+e.replace(/\d/g,"")):(n.ctx_position=e,n.ctx_block=o[f.block]),n.ctx_source=o[f.source]||"",_(c.contextMarkers,n),n}()):Object.assign({},function(){var t=w(c.utmMarkers),n=h.default.run(e),r="",i=null,o=null;return t.utm_source?(r=t.utm_source,i=Number(e.cookies.get("utm_date_set"))||null,o="cookie"):(n&&(r=n,i=Date.now(),o="referrer",e.cookies.set("utm_date_set",i,g,!0)),e.cookies.set("utm_source",r,c.SIXTY_DAYS,!0)),{utmMarkers:Object.assign({},t,E(),{utm_source:r,cookieDate:i,collectionMethod:o})}}(),w(c.contextMarkers))}};t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){return"string"==typeof e}},function(e,t,n){"use strict";var r=n(660),i=n(661),o=n(662),a=n(663);e.exports=function(e){switch(!0){case r(e):return!0;case o(e):return""===e;case i(e):return 0===e.length;case a(e):return 0===Object.keys(e).length}return!1}},function(e,t,n){"use strict";e.exports=function(e){return null==e}},function(e,t,n){"use strict";e.exports=function(e){return!!e&&Array.isArray(e)}},function(e,t,n){"use strict";e.exports=function(e){return"string"==typeof e||e instanceof String}},function(e,t,n){"use strict";e.exports=function(e){return null!==e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=h(o),s=h(n(665)),u=h(n(668)),c=n(669),l=n(670),f=n(222);function h(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.generateUrl=function(){var e=n.props,t=e.sharedObject,i=e.socialId,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["sharedObject","socialId"]);t&&(0,l.asyncUrlGenerator)(r({socialId:i},(0,f.getParams)(["sharedObject",i]),o)).then(function(e){n.setState({url:e,urlLoaded:!0})})},n.handleClick=function(e){var t={event:e,id:n.props.socialId,props:n.props};n.props.onShareClick(t)},n.state={url:"",urlLoaded:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.PureComponent),i(t,[{key:"componentDidMount",value:function(){this.generateUrl()}},{key:"componentDidUpdate",value:function(e){var t=this;["image","title","description","url"].map(function(n){return e[n]!==t.props[n]}).some(function(e){return!!e})&&this.generateUrl()}},{key:"render",value:function(){var e=this.props,t=e.sharedObject,n=e.socialId,i=(0,f.getParams)([t?"sharedObject":"common",n]),o=this.props,c=o.icon,l=o.iconSize,h=o.classNames,p=o.shareText,d=o.openInNewTab,m=o.title,v=void 0===m?i.title:m,g=o.description,y=void 0===g?i.description:g,b=o.image,x=void 0===b?i.image:b,_=o.url,w=void 0===_?i.url:_,E=o.noStringify,S=void 0!==E&&E,T=o.label,M=o.hoverTitle,O=s.default[n](r({share:{title:v,description:y,image:x,url:t&&this.state.urlLoaded?this.state.url:w,noStringify:S}},i));return a.default.createElement("a",{className:h.link,onClick:this.handleClick,target:d?"_blank":null,rel:d?"noopener noreferrer":null,href:O,title:M||null,"aria-label":T||null},p||c||a.default.createElement(u.default,{className:h.fill,socialId:n,size:l}))}}]),t}();p.propTypes=c.socialLinkPt,p.defaultProps={onShareClick:function(){},iconSize:30,classNames:{fill:"",link:""},openInNewTab:!0,sharedObject:!1,noStringify:!1,label:"",shareText:"",hoverTitle:""},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(80);t.default={vk:function(e){var t=e.share,n=t.url,i=t.title,o=t.description,a=t.image,s=t.noStringify;return"https://vk.com/share.php?"+(0,r.stringify)({url:n,title:i,description:o,image:a},{strictNullHandling:!0,encode:!s})},fb:function(e){var t=e.share,n=e.appId,i=e.display,o=void 0===i?"popup":i,a=t.url,s=t.description,u=t.noStringify;if(!n)throw new Error("AppId is a required parameter for sharing in Facebook");if(-1===["async","iframe","page","popup","touch","wap"].indexOf(o))throw new Error("Display parameter should be one of [async, iframe, page, popup, touch, wap] for sharing in Facebook, recieved: '"+o+"'");return"https://www.facebook.com/dialog/feed?"+(0,r.stringify)({display:o,redirect_uri:"https://www.facebook.com",link:a,app_id:n,caption:s},{strictNullHandling:!0,encode:!u})},tw:function(e){var t=e.share,n=t.url,i=t.description,o=t.noStringify;return"https://twitter.com/intent/tweet?"+(0,r.stringify)({url:n,text:i},{strictNullHandling:!0,encode:!o})},ok:function(e){var t=e.share,n=t.url,i=t.title,o=t.description,a=t.image,s=t.noStringify;return"https://connect.ok.ru/offer?"+(0,r.stringify)({url:n,title:i,description:o,imageUrl:a},{strictNullHandling:!0,encode:!s})}}},function(e,t,n){"use strict";var r=n(304),i=n(305),o={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return a.call(e)},skipNulls:!1,strictNullHandling:!1},u=function e(t,n,i,o,a,u,c,l,f,h,p,d){var m=t;if("function"==typeof c)m=c(n,m);else if(m instanceof Date)m=h(m);else if(null===m){if(o)return u&&!d?u(n,s.encoder):n;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||r.isBuffer(m))return u?[p(d?n:u(n,s.encoder))+"="+p(u(m,s.encoder))]:[p(n)+"="+p(String(m))];var v,g=[];if(void 0===m)return g;if(Array.isArray(c))v=c;else{var y=Object.keys(m);v=l?y.sort(l):y}for(var b=0;b<v.length;++b){var x=v[b];a&&null===m[x]||(g=Array.isArray(m)?g.concat(e(m[x],i(n,x),i,o,a,u,c,l,f,h,p,d)):g.concat(e(m[x],n+(f?"."+x:"["+x+"]"),i,o,a,u,c,l,f,h,p,d)))}return g};e.exports=function(e,t){var n=e,a=t?r.assign({},t):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var c=void 0===a.delimiter?s.delimiter:a.delimiter,l="boolean"==typeof a.strictNullHandling?a.strictNullHandling:s.strictNullHandling,f="boolean"==typeof a.skipNulls?a.skipNulls:s.skipNulls,h="boolean"==typeof a.encode?a.encode:s.encode,p="function"==typeof a.encoder?a.encoder:s.encoder,d="function"==typeof a.sort?a.sort:null,m=void 0!==a.allowDots&&a.allowDots,v="function"==typeof a.serializeDate?a.serializeDate:s.serializeDate,g="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:s.encodeValuesOnly;if(void 0===a.format)a.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,a.format))throw new TypeError("Unknown format option provided.");var y,b,x=i.formatters[a.format];"function"==typeof a.filter?n=(b=a.filter)("",n):Array.isArray(a.filter)&&(y=b=a.filter);var _,w=[];if("object"!=typeof n||null===n)return"";_=a.arrayFormat in o?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var E=o[_];y||(y=Object.keys(n)),d&&y.sort(d);for(var S=0;S<y.length;++S){var T=y[S];f&&null===n[T]||(w=w.concat(u(n[T],T,E,l,f,h?p:null,b,d,m,v,x,g)))}var M=w.join(c),O=!0===a.addQueryPrefix?"?":"";return M.length>0?O+M:""}},function(e,t,n){"use strict";var r=n(304),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),s=a?r.slice(0,a.index):r,u=[];if(s){if(!n.plainObjects&&i.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var c=0;null!==(a=o.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+r.slice(a.index)+"]"),function(e,t,n){for(var r=t,i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a)o=(o=[]).concat(r);else{o=n.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(s,10);!isNaN(u)&&a!==s&&String(u)===s&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(o=[])[u]=r:o[s]=r}r=o}return r}(u,t,n)}};e.exports=function(e,t){var n=t?r.assign({},t):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"==typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:o.delimiter,n.depth="number"==typeof n.depth?n.depth:o.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:o.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:o.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:o.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:o.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:o.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:o.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:o.strictNullHandling,""===e||null==e)return n.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){for(var n={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,s=r.split(t.delimiter,a),u=0;u<s.length;++u){var c,l,f=s[u],h=f.indexOf("]="),p=-1===h?f.indexOf("="):h+1;-1===p?(c=t.decoder(f,o.decoder),l=t.strictNullHandling?null:""):(c=t.decoder(f.slice(0,p),o.decoder),l=t.decoder(f.slice(p+1),o.decoder)),i.call(n,c)?n[c]=[].concat(n[c]).concat(l):n[c]=l}return n}(e,n):e,u=n.plainObjects?Object.create(null):{},c=Object.keys(s),l=0;l<c.length;++l){var f=c[l],h=a(f,s[f],n);u=r.merge(u,h,n)}return r.compact(u)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.socialId,n=e.className,r=e.size;switch(t){case"fb":return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,viewBox:"0 0 10 19"},o.default.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(-15 -11)"},o.default.createElement("rect",{width:"40",height:"40",rx:"6"}),o.default.createElement("path",{fill:"#000",className:n,d:"M21.231 29.486v-8.432h2.83l.424-3.287h-3.254V15.67c0-.951.264-1.6 1.629-1.6h1.74v-2.94A23.29 23.29 0 0 0 22.064 11c-2.509 0-4.226 1.531-4.226 4.344v2.423H15v3.287h2.838v8.432h3.393z"})));case"vk":return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,viewBox:"0 0 20 12"},o.default.createElement("path",{fill:"#000",className:n,fillRule:"evenodd",d:"M16.614 5.742s2.636-3.718 2.897-4.94c.088-.435-.104-.68-.558-.68h-2.286c-.524 0-.716.227-.873.559 0 0-1.236 2.633-2.74 4.293-.483.536-.728.698-.995.698-.215 0-.314-.18-.314-.663V.768c0-.593-.07-.768-.558-.768H7.522c-.28 0-.454.162-.454.384 0 .559.855.685.855 2.199v3.124c0 .628-.035.872-.331.872-.786 0-2.653-2.705-3.7-5.776C3.682.175 3.456 0 2.862 0H.576C.244 0 0 .227 0 .558c0 .611.716 3.438 3.525 7.226 1.885 2.548 4.363 3.926 6.597 3.926 1.361 0 1.693-.227 1.693-.803V8.953c0-.489.192-.698.471-.698.314 0 .869.1 2.164 1.378 1.536 1.466 1.64 2.077 2.478 2.077h2.566c.262 0 .506-.122.506-.558 0-.576-.75-1.606-1.902-2.827-.471-.629-1.24-1.31-1.484-1.623-.349-.367-.244-.576 0-.96"}));case"tw":return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,viewBox:"0 0 260 260"},o.default.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(-60 -60)"},o.default.createElement("path",{fill:"#000",className:n,d:"M153.62,301.59c94.34,0,145.94-78.16,145.94-145.94,0-2.22,0-4.43-.15-6.63A104.36,104.36,0,0,0,325,122.47a102.38,102.38,0,0,1-29.46,8.07,51.47,51.47,0,0,0,22.55-28.37,102.79,102.79,0,0,1-32.57,12.45,51.34,51.34,0,0,0-87.41,46.78A145.62,145.62,0,0,1,92.4,107.81a51.33,51.33,0,0,0,15.88,68.47A50.91,50.91,0,0,1,85,169.86c0,.21,0,.43,0,.65a51.31,51.31,0,0,0,41.15,50.28,51.21,51.21,0,0,1-23.16.88,51.35,51.35,0,0,0,47.92,35.62,102.92,102.92,0,0,1-63.7,22A104.41,104.41,0,0,1,75,278.55a145.21,145.21,0,0,0,78.62,23"})));case"ok":return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,viewBox:"0 0 24 24"},o.default.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(7 4)"},o.default.createElement("path",{fill:"#000",className:n,d:"M4.18 11.341c-1.29-.127-2.455-.428-3.451-1.165-.124-.092-.252-.18-.365-.283-.436-.396-.48-.85-.135-1.318.296-.4.791-.508 1.307-.278.1.045.194.1.285.16 1.858 1.208 4.41 1.241 6.274.054.184-.134.382-.243.61-.299.446-.108.86.047 1.1.415.272.42.269.832-.067 1.158-.516.5-1.136.863-1.825 1.116-.652.239-1.365.36-2.071.439.106.11.157.164.223.227.96.912 1.922 1.82 2.878 2.734.326.312.394.698.214 1.06a1.144 1.144 0 0 1-1.065.629c-.272-.018-.485-.146-.674-.326-.724-.69-1.46-1.366-2.17-2.068-.206-.204-.305-.165-.487.012-.728.71-1.468 1.408-2.213 2.102-.334.312-.731.368-1.119.19-.412-.19-.674-.587-.654-.987.014-.27.155-.477.35-.663.95-.896 1.896-1.795 2.843-2.693.063-.06.121-.123.212-.216zm.605-3.163C2.555 8.17.728 6.318.74 4.08.754 1.817 2.583-.006 4.834 0 7.09.006 8.9 1.856 8.889 4.142c-.012 2.233-1.852 4.044-4.104 4.036zM6.81 4.085a1.99 1.99 0 0 0-1.993-1.997A1.992 1.992 0 0 0 2.82 4.11a1.99 1.99 0 0 0 2.008 1.982 1.985 1.985 0 0 0 1.983-2.006z"})));default:return null}};var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.socialLinkPt=void 0;var r,i=n(59),o=(r=i)&&r.__esModule?r:{default:r},a=n(219);var s={socialId:o.default.oneOf([a.VK,a.FB,a.TW,a.OK]).isRequired,icon:o.default.node,onShareClick:o.default.func,iconSize:o.default.number,classNames:o.default.shape({fill:o.default.string,link:o.default.string}),openInNewTab:o.default.bool,sharedObject:o.default.bool,title:o.default.string,hoverTitle:o.default.string,description:o.default.string,image:o.default.string,url:o.default.string,label:o.default.string,shareText:o.default.string};t.socialLinkPt=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asyncUrlGenerator=t.cache=t.createSharedObject=void 0;var r,i=n(671),o=(r=i)&&r.__esModule?r:{default:r},a=n(222);var s=t.createSharedObject=function(e){var t={header:e.title,body:e.description,uri:e.url,image:e.image},n=(0,a.getParams)(["env","createSharedObjectUrl"]);if(!n)throw new Error("createSharedObjectUrl environment variable not found. You should initialize it directly by init method");return(0,o.default)({method:"GET",url:n+"/create_shared_object",params:t}).then(function(e){return e.data.payload.id})},u=t.cache={};t.asyncUrlGenerator=function(e){var t=e.socialId,n=e.title,r=e.description,i=e.url,o=e.image,c=JSON.stringify({title:n,description:r,url:i,image:o});if(c in u)return u[c];var l=(0,a.getParams)(["env","sharedObjectUrl"]);if(!l)throw new Error("sharedObjectUrl environment variable not found. You should initialize it directly by init method");var f=s({title:n,description:r,url:i,image:o}).then(function(e){return l+"/shared_object/"+t+"/"+e}).then(function(e){return e}).catch(function(){return delete u[c],i});return u[c]=f,f}},function(e,t,n){e.exports=n(672)},function(e,t,n){"use strict";var r=n(51),i=n(306),o=n(673),a=n(220);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=s(a);u.Axios=o,u.create=function(e){return s(r.merge(a,e))},u.Cancel=n(311),u.CancelToken=n(686),u.isCancel=n(310),u.all=function(e){return Promise.all(e)},u.spread=n(687),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(220),i=n(51),o=n(681),a=n(682);function s(e){this.defaults=e,this.interceptors={request:new o,response:new o}}s.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),(e=i.merge(r,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],function(e){s.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){s.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=s},function(e,t,n){"use strict";var r=n(51);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(309);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e}},function(e,t,n){"use strict";var r=n(51);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},function(e,t,n){"use strict";var r=n(51),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(51);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(51);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(51);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},function(e,t,n){"use strict";var r=n(51),i=n(683),o=n(310),a=n(220),s=n(684),u=n(685);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.baseURL&&!s(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return c(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(c(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(51);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(311);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var r=n(689),i=n(690),o=n(691),a=n(693),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=s(n(0)),c=n(312),l=n(223),f=n(313);t.default=function(e){return function(t){o(s,t);var n=a(s);function s(e){var t;r(this,s),(t=n.call(this,e)).listeners={},t.updateMediaInfo=function(e){return c.debounce(function(n){n.matches&&t.setState({layout:e})},f.TIME_INTERVAL)};var i="";return t.initListMedia=l.getInitialListMedia(),Object.keys(t.initListMedia).forEach(function(e){t.listeners[e]=t.updateMediaInfo(e),t.initListMedia[e].addListener(t.listeners[e]),t.initListMedia[e].matches&&(i=e)}),t.state={layout:i},t}return i(s,[{key:"componentWillUnmount",value:function(){var e=this;Object.keys(this.initListMedia).forEach(function(t){e.initListMedia[t].removeListener(e.listeners[t])})}},{key:"render",value:function(){var t=this.state.layout;return u.default.createElement(e,Object.assign({},this.props,{layout:t}))}}]),s}(u.default.Component)}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(692);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){var r=n(694),i=n(695),o=n(696);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}},function(e,t,n){var r=n(697),i=n(698);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultListMedia={}},function(e,t,n){"use strict";var r=n(314);Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(312),a=n(223),s=n(313);t.useMatchMediaListener=function(){var e=i.useState(""),t=r(e,2),n=t[0],u=t[1],c=a.getInitialListMedia(),l={};return i.useEffect(function(){return Object.keys(c).forEach(function(e){l[e]=function(e,t){return o.debounce(function(n){n.matches&&t(e)},s.TIME_INTERVAL)}(e,u),c[e].addListener(l[e]),c[e].matches&&u(e)}),function(){return Object.keys(c).forEach(function(e){c[e].removeListener(l[e])})}},[c]),n}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}},function(e,t){e.exports=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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return window.matchMedia=window.matchMedia||function(){return{matches:!1,addListener:function(){},removeListener:function(){}}},window.matchMedia(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNetworkError=s,t.isRetryableError=l,t.isSafeRequestError=f,t.isIdempotentRequestError=h,t.isNetworkOrIdempotentRequestError=p,t.exponentialDelay=m,t.default=g;var r,i=n(706),o=(r=i)&&r.__esModule?r:{default:r};var a="axios-retry";function s(e){return!e.response&&Boolean(e.code)&&"ECONNABORTED"!==e.code&&(0,o.default)(e)}var u=["get","head","options"],c=u.concat(["put","delete"]);function l(e){return"ECONNABORTED"!==e.code&&(!e.response||e.response.status>=500&&e.response.status<=599)}function f(e){return!!e.config&&(l(e)&&-1!==u.indexOf(e.config.method))}function h(e){return!!e.config&&(l(e)&&-1!==c.indexOf(e.config.method))}function p(e){return s(e)||h(e)}function d(){return 0}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=100*Math.pow(2,e);return t+.2*t*Math.random()}function v(e){var t=e[a]||{};return t.retryCount=t.retryCount||0,e[a]=t,t}function g(e,t){e.interceptors.request.use(function(e){return v(e).lastRequestTime=Date.now(),e}),e.interceptors.response.use(null,function(n){var r=n.config;if(!r)return Promise.reject(n);var i=function(e,t){return Object.assign({},t,e[a])}(r,t),o=i.retries,s=void 0===o?3:o,u=i.retryCondition,c=void 0===u?p:u,l=i.retryDelay,f=void 0===l?d:l,h=i.shouldResetTimeout,m=void 0!==h&&h,g=v(r);if(c(n)&&g.retryCount<s){g.retryCount+=1;var y=f(g.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,r),!m&&r.timeout&&g.lastRequestTime){var b=Date.now()-g.lastRequestTime;r.timeout=Math.max(r.timeout-b-y,1)}return r.transformRequest=[function(e){return e}],new Promise(function(t){return setTimeout(function(){return t(e(r))},y)})}return Promise.reject(n)})}g.isNetworkError=s,g.isSafeRequestError=f,g.isIdempotentRequestError=h,g.isNetworkOrIdempotentRequestError=p,g.exponentialDelay=m,g.isRetryableError=l},function(e,t,n){"use strict";var r=["ETIMEDOUT","ECONNRESET","EADDRINUSE","ESOCKETTIMEDOUT","ECONNREFUSED","EPIPE","EHOSTUNREACH","EAI_AGAIN"],i=["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED"];e.exports=function(e){return!e||!e.code||(-1!==r.indexOf(e.code)||-1===i.indexOf(e.code))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.initSessionStorage=t.initLocalStorage=void 0;var i=n(708),o=n(709),a=n(710),s=n(711),u=function(e){var t=function(t){if(e.onError)return e.onError(t);console.error(t)},n=s.getWindowStorage(e.storageType,t);return n?new i.RealStorage({storage:n,onError:t}):new o.NullStorage};t.initLocalStorage=function(e){return u(r(r({},e),{storageType:a.StorageType.localStorage}))},t.initSessionStorage=function(e){return u(r(r({},e),{storageType:a.StorageType.sessionStorage}))}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RealStorage=void 0;var o=function(e){function t(t){var n=e.call(this)||this;return n.storage=t.storage,n.onError=t.onError,n}return i(t,e),t.prototype.getLength=function(){return this.storage.length},t.prototype.clear=function(){return this.storage.clear()},t.prototype.getItem=function(e){try{return this.storage.getItem(e)}catch(e){return this.onError(e),null}},t.prototype.getItemObject=function(e){try{var t=this.getItem(e);return null!==t?JSON.parse(t):t}catch(e){return this.onError(e),null}},t.prototype.key=function(e){return this.storage.key(e)},t.prototype.removeItem=function(e){return this.storage.removeItem(e)},t.prototype.setItem=function(e,t){try{this.storage.setItem(e,t)}catch(e){this.onError(e)}},t.prototype.setItemObject=function(e,t){try{this.setItem(e,JSON.stringify(t))}catch(e){this.onError(e)}},t}(n(316).AbstractStorage);t.RealStorage=o},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.NullStorage=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getLength=function(){console.error(new Error("Storage.getLength(): storage is undefined"))},t.prototype.clear=function(){console.error(new Error("Storage.clear(): storage undefined"))},t.prototype.getItem=function(){console.error(new Error("Storage.getItem(): storage undefined"))},t.prototype.getItemObject=function(){console.error(new Error("Storage.getItemObject(): storage undefined"))},t.prototype.key=function(){console.error(new Error("Storage.key(): storage undefined"))},t.prototype.removeItem=function(){console.error(new Error("Storage.removeItem(): storage undefined"))},t.prototype.setItem=function(){console.error(new Error("Storage.setItem(): storage undefined"))},t.prototype.setItemObject=function(){console.error(new Error("Storage.setItemObject(): storage undefined"))},t}(n(316).AbstractStorage);t.NullStorage=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StorageType=void 0,function(e){e.localStorage="localStorage",e.sessionStorage="sessionStorage"}(t.StorageType||(t.StorageType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWindowStorage=void 0,t.getWindowStorage=function(e,t){try{var n="specialsStorageCheck";return window[e].setItem(n,"true"),window[e].removeItem(n),window[e]}catch(e){return t(e),null}}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var r=n(44),i=n(317),o=n(714),a=n(323);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=s(n(320));u.Axios=o,u.create=function(e){return s(a(u.defaults,e))},u.Cancel=n(324),u.CancelToken=n(727),u.isCancel=n(319),u.all=function(e){return Promise.all(e)},u.spread=n(728),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(44),i=n(318),o=n(715),a=n(716),s=n(323);function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t}))}}),r.forEach(["post","put","patch"],function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}}),e.exports=u},function(e,t,n){"use strict";var r=n(44);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},function(e,t,n){"use strict";var r=n(44),i=n(717),o=n(319),a=n(320);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(44);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";var r=n(44);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(322);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(44);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(723),i=n(724);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(44),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(44);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(324);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthStrategyProjectTokenLocalStorage=void 0;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onFail=function(e){return localStorage.removeItem(t.config.token.projectTokenName),{isLoading:!1,isLoggedIn:!1,tinkoff:void 0,error:{error:e,strategy:t}}},t}return i(t,e),t.prototype.autoAuth=function(){return o(this,void 0,void 0,function(){return a(this,function(e){return[2,this.auth({localStorage:this.config.localStorage})]})})},t.prototype.auth=function(e){var t=e.localStorage;return o(this,void 0,void 0,function(){var e,n,r,i;return a(this,function(o){switch(o.label){case 0:return(e=t.getItem(this.config.token.projectTokenName))?[4,this.config.projectApi.me(e)]:[3,2];case 1:return n=o.sent(),r=n.token,i=n.data,this.config.projectApi.onAuthSuccess(e),[2,{error:void 0,isLoading:!1,isLoggedIn:!0,project:{token:r,data:i},tinkoff:void 0}];case 2:return[2,{error:void 0,isLoading:!1,isLoggedIn:!1,tinkoff:void 0}]}})})},t}(n(78).AbstractAuthStrategy);t.AuthStrategyProjectTokenLocalStorage=s},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthStrategyTinkoffTokenQueryParams=void 0;var u=n(78),c=s(n(80)),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onFail=function(e){return{isLoading:!1,isLoggedIn:!1,tinkoff:void 0,error:{error:e,strategy:t}}},t}return i(t,e),t.prototype.autoAuth=function(){return o(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this.auth({windowLocationSearch:window.location.search})];case 1:return[2,e.sent()]}})})},t.prototype.auth=function(e){var t=e.windowLocationSearch;return o(this,void 0,void 0,function(){var e,n,r,i,o,s,u;return a(this,function(a){switch(a.label){case 0:return e=c.default.parse(t.slice(1)),(n=e[this.config.token.tinkoffTokenName])?[4,this.config.tinkoffApi.signUp({lt:n})]:[3,3];case 1:return r=a.sent(),i=r.payload.sessionId,[4,this.config.projectApi.register(i)];case 2:return o=a.sent(),s=o.token,u=o.data,this.config.localStorage.setItem(this.config.token.projectTokenName,s),this.config.projectApi.onAuthSuccess(s),[2,{error:void 0,isLoading:!1,isLoggedIn:!0,tinkoff:{sessionId:i,isClient:!0},project:{token:s,data:u}}];case 3:return[2,{error:void 0,isLoading:!1,isLoggedIn:!1,tinkoff:void 0}]}})})},t}(u.AbstractAuthStrategy);t.AuthStrategyTinkoffTokenQueryParams=l},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthStrategyTinkoffInternetBank=void 0;var s=n(78),u=n(78),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onFail=function(e){return{isLoading:!1,isLoggedIn:!1,tinkoff:void 0,error:{error:e,strategy:t}}},t}return i(t,e),t.prototype.auth=function(e){var t=e.sessionId,n=e.accessLevel;return o(this,void 0,void 0,function(){var e,r,i;return a(this,function(o){switch(o.label){case 0:return n!==u.AccessLevel.client?[3,2]:[4,this.config.projectApi.register(t)];case 1:return e=o.sent(),r=e.token,i=e.data,this.config.localStorage.setItem(this.config.token.projectTokenName,r),this.config.projectApi.onAuthSuccess(r),[2,{error:void 0,isLoading:!1,isLoggedIn:!0,tinkoff:{sessionId:t,isClient:!0},project:{token:r,data:i}}];case 2:return[2,{error:void 0,isLoading:!1,isLoggedIn:!1,tinkoff:{isClient:!1,sessionId:t}}]}})})},t}(s.AbstractAuthStrategy);t.AuthStrategyTinkoffInternetBank=c},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthStrategySSOQueryParams=void 0;var u=n(78),c=s(n(80)),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onFail=function(e){return{isLoading:!1,isLoggedIn:!1,tinkoff:void 0,error:{error:e,strategy:t}}},t}return i(t,e),t.prototype.autoAuth=function(){return o(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this.auth({windowLocationSearch:window.location.search})];case 1:return[2,e.sent()]}})})},t.prototype.auth=function(e){var t=e.windowLocationSearch;return o(this,void 0,void 0,function(){var e,n,r,i,o,s,u,l;return a(this,function(a){switch(a.label){case 0:return e=c.default.parse(t.slice(1)),n=e[this.config.token.ssoCodeTokenName],r=e[this.config.token.ssoStateTokenName],i=e[this.config.token.ssoSessionStateTokenName],n&&r&&i?[4,this.config.ssoApi.completeSsoAuth({code:n,state:r,session_state:i})]:[3,3];case 1:return o=a.sent(),[4,this.config.projectApi.registerSso(o.access_token)];case 2:return s=a.sent(),u=s.token,l=s.data,this.config.localStorage.setItem(this.config.token.projectTokenName,u),this.config.localStorage.setItem(this.config.token.ssoTokenName,o.access_token),this.config.projectApi.onAuthSuccess(u),[2,{error:void 0,isLoading:!1,isLoggedIn:!0,tinkoff:{ssoAccessToken:o.access_token,sessionId:void 0,isClient:!0},project:{token:u,data:l}}];case 3:return[2,{error:void 0,isLoading:!1,isLoggedIn:!1,tinkoff:void 0}]}})})},t}(u.AbstractAuthStrategy);t.AuthStrategySSOQueryParams=l},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthStrategyTinkoffNotClient=void 0;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onFail=function(e){return{isLoading:!1,isLoggedIn:!1,tinkoff:void 0,error:{error:e,strategy:t}}},t}return i(t,e),t.prototype.auth=function(e){return o(this,void 0,void 0,function(){var t,n,r;return a(this,function(i){switch(i.label){case 0:return[4,this.config.projectApi.registerNotClient(e)];case 1:return t=i.sent(),n=t.token,r=t.data,this.config.localStorage.setItem(this.config.token.projectTokenName,n),this.config.projectApi.onAuthSuccess(n),[2,{error:void 0,isLoading:!1,isLoggedIn:!0,project:{token:n,data:r},tinkoff:void 0}]}})})},t}(n(78).AbstractAuthStrategy);t.AuthStrategyTinkoffNotClient=s},function(e,t,n){var r=n(326)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(90)(n(58),"DataView");e.exports=r},function(e,t,n){var r=n(327),i=n(739),o=n(91),a=n(329),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?h:s).test(a(e))}},function(e,t,n){var r=n(140),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,i=n(740),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(58)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(90)(n(58),"Promise");e.exports=r},function(e,t,n){var r=n(90)(n(58),"Set");e.exports=r},function(e,t,n){var r=n(90)(n(58),"WeakMap");e.exports=r},function(e,t,n){var r=n(116),i=n(92),o="[object Arguments]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(116),i=n(330),o=n(92),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t,n){"use strict";var r=n(332);function i(e,t){return{status:e[0],data:(n=e[1],r.isArrayBuffer(n)||r.isBuffer(n)||r.isStream(n)?n:r.isObjectOrArray(n)?JSON.parse(JSON.stringify(n)):n),headers:e[2],config:t,request:{responseUrl:t.url}};var n}e.exports=function(e,t,n,o){var a=o.url;o.baseURL&&o.url.substr(0,o.baseURL.length)===o.baseURL&&(a=o.url.slice(o.baseURL.length)),delete o.adapter,e.history[o.method].push(o);var s=r.findHandler(e.handlers,o.method,a,o.data,o.params,o.headers,o.baseURL);if(s)if(7===s.length&&r.purgeIfReplyOnce(e,s),2===s.length)e.originalAdapter(o).then(t,n);else if("function"!=typeof s[3])r.settle(t,n,i(s.slice(3),o),e.delayResponse);else{var u=s[3](o);"function"!=typeof u.then?r.settle(t,n,i(u,o),e.delayResponse):u.then(function(a){a.config&&a.status?r.settle(t,n,i([a.status,a.data,a.headers],a.config),0):r.settle(t,n,i(a,o),e.delayResponse)},function(t){e.delayResponse>0?setTimeout(function(){n(t)},e.delayResponse):n(t)})}else switch(e.onNoMatch){case"passthrough":e.originalAdapter(o).then(t,n);break;default:r.settle(t,n,{status:404,config:o},e.delayResponse)}}},function(e,t,n){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},function(e,t,n){var r=n(241);e.exports=function(e,t){for(var n=-1,i=t.length,o=Array(i),a=null==e;++n<i;)o[n]=a?void 0:r(e,t[n]);return o}},function(e,t,n){var r=n(79),i=n(141),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},function(e,t,n){var r=n(753),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=a},function(e,t,n){var r=n(754),i=500;e.exports=function(e){var t=r(e,function(e){return n.size===i&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(334),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(756),i=n(176),o=n(225);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(757),i=n(758),o=n(759),a=n(760),s=n(761);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(175);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(175),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(175),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(175),i="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(177),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(177);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(177);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(177);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(178);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(178);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(178);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(178);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(773);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(140),i=n(231),o=n(79),a=n(141),s=1/0,u=r?r.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t,n){var r=n(336),i=n(179),o=Array.prototype.splice;e.exports=function(e,t){for(var n=e?t.length:0,a=n-1;n--;){var s=t[n];if(n==a||s!==u){var u=s;i(s)?o.call(e,s,1):r(e,s)}}return e}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(333),i=n(337);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},function(e,t,n){var r=n(141);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,u=null===t,c=t==t,l=r(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!l&&e<t||l&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}},function(e,t,n){var r=n(779);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},function(e,t,n){var r=n(234),i=n(780);e.exports=function e(t,n,o,a,s){var u=-1,c=t.length;for(o||(o=i),s||(s=[]);++u<c;){var l=t[u];n>0&&o(l)?n>1?e(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(e,t,n){var r=n(140),i=n(226),o=n(79),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(782),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(u),r(e,this,c)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(784),i=n(787)(r);e.exports=i},function(e,t,n){var r=n(785),i=n(339),o=n(786),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){e.exports=function(e){return e}},function(e,t){var n=800,r=16,i=Date.now;e.exports=function(e){var t=0,o=0;return function(){var a=i(),s=r-(a-o);if(o=a,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUser=void 0;var r=n(0),i=n(340);t.useUser=function(e){var t,n=((t=r.useReducer(function(e){return e+1},0))[0],t[1]),o=i.User.createOrGetSingleton(e);return r.useEffect(function(){o.onChange(n)},[]),[o,o.getUserState()]}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProjectApi=void 0;var o=function(){function e(e){var t=this;this.me=function(e){return r(t,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return[4,this.api.get("/api/v1/auth",{headers:this.buildAuthHeader(e)}).then(this.extractPayload)];case 1:return[2,t.sent()]}})})},this.register=function(e){return r(t,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return[4,this.api.post("/api/v1/auth",{sessionId:e}).then(this.extractPayload)];case 1:return[2,t.sent()]}})})},this.registerSso=function(e){return r(t,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return[4,this.api.post("/api/v1/auth/sso",{ssoToken:e}).then(this.extractPayload)];case 1:return[2,t.sent()]}})})},this.registerNotClient=function(e){return r(t,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return[4,this.api.post("/api/v1/auth/not-client",e).then(this.extractPayload)];case 1:return[2,t.sent()]}})})},this.onAuthSuccess=function(e){t.authToken=e},this.api=e}return e.prototype.extractPayload=function(e){return e.data.payload},e.prototype.buildAuthHeader=function(e){return{Authorization:"Bearer "+(e||this.authToken)}},e}();t.ProjectApi=o},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.SsoApi=void 0;var o=function(){return function(e){var t=this;this.completeSsoAuth=function(e){return r(t,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return[4,this.api.get("/complete",{params:e})];case 1:return[2,t.sent().data]}})})},this.api=e}}();t.SsoApi=o},function(e,t,n){"use strict";var r=n(341),i=n(142);t.__esModule=!0,t.default=t.MODAL_MOBILE_SIZES=t.MODAL_SIZES=void 0;var o=i(n(66)),a=i(n(30)),s=i(n(342)),u=r(n(0)),c=(i(n(59)),i(n(343))),l=n(354),f=i(n(796)),h=i(n(345)),p=i(n(812)),d=i(n(346));t.MODAL_SIZES=["s","m","l","xl","fullScreen"];t.MODAL_MOBILE_SIZES=["s","fullScreen"];var m=function(e){return e.preventDefault()},v=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleClose=function(e){return t.props.onClose(e)},t}return(0,s.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.children,r=t.size,i=t.mobileSize,o=t.minHeight,s=t.alignSelf,v=t.disableAnimation,g=t.disableHorizontalPadding,y=(0,a.default)(t,["children","size","mobileSize","minHeight","alignSelf","disableAnimation","disableHorizontalPadding"]),b="fullScreen"===i,x={popupOpenedClass:b?d.default.combined_open:d.default.fade_open,popupClosedClass:b?d.default.combined_close:d.default.fade_close};return u.default.createElement(h.default,Object.assign({},y,{disableAnimation:v},v?{popupOpenedClass:null,popupClosedClass:null}:x),u.default.createElement("div",{className:(0,c.default)((e={},e[p.default.root]=!0,e[p.default["root_size_"+r]]=r,e[p.default["root_mobileSize_"+i]]=i,e[p.default.root_disableHorizontalPadding]=g,e))},u.default.createElement("div",{style:{minHeight:o,alignSelf:s},className:p.default.popup},u.default.createElement("button",{type:"button",className:p.default.closeButton,onClick:this.handleClose,onMouseDown:m,"aria-label":"Закрыть попап"},u.default.createElement(f.default,null)),u.default.createElement(l.PortalContainer,null,u.default.createElement("div",{className:p.default.content},n)))))},t}(u.PureComponent);v.defaultProps=(0,o.default)({},h.default.defaultProps,{size:"l",dataQaType:"uikit/popup",mobileSize:"fullScreen",minHeight:null,alignSelf:null,disableAnimation:!1,disableHorizontalPadding:!1});var g=v;t.default=g},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){(t=e.exports=n(93)(!1)).push([e.i,"._32HrGRp52R_w0PUJWkfWdf {\n    position: relative;\n}\n",""]),t.locals={root:"_32HrGRp52R_w0PUJWkfWdf"}},function(e,t,n){(t=e.exports=n(93)(!1)).push([e.i,"._3VD0LizXGED_ghPAhTSRd {\n    position: relative;\n    min-width: 100%;\n\n    /*  нужно для PF-21621 */\n    display: flex;\n    flex-direction: column;\n}\n",""]),t.locals={container:"_3VD0LizXGED_ghPAhTSRd"}},function(e,t,n){"use strict";var r=n(142).default;t.__esModule=!0,t.default=void 0;var i=n(797),o=r(n(806)),a=(0,i.getInterface24IconClass)(o.default);t.default=a},function(e,t,n){"use strict";var r=n(142).default;t.__esModule=!0,t.getIconClass=a,t.getPaymentSystemIconClass=t.getInterface24IconClass=t.getInterface16IconClass=void 0;var i=r(n(0)),o=r(n(870));function a(e,t){return function(n){return i.default.createElement(o.default,Object.assign({},n,{icon:e},t))}}t.getInterface16IconClass=function(e,t){var n=(void 0===t?{}:t).withContainer,r={iconSize:16,backgroundSize:n?16:void 0};return void 0!==n&&(r.withContainer=n),a(e,r)};t.getInterface24IconClass=function(e,t){var n=(void 0===t?{}:t).withContainer,r={iconSize:24,backgroundSize:n?24:void 0};return void 0!==n&&(r.withContainer=n),a(e,r)};t.getPaymentSystemIconClass=function(e){return a(e,{iconSize:32})}},function(e,t,n){"use strict";var r=n(235);e.exports={primary:r["yellow-100"],"status-warning":r["yellow-100"],"primary-hover":r["yellow-200"],"status-warning-hover":r["yellow-200"],"primary-active":r["yellow-300"],"status-warning-active":r["yellow-300"],"whiteblock-hover":r["gray-100"],"card-secondary":r["gray-100"],border:r["gray-200"],"border-dark":r["gray-300"],"border-darker":r["gray-400"],status:r["gray-400"],"text-alternate":r["gray-400"],"status-hover":r["gray-500"],"textfield-placeholder":r["gray-500"],"border-focus":r["gray-600"],"textfield-placeholder-hover":r["gray-600"],"status-active":r["gray-600"],textfield:r["lightBlue-100"],secondary:r["lightBlue-100"],"textfield-hover":r["lightBlue-200"],"secondary-hover":r["lightBlue-200"],"secondary-active":r["lightBlue-300"],"blank-black":r["black-300"],"blank-white":r.white,"card-primary":r.white,"text-inverse":r.white,"outline-border":r["blue-100"],link:r["blue-100"],"outline-border-hover":r["blue-200"],"link-hover":r["blue-200"],"outline-border-active":r["blue-300"],"link-active":r["blue-300"],"status-success":r["green-100"],"status-success-hover":r["green-200"],"status-success-active":r["green-300"],"status-error":r["red-100"],"status-error-hover":r["red-200"],"status-error-active":r["red-300"],"true-black":r["black-400"]}},function(e,t,n){"use strict";e.exports={mustard:"#ffd450",texas:"#ffb74c",tan:"#f8a34d",salmon:"#ff8863",bittersweet:"#ff7b76",sienna:"#ee805d",pinkie:"#ff78a7",charm:"#d45d8c",amethyst:"#bc71c9",helio:"#a381ff",lilac:"#8f75d1",malibu:"#7caeff",havelock:"#65a7e0",picton:"#4dc3f7",mint:"#4bd0e1",fountain:"#4eb6c2",puertorico:"#4fbdb2",bay:"#4da197",forest:"#73b077",york:"#81c785",feijoa:"#aed57f"}},function(e,t,n){"use strict";var r=n(235);e.exports={"text-primary":"rgba(0, 0, 0, 0.8)","text-secondary":"rgba(0, 0, 0, 0.54)","text-placeholder-hover":"rgba(0, 0, 0, 0.54)","text-tertiary":"rgba(0, 0, 0, 0.4)","text-placeholder":"rgba(0, 0, 0, 0.4)","text-primary-inverse":"rgba(255, 255, 255, 1)","text-secondary-inverse":"rgba(255, 255, 255, 0.72)","text-link":r["blue-100"],"text-link-hover":r["blue-300"],"text-green":r["green-300"],"text-success":r["green-300"],"text-error":r["red-300"],"text-red":r["red-300"]}},function(e,t,n){(t=e.exports=n(93)(!1)).push([e.i,"._3aOORgNvTgQBL_Km5Srcre {\n    position: relative;\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n}\n\n._1QaInNi3joZZlTMcv02lvJ {\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    margin: auto;\n    border-radius: 50%;\n    width: 100%;\n    height: 100%;\n    max-width: 100%;\n    max-height: 100%;\n}\n\n._1uqZ90i9myvJKA4o38Urj_ {\n    position: relative;\n    display: inline-block;\n    max-width: 100%;\n    max-height: 100%;\n    transition-duration: .2s;\n    transition-timing-function: ease;\n    transition-property: background-color, color;\n    color: inherit;\n}\n\n._1uqZ90i9myvJKA4o38Urj_ svg {\n        vertical-align: top; /* нужно для фикса выравнивания иконки в IE */\n    }\n\n._1uqZ90i9myvJKA4o38Urj_ .icon__stroke {\n            stroke: currentColor;\n            fill: none;\n        }\n\n._1uqZ90i9myvJKA4o38Urj_ .icon__fill {\n            stroke: none;\n            fill: currentColor;\n        }\n\n._3OCNb283_sN0vYYAQRKVBK {\n    display: inline-block;\n    max-width: 100%;\n    max-height: 100%;\n}\n",""]),t.locals={container:"_3aOORgNvTgQBL_Km5Srcre",background:"_1QaInNi3joZZlTMcv02lvJ",icon:"_1uqZ90i9myvJKA4o38Urj_",svgIcon:"_3OCNb283_sN0vYYAQRKVBK"}},function(e,t,n){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];n+=(r&i|~r&o)+t[0]-680876936|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+t[4]-176418897|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+t[8]+1770035416|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+t[12]+1804603682|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0,n+=((r=(r<<22|r>>>10)+i|0)&o|i&~o)+t[1]-165796510|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+t[5]-701558691|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+t[9]+568446438|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+t[13]-1444681467|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0,n+=((r=(r<<20|r>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+t[1]-1530992060|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+t[13]+681279174|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+t[9]-640364487|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0,n+=(i^((r=(r<<23|r>>>9)+i|0)|~o))+t[0]-198630844|0,o+=(r^((n=(n<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0,i+=(n^((o=(o<<10|o>>>22)+n|0)|~r))+t[14]-1416354905|0,r+=(o^((i=(i<<15|i>>>17)+o|0)|~n))+t[5]-57434055|0,n+=(i^((r=(r<<21|r>>>11)+i|0)|~o))+t[12]+1700485571|0,o+=(r^((n=(n<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0,i+=(n^((o=(o<<10|o>>>22)+n|0)|~r))+t[10]-1051523|0,r+=(o^((i=(i<<15|i>>>17)+o|0)|~n))+t[1]-2054922799|0,n+=(i^((r=(r<<21|r>>>11)+i|0)|~o))+t[8]+1873313359|0,o+=(r^((n=(n<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0,i+=(n^((o=(o<<10|o>>>22)+n|0)|~r))+t[6]-1560198380|0,r+=(o^((i=(i<<15|i>>>17)+o|0)|~n))+t[13]+1309151649|0,n+=(i^((r=(r<<21|r>>>11)+i|0)|~o))+t[4]-145523070|0,o+=(r^((n=(n<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0,i+=(n^((o=(o<<10|o>>>22)+n|0)|~r))+t[2]+718787259|0,r=((r+=(o^((i=(i<<15|i>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,a,s,u,c=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(l,r(e.substring(t-64,t)));for(e=e.substring(t-64),i=e.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(l,o),t=0;t<16;t+=1)o[t]=0;return a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(l,o),l}function a(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function s(e){var t;for(t=0;t<e.length;t+=1)e[t]=a(e[t]);return e.join("")}function u(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function c(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function l(){this.reset()}return s(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i,o,a,s,u=this.byteLength,c=t(n,u),l=u;return r!==e&&(l=t(r,u)),c>l?new ArrayBuffer(0):(i=l-c,o=new ArrayBuffer(i),a=new Uint8Array(o),s=new Uint8Array(this,c,i),a.set(s),o)}}(),l.prototype.append=function(e){return this.appendBinary(u(e)),this},l.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},l.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=s(this._hash),e&&(n=c(n)),this.reset(),n},l.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},l.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},l.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},l.prototype._finish=function(e,t){var r,i,o,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},l.hash=function(e,t){return l.hashBinary(u(e),t)},l.hashBinary=function(e,t){var n=s(o(e));return t?c(n):n},l.ArrayBuffer=function(){this.reset()},l.ArrayBuffer.prototype.append=function(e){var t,r,o,a,s,u=(r=this._buff.buffer,o=e,a=!0,(s=new Uint8Array(r.byteLength+o.byteLength)).set(new Uint8Array(r)),s.set(new Uint8Array(o),r.byteLength),a?s:s.buffer),c=u.length;for(this._length+=e.byteLength,t=64;t<=c;t+=64)n(this._hash,i(u.subarray(t-64,t)));return this._buff=t-64<c?new Uint8Array(u.buffer.slice(t-64)):new Uint8Array(0),this},l.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=s(this._hash),e&&(n=c(n)),this.reset(),n},l.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.ArrayBuffer.prototype.getState=function(){var e,t=l.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},l.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var n,r=e.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=e.charCodeAt(n);return t?o:i}(e.buff,!0),l.prototype.setState.call(this,e)},l.ArrayBuffer.prototype.destroy=l.prototype.destroy,l.ArrayBuffer.prototype._finish=l.prototype._finish,l.ArrayBuffer.hash=function(e,t){var r=s(function(e){var t,r,o,a,s,u,c=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(l,i(e.subarray(t-64,t)));for(e=t-64<c?e.subarray(t-64):new Uint8Array(0),r=e.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(l,o),t=0;t<16;t+=1)o[t]=0;return a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(l,o),l}(new Uint8Array(e)));return t?c(r):r},l}()},function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r)return r;throw new Error("unable to locate global object")}();e.exports=t=r.fetch,r.fetch&&(t.default=r.fetch.bind(r)),t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response},function(e,t,n){"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case h:case a:case u:case s:case d:return e;default:switch(e=e&&e.$$typeof){case l:case p:case g:case v:case c:return e;default:return t}}case o:return t}}}function E(e){return w(e)===h}t.AsyncMode=f,t.ConcurrentMode=h,t.ContextConsumer=l,t.ContextProvider=c,t.Element=i,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=d,t.isAsyncMode=function(e){return E(e)||w(e)===f},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===u},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===h||e===u||e===s||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===b||e.$$typeof===x||e.$$typeof===_||e.$$typeof===y)},t.typeOf=w},function(e,t,n){(t=e.exports=n(93)(!1)).push([e.i,"@-webkit-keyframes _2Hc6R9A_Ed9Fk2cUQjOy4I {\n    from {\n        -webkit-transform: scale(0);\n                transform: scale(0);\n        opacity: 0;\n    }\n\n    to {\n        -webkit-transform: scale(1);\n                transform: scale(1);\n        opacity: 1;\n    }\n}\n\n@keyframes _2Hc6R9A_Ed9Fk2cUQjOy4I {\n    from {\n        -webkit-transform: scale(0);\n                transform: scale(0);\n        opacity: 0;\n    }\n\n    to {\n        -webkit-transform: scale(1);\n                transform: scale(1);\n        opacity: 1;\n    }\n}\n\n@-webkit-keyframes _3mEsOkqxNsutwEynG4Zw3Z {\n    from {\n        -webkit-transform: scale(1);\n                transform: scale(1);\n        opacity: 1;\n    }\n\n    to {\n        -webkit-transform: scale(0);\n                transform: scale(0);\n        opacity: 0;\n    }\n}\n\n@keyframes _3mEsOkqxNsutwEynG4Zw3Z {\n    from {\n        -webkit-transform: scale(1);\n                transform: scale(1);\n        opacity: 1;\n    }\n\n    to {\n        -webkit-transform: scale(0);\n                transform: scale(0);\n        opacity: 0;\n    }\n}\n\n._1gJgBWeukRXpO88_rQcxgK {\n    position: relative;\n    display: inline-flex;\n}\n\n._4Ik4INBuy3-A2vnMLhlTl {\n    position: absolute;\n    right: 0;\n    box-sizing: border-box;\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    overflow: hidden;\n    background-color: var(--tds-color-primary, #ffdd2d);\n    -webkit-user-select: none;\n       -moz-user-select: none;\n        -ms-user-select: none;\n            user-select: none;\n}\n\n._1Min250eo222JvAiIPjci {\n        padding: 0 8px;\n    }\n\n._1i2Qu5eZQthAHyM7zx3O0w {\n        top: 0;\n    }\n\n._2YG_ga8Yj_H_qTDbp4b6fs {\n        bottom: 0;\n    }\n\n._2w8zEonn27aNO4aX2DlrYm .XBr7RNKN68NScLc9QLhtW,\n        ._1JAYjqoPalDW7-Dn-5Waz4 .XBr7RNKN68NScLc9QLhtW,\n        ._3mEzGpgQxht7-Ky1hAKsS_ .XBr7RNKN68NScLc9QLhtW {\n            font-size: 13px;\n        }\n\n.dYgoihNuqTdFoQjKJX1Du .XBr7RNKN68NScLc9QLhtW,\n        .CBExEzJvaLL7W4f7e5Yju .XBr7RNKN68NScLc9QLhtW,\n        ._1OlSKEmavI7j76z1WBzx3o .XBr7RNKN68NScLc9QLhtW {\n            font-size: 11px;\n            line-height: 1;\n        }\n\n._2w8zEonn27aNO4aX2DlrYm ._4Ik4INBuy3-A2vnMLhlTl {\n        min-width: 32px;\n        height: 32px;\n        border-radius: 16px;\n        right: 24px;\n    }\n\n._2w8zEonn27aNO4aX2DlrYm ._1i2Qu5eZQthAHyM7zx3O0w {\n            top: 16px;\n        }\n\n._2w8zEonn27aNO4aX2DlrYm ._2YG_ga8Yj_H_qTDbp4b6fs {\n            bottom: 16px;\n        }\n\n._2w8zEonn27aNO4aX2DlrYm ._2sqfvamtwkLSbcOeeiJdKI {\n            right: -9px;\n        }\n\n._2w8zEonn27aNO4aX2DlrYm ._2sqfvamtwkLSbcOeeiJdKI._1i2Qu5eZQthAHyM7zx3O0w {\n            top: -9px;\n        }\n\n._2w8zEonn27aNO4aX2DlrYm ._2sqfvamtwkLSbcOeeiJdKI._2YG_ga8Yj_H_qTDbp4b6fs {\n            bottom: -9px;\n        }\n\n._1JAYjqoPalDW7-Dn-5Waz4 ._4Ik4INBuy3-A2vnMLhlTl {\n        min-width: 32px;\n        height: 32px;\n        border-radius: 16px;\n        right: 0;\n    }\n\n._1JAYjqoPalDW7-Dn-5Waz4 ._1i2Qu5eZQthAHyM7zx3O0w {\n            top: -1px;\n        }\n\n._1JAYjqoPalDW7-Dn-5Waz4 ._2YG_ga8Yj_H_qTDbp4b6fs {\n            bottom: -1px;\n        }\n\n._1JAYjqoPalDW7-Dn-5Waz4 ._2sqfvamtwkLSbcOeeiJdKI {\n            right: -9px;\n        }\n\n._1JAYjqoPalDW7-Dn-5Waz4 ._2sqfvamtwkLSbcOeeiJdKI._1i2Qu5eZQthAHyM7zx3O0w {\n            top: -9px;\n        }\n\n._1JAYjqoPalDW7-Dn-5Waz4 ._2sqfvamtwkLSbcOeeiJdKI._2YG_ga8Yj_H_qTDbp4b6fs {\n            bottom: -9px;\n        }\n\n._3mEzGpgQxht7-Ky1hAKsS_ ._4Ik4INBuy3-A2vnMLhlTl {\n        right: -1px;\n        min-width: 24px;\n        height: 24px;\n        border-radius: 12px;\n    }\n\n._3mEzGpgQxht7-Ky1hAKsS_ ._1i2Qu5eZQthAHyM7zx3O0w {\n            top: -1px;\n        }\n\n._3mEzGpgQxht7-Ky1hAKsS_ ._2YG_ga8Yj_H_qTDbp4b6fs {\n            bottom: -1px;\n        }\n\n._3mEzGpgQxht7-Ky1hAKsS_ ._2sqfvamtwkLSbcOeeiJdKI {\n            right: -7px;\n        }\n\n._3mEzGpgQxht7-Ky1hAKsS_ ._2sqfvamtwkLSbcOeeiJdKI._1i2Qu5eZQthAHyM7zx3O0w {\n            top: -7px;\n        }\n\n._3mEzGpgQxht7-Ky1hAKsS_ ._2sqfvamtwkLSbcOeeiJdKI._2YG_ga8Yj_H_qTDbp4b6fs {\n            bottom: -7px;\n        }\n\n.dYgoihNuqTdFoQjKJX1Du ._4Ik4INBuy3-A2vnMLhlTl {\n        right: -3px;\n        min-width: 20px;\n        height: 20px;\n        border-radius: 10px;\n    }\n\n.dYgoihNuqTdFoQjKJX1Du ._1i2Qu5eZQthAHyM7zx3O0w {\n            top: -4px;\n        }\n\n.dYgoihNuqTdFoQjKJX1Du ._2YG_ga8Yj_H_qTDbp4b6fs {\n            bottom: 1px;\n        }\n\n.dYgoihNuqTdFoQjKJX1Du ._2sqfvamtwkLSbcOeeiJdKI {\n            right: -8px;\n        }\n\n.dYgoihNuqTdFoQjKJX1Du ._2sqfvamtwkLSbcOeeiJdKI._1i2Qu5eZQthAHyM7zx3O0w {\n            top: -8px;\n        }\n\n.dYgoihNuqTdFoQjKJX1Du ._2sqfvamtwkLSbcOeeiJdKI._2YG_ga8Yj_H_qTDbp4b6fs {\n            bottom: -8px;\n        }\n\n.CBExEzJvaLL7W4f7e5Yju ._4Ik4INBuy3-A2vnMLhlTl {\n        right: -4px;\n        min-width: 20px;\n        height: 20px;\n        border-radius: 10px;\n    }\n\n.CBExEzJvaLL7W4f7e5Yju ._1i2Qu5eZQthAHyM7zx3O0w {\n            top: -4px;\n        }\n\n.CBExEzJvaLL7W4f7e5Yju ._2YG_ga8Yj_H_qTDbp4b6fs {\n            bottom: -4px;\n        }\n\n._1OlSKEmavI7j76z1WBzx3o ._4Ik4INBuy3-A2vnMLhlTl {\n        right: -9px;\n        min-width: 22px;\n        height: 22px;\n        border-radius: 11px;\n    }\n\n._1OlSKEmavI7j76z1WBzx3o ._1i2Qu5eZQthAHyM7zx3O0w {\n            top: -9px;\n        }\n\n._1OlSKEmavI7j76z1WBzx3o ._2YG_ga8Yj_H_qTDbp4b6fs {\n            bottom: -9px;\n        }\n\n._2SVKqeExqLoO2cP8yLqkXQ ._4Ik4INBuy3-A2vnMLhlTl {\n        display: none;\n    }\n\n._34-53ih6L2jnmUh2oeZYYi {\n    position: absolute;\n    top: 0;\n    border-radius: 50%;\n    background-clip: content-box;\n}\n\n._30vx6VR95JX3Wxe2xF1tY {\n            background-color: var(--tds-color-error-fill, #f52222);\n        }\n\n._1bYyTprj_-jXRAB-1LSaMd {\n            background-color: var(--tds-color-warning-fill, #fab619);\n        }\n\n.oODKcjCeLGVD-xMTE1RbZ {\n            background-color: var(--tds-color-success-fill, #00b92d);\n        }\n\n._2w8zEonn27aNO4aX2DlrYm ._34-53ih6L2jnmUh2oeZYYi {\n        top: 13px;\n        right: 21px;\n        width: 32px;\n        height: 32px;\n    }\n\n._2w8zEonn27aNO4aX2DlrYm ._3lveC-JRvO2N6R7WEeCiIc {\n            top: -9px;\n            right: -9px;\n        }\n\n._1JAYjqoPalDW7-Dn-5Waz4 ._34-53ih6L2jnmUh2oeZYYi {\n        top: -1px;\n        right: -1px;\n        width: 32px;\n        height: 32px;\n    }\n\n._1JAYjqoPalDW7-Dn-5Waz4 ._3lveC-JRvO2N6R7WEeCiIc {\n            top: -9px;\n            right: -9px;\n        }\n\n._3mEzGpgQxht7-Ky1hAKsS_ ._34-53ih6L2jnmUh2oeZYYi {\n        top: -1px;\n        right: -1px;\n        width: 24px;\n        height: 24px;\n    }\n\n._3mEzGpgQxht7-Ky1hAKsS_ ._3lveC-JRvO2N6R7WEeCiIc {\n            top: -7px;\n            right: -9px;\n        }\n\n.dYgoihNuqTdFoQjKJX1Du ._34-53ih6L2jnmUh2oeZYYi {\n        top: -2px;\n        right: -2px;\n        width: 20px;\n        height: 20px;\n    }\n\n.dYgoihNuqTdFoQjKJX1Du ._3lveC-JRvO2N6R7WEeCiIc {\n            top: -10px;\n            right: -8px;\n        }\n\n.CBExEzJvaLL7W4f7e5Yju ._34-53ih6L2jnmUh2oeZYYi {\n        top: -4px;\n        right: -4px;\n        width: 20px;\n        height: 20px;\n    }\n\n.CBExEzJvaLL7W4f7e5Yju ._3lveC-JRvO2N6R7WEeCiIc {\n            top: -7px;\n            right: -7px;\n        }\n\n._1OlSKEmavI7j76z1WBzx3o ._34-53ih6L2jnmUh2oeZYYi,\n    ._2SVKqeExqLoO2cP8yLqkXQ ._34-53ih6L2jnmUh2oeZYYi {\n        top: 0;\n        right: 0;\n        width: 8px;\n        height: 8px;\n    }\n\n._1OlSKEmavI7j76z1WBzx3o ._3lveC-JRvO2N6R7WEeCiIc, ._2SVKqeExqLoO2cP8yLqkXQ ._3lveC-JRvO2N6R7WEeCiIc {\n            top: -2px;\n            right: -2px;\n        }\n\n._3krgM0Q_YkzlT5_1bBPNu1 {\n        -webkit-transform: scale(1);\n                transform: scale(1);\n        opacity: 1;\n    }\n\n.cgZeuL3-XIcd-2DNXbqlb {\n        -webkit-transform: scale(0);\n                transform: scale(0);\n        opacity: 0;\n    }\n\n._1NxNgH2IYUYLB8rKL-QISA {\n        -webkit-animation: _2Hc6R9A_Ed9Fk2cUQjOy4I .25s ease forwards;\n                animation: _2Hc6R9A_Ed9Fk2cUQjOy4I .25s ease forwards;\n    }\n\n._2g9uAVtq13XNtNK2ylTqg0 {\n        -webkit-animation: _3mEsOkqxNsutwEynG4Zw3Z .25s ease forwards;\n                animation: _3mEsOkqxNsutwEynG4Zw3Z .25s ease forwards;\n    }\n",""]),t.locals={root:"_1gJgBWeukRXpO88_rQcxgK",badgeWrapper:"_4Ik4INBuy3-A2vnMLhlTl",badgeWrapper_longText:"_1Min250eo222JvAiIPjci",badgeWrapper_position_top:"_1i2Qu5eZQthAHyM7zx3O0w",badgeWrapper_position_bottom:"_2YG_ga8Yj_H_qTDbp4b6fs",root_size_xxxl:"_2w8zEonn27aNO4aX2DlrYm",badgeWrapper_text:"XBr7RNKN68NScLc9QLhtW",root_size_xxl:"_1JAYjqoPalDW7-Dn-5Waz4",root_size_xl:"_3mEzGpgQxht7-Ky1hAKsS_",root_size_l:"dYgoihNuqTdFoQjKJX1Du",root_size_m:"CBExEzJvaLL7W4f7e5Yju",root_size_s:"_1OlSKEmavI7j76z1WBzx3o",badgeWrapper_square:"_2sqfvamtwkLSbcOeeiJdKI",root_size_xs:"_2SVKqeExqLoO2cP8yLqkXQ",notification:"_34-53ih6L2jnmUh2oeZYYi",notification_type_alert:"_30vx6VR95JX3Wxe2xF1tY",notification_type_warning:"_1bYyTprj_-jXRAB-1LSaMd",notification_type_success:"oODKcjCeLGVD-xMTE1RbZ",notification_square:"_3lveC-JRvO2N6R7WEeCiIc",transition_show:"_3krgM0Q_YkzlT5_1bBPNu1",transition_hide:"cgZeuL3-XIcd-2DNXbqlb",transition_enter:"_1NxNgH2IYUYLB8rKL-QISA",showBadge:"_2Hc6R9A_Ed9Fk2cUQjOy4I",transition_leave:"_2g9uAVtq13XNtNK2ylTqg0",hideBadge:"_3mEsOkqxNsutwEynG4Zw3Z"}},function(e,t,n){e.exports=n.p+"static/media/NavClose.17af5e76.svg"},function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return a[e];var n,o=String(e);return(n=r[o.toLowerCase()])?n:(n=i[o.toLowerCase()])||(1===o.length?o.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var o;if(o=r[t.toLowerCase()])return o===n;if(o=i[t.toLowerCase()])return o===n}else if("number"==typeof t)return t===n;return!1}};var r=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};
/*!
 * Programatically add the following
 */
for(o=97;o<123;o++)r[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)r[o-48]=o;for(o=1;o<13;o++)r["f"+o]=o+111;for(o=0;o<10;o++)r["numpad "+o]=o+96;var a=t.names=t.title={};for(o in r)a[r[o]]=o;for(var s in i)r[s]=i[s]},function(e,t,n){"use strict";var r,i;function o(){return window.innerWidth-document.documentElement.clientWidth}function a(){var e=document.querySelector("html"),t=document.body,n=window.getComputedStyle(e);return"scroll"===n["overflow-x"]||"scroll"===n["overflow-y"]?e:t}if(t.__esModule=!0,t.bodyHasScrollBar=function(){if(void 0===i)return!!o();return i},t.enableBodyScroll=t.clearAllBodyScrollLocks=t.disableBodyScroll=void 0,"undefined"!=typeof window){try{r=a()}catch(e){}window.addEventListener("DOMContentLoaded",function(){r||(r=a())})}var s,u,c=[],l=function(){setTimeout(function(){void 0!==u&&(r.style.paddingRight=u,u=void 0),void 0!==s&&(r.style.overflow=s,s=void 0),i=void 0})};t.disableBodyScroll=function(e,t){setTimeout(function(){if(void 0===u){var e=o();(i=e>0)&&(u=r.style.paddingRight,r.style.paddingRight=e+"px")}void 0===s&&(s=r.style.overflow,r.style.overflow="hidden")}),c=[].concat(c,[{targetElement:e,options:t||{}}])};t.clearAllBodyScrollLocks=function(){l(),c=[]};t.enableBodyScroll=function(e){1===c.length&&c[0].targetElement===e?(l(),c=[]):c=c.filter(function(t){return t.targetElement!==e})}},function(e,t,n){var r=n(810);"string"==typeof r&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};n(94)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(93)(!1)).push([e.i,"@-webkit-keyframes G5vx8p2PnhLrWvngqR5_u {\n    from { opacity: 0; }\n    to { opacity: 1; }\n}\n\n@keyframes G5vx8p2PnhLrWvngqR5_u {\n    from { opacity: 0; }\n    to { opacity: 1; }\n}\n\n@-webkit-keyframes _1k_mg9VqewufeRU3uQogf0 {\n    from { opacity: 1; }\n    to { opacity: 0; }\n}\n\n@keyframes _1k_mg9VqewufeRU3uQogf0 {\n    from { opacity: 1; }\n    to { opacity: 0; }\n}\n\n._3rXXRzDHaUelE9YwHp8pMo {\n    position: fixed;\n    top: 0;\n    left: 0;\n    right: 0;\n    z-index: 100;\n    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n._3rXXRzDHaUelE9YwHp8pMo::before {\n        content: '';\n        opacity: 0;\n        display: block;\n        width: 100%;\n        height: 100%;\n    }\n\n._3PjwsvAPTiipbhqzIjptbj::before {\n            background: rgba(51, 51, 51, 0.24);\n        }\n\n._2x2A9UdTX8_RCpj1djFZs6::before {\n            background: rgba(51, 51, 51, 0.88);\n        }\n\n._3rXXRzDHaUelE9YwHp8pMo:not(._1eQ6auaYS9URkv9Qq38NLv).KVRJVUp9irbNdEgtybA3K::before {\n        -webkit-animation: G5vx8p2PnhLrWvngqR5_u .5s cubic-bezier(.54, 1.12, 1, 1) forwards;\n                animation: G5vx8p2PnhLrWvngqR5_u .5s cubic-bezier(.54, 1.12, 1, 1) forwards;\n    }\n\n._3rXXRzDHaUelE9YwHp8pMo:not(._1eQ6auaYS9URkv9Qq38NLv)._2RheY-tnW16elhnmhged-x::before {\n        -webkit-animation: _1k_mg9VqewufeRU3uQogf0 .25s forwards;\n                animation: _1k_mg9VqewufeRU3uQogf0 .25s forwards;\n    }\n\n._1eQ6auaYS9URkv9Qq38NLv.KVRJVUp9irbNdEgtybA3K::before {\n        opacity: 1;\n    }\n\n._1eQ6auaYS9URkv9Qq38NLv._2RheY-tnW16elhnmhged-x::before {\n        opacity: 0;\n    }\n\n._36gMAIgqz71z9uRXUCrPf4 {\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    overflow-x: hidden;\n    overflow-y: auto;\n    -webkit-overflow-scrolling: touch;\n    outline: none;\n}\n\n._1U7Sh77s0t1ADK4lnc6h77 ._36gMAIgqz71z9uRXUCrPf4 {\n        overflow-y: scroll;\n    }\n\n._3kz_FjkCXZNzkSJ0ww0JH8 {\n    min-height: 100%;\n    box-sizing: border-box;\n    display: flex;\n    flex-direction: column;\n}\n",""]),t.locals={root:"_3rXXRzDHaUelE9YwHp8pMo",root_theme_light:"_3PjwsvAPTiipbhqzIjptbj",root_theme_dark:"_2x2A9UdTX8_RCpj1djFZs6",root_disabledAnimation:"_1eQ6auaYS9URkv9Qq38NLv",root_opened:"KVRJVUp9irbNdEgtybA3K",showOverlay:"G5vx8p2PnhLrWvngqR5_u",root_closed:"_2RheY-tnW16elhnmhged-x",hideOverlay:"_1k_mg9VqewufeRU3uQogf0",popupScrollableWrapper:"_36gMAIgqz71z9uRXUCrPf4",root_forceScroll:"_1U7Sh77s0t1ADK4lnc6h77",popupWrapper:"_3kz_FjkCXZNzkSJ0ww0JH8"}},function(e,t,n){(t=e.exports=n(93)(!1)).push([e.i,"@-webkit-keyframes LcCkKZvbcCe3XnTF3LbBs {\n    from {\n        -webkit-transform: translateY(100%);\n                transform: translateY(100%);\n        opacity: 0;\n    }\n\n    to {\n        -webkit-transform: translateY(0);\n                transform: translateY(0);\n        opacity: 1;\n    }\n}\n\n@keyframes LcCkKZvbcCe3XnTF3LbBs {\n    from {\n        -webkit-transform: translateY(100%);\n                transform: translateY(100%);\n        opacity: 0;\n    }\n\n    to {\n        -webkit-transform: translateY(0);\n                transform: translateY(0);\n        opacity: 1;\n    }\n}\n\n@-webkit-keyframes w1aESbZ6RsSv6bnpxZLBP {\n    from {\n        -webkit-transform: translateY(0);\n                transform: translateY(0);\n        opacity: 1;\n    }\n\n    to {\n        -webkit-transform: translateY(100%);\n                transform: translateY(100%);\n        opacity: 0;\n    }\n}\n\n@keyframes w1aESbZ6RsSv6bnpxZLBP {\n    from {\n        -webkit-transform: translateY(0);\n                transform: translateY(0);\n        opacity: 1;\n    }\n\n    to {\n        -webkit-transform: translateY(100%);\n                transform: translateY(100%);\n        opacity: 0;\n    }\n}\n\n@-webkit-keyframes _2rWl-2ud_QlCrnd9Eg7Sz0 {\n    from {\n        -webkit-transform: translateY(120px);\n                transform: translateY(120px);\n        opacity: 0;\n    }\n\n    to {\n        -webkit-transform: translateY(0);\n                transform: translateY(0);\n        opacity: 1;\n    }\n}\n\n@keyframes _2rWl-2ud_QlCrnd9Eg7Sz0 {\n    from {\n        -webkit-transform: translateY(120px);\n                transform: translateY(120px);\n        opacity: 0;\n    }\n\n    to {\n        -webkit-transform: translateY(0);\n                transform: translateY(0);\n        opacity: 1;\n    }\n}\n\n@-webkit-keyframes _1KOQAyo0JPpVpWangx84bi {\n    from {\n        opacity: 1;\n    }\n\n    to {\n        opacity: 0;\n    }\n}\n\n@keyframes _1KOQAyo0JPpVpWangx84bi {\n    from {\n        opacity: 1;\n    }\n\n    to {\n        opacity: 0;\n    }\n}\n\n._2NrZRShUFmrD4DFSvAOyHC {\n        -webkit-animation: LcCkKZvbcCe3XnTF3LbBs .35s;\n                animation: LcCkKZvbcCe3XnTF3LbBs .35s;\n    }\n\n._2Gk-rxsw2k0yv1WvaxETm7 {\n        -webkit-animation: w1aESbZ6RsSv6bnpxZLBP .35s;\n                animation: w1aESbZ6RsSv6bnpxZLBP .35s;\n    }\n\n._1xZ4-vCoPoYKYzsWZcbzpN {\n        -webkit-animation: _2rWl-2ud_QlCrnd9Eg7Sz0 .3s ease-out;\n                animation: _2rWl-2ud_QlCrnd9Eg7Sz0 .3s ease-out;\n    }\n\n.garSIHqH_C-JhnwmF-Bv0 {\n        -webkit-animation: _1KOQAyo0JPpVpWangx84bi .23s ease-out;\n                animation: _1KOQAyo0JPpVpWangx84bi .23s ease-out;\n    }\n\n._3GHyq2cTt1rTwTtyGAgKK6 {\n        -webkit-animation: LcCkKZvbcCe3XnTF3LbBs .35s;\n                animation: LcCkKZvbcCe3XnTF3LbBs .35s;\n    }\n\n@media (min-width: 600px) {\n\n._3GHyq2cTt1rTwTtyGAgKK6 {\n            -webkit-animation: _2rWl-2ud_QlCrnd9Eg7Sz0 .3s ease-out;\n                    animation: _2rWl-2ud_QlCrnd9Eg7Sz0 .3s ease-out\n    }\n        }\n\n._30np0nyqAWblXkP62d72Ae {\n        -webkit-animation: w1aESbZ6RsSv6bnpxZLBP .35s;\n                animation: w1aESbZ6RsSv6bnpxZLBP .35s;\n    }\n\n@media (min-width: 600px) {\n\n._30np0nyqAWblXkP62d72Ae {\n            -webkit-animation: _1KOQAyo0JPpVpWangx84bi .23s ease-out;\n                    animation: _1KOQAyo0JPpVpWangx84bi .23s ease-out\n    }\n        }\n",""]),t.locals={slide_open:"_2NrZRShUFmrD4DFSvAOyHC",showPopupSlide:"LcCkKZvbcCe3XnTF3LbBs",slide_close:"_2Gk-rxsw2k0yv1WvaxETm7",hidePopupSlide:"w1aESbZ6RsSv6bnpxZLBP",fade_open:"_1xZ4-vCoPoYKYzsWZcbzpN",showPopupFade:"_2rWl-2ud_QlCrnd9Eg7Sz0",fade_close:"garSIHqH_C-JhnwmF-Bv0",hidePopupFade:"_1KOQAyo0JPpVpWangx84bi",combined_open:"_3GHyq2cTt1rTwTtyGAgKK6",combined_close:"_30np0nyqAWblXkP62d72Ae"}},function(e,t,n){var r=n(813);"string"==typeof r&&(r=[[e.i,r,""]]);var i={insert:"head",singleton:!1};n(94)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=e.exports=n(93)(!1)).push([e.i,"._1iWtNtajxzKZdxeMfYRDl8 {\n    margin: auto;\n    display: flex;\n    flex-grow: 1;\n    pointer-events: none;\n    width: 100%;\n    min-height: 100%;\n    flex-shrink: 0;\n    box-sizing: border-box;\n}\n\n    ._1BukHGkkLs_xR4eHjTnm5b {\n        padding: 40px 16px;\n    }\n\n    @media (min-width: 600px) {\n\n    ._3pCM9ryD1CwhMmtWB4-8ON {\n            padding: 40px 16px\n    }\n        }\n\n    @media (min-width: 600px) {\n\n    ._3BOTL6bJgK0q-iD0t82Bcc,\n    .GiUfN2q1ttiU4o2Eocg0l,\n    ._3E2LFgTccJbqX3jWwsMIcV {\n            padding: 40px 44px\n    }\n        }\n\n    @media (min-width: 600px) {\n\n    ._2tbwaNg7_nrRdTx2tYLZEF {\n            padding: 0\n    }\n        }\n\n._74NROGy9rTyGcmA3r3ovP {\n    position: relative;\n    box-sizing: border-box;\n    background-color: white;\n    align-self: flex-end;\n    pointer-events: all;\n    margin-left: auto;\n    margin-right: auto;\n    padding: 32px 40px 32px 24px;\n    width: 100%;\n}\n\n._1BukHGkkLs_xR4eHjTnm5b ._74NROGy9rTyGcmA3r3ovP {\n        max-width: 400px;\n        border-radius: 8px;\n        box-shadow: 0 18px 30px 0 rgba(51, 51, 51, 0.64);\n    }\n\n@media (min-width: 600px) {\n\n._3pCM9ryD1CwhMmtWB4-8ON ._74NROGy9rTyGcmA3r3ovP,\n    ._3BOTL6bJgK0q-iD0t82Bcc ._74NROGy9rTyGcmA3r3ovP,\n    .GiUfN2q1ttiU4o2Eocg0l ._74NROGy9rTyGcmA3r3ovP,\n    ._3E2LFgTccJbqX3jWwsMIcV ._74NROGy9rTyGcmA3r3ovP {\n            align-self: center;\n            min-height: 40px;\n            border-radius: 8px;\n            box-shadow: 0 18px 30px 0 rgba(51, 51, 51, 0.64)\n    }\n        }\n\n@media (min-width: 600px) {\n\n._74NROGy9rTyGcmA3r3ovP {\n        padding: 40px\n}\n    }\n\n@media (min-width: 600px) {\n\n._3pCM9ryD1CwhMmtWB4-8ON ._74NROGy9rTyGcmA3r3ovP {\n            max-width: 400px\n    }\n        }\n\n@media (min-width: 600px) {\n\n._3BOTL6bJgK0q-iD0t82Bcc ._74NROGy9rTyGcmA3r3ovP,\n    .GiUfN2q1ttiU4o2Eocg0l ._74NROGy9rTyGcmA3r3ovP,\n    ._3E2LFgTccJbqX3jWwsMIcV ._74NROGy9rTyGcmA3r3ovP {\n            max-width: 512px\n    }\n        }\n\n@media (min-width: 768px) {\n\n._3BOTL6bJgK0q-iD0t82Bcc ._74NROGy9rTyGcmA3r3ovP,\n    .GiUfN2q1ttiU4o2Eocg0l ._74NROGy9rTyGcmA3r3ovP {\n            max-width: 600px\n    }\n        }\n\n@media (min-width: 1024px) {\n\n.GiUfN2q1ttiU4o2Eocg0l ._74NROGy9rTyGcmA3r3ovP {\n            max-width: 824px\n    }\n        }\n\n@media (min-width: 1360px) {\n\n.GiUfN2q1ttiU4o2Eocg0l ._74NROGy9rTyGcmA3r3ovP {\n            max-width: 880px\n    }\n        }\n\n@media (min-width: 1024px) {\n\n._3E2LFgTccJbqX3jWwsMIcV ._74NROGy9rTyGcmA3r3ovP {\n            max-width: 904px\n    }\n        }\n\n@media (min-width: 1360px) {\n\n._3E2LFgTccJbqX3jWwsMIcV ._74NROGy9rTyGcmA3r3ovP {\n            max-width: 1184px\n    }\n        }\n\n@media (min-width: 600px) {\n\n._2tbwaNg7_nrRdTx2tYLZEF ._74NROGy9rTyGcmA3r3ovP {\n            padding-right: 0;\n            padding-left: 0;\n            max-width: none;\n            min-height: 100vh;\n            border-radius: 0\n    }\n        }\n\n@media (min-width: 768px) {\n\n._2tbwaNg7_nrRdTx2tYLZEF ._74NROGy9rTyGcmA3r3ovP {\n            padding: 64px 0\n    }\n        }\n\n.Cieq-7RwWLqoXS38SU3MX ._74NROGy9rTyGcmA3r3ovP {\n        padding-left: 0;\n        padding-right: 0;\n    }\n\n.bUy_-DZGnpy2rY7Y7PcOD {\n    position: relative;\n    width: 100%;\n}\n\n._2tbwaNg7_nrRdTx2tYLZEF .bUy_-DZGnpy2rY7Y7PcOD {\n        margin: auto;\n    }\n\n@media (min-width: 600px) {\n\n._2tbwaNg7_nrRdTx2tYLZEF .bUy_-DZGnpy2rY7Y7PcOD {\n            width: 424px\n    }\n        }\n\n@media (min-width: 768px) {\n\n._2tbwaNg7_nrRdTx2tYLZEF .bUy_-DZGnpy2rY7Y7PcOD {\n            width: 504px\n    }\n        }\n\n@media (min-width: 1024px) {\n\n._2tbwaNg7_nrRdTx2tYLZEF .bUy_-DZGnpy2rY7Y7PcOD {\n            width: 680px\n    }\n        }\n\n@media (min-width: 1360px) {\n\n._2tbwaNg7_nrRdTx2tYLZEF .bUy_-DZGnpy2rY7Y7PcOD {\n            width: 720px\n    }\n        }\n\n.oECHgDHmOT1eLHtSOsXR7 {\n    top: 8px;\n    right: 8px;\n    padding: 0;\n    border: none;\n    background: none;\n    -webkit-appearance: none;\n       -moz-appearance: none;\n            appearance: none;\n    outline: none;\n    cursor: pointer;\n    pointer-events: all;\n    color: #959BA4;\n    transition: color ease .2s;\n}\n\n.oECHgDHmOT1eLHtSOsXR7:hover {\n        color: #616871;\n    }\n\n.oECHgDHmOT1eLHtSOsXR7:focus {\n        box-shadow: 0 0 0 2px #616871;\n    }\n\n@media (max-width: 599px) {\n\n._1BukHGkkLs_xR4eHjTnm5b .oECHgDHmOT1eLHtSOsXR7 {\n            position: absolute\n    }\n        }\n\n@media (min-width: 600px) {\n\n._1iWtNtajxzKZdxeMfYRDl8:not(._2tbwaNg7_nrRdTx2tYLZEF) .oECHgDHmOT1eLHtSOsXR7 {\n            position: absolute\n    }\n        }\n\n@media (max-width: 599px) {\n\n._2EoEgM5Q_e4WbuxLwZh5P3 .oECHgDHmOT1eLHtSOsXR7 {\n            position: -webkit-sticky;\n            position: sticky;\n            display: block;\n            margin-left: auto;\n            margin-top: -24px;\n            margin-right: -32px\n    }\n        }\n\n@media (min-width: 600px) {\n\n._2tbwaNg7_nrRdTx2tYLZEF .oECHgDHmOT1eLHtSOsXR7 {\n            position: -webkit-sticky;\n            position: sticky;\n            display: block;\n            margin: -24px -24px 8px auto\n    }\n        }\n\n@media (min-width: 768px) {\n\n._2tbwaNg7_nrRdTx2tYLZEF .oECHgDHmOT1eLHtSOsXR7 {\n            margin-top: -44px;\n            top: 20px;\n            right: 20px\n    }\n        }\n",""]),t.locals={root:"_1iWtNtajxzKZdxeMfYRDl8",root_mobileSize_s:"_1BukHGkkLs_xR4eHjTnm5b",root_size_s:"_3pCM9ryD1CwhMmtWB4-8ON",root_size_m:"_3BOTL6bJgK0q-iD0t82Bcc",root_size_l:"GiUfN2q1ttiU4o2Eocg0l",root_size_xl:"_3E2LFgTccJbqX3jWwsMIcV",root_size_fullScreen:"_2tbwaNg7_nrRdTx2tYLZEF",popup:"_74NROGy9rTyGcmA3r3ovP",root_disableHorizontalPadding:"Cieq-7RwWLqoXS38SU3MX",content:"bUy_-DZGnpy2rY7Y7PcOD",closeButton:"oECHgDHmOT1eLHtSOsXR7",root_mobileSize_fullScreen:"_2EoEgM5Q_e4WbuxLwZh5P3"}},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Iframe=void 0;var i=r(n(0)),o=n(816),a=n(818);t.Iframe=function(e){var t=e.title,n=e.defaultHeight,r=e.srcOrigin,s=e.srcPath,u=e.srcParentUrl,c=e.srcSearchParams,l=void 0===c?{}:c,f=e.onMessage,h=e.onSubmit,p=e.className,d=e.useScrolling,m=a.useListenMessageEvent(r,f,h).height;return i.default.createElement("iframe",{title:t,height:m||n,src:o.buildSrc(r,s,l,u),className:p,scrolling:d?"yes":"no"})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildSrc=void 0;var r=n(817);t.buildSrc=function(e,t,n,i){if(!e)throw new Error("You should set origin of iframe via corresponding prop");var o=new URLSearchParams;Object.entries(n).forEach(function(e){var t=e[0],n=e[1];o.set(t,n.toString())});var a=r.buildSrcParentUrl(i);a&&o.set("parent_url",a);var s=o.toString();return s?""+e+t+"?"+s:""+e+t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildSrcParentUrl=void 0;var r=["state","code","session_state","secret","sessionid","sessionId"];function i(e){var t,n,i=e.origin,o=e.pathname,a=e.hash,s=e.search,u=(t=s.slice(1),n=new URLSearchParams(t),r.forEach(function(e){n.delete(e)}),n.toString());return u?""+i+o+"?"+u+a:""+i+o+a}t.buildSrcParentUrl=function(e){return"string"==typeof e&&e.length>0?i(new URL(e)):void 0===e?i(new URL(window.location.href)):void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useListenMessageEvent=void 0;var r=n(0),i=n(819);t.useListenMessageEvent=function(e,t,n){var o=r.useState(0),a=o[0],s=o[1];r.useEffect(function(){return window.addEventListener("message",u),function(){window.removeEventListener("message",u)}},[]);var u=function(r){var o=function(e){try{return JSON.parse(e.data)}catch(e){console.warn(e)}}(r);(function(e){return Boolean(e&&e.type)})(o)&&function(e,t){return e.origin===t||e.origin+"/"===t}(r,e)&&function(e){switch(e.type){case i.EventDataType.appFramePageHeight:s(e.result.height+1);break;case i.EventDataType.formSubmit:n&&n()}t&&t(e)}(o)};return{height:a}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventDataType=void 0,function(e){e.appFramePageHeight="appFramePageHeight",e.formCompleted="formCompleted",e.formSubmit="formSubmit",e.formStep2="formStep2",e.formStep3="formStep3",e.formStep4="formStep4",e.stepChange="stepChange",e.formAutosave="formAutosave",e.formAutosaveFio="formAutosaveFio",e.formAutosavePass="formAutosavePass",e.customTrackingAction="customTrackingAction"}(t.EventDataType||(t.EventDataType={}))},function(e,t,n){var r=n(233),i=n(174),o=n(179),a=n(91);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){var r=n(822);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(823),i=1/0,o=1.7976931348623157e308;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(91),i=n(141),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):s.test(e)?o:+e}},function(e,t,n){var r=n(224);e.exports=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}},function(e,t,n){var r=n(826),i=n(827),o=n(224),a=n(828);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t,n){var r=n(315);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})}},function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function a(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=i.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=a(n[0]);r!==n[0]&&(t[n[0]]=r)}n=i.exec(e)}t["%C2"]="�";for(var o=Object.keys(t),s=0;s<o.length;s++){var u=o[s];e=e.replace(new RegExp(u,"g"),t[u])}return e}(e)}}},function(e,t,n){"use strict";e.exports=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},function(e,t,n){var r=n(833),i=n(839),o=n(347),a=n(840),s=n(842),u=n(845),c=n(846),l=n(847),f=n(849),h=n(850),p=n(353),d=n(173),m=n(851),v=n(852),g=n(858),y=n(79),b=n(227),x=n(860),_=n(91),w=n(862),E=n(236),S=n(237),T=1,M=2,O=4,A="[object Arguments]",k="[object Function]",C="[object GeneratorFunction]",P="[object Object]",L={};L[A]=L["[object Array]"]=L["[object ArrayBuffer]"]=L["[object DataView]"]=L["[object Boolean]"]=L["[object Date]"]=L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Map]"]=L["[object Number]"]=L[P]=L["[object RegExp]"]=L["[object Set]"]=L["[object String]"]=L["[object Symbol]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L["[object Error]"]=L[k]=L["[object WeakMap]"]=!1,e.exports=function e(t,n,R,j,N,I){var D,B=n&T,F=n&M,U=n&O;if(R&&(D=N?R(t,j,N,I):R(t)),void 0!==D)return D;if(!_(t))return t;var z=y(t);if(z){if(D=m(t),!B)return c(t,D)}else{var H=d(t),G=H==k||H==C;if(b(t))return u(t,B);if(H==P||H==A||G&&!N){if(D=F||G?{}:g(t),!B)return F?f(t,s(D,t)):l(t,a(D,t))}else{if(!L[H])return N?t:{};D=v(t,H,B)}}I||(I=new r);var W=I.get(t);if(W)return W;I.set(t,D),w(t)?t.forEach(function(r){D.add(e(r,n,R,r,t,I))}):x(t)&&t.forEach(function(r,i){D.set(i,e(r,n,R,i,t,I))});var V=z?void 0:(U?F?p:h:F?S:E)(t);return i(V||t,function(r,i){V&&(r=t[i=r]),o(D,i,e(r,n,R,i,t,I))}),D}},function(e,t,n){var r=n(176),i=n(834),o=n(835),a=n(836),s=n(837),u=n(838);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},function(e,t,n){var r=n(176);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(176),i=n(225),o=n(334),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(143),i=n(236);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(143),i=n(237);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(91),i=n(172),o=n(844),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){(function(e){var r=n(58),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(228)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(143),i=n(238);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t,n){var r=n(143),i=n(351);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(352),i=n(238),o=n(236);e.exports=function(e){return r(e,o,i)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(240),i=n(854),o=n(855),a=n(856),s=n(857),u="[object Boolean]",c="[object Date]",l="[object Map]",f="[object Number]",h="[object RegExp]",p="[object Set]",d="[object String]",m="[object Symbol]",v="[object ArrayBuffer]",g="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",x="[object Int8Array]",_="[object Int16Array]",w="[object Int32Array]",E="[object Uint8Array]",S="[object Uint8ClampedArray]",T="[object Uint16Array]",M="[object Uint32Array]";e.exports=function(e,t,n){var O=e.constructor;switch(t){case v:return r(e);case u:case c:return new O(+e);case g:return i(e,n);case y:case b:case x:case _:case w:case E:case S:case T:case M:return s(e,n);case l:return new O;case f:case d:return new O(e);case h:return o(e);case p:return new O;case m:return a(e)}}},function(e,t,n){var r=n(58).Uint8Array;e.exports=r},function(e,t,n){var r=n(240);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(140),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},function(e,t,n){var r=n(240);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(859),i=n(239),o=n(172);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},function(e,t,n){var r=n(91),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(861),i=n(229),o=n(230),a=o&&o.isMap,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(173),i=n(92),o="[object Map]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){var r=n(863),i=n(229),o=n(230),a=o&&o.isSet,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(173),i=n(92),o="[object Set]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){var r=n(865);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){var r=n(116),i=n(239),o=n(92),a="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,l=u.hasOwnProperty,f=c.call(Object);e.exports=function(e){if(!o(e)||r(e)!=a)return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(0))&&"object"==typeof r&&"default"in r?r.default:r;function o(e){return o.warnAboutHMRDisabled&&(o.warnAboutHMRDisabled=!0,console.error("React-Hot-Loader: misconfiguration detected, using production version in non-production environment."),console.error("React-Hot-Loader: Hot Module Replacement is not enabled.")),i.Children.only(e.children)}o.warnAboutHMRDisabled=!1;var a=function e(){return e.shouldWrapWithAppContainer?function(e){return function(t){return i.createElement(o,null,i.createElement(e,t))}}:function(e){return e}};a.shouldWrapWithAppContainer=!1;t.AppContainer=o,t.hot=a,t.areComponentsEqual=function(e,t){return e===t},t.setConfig=function(){},t.cold=function(e){return e},t.configureComponent=function(){}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"FunctionToString",function(){return K}),n.d(r,"InboundFilters",function(){return ae});var i={};n.r(i),n.d(i,"GlobalHandlers",function(){return kt}),n.d(i,"TryCatch",function(){return ht}),n.d(i,"Breadcrumbs",function(){return Ot}),n.d(i,"LinkedErrors",function(){return Lt}),n.d(i,"UserAgent",function(){return jt});var o={};n.r(o),n.d(o,"BaseTransport",function(){return ze}),n.d(o,"FetchTransport",function(){return Ge}),n.d(o,"XHRTransport",function(){return We});var a={};n.r(a),n.d(a,"Severity",function(){return be}),n.d(a,"Status",function(){return ge}),n.d(a,"addGlobalEventProcessor",function(){return ee.b}),n.d(a,"addBreadcrumb",function(){return et}),n.d(a,"captureException",function(){return Je}),n.d(a,"captureEvent",function(){return Ke}),n.d(a,"captureMessage",function(){return Qe}),n.d(a,"configureScope",function(){return $e}),n.d(a,"getHubFromCarrier",function(){return te.c}),n.d(a,"getCurrentHub",function(){return te.b}),n.d(a,"Hub",function(){return te.a}),n.d(a,"Scope",function(){return ee.a}),n.d(a,"setContext",function(){return tt}),n.d(a,"setExtra",function(){return it}),n.d(a,"setExtras",function(){return nt}),n.d(a,"setTag",function(){return ot}),n.d(a,"setTags",function(){return rt}),n.d(a,"setUser",function(){return at}),n.d(a,"withScope",function(){return st}),n.d(a,"BrowserClient",function(){return Xe}),n.d(a,"defaultIntegrations",function(){return Nt}),n.d(a,"forceLoad",function(){return Ft}),n.d(a,"init",function(){return It}),n.d(a,"lastEventId",function(){return Bt}),n.d(a,"onLoad",function(){return Ut}),n.d(a,"showReportDialog",function(){return Dt}),n.d(a,"flush",function(){return zt}),n.d(a,"close",function(){return Ht}),n.d(a,"wrap",function(){return Gt}),n.d(a,"SDK_NAME",function(){return qe}),n.d(a,"SDK_VERSION",function(){return Ye}),n.d(a,"Integrations",function(){return Yt}),n.d(a,"Transports",function(){return o});n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(410),n(411),n(154),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(424),n(425),n(427),n(428),n(429),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(467),n(468),n(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(485),n(486),n(487),n(489),n(490),n(491),n(492),n(497),n(498),n(499),n(501),n(502),n(503),n(504),n(505),n(506),n(507),n(508),n(509),n(510),n(511),n(512),n(282),n(513),n(514),n(515),n(516),n(517),n(518),n(519),n(283),n(520),n(521),n(522),n(523),n(524),n(525),n(527),n(528),n(529),n(530),n(531),n(532),n(533),n(534),n(535),n(536),n(537),n(538),n(539),n(540),n(541),n(542),n(543),n(544),n(545),n(546),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578),n(579),n(580),n(581),n(582),n(583),n(584),n(586),n(587),n(588),n(589),n(591),n(191);var s=n(12),u=n.n(s);function c(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){c(o,r,i,a,s,"next",e)}function s(e){c(o,r,i,a,s,"throw",e)}a(void 0)})}}n(290);var f,h,p=n(0),d=n.n(p),m=n(144),v=n.n(m),g=n(355),y=n.n(g),b=n(180),x=n.n(b),_=n(1),w=n.n(_),E=n(377),S=n(356),T=n.n(S),M=n(31),O=n(27),A=600,k=1024,C=1360,P=function e(t){9===t.keyCode&&(document.body.classList.add("user-is-tabbing"),window.removeEventListener("keydown",e))},L=n(5),R=n(117),j=n.n(R),N={title:w.a.meta.title,description:w.a.meta.description,fullSiteUrl:window.__env__.APP_ENVIRONMENT_URL,fbAppId:w.a.meta.fbAppId},I="sso-token",D="jwt-token",B="token",F="state",U="code",z="session_state",H=window.location.host.startsWith("localhost:"),G=window.location.host.endsWith("np.project.tinkoff.ru"),W=!G&&!H,V=window.location.host.startsWith("localhost:")||window.location.host.endsWith("np.project.tinkoff.ru"),q={retries:3,retryDelay:j.a.exponentialDelay.bind(void 0)},Y=(w.a.static.url,f={},Object(L.a)(f,M.VK,{common:{title:N.title,description:N.description,url:N.fullSiteUrl},sharedObject:{title:N.title,description:N.description,url:N.fullSiteUrl}}),Object(L.a)(f,M.FB,{common:{title:N.title,description:N.description,url:N.fullSiteUrl,appId:N.fbAppId},sharedObject:{title:N.title,description:N.description,url:N.fullSiteUrl,appId:N.fbAppId}}),Object(L.a)(f,M.OK,{common:{title:N.title,description:N.description,url:N.fullSiteUrl},sharedObject:{title:N.title,description:N.description,url:N.fullSiteUrl}}),Object(L.a)(f,M.TW,{common:{title:N.title,description:N.description,url:N.fullSiteUrl},sharedObject:{title:N.title,description:N.description,url:N.fullSiteUrl}}),Object(L.a)(f,"env",{createSharedObjectUrl:window.__env__.APP_API_SHARE,sharedObjectUrl:N.fullSiteUrl}),f),X={mainPage:"/",clientAuthPage:"/client_auth",rulesPage:"/rules",achievementsPage:"/achievements",merchantsPage:"/merchants",achievementsListPage:"/achievements_list"},Z=["sp_invest_open_investbox","sp_invest_first_puc","sp_invest_morning_puc","sp_invest_evening_puc","sp_invest_three_puc","sp_invest_five_puc","sp_invest_ten_puc","sp_invest_different_merchant","sp_invest_three_days","sp_invest_seven_days","sp_invest_big_puc","sp_invest_end"],J=n(17),Q=n(357),K=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){h=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return h.apply(n,e)}},e.id="FunctionToString",e}(),$=n(3),ee=n(186),te=n(871),ne=n(96),re=n(20),ie=n(95),oe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],ae=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){Object(ee.b)(function(t){var n=Object(te.b)();if(!n)return t;var r=n.getIntegration(e);if(r){var i=n.getClient(),o=i?i.getOptions():{},a=r._mergeOptions(o);if(r._shouldDropEvent(t,a))return null}return t})},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(ne.a.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(re.e)(e)),!0):this._isIgnoredError(e,t)?(ne.a.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(re.e)(e)),!0):this._isBlacklistedUrl(e,t)?(ne.a.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+Object(re.e)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isWhitelistedUrl(e,t)&&(ne.a.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+Object(re.e)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some(function(e){return t.ignoreErrors.some(function(t){return Object(ie.a)(e,t)})})},e.prototype._isBlacklistedUrl=function(e,t){if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.blacklistUrls.some(function(e){return Object(ie.a)(n,e)})},e.prototype._isWhitelistedUrl=function(e,t){if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.whitelistUrls.some(function(e){return Object(ie.a)(n,e)})},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{blacklistUrls:$.d(this._options.blacklistUrls||[],e.blacklistUrls||[]),ignoreErrors:$.d(this._options.ignoreErrors||[],e.ignoreErrors||[],oe),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal,whitelistUrls:$.d(this._options.whitelistUrls||[],e.whitelistUrls||[])}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,i=t.value,o=void 0===i?"":i;return[""+o,r+": "+o]}catch(t){return ne.a.error("Cannot extract message for event "+Object(re.e)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){return ne.a.error("Cannot extract url for event "+Object(re.e)(e)),null}},e.id="InboundFilters",e}();var se=n(146),ue=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e});var ce=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,ue(r,n.prototype),r}return $.b(t,e),t}(Error),le=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,fe=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,i=t.pass,o=t.port,a=t.projectId;return t.protocol+"://"+t.user+(e&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+a},e.prototype._fromString=function(e){var t=le.exec(e);if(!t)throw new ce("Invalid Dsn");var n=$.c(t.slice(1),6),r=n[0],i=n[1],o=n[2],a=void 0===o?"":o,s=n[3],u=n[4],c=void 0===u?"":u,l="",f=n[5],h=f.split("/");h.length>1&&(l=h.slice(0,-1).join("/"),f=h.pop()),this._fromComponents({host:s,pass:a,path:l,projectId:f,port:c,protocol:r,user:i})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach(function(t){if(!e[t])throw new ce("Invalid Dsn")}),"http"!==this.protocol&&"https"!==this.protocol)throw new ce("Invalid Dsn");if(this.port&&isNaN(parseInt(this.port,10)))throw new ce("Invalid Dsn")},e}(),he=n(24),pe=function(){function e(e){this.dsn=e,this._dsnObject=new fe(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getStoreEndpoint=function(){return""+this._getBaseUrl()+this.getStoreEndpointPath()},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var e={sentry_key:this._dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+Object(he.e)(e)},e.prototype._getBaseUrl=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_timestamp="+Object(re.m)()),r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this._getBaseUrl()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",r=[];for(var i in r.push("dsn="+t.toString()),e)if("user"===i){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return r.length?n+"?"+r.join("&"):n},e}(),de=n(26),me=[];function ve(e){var t={};return function(e){var t=e.defaultIntegrations&&$.d(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var i=n.map(function(e){return e.name}),o=[];t.forEach(function(e){-1===i.indexOf(e.name)&&-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))}),n.forEach(function(e){-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))})}else"function"==typeof n?(r=n(t),r=Array.isArray(r)?r:[r]):r=$.d(t);var a=r.map(function(e){return e.name});return-1!==a.indexOf("Debug")&&r.push.apply(r,$.d(r.splice(a.indexOf("Debug"),1))),r}(e).forEach(function(e){t[e.name]=e,function(e){-1===me.indexOf(e.name)&&(e.setupOnce(ee.b,te.b),me.push(e.name),ne.a.log("Integration installed: "+e.name))}(e)}),t}var ge,ye=function(){function e(e,t){this._integrations={},this._processing=!1,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new fe(t.dsn)),this._isEnabled()&&(this._integrations=ve(this._options))}return e.prototype.captureException=function(e,t,n){var r=this,i=t&&t.event_id;return this._processing=!0,this._getBackend().eventFromException(e,t).then(function(e){return r._processEvent(e,t,n)}).then(function(e){i=e&&e.event_id,r._processing=!1}).then(null,function(e){ne.a.error(e),r._processing=!1}),i},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id;return this._processing=!0,(Object(de.i)(e)?this._getBackend().eventFromMessage(""+e,t,n):this._getBackend().eventFromException(e,n)).then(function(e){return i._processEvent(e,n,r)}).then(function(e){o=e&&e.event_id,i._processing=!1}).then(null,function(e){ne.a.error(e),i._processing=!1}),o},e.prototype.captureEvent=function(e,t,n){var r=this,i=t&&t.event_id;return this._processing=!0,this._processEvent(e,t,n).then(function(e){i=e&&e.event_id,r._processing=!1}).then(null,function(e){ne.a.error(e),r._processing=!1}),i},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then(function(n){return clearInterval(n.interval),t._getBackend().getTransport().close(e).then(function(e){return n.ready&&e})})},e.prototype.close=function(e){var t=this;return this.flush(e).then(function(e){return t.getOptions().enabled=!1,e})},e.prototype.getIntegrations=function(){return this._integrations||{}},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return ne.a.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._isClientProcessing=function(e){var t=this;return new se.a(function(n){var r=0,i=0;clearInterval(i),i=setInterval(function(){t._processing?(r+=1,e&&r>=e&&n({interval:i,ready:!1})):n({interval:i,ready:!0})},1)})},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this.getOptions(),i=r.environment,o=r.release,a=r.dist,s=r.maxValueLength,u=void 0===s?250:s,c=$.a({},e);void 0===c.environment&&void 0!==i&&(c.environment=i),void 0===c.release&&void 0!==o&&(c.release=o),void 0===c.dist&&void 0!==a&&(c.dist=a),c.message&&(c.message=Object(ie.d)(c.message,u));var l=c.exception&&c.exception.values&&c.exception.values[0];l&&l.value&&(l.value=Object(ie.d)(l.value,u));var f=c.request;f&&f.url&&(f.url=Object(ie.d)(f.url,u)),void 0===c.event_id&&(c.event_id=n&&n.event_id?n.event_id:Object(re.n)()),this._addIntegrations(c.sdk);var h=se.a.resolve(c);return t&&(h=t.applyToEvent(c,n)),h},e.prototype._addIntegrations=function(e){var t=Object.keys(this._integrations);e&&t.length>0&&(e.integrations=t)},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;return this._isEnabled()?"number"==typeof a&&Math.random()>a?se.a.reject("This event has been sampled, will not send event."):new se.a(function(i,a){r._prepareEvent(e,n,t).then(function(e){if(null!==e){var n=e;try{if(t&&t.data&&!0===t.data.__sentry__||!o)return r._getBackend().sendEvent(n),void i(n);var s=o(e,t);if(void 0===s)ne.a.error("`beforeSend` method has to return `null` or a valid event.");else if(Object(de.m)(s))r._handleAsyncBeforeSend(s,i,a);else{if(null===(n=s))return ne.a.log("`beforeSend` returned `null`, will not send event."),void i(null);r._getBackend().sendEvent(n),i(n)}}catch(e){r.captureException(e,{data:{__sentry__:!0},originalException:e}),a("`beforeSend` threw an error, will not send event.")}}else a("An event processor returned null, will not send event.")}).then(null,function(){a("`beforeSend` threw an error, will not send event.")})}):se.a.reject("SDK not enabled, will not send event.")},e.prototype._handleAsyncBeforeSend=function(e,t,n){var r=this;e.then(function(e){null!==e?(r._getBackend().sendEvent(e),t(e)):n("`beforeSend` returned `null`, will not send event.")}).then(null,function(e){n("beforeSend rejected with "+e)})},e}();!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(ge||(ge={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(ge||(ge={}));var be,xe=function(){function e(){}return e.prototype.sendEvent=function(e){return se.a.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:ge.Skipped})},e.prototype.close=function(e){return se.a.resolve(!0)},e}(),_e=function(){function e(e){this._options=e,this._options.dsn||ne.a.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype._setupTransport=function(){return new xe},e.prototype.eventFromException=function(e,t){throw new ce("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new ce("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,function(e){ne.a.error("Error while sending event: "+e)})},e.prototype.getTransport=function(){return this._transport},e}();function we(){if(!("fetch"in Object(re.g)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Ee(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Se(){if(!we())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(be||(be={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(be||(be={}));var Te="?",Me=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Oe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Ae=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ke=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ce=/\((\S*)(?::(\d+))(?::(\d+))\)/;function Pe(e){var t=null,n=e&&e.framesToPop;try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=n.split("\n"),a=[],s=0;s<o.length;s+=2){var u=null;(t=r.exec(o[s]))?u={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=i.exec(o[s]))&&(u={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),u&&(!u.func&&u.line&&(u.func=Te),a.push(u))}if(!a.length)return null;return{message:Re(e),name:e.name,stack:a}}(e))return Le(t,n)}catch(e){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,r,i=[],o=e.stack.split("\n"),a=0;a<o.length;++a){if(n=Me.exec(o[a])){var s=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=Ce.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),r={url:n[2],func:n[1]||Te,args:s?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=Ae.exec(o[a]))r={url:n[2],func:n[1]||Te,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=Oe.exec(o[a])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=ke.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==a||n[5]||void 0===e.columnNumber||(i[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||Te,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=Te),i.push(r)}if(!i.length)return null;return{message:Re(e),name:e.name,stack:i}}(e))return Le(t,n)}catch(e){}return{message:Re(e),name:e&&e.name,stack:[],failed:!0}}function Le(e,t){try{return $.a({},e,{stack:e.stack.slice(t)})}catch(t){return e}}function Re(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}var je=50;function Ne(e){var t=De(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Ie(e){return{exception:{values:[Ne(e)]}}}function De(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.map(function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}}).slice(0,je).reverse()}function Be(e,t,n){var r;if(void 0===n&&(n={}),Object(de.e)(e)&&e.error)return r=Ie(Pe(e=e.error));if(Object(de.a)(e)||Object(de.b)(e)){var i=e,o=i.name||(Object(de.a)(i)?"DOMError":"DOMException"),a=i.message?o+": "+i.message:o;return r=Fe(a,t,n),Object(re.b)(r,a),r}return Object(de.d)(e)?r=Ie(Pe(e)):Object(de.h)(e)||Object(de.f)(e)?(r=function(e,t,n){var r={exception:{values:[{type:Object(de.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(he.a)(e)}]},extra:{__serialized__:Object(he.d)(e)}};if(t){var i=De(Pe(t).stack);r.stacktrace={frames:i}}return r}(e,t,n.rejection),Object(re.a)(r,{synthetic:!0}),r):(r=Fe(e,t,n),Object(re.b)(r,""+e,void 0),Object(re.a)(r,{synthetic:!0}),r)}function Fe(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var i=De(Pe(t).stack);r.stacktrace={frames:i}}return r}var Ue=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then(function(){return t.remove(e)}).then(null,function(){return t.remove(e).then(null,function(){})}),e):se.a.reject(new ce("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new se.a(function(n){var r=setTimeout(function(){e&&e>0&&n(!1)},e);se.a.all(t._buffer).then(function(){clearTimeout(r),n(!0)}).then(null,function(){n(!0)})})},e}(),ze=function(){function e(e){this.options=e,this._buffer=new Ue(30),this.url=new pe(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new ce("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e}(),He=Object(re.g)(),Ge=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return $.b(t,e),t.prototype.sendEvent=function(e){var t=this;if(new Date(Date.now())<this._disabledUntil)return Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429});var n={body:JSON.stringify(e),method:"POST",referrerPolicy:Se()?"origin":""};return void 0!==this.options.headers&&(n.headers=this.options.headers),this._buffer.add(new se.a(function(e,r){He.fetch(t.url,n).then(function(n){var i=ge.fromHttpCode(n.status);if(i!==ge.Success){if(i===ge.RateLimit){var o=Date.now();t._disabledUntil=new Date(o+Object(re.k)(o,n.headers.get("Retry-After"))),ne.a.warn("Too many requests, backing off till: "+t._disabledUntil)}r(n)}else e({status:i})}).catch(r)}))},t}(ze),We=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return $.b(t,e),t.prototype.sendEvent=function(e){var t=this;return new Date(Date.now())<this._disabledUntil?Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429}):this._buffer.add(new se.a(function(n,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var e=ge.fromHttpCode(i.status);if(e!==ge.Success){if(e===ge.RateLimit){var o=Date.now();t._disabledUntil=new Date(o+Object(re.k)(o,i.getResponseHeader("Retry-After"))),ne.a.warn("Too many requests, backing off till: "+t._disabledUntil)}r(i)}else n({status:e})}},i.open("POST",t.url),t.options.headers)t.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,t.options.headers[o]);i.send(JSON.stringify(e))}))},t}(ze),Ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $.b(t,e),t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=$.a({},this._options.transportOptions,{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):we()?new Ge(t):new We(t)},t.prototype.eventFromException=function(e,t){var n=Be(e,t&&t.syntheticException||void 0,{attachStacktrace:this._options.attachStacktrace});return Object(re.a)(n,{handled:!0,type:"generic"}),n.level=be.Error,t&&t.event_id&&(n.event_id=t.event_id),se.a.resolve(n)},t.prototype.eventFromMessage=function(e,t,n){void 0===t&&(t=be.Info);var r=Fe(e,n&&n.syntheticException||void 0,{attachStacktrace:this._options.attachStacktrace});return r.level=t,n&&n.event_id&&(r.event_id=n.event_id),se.a.resolve(r)},t}(_e),qe="sentry.javascript.browser",Ye="5.11.2",Xe=function(e){function t(t){return void 0===t&&(t={}),e.call(this,Ve,t)||this}return $.b(t,e),t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",t.sdk=$.a({},t.sdk,{name:qe,packages:$.d(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:Ye}]),version:Ye}),e.prototype._prepareEvent.call(this,t,n,r)},t.prototype.showReportDialog=function(e){void 0===e&&(e={});var t=Object(re.g)().document;if(t)if(this._isEnabled()){var n=e.dsn||this.getDsn();if(e.eventId)if(n){var r=t.createElement("script");r.async=!0,r.src=new pe(n).getReportDialogEndpoint(e),e.onLoad&&(r.onload=e.onLoad),(t.head||t.body).appendChild(r)}else ne.a.error("Missing `Dsn` option in showReportDialog call");else ne.a.error("Missing `eventId` option in showReportDialog call")}else ne.a.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(ye);function Ze(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Object(te.b)();if(r&&r[e])return r[e].apply(r,$.d(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function Je(e){var t;try{throw new Error("Sentry syntheticException")}catch(e){t=e}return Ze("captureException",e,{originalException:e,syntheticException:t})}function Qe(e,t){var n;try{throw new Error(e)}catch(e){n=e}return Ze("captureMessage",e,t,{originalException:e,syntheticException:n})}function Ke(e){return Ze("captureEvent",e)}function $e(e){Ze("configureScope",e)}function et(e){Ze("addBreadcrumb",e)}function tt(e,t){Ze("setContext",e,t)}function nt(e){Ze("setExtras",e)}function rt(e){Ze("setTags",e)}function it(e,t){Ze("setExtra",e,t)}function ot(e,t){Ze("setTag",e,t)}function at(e){Ze("setUser",e)}function st(e){Ze("withScope",e)}var ut=0;function ct(){return ut>0}function lt(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map(function(e){return lt(e,t)});return e.handleEvent?e.handleEvent.apply(this,i):e.apply(this,i)}catch(e){throw ut+=1,setTimeout(function(){ut-=1}),st(function(n){n.addEventProcessor(function(e){var n=$.a({},e);return t.mechanism&&(Object(re.b)(n,void 0,void 0),Object(re.a)(n,t.mechanism)),n.extra=$.a({},n.extra,{arguments:Object(he.c)(r,3)}),n}),Je(e)}),e}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}var ft,ht=function(){function e(){this._ignoreOnError=0,this.name=e.id}return e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=lt(r,{mechanism:{data:{function:Object(re.f)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e(lt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(re.f)(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=Object(re.g)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(he.b)(n,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=lt(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(re.f)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,lt(r,{mechanism:{data:{function:"addEventListener",handler:Object(re.f)(r),target:e},handled:!0,type:"instrument"}}),i)}}),Object(he.b)(n,"removeEventListener",function(e){return function(t,n,r){var i=n;try{i=i&&(i.__sentry_wrapped__||i)}catch(e){}return e.call(this,t,i,r)}}))},e.prototype._wrapXHR=function(e){return function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return["onload","onerror","onprogress"].forEach(function(e){e in t&&"function"==typeof t[e]&&Object(he.b)(t,e,function(t){return lt(t,{mechanism:{data:{function:e,handler:Object(re.f)(t)},handled:!0,type:"instrument"}})})}),"onreadystatechange"in this&&"function"==typeof this.onreadystatechange&&Object(he.b)(this,"onreadystatechange",function(e){var t={mechanism:{data:{function:"onreadystatechange",handler:Object(re.f)(e)},handled:!0,type:"instrument"}};return e.__sentry_original__&&(t.mechanism.data.handler=Object(re.f)(e.__sentry_original__)),lt(e,t)}),e.apply(this,n)}},e.prototype.setupOnce=function(){this._ignoreOnError=this._ignoreOnError;var e=Object(re.g)();Object(he.b)(e,"setTimeout",this._wrapTimeFunction.bind(this)),Object(he.b)(e,"setInterval",this._wrapTimeFunction.bind(this)),Object(he.b)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),"XMLHttpRequest"in e&&Object(he.b)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this._wrapEventTarget.bind(this))},e.id="TryCatch",e}(),pt=Object(re.g)(),dt={},mt={};function vt(e){if(!mt[e])switch(mt[e]=!0,e){case"console":!function(){if(!("console"in pt))return;["debug","info","warn","error","log","assert"].forEach(function(e){e in pt.console&&Object(he.b)(pt.console,e,function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];yt("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,pt.console,n)}})})}();break;case"dom":!function(){if(!("document"in pt))return;pt.document.addEventListener("click",Tt("click",yt.bind(null,"dom")),!1),pt.document.addEventListener("keypress",Mt(yt.bind(null,"dom")),!1),["EventTarget","Node"].forEach(function(e){var t=pt[e]&&pt[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(Object(he.b)(t,"addEventListener",function(e){return function(t,n,r){return n&&n.handleEvent?("click"===t&&Object(he.b)(n,"handleEvent",function(e){return function(t){return Tt("click",yt.bind(null,"dom"))(t),e.call(this,t)}}),"keypress"===t&&Object(he.b)(n,"handleEvent",function(e){return function(t){return Mt(yt.bind(null,"dom"))(t),e.call(this,t)}})):("click"===t&&Tt("click",yt.bind(null,"dom"),!0)(this),"keypress"===t&&Mt(yt.bind(null,"dom"))(this)),e.call(this,t,n,r)}}),Object(he.b)(t,"removeEventListener",function(e){return function(t,n,r){var i=n;try{i=i&&(i.__sentry_wrapped__||i)}catch(e){}return e.call(this,t,i,r)}}))})}();break;case"xhr":!function(){if(!("XMLHttpRequest"in pt))return;var e=XMLHttpRequest.prototype;Object(he.b)(e,"open",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[1];return this.__sentry_xhr__={method:Object(de.k)(t[0])?t[0].toUpperCase():t[0],url:t[1]},Object(de.k)(r)&&"POST"===this.__sentry_xhr__.method&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0),e.apply(this,t)}}),Object(he.b)(e,"send",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,i={args:t,startTimestamp:Date.now(),xhr:r};function o(){if(4===r.readyState){try{r.__sentry_xhr__&&(r.__sentry_xhr__.status_code=r.status)}catch(e){}yt("xhr",$.a({},i,{endTimestamp:Date.now()}))}}return yt("xhr",$.a({},i)),"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?Object(he.b)(r,"onreadystatechange",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o(),e.apply(r,t)}}):r.onreadystatechange=o,e.apply(this,t)}})}();break;case"fetch":!function(){if(!function(){if(!we())return!1;var e=Object(re.g)();if(Ee(e.fetch))return!0;var t=!1,n=e.document;if(n){var r=n.createElement("iframe");r.hidden=!0;try{n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=Ee(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){ne.a.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}}return t}())return;Object(he.b)(pt,"fetch",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:bt(t),url:xt(t)},startTimestamp:Date.now()};return yt("fetch",$.a({},r)),e.apply(pt,t).then(function(e){return yt("fetch",$.a({},r,{endTimestamp:Date.now(),response:e})),e},function(e){throw yt("fetch",$.a({},r,{endTimestamp:Date.now(),error:e})),e})}})}();break;case"history":!function(){if(e=Object(re.g)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState,n||!r)return;var e,t,n,r;var i=pt.onpopstate;function o(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var i=ft,o=String(r);ft=o,yt("history",{from:i,to:o})}return e.apply(this,t)}}pt.onpopstate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=pt.location.href,r=ft;if(ft=n,yt("history",{from:r,to:n}),i)return i.apply(this,e)},Object(he.b)(pt.history,"pushState",o),Object(he.b)(pt.history,"replaceState",o)}();break;default:ne.a.warn("unknown instrumentation type:",e)}}function gt(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(dt[e.type]=dt[e.type]||[],dt[e.type].push(e.callback),vt(e.type))}function yt(e,t){var n,r;if(e&&dt[e])try{for(var i=$.e(dt[e]||[]),o=i.next();!o.done;o=i.next()){var a=o.value;try{a(t)}catch(t){ne.a.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(re.f)(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function bt(e){return void 0===e&&(e=[]),"Request"in pt&&Object(de.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function xt(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in pt&&Object(de.g)(e[0],Request)?e[0].url:String(e[0])}var _t,wt,Et=1e3,St=0;function Tt(e,t,n){return void 0===n&&(n=!1),function(r){_t=void 0,r&&wt!==r&&(wt=r,St&&clearTimeout(St),n?St=setTimeout(function(){t({event:r,name:e})}):t({event:r,name:e}))}}function Mt(e){return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)&&(_t||Tt("input",e)(t),clearTimeout(_t),_t=setTimeout(function(){_t=void 0},Et))}}var Ot=function(){function e(t){this.name=e.id,this._options=$.a({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{extra:{arguments:Object(he.c)(e.args,3)},logger:"console"},level:be.fromString(e.level),message:Object(ie.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(ie.b)(e.args.slice(1)," ")||"console.assert"),t.data.extra.arguments=Object(he.c)(e.args.slice(1),3)}Object(te.b)().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Object(re.i)(e.event.target):Object(re.i)(e.event)}catch(e){t="<unknown>"}0!==t.length&&Object(te.b)().addBreadcrumb({category:"ui."+e.name,message:t},{event:event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;Object(te.b)().addBreadcrumb({category:"xhr",data:e.xhr.__sentry_xhr__,type:"http"},{xhr:e.xhr})}else e.xhr.__sentry_own_request__&&At(e.args[0])},e.prototype._fetchBreadcrumb=function(e){if(e.endTimestamp){var t=Object(te.b)().getClient(),n=t&&t.getDsn();if(n){var r=new pe(n).getStoreEndpoint();if(r&&-1!==e.fetchData.url.indexOf(r)&&"POST"===e.fetchData.method&&e.args[1]&&e.args[1].body)return void At(e.args[1].body)}e.error?Object(te.b)().addBreadcrumb({category:"fetch",data:$.a({},e.fetchData,{status_code:e.response.status}),level:be.Error,type:"http"},{data:e.error,input:e.args}):Object(te.b)().addBreadcrumb({category:"fetch",data:$.a({},e.fetchData,{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})}},e.prototype._historyBreadcrumb=function(e){var t=Object(re.g)(),n=e.from,r=e.to,i=Object(re.l)(t.location.href),o=Object(re.l)(n),a=Object(re.l)(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Object(te.b)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.prototype.setupOnce=function(){var e=this;this._options.console&&gt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,$.d(t))},type:"console"}),this._options.dom&&gt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,$.d(t))},type:"dom"}),this._options.xhr&&gt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,$.d(t))},type:"xhr"}),this._options.fetch&&gt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,$.d(t))},type:"fetch"}),this._options.history&&gt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,$.d(t))},type:"history"})},e.id="Breadcrumbs",e}();function At(e){try{var t=JSON.parse(e);Object(te.b)().addBreadcrumb({category:"sentry",event_id:t.event_id,level:t.level||be.fromString("error"),message:Object(re.e)(t)},{event:t})}catch(e){ne.a.error("Error while adding sentry type breadcrumb")}}var kt=function(){function e(t){this.name=e.id,this._global=Object(re.g)(),this._oldOnErrorHandler=null,this._oldOnUnhandledRejectionHandler=null,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=$.a({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(ne.a.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(ne.a.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){if(!this._onErrorHandlerInstalled){var t=this;this._oldOnErrorHandler=this._global.onerror,this._global.onerror=function(n,r,i,o,a){var s=Object(te.b)(),u=s.getIntegration(e),c=a&&!0===a.__sentry_own_request__;if(!u||ct()||c)return!!t._oldOnErrorHandler&&t._oldOnErrorHandler.apply(this,arguments);var l=s.getClient(),f=Object(de.i)(a)?t._eventFromIncompleteOnError(n,r,i,o):t._enhanceEventWithInitialFrame(Be(a,void 0,{attachStacktrace:l&&l.getOptions().attachStacktrace,rejection:!1}),r,i,o);return Object(re.a)(f,{handled:!1,type:"onerror"}),s.captureEvent(f,{originalException:a}),!!t._oldOnErrorHandler&&t._oldOnErrorHandler.apply(this,arguments)},this._onErrorHandlerInstalled=!0}},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){if(!this._onUnhandledRejectionHandlerInstalled){var t=this;this._oldOnUnhandledRejectionHandler=this._global.onunhandledrejection,this._global.onunhandledrejection=function(n){var r=n;try{r=n&&"reason"in n?n.reason:n}catch(e){}var i=Object(te.b)(),o=i.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(!o||ct()||a)return!t._oldOnUnhandledRejectionHandler||t._oldOnUnhandledRejectionHandler.apply(this,arguments);var s=i.getClient(),u=Object(de.i)(r)?t._eventFromIncompleteRejection(r):Be(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!0});return u.level=be.Error,Object(re.a)(u,{handled:!1,type:"onunhandledrejection"}),i.captureEvent(u,{originalException:r}),!t._oldOnUnhandledRejectionHandler||t._oldOnUnhandledRejectionHandler.apply(this,arguments)},this._onUnhandledRejectionHandlerInstalled=!0}},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var i,o=Object(de.e)(e)?e.message:e;if(Object(de.k)(o)){var a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(i=a[1],o=a[2])}var s={exception:{values:[{type:i||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(s,t,n,r)},e.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(r,10))?void 0:r,o=isNaN(parseInt(n,10))?void 0:n,a=Object(de.k)(t)&&t.length>0?t:Object(re.h)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}(),Ct="cause",Pt=5,Lt=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||Ct,this._limit=t.limit||Pt}return e.prototype.setupOnce=function(){Object(ee.b)(function(t,n){var r=Object(te.b)().getIntegration(e);return r?r._handler(t,n):t})},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Object(de.g)(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=$.d(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Object(de.g)(e[t],Error)||n.length+1>=this._limit)return n;var r=Ne(Pe(e[t]));return this._walkErrorTree(e[t],t,$.d([r],n))},e.id="LinkedErrors",e}(),Rt=Object(re.g)(),jt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Object(ee.b)(function(t){if(Object(te.b)().getIntegration(e)){if(!Rt.navigator||!Rt.location)return t;var n=t.request||{};return n.url=n.url||Rt.location.href,n.headers=n.headers||{},n.headers["User-Agent"]=Rt.navigator.userAgent,$.a({},t,{request:n})}return t})},e.id="UserAgent",e}(),Nt=[new r.InboundFilters,new r.FunctionToString,new ht,new Ot,new kt,new Lt,new jt];function It(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=Nt),void 0===e.release){var t=Object(re.g)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}!function(e,t){!0===t.debug&&ne.a.enable(),Object(te.b)().bindClient(new e(t))}(Xe,e)}function Dt(e){void 0===e&&(e={}),e.eventId||(e.eventId=Object(te.b)().lastEventId());var t=Object(te.b)().getClient();t&&t.showReportDialog(e)}function Bt(){return Object(te.b)().lastEventId()}function Ft(){}function Ut(e){e()}function zt(e){var t=Object(te.b)().getClient();return t?t.flush(e):se.a.reject(!1)}function Ht(e){var t=Object(te.b)().getClient();return t?t.close(e):se.a.reject(!1)}function Gt(e){return lt(e)()}var Wt={},Vt=Object(re.g)();Vt.Sentry&&Vt.Sentry.Integrations&&(Wt=Vt.Sentry.Integrations);var qt,Yt=$.a({},Wt,r,i),Xt=n(81);function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach(function(t){Object(L.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}!function(e){e.xhr="xhr",e.navigation="navigation"}(qt||(qt={}));var Qt=["token","sessionid","sessionId","hello"];var Kt=function(e){if(!$t(e))return e;var t,n=e.split("?"),r=Object(J.a)(n,2),i=r[0],o=r[1],a=new URLSearchParams(o),s=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(Xt.a)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(Qt);try{for(s.s();!(t=s.n()).done;){var u=t.value;a.has(u)&&a.set(u,"*")}}catch(e){s.e(e)}finally{s.f()}return"".concat(i,"?").concat(a.toString())};function $t(e){return Qt.some(function(t){return-1!==(e||"").indexOf("".concat(t,"="))})}var en=window.__env__.APP_SENTRY;en&&It({dsn:en,beforeSend:function(e){try{return e.request&&(function(e){return!!e.url&&$t(e.url)}(t=e.request)||function(e){return"string"!=typeof e.query_string&&!!Array.isArray(e.query_string)&&e.query_string.some(function(e){var t=Object(J.a)(e,1),n=t[0];return Qt.includes(n)})}(t))&&(e.request=function(e){return function(e){if("string"==typeof e.query_string)return e;if(!Array.isArray(e.query_string))return e;var t=e.query_string.map(function(e){var t=Object(J.a)(e,2),n=t[0],r=t[1],i=Qt.includes(n);return i?[n,"*"]:[n,r]});return e.query_string=t,e}(function(e){return e.url?(e.url=Kt(e.url),e):e}(e))}(e.request)),e.breadcrumbs&&e.breadcrumbs.some(function(e){return e.category===qt.xhr&&e.data&&e.data.url?$t(e.data.url):!(e.category!==qt.navigation||!e.data)&&($t(e.data.from)||$t(e.data.to))})&&(e.breadcrumbs=function(e){return e.map(function(e){return e.category===qt.xhr&&e.data&&e.data.url?Jt(Jt({},e),{},{data:Jt(Jt({},e.data),{},{url:Kt(e.data.url)})}):e.category===qt.navigation&&e.data?Jt(Jt({},e),{},{data:(t=e.data,t.from&&t.to?{from:Kt(t.from),to:Kt(t.to)}:t)}):e;var t})}(e.breadcrumbs)),e}catch(t){return e}var t}});var tn=Object(Q.initLocalStorage)({onError:function(e){a.captureException(e)}}),nn=function(){return tn.getItem(D)},rn=function(){return tn.getItem(I)},on=n(97),an=n.n(on),sn={overlay:{backgroundColor:"rgba(232, 232, 232, 0.5)",zIndex:"100"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",backgroundColor:"#d0021b",border:"12px solid #ffffff",borderRadius:"16px",overflow:"visible",maxWidth:"90%"}},un=function(){var e=Object(p.useState)(!1),t=Object(J.a)(e,2),n=t[0],r=t[1],i="localhost"!==window.location.hostname;Object(p.useEffect)(function(){r("authorized"!==(tn.getItem("status")||null)&&i)},[i]);return d.a.createElement(x.a,{className:an.a.modal,isOpen:n,onRequestClose:function(){r(!1),tn.setItem("status","authorized")},"aria-hidden":!n,style:sn},d.a.createElement("div",{className:an.a.wrapper},d.a.createElement("div",{className:an.a.catWrapper},d.a.createElement("img",{className:an.a.cat,src:w.a.WarningModal.cat,alt:"cat"})),d.a.createElement("div",{className:an.a.textWrapper},d.a.createElement("img",{className:an.a.text,src:w.a.WarningModal.text,alt:"Не шерить"}))))},cn=n(4),ln=n(8),fn=n(6),hn=n(7),pn=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(){var e;Object(cn.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={error:null},e}return Object(ln.a)(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e}),a.configureScope(function(e){e.setExtra("componentStack",t.componentStack)}),a.captureException(e)}},{key:"render",value:function(){return this.state.error?d.a.createElement("div",null,"Ошибка"):this.props.children}}]),n}(d.a.Component),dn=n(10),mn=n.n(dn),vn=n(147),gn=n.n(vn),yn=function(e,t){return function(n){t(e)}},bn=function(e){var t=e.name,n=e.options,r=e.selectedOption,i=e.onChange,o=e.className;return d.a.createElement("ul",{className:mn()(gn.a.wrapper,o),role:"radiogroup"},n.map(function(e){return function(e,t,n,r){var i=t.text,o=t.value,a=n===o,s="radio_".concat(e,"_").concat(o);return d.a.createElement("li",{className:gn.a.radioItem,key:"".concat(e,"-").concat(o)},d.a.createElement("input",{className:gn.a.radioInput,name:e,id:s,type:"radio",value:o,checked:a,onChange:yn({text:i,value:o},r)}),d.a.createElement("label",{className:gn.a.label,htmlFor:s},i))}(t,e,r,i)}))},xn=n(361),_n=n.n(xn),wn=n(60),En=n.n(wn),Sn="/progress/send",Tn=function(){return V?"https://integration-test.tcsbank.ru/GMF/Progress/service/api":"https://integration-prod.tcsbank.ru/GMF/Progress/service/api"},Mn=new(function(){function e(){Object(cn.a)(this,e),this.tinkoffApiAxios=En.a.create({baseURL:window.__env__.APP_API}),this.axios=En.a.create({baseURL:Tn()})}return Object(ln.a)(e,[{key:"getSiebelId",value:function(){var e=l(u.a.mark(function e(){var t;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.tinkoffApiAxios.get("/user",{params:{sessionid:"123"}});case 2:return t=e.sent,e.abrupt("return",t.data.payload.siebelId);case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"requestAccess",value:function(){var e=l(u.a.mark(function e(){var t,n;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getSiebelId();case 2:return(t=e.sent)||alert("не смог получить siebel пользователя, поэтому запрос будет неуспешным"),e.next=6,this.axios.post(Sn,{progress:100,achievement_id:"sp_invest_open_investbox",customer_id:t,activation_dttm:(new Date).toISOString(),created_by:"test",status:"calculated"});case 6:return n=e.sent,e.abrupt("return",n.data.data);case 8:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"setAchievementProgress",value:function(){var e=l(u.a.mark(function e(t){var n,r,i,o;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.achievementId,r=t.progress,e.prev=1,e.next=4,this.getSiebelId();case 4:return(i=e.sent)||alert("не смог получить siebel пользователя, поэтому запрос будет неуспешным"),e.next=8,this.axios.post(Sn,{progress:r,achievement_id:n,customer_id:i,activation_dttm:(new Date).toISOString(),created_by:"test",status:"calculated"});case 8:return o=e.sent,alert("прогресс ачивки успешно изменен"),e.abrupt("return",o.data.data);case 13:return e.prev=13,e.t0=e.catch(1),alert("что-то пошло не так, попробуй еще раз"),e.abrupt("return",null);case 17:case"end":return e.stop()}},e,this,[[1,13]])}));return function(t){return e.apply(this,arguments)}}()}]),e}()),On=function(e,t){return(On=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var An=Symbol("postpone"),kn=Symbol("none");function Cn(e){var t="object"==typeof e&&null!==e?e[Rn]:void 0;if(t){if(t.isMounted){var n=d.a.useState({})[1];return Yn(t.state,t.path,function(){return n({})},t).self}var r=d.a.useState({state:t.state}),i=r[0],o=r[1];return Yn(i.state,t.path,function(){return o({state:i.state})},i.state).self}var a=d.a.useState(function(){return{state:qn(e)}}),s=a[0],u=a[1],c=Yn(s.state,Bn,function(){return u({state:s.state})},s.state);d.a.useEffect(function(){return function(){return s.state.destroy()}},[]);var l=Cn[Pn];return l&&c.attach(l),c.self}var Pn=Symbol("DevTools");var Ln,Rn=Symbol("self");!function(e){e[e.InitStateToValueFromState=101]="InitStateToValueFromState",e[e.SetStateToValueFromState=102]="SetStateToValueFromState",e[e.GetStateWhenPromised=103]="GetStateWhenPromised",e[e.SetStateWhenPromised=104]="SetStateWhenPromised",e[e.SetStateNestedToPromised=105]="SetStateNestedToPromised",e[e.SetStateWhenDestroyed=106]="SetStateWhenDestroyed",e[e.GetStatePropertyWhenPrimitive=107]="GetStatePropertyWhenPrimitive",e[e.ToJson_Value=108]="ToJson_Value",e[e.ToJson_State=109]="ToJson_State",e[e.GetUnknownPlugin=120]="GetUnknownPlugin",e[e.SetProperty_State=201]="SetProperty_State",e[e.SetProperty_Value=202]="SetProperty_Value",e[e.SetPrototypeOf_State=203]="SetPrototypeOf_State",e[e.SetPrototypeOf_Value=204]="SetPrototypeOf_Value",e[e.PreventExtensions_State=205]="PreventExtensions_State",e[e.PreventExtensions_Value=206]="PreventExtensions_Value",e[e.DefineProperty_State=207]="DefineProperty_State",e[e.DefineProperty_Value=208]="DefineProperty_Value",e[e.DeleteProperty_State=209]="DeleteProperty_State",e[e.DeleteProperty_Value=210]="DeleteProperty_Value",e[e.Construct_State=211]="Construct_State",e[e.Construct_Value=212]="Construct_Value",e[e.Apply_State=213]="Apply_State",e[e.Apply_Value=214]="Apply_Value"}(Ln||(Ln={}));var jn=function(e){function t(t,n,r){return e.call(this,"Error: HOOKSTATE-"+n+" [path: /"+t.join("/")+(r?", details: "+r:"")+"]. See https://hookstate.js.org/docs/exceptions#hookstate-"+n)||this}return function(e,t){function n(){this.constructor=e}On(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);var Nn=function(){try{return new Proxy({},{}),!1}catch(e){return!0}}(),In=Symbol("Downgraded"),Dn=Symbol("ProxyMarker"),Bn=[],Fn=function(){function e(e){this._value=e,this._edition=0,this._subscribers=new Set,this._setSubscribers=new Set,this._destroySubscribers=new Set,this._batchStartSubscribers=new Set,this._batchFinishSubscribers=new Set,this._plugins=new Map,this._batches=0,"object"==typeof e&&Promise.resolve(e)===e?(this._promised=this.createPromised(e),this._value=kn):e===kn&&(this._promised=this.createPromised(void 0))}return e.prototype.createPromised=function(e){var t=this,n=new Un(e?Promise.resolve(e):void 0,function(e){t.promised===n&&-1!==t.edition&&(t._promised=void 0,t.set(Bn,e,void 0),t.update([Bn]))},function(){t.promised===n&&-1!==t.edition&&(t._edition+=1,t.update([Bn]))},function(){if(t._batchesPendingActions&&t._value!==kn&&-1!==t.edition){var e=t._batchesPendingActions;t._batchesPendingActions=void 0,e.forEach(function(e){return e()})}});return n},Object.defineProperty(e.prototype,"edition",{get:function(){return this._edition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promised",{get:function(){return this._promised},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t=this._value;return t===kn?t:(e.forEach(function(e){t=t[e]}),t)},e.prototype.set=function(e,t,n){if(this._edition<0)throw new jn(e,Ln.SetStateWhenDestroyed);if(0===e.length){var r={path:e,state:t,value:t,previous:this._value,merged:n};if(t===kn)this._promised=this.createPromised(void 0),delete r.value,delete r.state;else if("object"==typeof t&&Promise.resolve(t)===t)this._promised=this.createPromised(t),t=kn,delete r.value,delete r.state;else if(this._promised&&!this._promised.resolver&&!this._promised.fullfilled)throw new jn(e,Ln.SetStateWhenPromised);return(s=this._value)===kn&&delete r.previous,this._value=t,this.afterSet(r),s===kn&&this._value!==kn&&this.promised&&this.promised.resolver&&this.promised.resolver(),e}if("object"==typeof t&&Promise.resolve(t)===t)throw new jn(e,Ln.SetStateNestedToPromised);for(var i=this._value,o=0;o<e.length-1;o+=1)i=i[e[o]];var a=e[e.length-1];if(a in i){if(t!==kn){var s=i[a];return i[a]=t,this.afterSet({path:e,state:this._value,value:t,previous:s,merged:n}),e}s=i[a];return Array.isArray(i)&&"number"==typeof a?i.splice(a,1):delete i[a],this.afterSet({path:e,state:this._value,previous:s,merged:n}),e.slice(0,-1)}return t!==kn?(i[a]=t,this.afterSet({path:e,state:this._value,value:t,merged:n}),e.slice(0,-1)):e},e.prototype.update=function(e){if(this._batches)return this._batchesPendingPaths=this._batchesPendingPaths||[],void(this._batchesPendingPaths=this._batchesPendingPaths.concat(e));var t=[];this._subscribers.forEach(function(n){return n.onSet(e,t)}),t.forEach(function(e){return e()})},e.prototype.afterSet=function(e){-1!==this._edition&&(this._edition+=1,this._setSubscribers.forEach(function(t){return t(e)}))},e.prototype.startBatch=function(e,t){this._batches+=1;var n={path:e};t&&"context"in t&&(n.context=t.context),this._value!==kn&&(n.state=this._value),this._batchStartSubscribers.forEach(function(e){return e(n)})},e.prototype.finishBatch=function(e,t){var n={path:e};if(t&&"context"in t&&(n.context=t.context),this._value!==kn&&(n.state=this._value),this._batchFinishSubscribers.forEach(function(e){return e(n)}),this._batches-=1,0===this._batches&&this._batchesPendingPaths){var r=this._batchesPendingPaths;this._batchesPendingPaths=void 0,this.update(r)}},e.prototype.postponeBatch=function(e){this._batchesPendingActions=this._batchesPendingActions||[],this._batchesPendingActions.push(e)},e.prototype.getPlugin=function(e){return this._plugins.get(e)},e.prototype.register=function(e){if(!this._plugins.get(e.id)){var t=e.init?e.init(this.toMethods().self):{};this._plugins.set(e.id,t),t.onSet&&this._setSubscribers.add(function(e){return t.onSet(e)}),t.onDestroy&&this._destroySubscribers.add(function(e){return t.onDestroy(e)}),t.onBatchStart&&this._batchStartSubscribers.add(function(e){return t.onBatchStart(e)}),t.onBatchFinish&&this._batchFinishSubscribers.add(function(e){return t.onBatchFinish(e)})}},e.prototype.toMethods=function(){return new Wn(this,Bn,this.get(Bn),this.edition,Hn)},e.prototype.subscribe=function(e){this._subscribers.add(e)},e.prototype.unsubscribe=function(e){this._subscribers.delete(e)},e.prototype.destroy=function(){var e=this;this._destroySubscribers.forEach(function(t){return t(e._value!==kn?{state:e._value}:{})}),this._edition=-1},e.prototype.toJSON=function(){throw new jn(Bn,Ln.ToJson_Value)},e}(),Un=function(){return function(e,t,n,r){var i=this;this.promise=e,e||(e=new Promise(function(e){i.resolver=e})),this.promise=e.then(function(e){i.fullfilled=!0,i.resolver||t(e)}).catch(function(e){i.fullfilled=!0,i.error=e,n()}).then(function(){return r()})}}(),zn=Symbol("ValueUnusedMarker");function Hn(){}var Gn=Symbol("UnmountedMarker");Hn[Gn]=!0;var Wn=function(){function e(e,t,n,r,i){this.state=e,this.path=t,this.valueSource=n,this.valueEdition=r,this.onSetUsed=i,this.valueCache=zn}return e.prototype.getUntracked=function(e){if(this.valueEdition!==this.state.edition&&(this.valueSource=this.state.get(this.path),this.valueEdition=this.state.edition,this.isMounted?this.valueCache!==zn&&(this.valueCache=zn,this.get(!0)):(this.valueCache=zn,delete this.childrenCache,delete this.selfCache)),this.valueSource===kn&&!e){if(this.state.promised&&this.state.promised.error)throw this.state.promised.error;throw new jn(this.path,Ln.GetStateWhenPromised)}return this.valueSource},e.prototype.get=function(e){var t=this.getUntracked(e);return this.valueCache===zn&&(this.isDowngraded?this.valueCache=t:Array.isArray(t)?this.valueCache=this.valueArrayImpl(t):this.valueCache="object"==typeof t&&null!==t?this.valueObjectImpl(t):t),this.valueCache},Object.defineProperty(e.prototype,"value",{get:function(){return this.get()},enumerable:!1,configurable:!0}),e.prototype.setUntracked=function(e,t){if("function"==typeof e&&(e=e(this.getUntracked())),"object"==typeof e&&null!==e&&e[Dn])throw new jn(this.path,Ln.SetStateToValueFromState);return[this.state.set(this.path,e,t)]},e.prototype.set=function(e){this.state.update(this.setUntracked(e))},e.prototype.mergeUntracked=function(e){var t,n=this.getUntracked();"function"==typeof e&&(e=e(n));var r=!1;if(Array.isArray(n)){if(Array.isArray(e))return this.setUntracked(n.concat(e),e);var i=[];Object.keys(e).sort().forEach(function(t){var o=Number(t),a=e[o];a===kn?(r=!0,i.push(o)):(r=r||!(o in n),n[o]=a)}),i.reverse().forEach(function(e){n.splice(e,1)}),t=this.setUntracked(n,e)}else{if("object"!=typeof n||null===n)return"string"==typeof n?this.setUntracked(n+String(e),e):this.setUntracked(e);Object.keys(e).forEach(function(t){var i=e[t];i===kn?(r=!0,delete n[t]):(r=r||!(t in n),n[t]=i)}),t=this.setUntracked(n,e)}if(1!==t.length||t[0]!==this.path||r)return t;var o=t[0];return Object.keys(e).map(function(e){return o.slice().concat(e)})},e.prototype.merge=function(e){this.state.update(this.mergeUntracked(e))},e.prototype.nested=function(e){return this.child(e).self},e.prototype.rerender=function(e){this.state.update(e)},e.prototype.destroy=function(){this.state.destroy()},e.prototype.subscribe=function(e){void 0===this.subscribers&&(this.subscribers=new Set),this.subscribers.add(e)},e.prototype.unsubscribe=function(e){this.subscribers.delete(e)},Object.defineProperty(e.prototype,"isMounted",{get:function(){return!this.onSetUsed[Gn]},enumerable:!1,configurable:!0}),e.prototype.onUnmount=function(){this.onSetUsed[Gn]=!0},e.prototype.onSet=function(e,t){var n=this,r=function(){if(n.isDowngraded&&n.valueCache!==zn)return t.push(n.onSetUsed),!0;for(var r=0,i=e;r<i.length;r++){var o=i[r][n.path.length];if(void 0===o){if(n.valueCache!==zn)return t.push(n.onSetUsed),!0}else{var a=n.childrenCache&&n.childrenCache[o];if(a&&a.onSet(e,t))return!0}}return!1}();return r||void 0===this.subscribers||this.subscribers.forEach(function(n){n.onSet(e,t)}),r},Object.defineProperty(e.prototype,"keys",{get:function(){var e=this.get();return Array.isArray(e)?Object.keys(e).map(function(e){return Number(e)}).filter(function(e){return Number.isInteger(e)}):"object"==typeof e&&null!==e?Object.keys(e):void 0},enumerable:!1,configurable:!0}),e.prototype.child=function(t){if(this.isMounted){this.childrenCache=this.childrenCache||{};var n=this.childrenCache[t];if(n)return n}var r=new e(this.state,this.path.slice().concat(t),this.valueSource[t],this.valueEdition,this.onSetUsed);return this.isDowngraded&&(r.isDowngraded=!0),this.childrenCache&&(this.childrenCache[t]=r),r},e.prototype.valueArrayImpl=function(e){var t=this;return Nn?(this.isDowngraded=!0,e):Vn(this.path,e,function(){return e},function(e,n){if("length"===n)return e.length;if(n in Array.prototype)return Array.prototype[n];if(n===Dn)return t;if("symbol"==typeof n)return e[n];var r=Number(n);return Number.isInteger(r)?t.child(r).get():void 0},function(e,n,r){if("symbol"==typeof n)return e[n]=r,!0;throw new jn(t.path,Ln.SetProperty_Value)},!0)},e.prototype.valueObjectImpl=function(e){var t=this;return Nn?(this.isDowngraded=!0,e):Vn(this.path,e,function(){return e},function(e,n){return n===Dn?t:"symbol"==typeof n?e[n]:t.child(n).get()},function(e,n,r){if("symbol"==typeof n)return e[n]=r,!0;throw new jn(t.path,Ln.SetProperty_Value)},!0)},Object.defineProperty(e.prototype,"self",{get:function(){var e=this;if(this.selfCache)return this.selfCache;var t=function(t,n){if(n===Rn)return e;if("symbol"!=typeof n){if("toJSON"===n)throw new jn(e.path,Ln.ToJson_State);switch(n){case"path":return e.path;case"keys":return e.keys;case"value":return e.value;case"ornull":return e.ornull;case"promised":return e.promised;case"error":return e.error;case"get":return function(){return e.get()};case"set":return function(t){return e.set(t)};case"merge":return function(t){return e.merge(t)};case"nested":return function(t){return e.nested(t)};case"batch":return function(t,n){return e.batch(t,n)};case"attach":return function(t){return e.attach(t)};case"destroy":return function(){return e.destroy()}}var r=e.isDowngraded,i=e.get();if(e.isDowngraded=r,("object"!=typeof i||null===i)&&i!==kn)throw new jn(e.path,Ln.GetStatePropertyWhenPrimitive);if(Array.isArray(i)){if("length"===n)return i.length;if(n in Array.prototype)return Array.prototype[n];var o=Number(n);if(!Number.isInteger(o))return;return e.nested(o)}return e.nested(n.toString())}};if(Nn){var n=Array.isArray(this.valueSource)?[]:{};return[Rn,"toJSON","path","keys","value","ornull","promised","error","get","set","merge","nested","batch","attach","destroy"].forEach(function(e){Object.defineProperty(n,e,{get:function(){return t(0,e)}})}),"object"==typeof this.valueSource&&null!==this.valueSource&&Object.keys(this.valueSource).forEach(function(e){Object.defineProperty(n,e,{enumerable:!0,get:function(){return t(0,e)}})}),this.selfCache=n,this.selfCache}return this.selfCache=Vn(this.path,this.valueSource,function(){return e.get(),e.valueSource},t,function(t,n,r){throw new jn(e.path,Ln.SetProperty_State)},!1),this.selfCache},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promised",{get:function(){return!(this.get(!0)!==kn||!this.state.promised||this.state.promised.fullfilled)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"error",{get:function(){if(this.get(!0)===kn){if(this.state.promised&&this.state.promised.fullfilled)return this.state.promised.error;this.get()}},enumerable:!1,configurable:!0}),e.prototype.batch=function(e,t){var n=this,r={context:t};try{this.state.startBatch(this.path,r);var i=e(this.self);return i===An&&this.state.postponeBatch(function(){return n.batch(e,t)}),i}finally{this.state.finishBatch(this.path,r)}},Object.defineProperty(e.prototype,"ornull",{get:function(){var e=this.get();return null==e?e:this.self},enumerable:!1,configurable:!0}),e.prototype.attach=function(e){if("function"==typeof e){var t=e();return t.id===In?(this.isDowngraded=!0,this.self):(this.state.register(t),this.self)}return[this.state.getPlugin(e)||new jn(this.path,Ln.GetUnknownPlugin,e.toString()),this]},e}();function Vn(e,t,n,r,i,o){var a=function(t){throw new jn(e,t)};return"object"==typeof t&&null!==t||(t={}),new Proxy(t,{getPrototypeOf:function(e){var t=n();return null==t?null:Object.getPrototypeOf(t)},setPrototypeOf:function(e,t){return a(o?Ln.SetPrototypeOf_State:Ln.SetPrototypeOf_Value)},isExtensible:function(e){return!0},preventExtensions:function(e){return a(o?Ln.PreventExtensions_State:Ln.PreventExtensions_Value)},getOwnPropertyDescriptor:function(e,t){var i=n();if(null!=i){var o=Object.getOwnPropertyDescriptor(i,t);return o&&Array.isArray(i)&&t in Array.prototype?o:o&&{configurable:!0,enumerable:o.enumerable,get:function(){return r(i,t)},set:void 0}}},has:function(e,t){if("symbol"==typeof t)return!1;var r=n();return"object"==typeof r&&null!==r&&t in r},get:r,set:i,deleteProperty:function(e,t){return a(o?Ln.DeleteProperty_State:Ln.DeleteProperty_Value)},defineProperty:function(e,t,n){return a(o?Ln.DefineProperty_State:Ln.DefineProperty_Value)},enumerate:function(e){var t=n();return Array.isArray(t)?Object.keys(t).concat("length"):null==t?[]:Object.keys(t)},ownKeys:function(e){var t=n();return Array.isArray(t)?Object.keys(t).concat("length"):null==t?[]:Object.keys(t)},apply:function(e,t,n){return a(o?Ln.Apply_State:Ln.Apply_Value)},construct:function(e,t,n){return a(o?Ln.Construct_State:Ln.Construct_Value)}})}function qn(e){var t=e;if("function"==typeof e&&(t=e()),"object"==typeof t&&null!==t&&t[Dn])throw new jn(Bn,Ln.InitStateToValueFromState);return new Fn(t)}function Yn(e,t,n,r){var i=new Wn(e,t,e.get(t),e.edition,n);return d.a.useEffect(function(){return r.subscribe(i),function(){i.onUnmount(),r.unsubscribe(i)}}),i}var Xn,Zn=n(183),Jn=n(34),Qn=n.n(Jn),Kn=function(e){var t=e.name,n=e.options,r="devTools:".concat(t),i=function(){return tn.getItem(r)};return{useDevTools:function(){var e=i()||n.Off,t=Object(p.useState)(e),o=Object(J.a)(t,2),a=o[0],s=o[1];return{option:a,setOption:function(e){s(e),tn.setItem(r,e.toString())}}},getDevToolsOption:i,areDevToolsEnabled:function(){return V&&Boolean(i())&&i()!==n.Off}}};!function(e){e.Off="Off",e.ValidUser="Валидный клиент",e.InvalidLoyaltyUser="Клиент с невалидной лояльностью",e.LatecomerUser="Опоздавший на участие в челленже",e.InvalidInvestboxUser="Клиент, открывший копилку до старта челленжа",e.ThrowError="Ошибка авторизации"}(Xn||(Xn={}));var $n,er=Kn({name:"userStore",options:Xn}),tr=er.useDevTools,nr=er.getDevToolsOption,rr=er.areDevToolsEnabled,ir=function(e){if(0===e.length)return{isParticipating:!1,investboxAchievementProgress:null,investboxAchievementDate:null};var t=e.find(function(e){return"sp_invest_open_investbox"===e.achievementId});return{isParticipating:!0,investboxAchievementProgress:(null==t?void 0:t.progress)?Number(t.progress.progress):null,investboxAchievementDate:(null==t?void 0:t.progress)?t.progress.activationDttm:null}},or=w.a.general,ar=or.challengeStartDate,sr=or.isChallengeOver;!function(e){e.NOT_CLIENT_LOYALITY="NOT_CLIENT_LOYALITY",e.TO_RULES="TO_RULES",e.TO_ACHIEVEMENTS="TO_ACHIEVEMENTS",e.INVESTBOX_PENDING="INVESTBOX_PENDING",e.DROPPED="DROPPED",e.HAS_INVESTBOX="HAS_INVESTBOX",e.REGISTRATION_OVER="REGISTRATION_OVER",e.INVALID_AGE="INVALID_AGE",e.CANT_READ_RECEIPTS="CANT_READ_RECEIPTS",e.ERROR="ERROR",e.NOT_SET="NOT_SET"}($n||($n={}));var ur=function(){var e,t,n=(e=30,(t=new Date(ar)).setDate(t.getDate()+e),t);return Date.now()>=n.getTime()},cr=function(){var e=l(u.a.mark(function e(){var t,n,r,i,o,s,c;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=ui.get(),n=t.userState,e.prev=1,n.isLoggedIn){e.next=4;break}return e.abrupt("return",$n.NOT_SET);case 4:return e.next=6,mi();case 6:if(r=e.sent,i=ir(r),o=i.isParticipating,s=i.investboxAchievementProgress,c=i.investboxAchievementDate,!o){e.next=16;break}if(0!==s&&null!==s){e.next=13;break}if(c){e.next=12;break}return e.abrupt("return",$n.TO_RULES);case 12:return e.abrupt("return",$n.DROPPED);case 13:if(50!==s){e.next=15;break}return e.abrupt("return",$n.INVESTBOX_PENDING);case 15:return e.abrupt("return",$n.TO_ACHIEVEMENTS);case 16:if(!ur()){e.next=18;break}return e.abrupt("return",$n.REGISTRATION_OVER);case 18:if(n.project.data.isInvestboxValid){e.next=21;break}return e.abrupt("return",$n.HAS_INVESTBOX);case 21:if(n.project.data.hasValidAge){e.next=23;break}return e.abrupt("return",$n.INVALID_AGE);case 23:if(n.project.data.canReadReceipts){e.next=25;break}return e.abrupt("return",$n.CANT_READ_RECEIPTS);case 25:if(n.project.data.hasValidLoyalty){e.next=28;break}return e.abrupt("return",$n.NOT_CLIENT_LOYALITY);case 28:return e.abrupt("return",$n.TO_RULES);case 31:return e.prev=31,e.t0=e.catch(1),a.captureException({message:"Post-auth methods error",error:e.t0}),console.error(e.t0),e.abrupt("return",$n.ERROR);case 36:case"end":return e.stop()}},e,null,[[1,31]])}));return function(){return e.apply(this,arguments)}}(),lr=sr?function(){var e=l(u.a.mark(function e(){var t,n,r,i,o;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,mi();case 3:if(t=e.sent,n=ir(t),r=n.isParticipating,i=n.investboxAchievementProgress,o=n.investboxAchievementDate,!r){e.next=9;break}if(0!==i||!o){e.next=8;break}return e.abrupt("return",$n.DROPPED);case 8:return e.abrupt("return",$n.TO_ACHIEVEMENTS);case 9:return e.abrupt("return",$n.REGISTRATION_OVER);case 12:return e.prev=12,e.t0=e.catch(0),a.captureException({message:"Post-auth methods error",error:e.t0}),e.abrupt("return",$n.ERROR);case 16:case"end":return e.stop()}},e,null,[[0,12]])}));return function(){return e.apply(this,arguments)}}():cr,fr={isLoading:!1,isLoggedIn:!0,error:void 0,tinkoff:void 0,project:{data:{id:"uuid",status:"client",isInvestboxValid:!0,hasValidLoyalty:!0,hasValidAge:!0,canReadReceipts:!0},token:"token"}},hr={userState:fr,loyalties:[],isFailed:!1,achievements:[],postAuthState:$n.NOT_SET,hasBlack:!1,daysLeft:null},pr={userState:Jt(Jt({},fr),{},{project:{data:{id:"uuid",status:"client",isInvestboxValid:!1,hasValidLoyalty:!0,hasValidAge:!0,canReadReceipts:!0},token:"token"}}),loyalties:[],isFailed:!1,achievements:[],postAuthState:$n.NOT_SET,hasBlack:!1,daysLeft:null},dr={userState:Jt(Jt({},fr),{},{project:{data:{id:"uuid",status:"client",isInvestboxValid:!0,hasValidLoyalty:!1,hasValidAge:!0,canReadReceipts:!0},token:"token"}}),loyalties:[],isFailed:!1,achievements:[],postAuthState:$n.NOT_CLIENT_LOYALITY,hasBlack:!1,daysLeft:null},mr={userState:fr,loyalties:[],isFailed:!1,achievements:[],postAuthState:$n.REGISTRATION_OVER,hasBlack:!1,daysLeft:null},vr={userState:fr,loyalties:[],isFailed:!0,achievements:[],postAuthState:$n.NOT_SET,hasBlack:!1,daysLeft:null},gr="/api/v1/achievements",yr="/api/v1/achievements/progress/start",br=n(359),xr=n.n(br),_r=n(145);function wr(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function Er(e){return function(e){if(Array.isArray(e))return Object(_r.a)(e)}(e)||wr(e)||Object(Xt.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Sr,Tr=n(181),Mr=n(182);!function(e){e.Off="Off",e.WithInvestboxAchievement="Пользователь с копилкой (имеет ачивку копилки с progress === 100)",e.WithIncompleteInvestboxAchievement="Пользователь без копилки (имеет ачивку копилки с progress === 0)",e.WithPendingInvestboxAchievement="Пользователь, ожидающий открытие копилки (имеет ачивку копилки с progress === 50 и dttm !== null)",e.WithDroppedInvestboxAchievement="Пользователь, вышедший из челленжа (имеет ачивку копилки с progress === 0 и dttm !== null)",e.WithoutInvestboxAchievement="Пользователь имеет ачивки, среди которых нет инвесткопилки",e.ThrowError="Запрос ачивок вернет ошибку"}(Sr||(Sr={}));var Or,Ar,kr=Kn({name:"tsocial:getAchievement",options:Sr}),Cr=kr.useDevTools,Pr=kr.getDevToolsOption,Lr=kr.areDevToolsEnabled,Rr=[{achievementId:"sp_invest_open_investbox",title:"Ты в деле!",description:"Ты в деле! Молодец! Скорей копи!",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/pig_challenge-fa190beb-5c0e-4807-8eff-6e7445b480c1.svg",progress:{progress:100,activationDttm:"2021-06-01T13:12:47.946Z"}},{achievementId:"sp_invest_first_puc",title:"Покупка — первый сорт",description:"За первую округленную покупку. С почином!",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/2_pervyi_sort-6878f4ed-7ddc-4383-9587-96e0e993ae10.svg",progress:{progress:0,activationDttm:"2021-06-01T13:12:47.946Z"}},{achievementId:"sp_invest_morning_puc",title:"Чек темный, молотый",description:"За округленную покупку с 10 до 12 утра",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/3_check_black-2d0c80bd-8ea3-4dca-bfde-c0f5016047f2.svg",progress:{progress:0,activationDttm:"2021-06-01T13:12:47.946Z"}},{achievementId:"sp_invest_evening_puc",title:"Чек осветленный, 100%, без сахара",description:"За округленную покупку с 21:00 до 23:00",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/4_check_white-2cc1d179-f62a-484e-a1ee-817b538a7721.svg",progress:{progress:0,activationDttm:"2021-06-01T13:12:47.946Z"}},{achievementId:"sp_invest_three_puc",title:"Набор ценников, 3 шт.",description:"За 3 позиции в чеке, которые можно округлить",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/8_nabor_3shtuki-40f3e102-3ef6-496d-9e1e-48651f33d9a3.svg",progress:{progress:0,activationDttm:"2021-06-01T13:12:47.946Z"}},{achievementId:"sp_invest_five_puc",title:"Ценники в ассортименте",description:"За 5 позиций в чеке, которые можно округлить",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/10_assortment_5-f8929c01-612d-4553-aa03-7d1ea4893328.svg",progress:{progress:0,activationDttm:"2021-06-01T13:12:47.946Z"}},{achievementId:"sp_invest_ten_puc",title:"Ценники округленные, столовые, десяток",description:"За 10 позиций в чеке, которые можно округлить",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/9_nabor_10-a7331411-94d9-4f0c-883e-2b23f05fb38c.svg",progress:{progress:0,activationDttm:"2021-06-01T13:12:47.946Z"}},{achievementId:"sp_invest_different_merchant",title:"Комбо свежее, фасованное",description:"За округленные покупки в 3 разных сетях супермаркетов",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/1_combo_fresh-ec829f0b-9dc5-4b76-ba7e-1ff3d0d232e1.svg",progress:{progress:0,activationDttm:"2021-06-01T13:12:47.946Z"}},{achievementId:"sp_invest_three_days",title:"Набор, ГОСТ, для регулярного питания",description:"За ежедневные округленные покупки в течение 3 дней",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/7_gost-42cbdfdd-7b30-4fac-ba56-d39c3ce133e4.svg",progress:{progress:0,activationDttm:"2021-06-01T13:12:47.946Z"}},{achievementId:"sp_invest_seven_days",title:"Смесь, без ГМО, 7 дн.",description:"За ежедневные округленные покупки в течение 7 дней",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/6_bez_gmo-6b2c34ae-37aa-415e-b230-22aac80d7fc2.svg",progress:{progress:0,activationDttm:"2021-06-01T13:12:47.946Z"}},{achievementId:"sp_invest_big_puc",title:"Комбо премиум, высший сорт",description:"За 3 округленные покупки больше 999 ₽",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/5_compo_premium-ddd0ffc5-a31a-49a5-835a-442540003b0c.svg",progress:{progress:0,activationDttm:"2021-06-01T13:12:47.946Z"}},{achievementId:"sp_invest_end",title:"Финиш!",description:"За 14 дней охоты на ценники",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/11_finish-44e98e94-3039-445d-a236-d502647a788e.svg",progress:{progress:0,activationDttm:"2021-06-01T13:12:47.946Z"}}],jr=(Or=Rr,Object(Tr.a)(Or)||wr(Or)||Object(Xt.a)(Or)||Object(Mr.a)()),Nr=(jr[0],jr.slice(1)),Ir=Er(Rr),Dr=[{achievementId:"sp_invest_open_investbox",title:"Ты в деле!",description:"Ты в деле! Молодец! Скорей копи!",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/pig_challenge-fa190beb-5c0e-4807-8eff-6e7445b480c1.svg",progress:{progress:0,activationDttm:null}}].concat(Er(Nr)),Br=[{achievementId:"sp_invest_open_investbox",title:"Ты в деле!",description:"Ты в деле! Молодец! Скорей копи!",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/pig_challenge-fa190beb-5c0e-4807-8eff-6e7445b480c1.svg",progress:{progress:0,activationDttm:"2021-06-01T13:12:47.946Z"}}].concat(Er(Nr)),Fr=[{achievementId:"sp_invest_open_investbox",title:"Ты в деле!",description:"Ты в деле! Молодец! Скорей копи!",imageUrl:"https://ps-static.cdn-tinkoff.ru/misc/pig_challenge-fa190beb-5c0e-4807-8eff-6e7445b480c1.svg",progress:{progress:0,activationDttm:"2021-06-01T13:12:47.946Z"}}].concat(Er(Nr)),Ur=Er(Nr),zr=function(e){var t=function(){switch(Pr()){case Sr.WithInvestboxAchievement:return{statusCode:200,response:{payload:Ir,resultCode:200}};case Sr.WithIncompleteInvestboxAchievement:return{statusCode:200,response:{payload:Dr,resultCode:200}};case Sr.WithPendingInvestboxAchievement:return{statusCode:200,response:{payload:Br,resultCode:200}};case Sr.WithDroppedInvestboxAchievement:return{statusCode:200,response:{payload:Fr,resultCode:200}};case Sr.WithoutInvestboxAchievement:return{statusCode:200,response:{payload:Ur,resultCode:200}};case Sr.ThrowError:return{statusCode:500,response:{payload:null,resultCode:500}};default:throw Error("doesn't have mock for current option")}}(),n=t.statusCode,r=t.response;e.onGet(gr).reply(n,r)};!function(e){e.Off="Off",e.AddUserSuccess="После принятия правил челленжа, запрос на добавление юзера в челленж будет успешным",e.ThrowError="После принятия правил челленжа, запрос на добавление юзера в челленж вернет ошибку"}(Ar||(Ar={}));var Hr=Kn({name:"tsocial:addUserToChallenge",options:Ar}),Gr=Hr.useDevTools,Wr=Hr.getDevToolsOption,Vr=Hr.areDevToolsEnabled,qr=function(e){var t=function(){switch(Wr()){case Ar.AddUserSuccess:return{resultCode:200};case Ar.ThrowError:return{resultCode:500};default:throw Error("doesn't have mock for current option")}}().resultCode;e.onPost(yr).reply(t,{resultCode:t})},Yr=function(){function e(t,n){Object(cn.a)(this,e),this.mock=new xr.a(t,{delayResponse:500}),this.mockMethods=n,this.applyMocks()}return Object(ln.a)(e,[{key:"applyMocks",value:function(){var e=this.mock;this.mockMethods.getAchievements&&zr(e),this.mockMethods.addUser&&qr(e)}}]),e}(),Xr=3,Zr=new(function(){function e(){Object(cn.a)(this,e),this.buildAuthQuery=function(){return{ssoToken:rn()}};var t=En.a.create({baseURL:window.__env__.APP_BACKEND,timeout:1e4});j()(t,{retries:Xr}),this.axios=t}return Object(ln.a)(e,[{key:"getAchievements",value:function(){var e=l(u.a.mark(function e(){var t;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.axios.get(gr,{params:this.buildAuthQuery()});case 3:return t=e.sent,e.abrupt("return",t.data.payload||[]);case 7:return e.prev=7,e.t0=e.catch(0),a.captureException({message:"tsocial /achievements GET error",error:e.t0}),fi(),e.abrupt("return",[]);case 12:case"end":return e.stop()}},e,this,[[0,7]])}));return function(){return e.apply(this,arguments)}}()},{key:"addUserToChallenge",value:function(){var e=l(u.a.mark(function e(){return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.axios.post(yr,null,{params:this.buildAuthQuery(),headers:{Authorization:"Bearer ".concat(nn())}});case 3:return e.abrupt("return",Promise.resolve(!0));case 6:return e.prev=6,e.t0=e.catch(0),a.captureException({message:"tsocial /tags POST error",error:e.t0}),fi(),e.abrupt("return",Promise.reject(!1));case 11:case"end":return e.stop()}},e,this,[[0,6]])}));return function(){return e.apply(this,arguments)}}()},{key:"mockInstance",value:function(e){e(this.axios)}}]),e}());(Lr()||Vr())&&Zr.mockInstance(function(e){return new Yr(e,{getAchievements:Lr(),addUser:Vr()})});var Jr=n(360),Qr=n.n(Jr),Kr=function(e){return e?Date.parse(e):0},$r=function(e){return Z.includes(e.achievementId)},ei=function(e,t){var n,r;return Kr(null===(n=t.progress)||void 0===n?void 0:n.activationDttm)-Kr(null===(r=e.progress)||void 0===r?void 0:r.activationDttm)},ti=function(e,t){var n,r;return((null===(n=t.progress)||void 0===n?void 0:n.progress)||0)-((null===(r=e.progress)||void 0===r?void 0:r.progress)||0)},ni=function(e){return e.filter($r).sort(ei).sort(ti)},ri=function(e){var t,n=e.find(function(e){return"sp_invest_open_investbox"===e.achievementId});if(!n||!(null===(t=n.progress)||void 0===t?void 0:t.activationDttm))return null;var r=new Date(n.progress.activationDttm).getTime()+2592e6,i=Math.ceil((r-Date.now())/864e5);return Math.max(0,i)},ii=n(118),oi=new(function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(){Object(cn.a)(this,n);var e=w.a.SSO.baseURL,r=e.local,i=e.stage,o=e.prod;return t.call(this,En.a.create({baseURL:W?o:G?i:r}))}return Object(ln.a)(n,[{key:"logout",value:function(){var e=l(u.a.mark(function e(){var t,n,r,i;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=w.a.SSO.logoutURL,n=t.local,r=t.stage,i=t.prod,e.abrupt("return",this.api.post(W?i:G?r:n,null,{withCredentials:!0}));case 2:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()}]),n}(ii.SsoApi)),ai=new(function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(){var e;return Object(cn.a)(this,n),(e=t.call(this,En.a.create({baseURL:window.__env__.APP_BACKEND,timeout:1e4}))).registerSso=function(){var t=l(u.a.mark(function t(n){return u.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.api({method:"POST",url:"/api/v1/auth/client",params:{ssoToken:n},headers:e.buildAuthHeader(nn())}).then(function(e){return e.data.payload}).catch(function(t){fi(),e.captureException("auth: register sso error")(t)}));case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),e.me=l(u.a.mark(function t(){return u.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.api.get("/api/v1/auth",{params:{ssoToken:rn()},headers:e.buildAuthHeader(nn())}).then(function(e){return e.data.payload});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t)})),j()(e.api,q),e}return Object(ln.a)(n,[{key:"captureException",value:function(e){return function(t){throw function(e){var t=e.error,n=e.message,r=e.payload;$e(function(e){e.setExtra("context",{error:t,message:n,payload:JSON.stringify(r,null,2)})}),Ke({message:n})}({error:t,message:e}),new Error(e)}}}]),n}(ii.ProjectApi));var si={userState:Object(Zn.createInitUserState)({isLoading:!0}),achievements:[],isFailed:!1,hasBlack:!1,postAuthState:$n.NOT_SET,loyalties:[],daysLeft:null},ui=function e(t){var n=qn(t).toMethods(),r=e[Pn];return r&&n.attach(r),n.self}(Jt(Jt({},function(){switch(nr()){case Xn.ValidUser:return hr;case Xn.InvalidLoyaltyUser:return dr;case Xn.LatecomerUser:return mr;case Xn.InvalidInvestboxUser:return pr;case Xn.ThrowError:return vr;case Xn.Off:default:return si}}()),nr()?{}:{userState:Object(Zn.createInitUserState)({isLoading:!0})})),ci=new ii.User({tinkoffApi:{signUp:function(){}},projectApi:ai,localStorage:tn,ssoApi:oi,token:{ssoTokenName:I,projectTokenName:D,tinkoffTokenName:B,ssoCodeTokenName:U,ssoStateTokenName:F,ssoSessionStateTokenName:z}});ci.onChange(function(e){nr()||(V&&console.log("user state change",e),ui.merge({userState:e}))});var li,fi=function(){return ui.merge({isFailed:!0})},hi=function(){var e=l(u.a.mark(function e(){var t;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=ui.get().postAuthState,!ui.get().userState.isLoggedIn||t!==$n.NOT_SET){e.next=7;break}return e.next=4,lr();case 4:return t=e.sent,ui.merge({postAuthState:t}),e.abrupt("return",t);case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),pi=function(){var e=l(u.a.mark(function e(){return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!rr()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,oi.logout();case 4:ui.set(Jt({},si)),tn.removeItem(D),tn.removeItem(I);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),di=function(){return ui.get().achievements},mi=function(){var e=l(u.a.mark(function e(){var t,n,r,i;return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=di(),Qn()(t)){e.next=3;break}return e.abrupt("return",t);case 3:return e.next=5,Zr.getAchievements();case 5:return n=e.sent,a=void 0,s=void 0,u=void 0,c=void 0,l=void 0,f=void 0,h=void 0,a=Er(o=n),s=o.findIndex(function(e){return"sp_invest_open_investbox"===e.achievementId}),u=o.findIndex(function(e){return"sp_invest_end"===e.achievementId}),c=Qr()(a,[s,u]),l=Object(J.a)(c,2),f=l[0],h=l[1],r=f&&h?[f].concat(Er(ni(a)),[h]):ni(a),i=ri(r),ui.merge({achievements:r,daysLeft:i}),e.abrupt("return",r);case 10:case"end":return e.stop()}var o,a,s,u,c,l,f,h},e)}));return function(){return e.apply(this,arguments)}}();!function(e){e.Off="Off",e.WithInvestbox="Пользователь открыл копилку до челленжа",e.WithoutInvestbox="Пользователь не имеет копилки",e.ThrowError="Запрос на наличие копилки вернет ошибку"}(li||(li={}));var vi,gi=Kn({name:"investbox",options:li}),yi=gi.useDevTools;gi.getDevToolsOption,gi.areDevToolsEnabled;!function(e){e.Off="Off",e.On="On"}(vi||(vi={}));var bi=Kn({name:"integration:access",options:vi}),xi=bi.useDevTools,_i=(bi.getDevToolsOption,bi.areDevToolsEnabled),wi=n(28),Ei=n.n(wi),Si=function(e){var t=e.label,n=e.options,r=e.devTools;return d.a.createElement("div",{className:Ei.a.optionGroup},d.a.createElement("p",{className:Ei.a.label},"".concat(t,":")),d.a.createElement(bn,{className:Ei.a.radioGroupWrapper,name:t,options:Object.values(n).map(function(e){return{value:e,text:e}}),selectedOption:r.option,onChange:function(e){var t=e.value;return r.setOption(t)}}))},Ti=function(){var e=Object(p.useState)(!1),t=Object(J.a)(e,2),n=t[0],r=t[1],i=Cr(),o=Gr(),a=yi(),s=tr(),u=xi(),c=Object(p.useState)(Rr[0].achievementId),l=Object(J.a)(c,2),f=(l[0],l[1],function(){i.setOption(Sr.Off),o.setOption(Ar.Off),a.setOption(li.Off),s.setOption(Xn.Off),u.setOption(vi.Off)});return d.a.createElement(d.a.Fragment,null,V&&d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:Ei.a.devToolsOpenButton,role:"button",onClick:function(){return r(function(e){return!e})}},"DT"),d.a.createElement(_n.a,{opened:n,size:"l",onClose:function(){return r(!1)}},d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:Ei.a.options},Si({label:"Запрос на получение ачивок (Вместо реальных ачивок будут моки)",options:Sr,devTools:i}),Si({label:"Моки пользователя (для проверки редиректов авторизации)",options:Xn,devTools:s}),d.a.createElement("div",{className:mn()(Ei.a.optionGroup,Ei.a.helpersWrapper)},d.a.createElement("button",{className:Ei.a.achievementButton,onClick:pi},"Очистить сессию"),d.a.createElement("button",{className:Ei.a.achievementButton,onClick:f},"Убрать все галки")))))))},Mi=n(45);n(59);function Oi(){return(Oi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ai(e){return"/"===e.charAt(0)}function ki(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var Ci=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&Ai(e),a=t&&Ai(t),s=o||a;if(e&&Ai(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var c=0,l=i.length;l>=0;l--){var f=i[l];"."===f?ki(i,l):".."===f?(ki(i,l),c++):c&&(ki(i,l),c--)}if(!s)for(;c--;c)i.unshift("..");!s||""===i[0]||i[0]&&Ai(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function Pi(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var Li=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});if("object"==typeof t||"object"==typeof n){var r=Pi(t),i=Pi(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every(function(r){return e(t[r],n[r])})}return!1},Ri=!0,ji="Invariant failed";var Ni=function(e,t){if(!e){if(Ri)throw new Error(ji);throw new Error(ji+": "+(t||""))}};function Ii(e){return"/"===e.charAt(0)?e:"/"+e}function Di(e){return"/"===e.charAt(0)?e.substr(1):e}function Bi(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function Fi(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function Ui(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function zi(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Oi({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Ci(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function Hi(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}var Gi=!("undefined"==typeof window||!window.document||!window.document.createElement);function Wi(e,t){t(window.confirm(e))}var Vi="popstate",qi="hashchange";function Yi(){try{return window.history.state||{}}catch(e){return{}}}function Xi(e){void 0===e&&(e={}),Gi||Ni(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,u=o.getUserConfirmation,c=void 0===u?Wi:u,l=o.keyLength,f=void 0===l?6:l,h=e.basename?Fi(Ii(e.basename)):"";function p(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return h&&(o=Bi(o,h)),zi(o,r,n)}function d(){return Math.random().toString(36).substr(2,f)}var m=Hi();function v(e){Oi(A,e),A.length=n.length,m.notifyListeners(A.location,A.action)}function g(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||x(p(e.state))}function y(){x(p(Yi()))}var b=!1;function x(e){if(b)b=!1,v();else{m.confirmTransitionTo(e,"POP",c,function(t){t?v({action:"POP",location:e}):function(e){var t=A.location,n=w.indexOf(t.key);-1===n&&(n=0);var r=w.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(b=!0,S(i))}(e)})}}var _=p(Yi()),w=[_.key];function E(e){return h+Ui(e)}function S(e){n.go(e)}var T=0;function M(e){1===(T+=e)&&1===e?(window.addEventListener(Vi,g),i&&window.addEventListener(qi,y)):0===T&&(window.removeEventListener(Vi,g),i&&window.removeEventListener(qi,y))}var O=!1;var A={length:n.length,action:"POP",location:_,createHref:E,push:function(e,t){var i=zi(e,t,d(),A.location);m.confirmTransitionTo(i,"PUSH",c,function(e){if(e){var t=E(i),o=i.key,a=i.state;if(r)if(n.pushState({key:o,state:a},null,t),s)window.location.href=t;else{var u=w.indexOf(A.location.key),c=w.slice(0,u+1);c.push(i.key),w=c,v({action:"PUSH",location:i})}else window.location.href=t}})},replace:function(e,t){var i=zi(e,t,d(),A.location);m.confirmTransitionTo(i,"REPLACE",c,function(e){if(e){var t=E(i),o=i.key,a=i.state;if(r)if(n.replaceState({key:o,state:a},null,t),s)window.location.replace(t);else{var u=w.indexOf(A.location.key);-1!==u&&(w[u]=i.key),v({action:"REPLACE",location:i})}else window.location.replace(t)}})},go:S,goBack:function(){S(-1)},goForward:function(){S(1)},block:function(e){void 0===e&&(e=!1);var t=m.setPrompt(e);return O||(M(1),O=!0),function(){return O&&(O=!1,M(-1)),t()}},listen:function(e){var t=m.appendListener(e);return M(1),function(){M(-1),t()}}};return A}var Zi="hashchange",Ji={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Di(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Di,decodePath:Ii},slash:{encodePath:Ii,decodePath:Ii}};function Qi(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function Ki(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function $i(e){window.location.replace(Qi(window.location.href)+"#"+e)}function eo(e){void 0===e&&(e={}),Gi||Ni(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?Wi:r,o=n.hashType,a=void 0===o?"slash":o,s=e.basename?Fi(Ii(e.basename)):"",u=Ji[a],c=u.encodePath,l=u.decodePath;function f(){var e=l(Ki());return s&&(e=Bi(e,s)),zi(e)}var h=Hi();function p(e){Oi(T,e),T.length=t.length,h.notifyListeners(T.location,T.action)}var d=!1,m=null;function v(){var e,t,n=Ki(),r=c(n);if(n!==r)$i(r);else{var o=f(),a=T.location;if(!d&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(m===Ui(o))return;m=null,function(e){if(d)d=!1,p();else{h.confirmTransitionTo(e,"POP",i,function(t){t?p({action:"POP",location:e}):function(e){var t=T.location,n=x.lastIndexOf(Ui(t));-1===n&&(n=0);var r=x.lastIndexOf(Ui(e));-1===r&&(r=0);var i=n-r;i&&(d=!0,_(i))}(e)})}}(o)}}var g=Ki(),y=c(g);g!==y&&$i(y);var b=f(),x=[Ui(b)];function _(e){t.go(e)}var w=0;function E(e){1===(w+=e)&&1===e?window.addEventListener(Zi,v):0===w&&window.removeEventListener(Zi,v)}var S=!1;var T={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=Qi(window.location.href)),n+"#"+c(s+Ui(e))},push:function(e,t){var n=zi(e,void 0,void 0,T.location);h.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=Ui(n),r=c(s+t);if(Ki()!==r){m=t,function(e){window.location.hash=e}(r);var i=x.lastIndexOf(Ui(T.location)),o=x.slice(0,i+1);o.push(t),x=o,p({action:"PUSH",location:n})}else p()}})},replace:function(e,t){var n=zi(e,void 0,void 0,T.location);h.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=Ui(n),r=c(s+t);Ki()!==r&&(m=t,$i(r));var i=x.indexOf(Ui(T.location));-1!==i&&(x[i]=t),p({action:"REPLACE",location:n})}})},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return S||(E(1),S=!0),function(){return S&&(S=!1,E(-1)),t()}},listen:function(e){var t=h.appendListener(e);return E(1),function(){E(-1),t()}}};return T}function to(e,t,n){return Math.min(Math.max(e,t),n)}var no=n(366),ro=n(242),io=n.n(ro);n(344);function oo(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var ao=n(184),so=n.n(ao),uo=function(e){var t=Object(no.a)();return t.displayName=e,t}("Router"),co=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen(function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e})),n}Object(Mi.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return d.a.createElement(uo.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(d.a.Component);d.a.Component;var lo=function(e){function t(){return e.apply(this,arguments)||this}Object(Mi.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(d.a.Component);var fo={},ho=1e4,po=0;function mo(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(fo[e])return fo[e];var t=io.a.compile(e);return po<ho&&(fo[e]=t,po++),t}(e)(t,{pretty:!0})}function vo(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return d.a.createElement(uo.Consumer,null,function(e){e||Ni(!1);var r=e.history,o=e.staticContext,a=i?r.push:r.replace,s=zi(t?"string"==typeof n?mo(n,t.params):Oi({},n,{pathname:mo(n.pathname,t.params)}):n);return o?(a(s),null):d.a.createElement(lo,{onMount:function(){a(s)},onUpdate:function(e,t){var n,r,i=zi(t.to);n=i,r=Oi({},s,{key:i.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&Li(n.state,r.state)||a(s)},to:n})})}var go={},yo=1e4,bo=0;function xo(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,u=n.sensitive,c=void 0!==u&&u;return[].concat(r).reduce(function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=go[n]||(go[n]={});if(r[e])return r[e];var i=[],o={regexp:io()(e,i,t),keys:i};return bo<yo&&(r[e]=o,bo++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,u=i.exec(e);if(!u)return null;var l=u[0],f=u.slice(1),h=e===l;return o&&!h?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:h,params:a.reduce(function(e,t,n){return e[t.name]=f[n],e},{})}},null)}var _o=function(e){function t(){return e.apply(this,arguments)||this}return Object(Mi.a)(t,e),t.prototype.render=function(){var e=this;return d.a.createElement(uo.Consumer,null,function(t){t||Ni(!1);var n=e.props.location||t.location,r=Oi({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?xo(n.pathname,e.props):t.match}),i=e.props,o=i.children,a=i.component,s=i.render;return Array.isArray(o)&&0===o.length&&(o=null),d.a.createElement(uo.Provider,{value:r},r.match?o?"function"==typeof o?o(r):o:a?d.a.createElement(a,r):s?s(r):null:"function"==typeof o?o(r):null)})},t}(d.a.Component);function wo(e){return"/"===e.charAt(0)?e:"/"+e}function Eo(e,t){if(!e)return t;var n=wo(e);return 0!==t.pathname.indexOf(n)?t:Oi({},t,{pathname:t.pathname.substr(n.length)})}function So(e){return"string"==typeof e?e:Ui(e)}function To(e){return function(){Ni(!1)}}function Mo(){}d.a.Component;var Oo=function(e){function t(){return e.apply(this,arguments)||this}return Object(Mi.a)(t,e),t.prototype.render=function(){var e=this;return d.a.createElement(uo.Consumer,null,function(t){t||Ni(!1);var n,r,i=e.props.location||t.location;return d.a.Children.forEach(e.props.children,function(e){if(null==r&&d.a.isValidElement(e)){n=e;var o=e.props.path||e.props.from;r=o?xo(i.pathname,Oi({},e.props,{path:o})):t.match}}),r?d.a.cloneElement(n,{location:i,computedMatch:r}):null})},t}(d.a.Component);var Ao=d.a.useContext;function ko(){return Ao(uo).history}function Co(){return Ao(uo).location}var Po=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Xi(t.props),t}return Object(Mi.a)(t,e),t.prototype.render=function(){return d.a.createElement(co,{history:this.history,children:this.props.children})},t}(d.a.Component);d.a.Component;var Lo=function(e,t){return"function"==typeof e?e(t):e},Ro=function(e,t){return"string"==typeof e?zi(e,null,null,t):e},jo=function(e){return e},No=d.a.forwardRef;void 0===No&&(No=jo);var Io=No(function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=oo(e,["innerRef","navigate","onClick"]),a=o.target,s=Oi({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return s.ref=jo!==No&&t||n,d.a.createElement("a",s)});var Do=No(function(e,t){var n=e.component,r=void 0===n?Io:n,i=e.replace,o=e.to,a=e.innerRef,s=oo(e,["component","replace","to","innerRef"]);return d.a.createElement(uo.Consumer,null,function(e){e||Ni(!1);var n=e.history,u=Ro(Lo(o,e.location),e.location),c=u?n.createHref(u):"",l=Oi({},s,{href:c,navigate:function(){var t=Lo(o,e.location);(i?n.replace:n.push)(t)}});return jo!==No?l.ref=t||a:l.innerRef=a,d.a.createElement(r,l)})}),Bo=function(e){return e},Fo=d.a.forwardRef;void 0===Fo&&(Fo=Bo);Fo(function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,o=void 0===i?"active":i,a=e.activeStyle,s=e.className,u=e.exact,c=e.isActive,l=e.location,f=e.strict,h=e.style,p=e.to,m=e.innerRef,v=oo(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return d.a.createElement(uo.Consumer,null,function(e){e||Ni(!1);var n=l||e.location,i=Ro(Lo(p,n),n),g=i.pathname,y=g&&g.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),b=y?xo(n.pathname,{path:y,exact:u,strict:f}):null,x=!!(c?c(b,n):b),_=x?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return e}).join(" ")}(s,o):s,w=x?Oi({},h,{},a):h,E=Oi({"aria-current":x&&r||null,className:_,style:w,to:i},v);return Bo!==Fo?E.ref=t||m:E.innerRef=m,d.a.createElement(Do,E)})});var Uo=function(e){return"".concat(X.achievementsPage,"/").concat(e)};var zo=100;var Ho,Go,Wo,Vo,qo=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(){return Object(cn.a)(this,n),t.apply(this,arguments)}return Object(ln.a)(n,[{key:"componentDidUpdate",value:function(e){return function(e,t){return e.location.hash&&t.location.hash!==e.location.hash}(this.props,e)?(t=this.props.location.hash.slice(1),void((n=document.getElementById(t))&&setTimeout(function(){n.scrollIntoView({block:"start",behavior:"smooth"})},zo))):function(e,t){return e.location.pathname!==t.location.pathname}(this.props,e)?(window.scrollTo(0,0),void(window.tracking&&window.tracking.event("pageLoad").extend({url:window.location.href}))):void 0;var t,n}},{key:"render",value:function(){return this.props.children}}]),n}(p.PureComponent),Yo=(Go="withRouter("+((Ho=qo).displayName||Ho.name)+")",(Wo=function(e){var t=e.wrappedComponentRef,n=oo(e,["wrappedComponentRef"]);return d.a.createElement(uo.Consumer,null,function(e){return e||Ni(!1),d.a.createElement(Ho,Oi({},n,e,{ref:t}))})}).displayName=Go,Wo.WrappedComponent=Ho,so()(Wo,Ho));!function(e){e.mobile="mobile",e.tablet="tablet",e.tabletLarge="tabletLarge",e.desktop="desktop",e.desktopLarge="desktopLarge"}(Vo||(Vo={}));var Xo=function(e){return e===Vo.mobile||e===Vo.tablet};function Zo(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Jo(e,t){for(var n=e.length-1;n>=0;n--)!0===t(e[n])&&e.splice(n,1)}function Qo(e){throw new Error("Unhandled case for value: '"+e+"'")}var Ko=function(){function e(e){void 0===e&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(e,t){return this.getAttrs()[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(e){return this.setAttr("class",e)},e.prototype.addClass=function(e){for(var t,n=this.getClass(),r=this.whitespaceRegex,i=n?n.split(r):[],o=e.split(r);t=o.shift();)-1===Zo(i,t)&&i.push(t);return this.getAttrs().class=i.join(" "),this},e.prototype.removeClass=function(e){for(var t,n=this.getClass(),r=this.whitespaceRegex,i=n?n.split(r):[],o=e.split(r);i.length&&(t=o.shift());){var a=Zo(i,t);-1!==a&&i.splice(a,1)}return this.getAttrs().class=i.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),"</",e,">"].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+'="'+e[n]+'"');return t.join(" ")},e}();var $o=function(){function e(e){void 0===e&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return e.prototype.build=function(e){return new Ko({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(t.class=n),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var n=[t],r=e.getCssClassSuffixes(),i=0,o=r.length;i<o;i++)n.push(t+"-"+r[i]);return n.join(" ")}return""},e.prototype.processAnchorText=function(e){return e=this.doTruncate(e)},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t||!t.length)return e;var n=t.length,r=t.location;return"smart"===r?function(e,t,n){var r,i;null==n?(n="&hellip;",i=3,r=8):(i=n.length,r=n.length);var o=function(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t},a=function(e,t){var r=t/2,i=Math.ceil(r),o=-1*Math.floor(r),a="";return o<0&&(a=e.substr(o)),e.substr(0,i)+n+a};if(e.length<=t)return e;var s=t-i,u=function(e){var t={},n=e,r=n.match(/^([a-z]+):\/\//i);return r&&(t.scheme=r[1],n=n.substr(r[0].length)),(r=n.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=r[1],n=n.substr(r[0].length)),(r=n.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=r[1],n=n.substr(r[0].length)),(r=n.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=r[1],n=n.substr(r[0].length)),(r=n.match(/^#(.*?)$/i))&&(t.fragment=r[1]),t}(e);if(u.query){var c=u.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(u.query=u.query.substr(0,c[1].length),e=o(u))}if(e.length<=t)return e;if(u.host&&(u.host=u.host.replace(/^www\./,""),e=o(u)),e.length<=t)return e;var l="";if(u.host&&(l+=u.host),l.length>=s)return u.host.length==t?(u.host.substr(0,t-i)+n).substr(0,s+r):a(l,s).substr(0,s+r);var f="";if(u.path&&(f+="/"+u.path),u.query&&(f+="?"+u.query),f){if((l+f).length>=s)return(l+f).length==t?(l+f).substr(0,t):(l+a(f,s-l.length)).substr(0,s+r);l+=f}if(u.fragment){var h="#"+u.fragment;if((l+h).length>=s)return(l+h).length==t?(l+h).substr(0,t):(l+a(h,s-l.length)).substr(0,s+r);l+=h}if(u.scheme&&u.host){var p=u.scheme+"://";if((l+p).length<s)return(p+l).substr(0,t)}if(l.length<=t)return l;var d="";return s>0&&(d=l.substr(-1*Math.floor(s/2))),(l.substr(0,Math.ceil(s/2))+n+d).substr(0,s+r)}(e,n):"middle"===r?function(e,t,n){if(e.length<=t)return e;var r,i;null==n?(n="&hellip;",r=8,i=3):(r=n.length,i=n.length);var o=t-i,a="";return o>0&&(a=e.substr(-1*Math.floor(o/2))),(e.substr(0,Math.ceil(o/2))+n+a).substr(0,o+r)}(e,n):function(e,t,n){return function(e,t,n){var r;return e.length>t&&(null==n?(n="&hellip;",r=3):r=n.length,e=e.substring(0,t-r)+n),e}(e,t,n)}(e,n)},e}(),ea=function(){function e(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),ta=function(e){function t(t){var n=e.call(this,t)||this;return n.email="",n.email=t.email,n}return $.b(t,e),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(ea),na=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="",n.hashtag="",n.serviceName=t.serviceName,n.hashtag=t.hashtag,n}return $.b(t,e),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var e=this.serviceName,t=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;default:throw new Error("Unknown service name to point hashtag to: "+e)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t}(ea),ra=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.mention="",n.mention=t.mention,n.serviceName=t.serviceName,n}return $.b(t,e),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&t.push(n),t},t}(ea),ia=function(e){function t(t){var n=e.call(this,t)||this;return n.number="",n.plusSign=!1,n.number=t.number,n.plusSign=t.plusSign,n}return $.b(t,e),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(ea),oa=function(e){function t(t){var n=e.call(this,t)||this;return n.url="",n.urlMatchType="scheme",n.protocolUrlMatch=!1,n.protocolRelativeMatch=!1,n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.schemePrefixRegex=/^(https?:\/\/)?/i,n.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,n.protocolRelativeRegex=/^\/\//,n.protocolPrepended=!1,n.urlMatchType=t.urlMatchType,n.url=t.url,n.protocolUrlMatch=t.protocolUrlMatch,n.protocolRelativeMatch=t.protocolRelativeMatch,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return $.b(t,e),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return this.protocolRelativeMatch||this.protocolUrlMatch||this.protocolPrepended||(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&amp;/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix.scheme&&(e=this.stripSchemePrefix(e)),this.stripPrefix.www&&(e=this.stripWwwPrefix(e)),this.stripTrailingSlash&&(e=this.removeTrailingSlash(e)),this.decodePercentEncoding&&(e=this.removePercentEncoding(e)),e},t.prototype.stripSchemePrefix=function(e){return e.replace(this.schemePrefixRegex,"")},t.prototype.stripWwwPrefix=function(e){return e.replace(this.wwwPrefixRegex,"$1")},t.prototype.stripProtocolRelativePrefix=function(e){return e.replace(this.protocolRelativeRegex,"")},t.prototype.removeTrailingSlash=function(e){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e},t.prototype.removePercentEncoding=function(e){var t=e.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(t)}catch(e){return t}},t}(ea),aa=function(){return function(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder}}(),sa=/[A-Za-z]/,ua=/[0-9]/,ca=/\s/,la=/['"]/,fa=/[\x00-\x1F\x7F]/,ha=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,pa=ha+/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,da=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,ma=pa+da,va=pa+da,ga="(?:["+da+"]{1,3}\\.){3}["+da+"]{1,3}",ya="["+va+"](?:["+va+"\\-]{0,61}["+va+"])?",ba=function(e){return"(?=("+ya+"))\\"+e},xa=function(e){return"(?:"+ba(e)+"(?:\\."+ba(e+1)+"){0,126}|"+ga+")"},_a=(new RegExp("["+va+".\\-]*["+va+"\\-]"),new RegExp("["+va+"]")),wa=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--3oq18vl8pn36a|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|afamilycompany|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|spreadbetting|travelchannel|wolterskluwer|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|rightathome|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pbt977c|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nationwide|newholland|nextdirect|onyourside|properties|protection|prudential|realestate|republican|restaurant|schaeffler|swiftcover|tatamotors|technology|telefonica|university|vistaprint|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|fujixerox|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|honeywell|institute|insurance|kuokgroup|ladbrokes|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|scjohnson|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--tckwe|xn--vhquv|yodobashi|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|budapest|builders|business|capetown|catering|catholic|chrysler|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|esurance|etisalat|everbank|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|movistar|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|symantec|training|uconnect|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|cartier|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|iselect|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lancome|lanxess|lasalle|latrobe|leclerc|liaison|limited|lincoln|markets|metlife|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|shriram|singles|staples|starhub|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|الجزائر|العليان|پاکستان|كاثوليك|موبايلي|இந்தியா|abarth|abbott|abbvie|active|africa|agency|airbus|airtel|alipay|alsace|alstom|anquan|aramco|author|bayern|beauty|berlin|bharti|blanco|bostik|boston|broker|camera|career|caseih|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|mobily|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|piaget|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|warman|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|dodge|drive|dubai|earth|edeka|email|epost|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glade|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|intel|irish|iveco|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|lixil|loans|locus|lotte|lotto|lupin|macys|mango|media|miami|money|mopar|movie|nadex|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|zippo|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|aigo|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|doha|duck|duns|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|raid|read|reit|rent|rest|rich|rmit|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scor|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|グーグル|クラウド|ポイント|大众汽车|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bnl|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceb|ceo|cfa|cfd|com|crs|csc|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jcp|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|off|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|qvc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|srl|srt|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ストア|セール|みんな|中文网|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|工行|广东|微博|慈善|手机|手表|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|珠宝|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,Ea=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.localPartCharRegex=new RegExp("["+va+"!#$%&'*+/=?^_`{|}~-]"),t.strictTldRegex=new RegExp("^"+wa.source+"$"),t}return $.b(t,e),t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,n=this.localPartCharRegex,r=this.strictTldRegex,i=[],o=e.length,a=new Sa,s={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},u=0,c=0,l=a;u<o;){var f=e.charAt(u);switch(c){case 0:h(f);break;case 1:p(e.charAt(u-1),f);break;case 2:d(f);break;case 3:m(f);break;case 4:v(f);break;case 5:g(f);break;case 6:y(f);break;case 7:b(f);break;default:Qo(c)}u++}return w(),i;function h(e){"m"===e?x(1):n.test(e)&&x()}function p(e,t){":"===e?n.test(t)?(c=2,l=new Sa($.a({},l,{hasMailtoPrefix:!0}))):_():s[e]===t||(n.test(t)?c=2:"."===t?c=3:"@"===t?c=4:_())}function d(e){"."===e?c=3:"@"===e?c=4:n.test(e)||_()}function m(e){"."===e?_():"@"===e?_():n.test(e)?c=2:_()}function v(e){_a.test(e)?c=5:_()}function g(e){"."===e?c=7:"-"===e?c=6:_a.test(e)||w()}function y(e){"-"===e||"."===e?w():_a.test(e)?c=5:w()}function b(e){"."===e||"-"===e?w():_a.test(e)?(c=5,l=new Sa($.a({},l,{hasDomainDot:!0}))):w()}function x(e){void 0===e&&(e=2),c=e,l=new Sa({idx:u})}function _(){c=0,l=a}function w(){if(l.hasDomainDot){var n=e.slice(l.idx,u);/[-.]$/.test(n)&&(n=n.slice(0,-1));var o=l.hasMailtoPrefix?n.slice("mailto:".length):n;(function(e){var t=(e.split(".").pop()||"").toLowerCase();return r.test(t)})(o)&&i.push(new ta({tagBuilder:t,matchedText:n,offset:l.idx,email:o}))}_()}},t}(aa),Sa=function(){return function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.hasMailtoPrefix=!!e.hasMailtoPrefix,this.hasDomainDot=!!e.hasDomainDot}}(),Ta=function(){function e(){}return e.isValid=function(e,t){return!(t&&!this.isValidUriScheme(t)||this.urlMatchDoesNotHaveProtocolOrDot(e,t)||this.urlMatchDoesNotHaveAtLeastOneWordChar(e,t)&&!this.isValidIpAddress(e)||this.containsMultipleDots(e))},e.isValidIpAddress=function(e){var t=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source);return null!==e.match(t)},e.containsMultipleDots=function(e){var t=e;return this.hasFullProtocolRegex.test(e)&&(t=e.split("://")[1]),t.split("/")[0].indexOf("..")>-1},e.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),n=t&&t[0].toLowerCase();return"javascript:"!==n&&"vbscript:"!==n},e.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||-1!==e.indexOf("."))},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return!(!e||!t)&&!this.hasWordCharAfterProtocolRegex.test(e)},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+ha+"]"),e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,e}(),Ma=function(e){function t(t){var n,r=e.call(this,t)||this;return r.stripPrefix={scheme:!0,www:!0},r.stripTrailingSlash=!0,r.decodePercentEncoding=!0,r.matcherRegex=(n=new RegExp("[/?#](?:["+va+"\\-+&@#/%=~_()|'$*\\[\\]?!:,.;✓]*["+va+"\\-+&@#/%=~_()|'$*\\[\\]✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,xa(2),")","|","(","(//)?",/(?:www\.)/.source,xa(6),")","|","(","(//)?",xa(10)+"\\.",wa.source,"(?![-"+ma+"])",")",")","(?::[0-9]+)?","(?:"+n.source+")?"].join(""),"gi")),r.wordCharRegExp=new RegExp("["+va+"]"),r.stripPrefix=t.stripPrefix,r.stripTrailingSlash=t.stripTrailingSlash,r.decodePercentEncoding=t.decodePercentEncoding,r}return $.b(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,r=this.stripPrefix,i=this.stripTrailingSlash,o=this.decodePercentEncoding,a=this.tagBuilder,s=[],u=function(){var n=t[0],u=t[1],l=t[4],f=t[5],h=t[9],p=t.index,d=f||h,m=e.charAt(p-1);if(!Ta.isValid(n,u))return"continue";if(p>0&&"@"===m)return"continue";if(p>0&&d&&c.wordCharRegExp.test(m))return"continue";if(/\?$/.test(n)&&(n=n.substr(0,n.length-1)),c.matchHasUnbalancedClosingParen(n))n=n.substr(0,n.length-1);else{var v=c.matchHasInvalidCharAfterTld(n,u);v>-1&&(n=n.substr(0,v))}var g=["http://","https://"].find(function(e){return!!u&&-1!==u.indexOf(e)});if(g){var y=n.indexOf(g);n=n.substr(y),u=u.substr(y),p+=y}var b=u?"scheme":l?"www":"tld",x=!!u;s.push(new oa({tagBuilder:a,matchedText:n,offset:p,urlMatchType:b,url:n,protocolUrlMatch:x,protocolRelativeMatch:!!d,stripPrefix:r,stripTrailingSlash:i,decodePercentEncoding:o}))},c=this;null!==(t=n.exec(e));)u();return s},t.prototype.matchHasUnbalancedClosingParen=function(e){var t,n=e.charAt(e.length-1);if(")"===n)t="(";else{if("]"!==n)return!1;t="["}for(var r=0,i=0,o=e.length-1;i<o;i++){var a=e.charAt(i);a===t?r++:a===n&&(r=Math.max(r-1,0))}return 0===r},t.prototype.matchHasInvalidCharAfterTld=function(e,t){if(!e)return-1;var n=0;t&&(n=e.indexOf(":"),e=e.slice(n));var r=new RegExp("^((.?//)?[-."+va+"]*[-"+va+"]\\.[-"+va+"]+)").exec(e);return null===r?-1:(n+=r[1].length,e=e.slice(r[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(e)?n:-1)},t}(aa),Oa=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegex=new RegExp("#[_"+va+"]{1,139}(?![_"+va+"])","g"),n.nonWordCharRegex=new RegExp("[^"+va+"]"),n.serviceName=t.serviceName,n}return $.b(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,r=this.nonWordCharRegex,i=this.serviceName,o=this.tagBuilder,a=[];null!==(t=n.exec(e));){var s=t.index,u=e.charAt(s-1);if(0===s||r.test(u)){var c=t[0],l=t[0].slice(1);a.push(new na({tagBuilder:o,matchedText:c,offset:s,serviceName:i,hashtag:l}))}}return a},t}(aa),Aa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.matcherRegex=/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/g,t}return $.b(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,r=this.tagBuilder,i=[];null!==(t=n.exec(e));){var o=t[0],a=o.replace(/[^0-9,;#]/g,""),s=!(!t[1]&&!t[2]),u=0==t.index?"":e.substr(t.index-1,1),c=e.substr(t.index+o.length,1),l=!u.match(/\d/)&&!c.match(/\d/);this.testMatch(t[3])&&this.testMatch(o)&&l&&i.push(new ia({tagBuilder:r,matchedText:o,offset:t.index,number:a,plusSign:s}))}return i},t.prototype.testMatch=function(e){return/\D/.test(e)},t}(aa),ka=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:new RegExp("@[_"+va+"]{1,50}(?![_"+va+"])","g"),instagram:new RegExp("@[_."+va+"]{1,30}(?![_"+va+"])","g"),soundcloud:new RegExp("@[-_."+va+"]{1,50}(?![-_"+va+"])","g")},n.nonWordCharRegex=new RegExp("[^"+va+"]"),n.serviceName=t.serviceName,n}return $.b(t,e),t.prototype.parseMatches=function(e){var t,n=this.serviceName,r=this.matcherRegexes[this.serviceName],i=this.nonWordCharRegex,o=this.tagBuilder,a=[];if(!r)return a;for(;null!==(t=r.exec(e));){var s=t.index,u=e.charAt(s-1);if(0===s||i.test(u)){var c=t[0].replace(/\.+$/g,""),l=c.slice(1);a.push(new ra({tagBuilder:o,matchedText:c,offset:s,serviceName:n,mention:l}))}}return a},t}(aa);function Ca(e,t){for(var n,r=t.onOpenTag,i=t.onCloseTag,o=t.onText,a=t.onComment,s=t.onDoctype,u=new La,c=0,l=e.length,f=0,h=0,p=u;c<l;){var d=e.charAt(c);switch(f){case 0:m(d);break;case 1:v(d);break;case 2:y(d);break;case 3:g(d);break;case 4:b(d);break;case 5:x(d);break;case 6:_(d);break;case 7:w(d);break;case 8:E(d);break;case 9:S(d);break;case 10:T(d);break;case 11:M(d);break;case 12:O(d);break;case 13:A(d);break;case 14:k(d);break;case 15:C(d);break;case 16:P(d);break;case 17:L(d);break;case 18:R(d);break;case 19:j(d);break;case 20:N(d);break;default:Qo(f)}c++}function m(e){"<"===e&&D()}function v(e){"!"===e?f=13:"/"===e?(f=2,p=new La($.a({},p,{isClosing:!0}))):"<"===e?D():sa.test(e)?(f=3,p=new La($.a({},p,{isOpening:!0}))):(f=0,p=u)}function g(e){ca.test(e)?(p=new La($.a({},p,{name:F()})),f=4):"<"===e?D():"/"===e?(p=new La($.a({},p,{name:F()})),f=12):">"===e?(p=new La($.a({},p,{name:F()})),B()):sa.test(e)||ua.test(e)||":"===e||I()}function y(e){">"===e?I():sa.test(e)?f=3:I()}function b(e){ca.test(e)||("/"===e?f=12:">"===e?B():"<"===e?D():"="===e||la.test(e)||fa.test(e)?I():f=5)}function x(e){ca.test(e)?f=6:"/"===e?f=12:"="===e?f=7:">"===e?B():"<"===e?D():la.test(e)&&I()}function _(e){ca.test(e)||("/"===e?f=12:"="===e?f=7:">"===e?B():"<"===e?D():la.test(e)?I():f=5)}function w(e){ca.test(e)||('"'===e?f=8:"'"===e?f=9:/[>=`]/.test(e)?I():"<"===e?D():f=10)}function E(e){'"'===e&&(f=11)}function S(e){"'"===e&&(f=11)}function T(e){ca.test(e)?f=4:">"===e?B():"<"===e&&D()}function M(e){ca.test(e)?f=4:"/"===e?f=12:">"===e?B():"<"===e?D():(f=4,c--)}function O(e){">"===e?(p=new La($.a({},p,{isClosing:!0})),B()):f=4}function A(t){"--"===e.substr(c,2)?(c+=2,p=new La($.a({},p,{type:"comment"})),f=14):"DOCTYPE"===e.substr(c,7).toUpperCase()?(c+=7,p=new La($.a({},p,{type:"doctype"})),f=20):I()}function k(e){"-"===e?f=15:">"===e?I():f=16}function C(e){"-"===e?f=18:">"===e?I():f=16}function P(e){"-"===e&&(f=17)}function L(e){f="-"===e?18:16}function R(e){">"===e?B():"!"===e?f=19:"-"===e||(f=16)}function j(e){"-"===e?f=17:">"===e?B():f=16}function N(e){">"===e?B():"<"===e&&D()}function I(){f=0,p=u}function D(){f=1,p=new La({idx:c})}function B(){var t=e.slice(h,p.idx);t&&o(t,h),"comment"===p.type?a(p.idx):"doctype"===p.type?s(p.idx):(p.isOpening&&r(p.name,p.idx),p.isClosing&&i(p.name,p.idx)),I(),h=c+1}function F(){var t=p.idx+(p.isClosing?2:1);return e.slice(t,c).toLowerCase()}h<c&&(n=e.slice(h,c),o(n,h),h=c+1)}var Pa,La=function(){return function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing}}(),Ra=function(){function e(t){void 0===t&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(t.urls),this.email="boolean"==typeof t.email?t.email:this.email,this.phone="boolean"==typeof t.phone?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow="boolean"==typeof t.newWindow?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash="boolean"==typeof t.stripTrailingSlash?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding="boolean"==typeof t.decodePercentEncoding?t.decodePercentEncoding:this.decodePercentEncoding;var n=this.mention;if(!1!==n&&"twitter"!==n&&"instagram"!==n&&"soundcloud"!==n)throw new Error("invalid `mention` cfg - see docs");var r=this.hashtag;if(!1!==r&&"twitter"!==r&&"facebook"!==r&&"instagram"!==r)throw new Error("invalid `hashtag` cfg - see docs");this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,n){return new e(n).link(t)},e.parse=function(t,n){return new e(n).parse(t)},e.prototype.normalizeUrlsCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:"boolean"!=typeof e.schemeMatches||e.schemeMatches,wwwMatches:"boolean"!=typeof e.wwwMatches||e.wwwMatches,tldMatches:"boolean"!=typeof e.tldMatches||e.tldMatches}},e.prototype.normalizeStripPrefixCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{scheme:e,www:e}:{scheme:"boolean"!=typeof e.scheme||e.scheme,www:"boolean"!=typeof e.www||e.www}},e.prototype.normalizeTruncateCfg=function(e){return"number"==typeof e?{length:e,location:"end"}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&void 0===e[n]&&(e[n]=t[n]);return e}(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},e.prototype.parse=function(e){var t=this,n=["a","style","script"],r=0,i=[];return Ca(e,{onOpenTag:function(e){n.indexOf(e)>=0&&r++},onText:function(e,n){if(0===r){var o=function(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var n,r=[],i=0;n=t.exec(e);)r.push(e.substring(i,n.index)),r.push(n[0]),i=n.index+n[0].length;return r.push(e.substring(i)),r}(e,/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),a=n;o.forEach(function(e,n){if(n%2==0){var r=t.parseText(e,a);i.push.apply(i,r)}a+=e.length})}},onCloseTag:function(e){n.indexOf(e)>=0&&(r=Math.max(r-1,0))},onComment:function(e){},onDoctype:function(e){}}),i=this.compactMatches(i),i=this.removeUnwantedMatches(i)},e.prototype.compactMatches=function(e){e.sort(function(e,t){return e.getOffset()-t.getOffset()});for(var t=0;t<e.length-1;t++){var n=e[t],r=n.getOffset(),i=n.getMatchedText().length,o=r+i;if(t+1<e.length){if(e[t+1].getOffset()===r){var a=e[t+1].getMatchedText().length>i?t:t+1;e.splice(a,1);continue}e[t+1].getOffset()<o&&e.splice(t+1,1)}}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||Jo(e,function(e){return"hashtag"===e.getType()}),this.email||Jo(e,function(e){return"email"===e.getType()}),this.phone||Jo(e,function(e){return"phone"===e.getType()}),this.mention||Jo(e,function(e){return"mention"===e.getType()}),this.urls.schemeMatches||Jo(e,function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()}),this.urls.wwwMatches||Jo(e,function(e){return"url"===e.getType()&&"www"===e.getUrlMatchType()}),this.urls.tldMatches||Jo(e,function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()}),e},e.prototype.parseText=function(e,t){void 0===t&&(t=0),t=t||0;for(var n=this.getMatchers(),r=[],i=0,o=n.length;i<o;i++){for(var a=n[i].parseMatches(e),s=0,u=a.length;s<u;s++)a[s].setOffset(t+a[s].getOffset());r.push.apply(r,a)}return r},e.prototype.link=function(e){if(!e)return"";for(var t=this.parse(e),n=[],r=0,i=0,o=t.length;i<o;i++){var a=t[i];n.push(e.substring(r,a.getOffset())),n.push(this.createMatchReturnVal(a)),r=a.getOffset()+a.getMatchedText().length}return n.push(e.substring(r)),n.join("")},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),"string"==typeof t?t:!1===t?e.getMatchedText():t instanceof Ko?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var e=this.getTagBuilder(),t=[new Oa({tagBuilder:e,serviceName:this.hashtag}),new Ea({tagBuilder:e}),new Aa({tagBuilder:e}),new ka({tagBuilder:e,serviceName:this.mention}),new Ma({tagBuilder:e,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=t},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new $o({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="3.11.1",e.AnchorTagBuilder=$o,e.HtmlTag=Ko,e.matcher={Email:Ea,Hashtag:Oa,Matcher:aa,Mention:ka,Phone:Aa,Url:Ma},e.match={Email:ta,Hashtag:na,Match:ea,Mention:ra,Phone:ia,Url:oa},e}(),ja=n(47),Na=n.n(ja),Ia=function(e){var t,n,r=e.children,i=e.tag,o=void 0===i?"p":i,a=e.className,s=e.mod,u=void 0===s?"h4":s,c=e.align,l=e.alignDesktop,f=e.color,h=void 0===f?"white":f,p=e.display,m=e.fontFamily,v=e.weight,g=e.whiteSpace,y=e.isUppercase,b=e.isEllipsis,x=e.hasTags,_=o,E=mn()(Na.a.text,(t={},Object(L.a)(t,Na.a["".concat(u)],u),Object(L.a)(t,Na.a["align_".concat(c)],c),Object(L.a)(t,Na.a["alignDesktop_".concat(l)],l),Object(L.a)(t,Na.a["color_".concat(h)],h),Object(L.a)(t,Na.a["display_".concat(p)],p),Object(L.a)(t,Na.a["fontFamily_".concat(m)],m),Object(L.a)(t,Na.a["weight_".concat(v)],v),Object(L.a)(t,Na.a["whiteSpace_".concat(g)],g),Object(L.a)(t,Na.a.isUppercase,y),Object(L.a)(t,Na.a.isEllipsis,b),t),a);return r&&"string"==typeof r&&w.a.Text.isAutoLinkerEnabled&&w.a.Text.linkSearchPattern.some(function(e){return r.includes(e)})?d.a.createElement(_,{className:E,dangerouslySetInnerHTML:{__html:(n=r,Ra.link(n,{stripPrefix:!1,className:Na.a.link}))}}):x?d.a.createElement(_,{className:E,dangerouslySetInnerHTML:{__html:r}}):d.a.createElement(_,{className:E},r)},Da=function(){},Ba=n(367),Fa=n.n(Ba),Ua="externalLink",za="internalLink",Ha="scroll",Ga=(Pa={},Object(L.a)(Pa,Ua,"a"),Object(L.a)(Pa,Ha,"a"),Object(L.a)(Pa,za,Do),Pa),Wa=function(e){var t=e.href,n=e.mod,r=void 0===n?"link":n,i=e.title,o=e.onClick,a=void 0===o?Da:o,s=e.className,u=e.children,c=e.target,l=void 0===c?"_blank":c,f=function(e,t){return(Object.entries(e).find(function(e){var n=Object(J.a)(e,1)[0];return t.startsWith(n)})||{})[1]}({"/":za,http:Ua,"#":Ha},t),h=Ga[f],p=f===Ua&&"_blank"===l&&!/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent);return d.a.createElement(h,{className:mn()(Fa.a["root_".concat(r)],s),onClick:function(e){return function(e,t,n){if("#"===t[0]){e.preventDefault();var r=document.querySelector(t);r&&r.scrollIntoView({block:"start",behavior:"smooth"})}n()}(e,t,a)},title:i,"aria-label":i,href:t,to:f===za&&{pathname:t,state:{prevPath:location.pathname}}||null,target:p&&l||null,rel:p?"noopener noreferrer":null},u)},Va=n(149),qa=n.n(Va),Ya=function(e){var t=e.className,n=w.a.MainPage.sections.title,r=Object(O.useMatchMediaListener)();return Qn()(n)?null:d.a.createElement("section",{className:mn()(qa.a.wrapper,t)},d.a.createElement(Ia,{mod:"h1",tag:"h1",weight:"700",align:"center",className:qa.a.heading},n.heading),d.a.createElement(Ia,{mod:"p1",align:"center",className:qa.a.description},n.description),Xo(r)&&d.a.createElement(Wa,{href:n.buttonHref,mod:"button_small",className:qa.a.button},n.buttonText))};var Xa=n(185),Za=n(35);function Ja(e,t,n){return(Ja="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(Za.a)(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}var Qa,Ka=n(82);void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52)),void 0===Number.isInteger&&(Number.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}),void 0===Math.sign&&(Math.sign=function(e){return e<0?-1:e>0?1:+e}),"name"in Function.prototype==!1&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),void 0===Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t});var $a=0,es=1,ts=2,ns=1,rs=2,is=3,os=0,as=1,ss=2,us=0,cs=1,ls=2,fs=3,hs=4,ps=5,ds=100,ms=101,vs=102,gs=103,ys=104,bs=200,xs=201,_s=202,ws=203,Es=204,Ss=205,Ts=206,Ms=207,Os=208,As=209,ks=210,Cs=0,Ps=1,Ls=2,Rs=3,js=4,Ns=5,Is=6,Ds=7,Bs=0,Fs=1,Us=2,zs=0,Hs=1,Gs=2,Ws=3,Vs=4,qs=5,Ys=301,Xs=302,Zs=303,Js=304,Qs=306,Ks=307,$s=1e3,eu=1001,tu=1002,nu=1003,ru=1004,iu=1005,ou=1006,au=1007,su=1008,uu=1009,cu=1010,lu=1011,fu=1012,hu=1013,pu=1014,du=1015,mu=1016,vu=1017,gu=1018,yu=1019,bu=1020,xu=1021,_u=1022,wu=1023,Eu=1024,Su=1025,Tu=1026,Mu=1027,Ou=1028,Au=1029,ku=1030,Cu=1031,Pu=1032,Lu=1033,Ru=33776,ju=33777,Nu=33778,Iu=33779,Du=35840,Bu=35841,Fu=35842,Uu=35843,zu=36196,Hu=37492,Gu=37496,Wu=37808,Vu=37809,qu=37810,Yu=37811,Xu=37812,Zu=37813,Ju=37814,Qu=37815,Ku=37816,$u=37817,ec=37818,tc=37819,nc=37820,rc=37821,ic=36492,oc=37840,ac=37841,sc=37842,uc=37843,cc=37844,lc=37845,fc=37846,hc=37847,pc=37848,dc=37849,mc=37850,vc=37851,gc=37852,yc=37853,bc=2201,xc=2400,_c=2500,wc=3e3,Ec=3001,Sc=3007,Tc=3002,Mc=3003,Oc=3004,Ac=3005,kc=3006,Cc=3200,Pc=3201,Lc=0,Rc=1,jc=7680,Nc=519,Ic=35044,Dc=35048,Bc="300 es";function Fc(){}Object.assign(Fc.prototype,{addEventListener:function(e,t){void 0===this._listeners&&(this._listeners={});var n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)},hasEventListener:function(e,t){if(void 0===this._listeners)return!1;var n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)},removeEventListener:function(e,t){if(void 0!==this._listeners){var n=this._listeners[e];if(void 0!==n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}}},dispatchEvent:function(e){if(void 0!==this._listeners){var t=this._listeners[e.type];if(void 0!==t){e.target=this;for(var n=t.slice(0),r=0,i=n.length;r<i;r++)n[r].call(this,e)}}}});for(var Uc=[],zc=0;zc<256;zc++)Uc[zc]=(zc<16?"0":"")+zc.toString(16);var Hc,Gc=1234567,Wc={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(Uc[255&e]+Uc[e>>8&255]+Uc[e>>16&255]+Uc[e>>24&255]+"-"+Uc[255&t]+Uc[t>>8&255]+"-"+Uc[t>>16&15|64]+Uc[t>>24&255]+"-"+Uc[63&n|128]+Uc[n>>8&255]+"-"+Uc[n>>16&255]+Uc[n>>24&255]+Uc[255&r]+Uc[r>>8&255]+Uc[r>>16&255]+Uc[r>>24&255]).toUpperCase()},clamp:function(e,t,n){return Math.max(t,Math.min(n,e))},euclideanModulo:function(e,t){return(e%t+t)%t},mapLinear:function(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)},lerp:function(e,t,n){return(1-n)*e+n*t},smoothstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*(3-2*e)},smootherstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*e*(e*(6*e-15)+10)},randInt:function(e,t){return e+Math.floor(Math.random()*(t-e+1))},randFloat:function(e,t){return e+Math.random()*(t-e)},randFloatSpread:function(e){return e*(.5-Math.random())},seededRandom:function(e){return void 0!==e&&(Gc=e%2147483647),((Gc=16807*Gc%2147483647)-1)/2147483646},degToRad:function(e){return e*Wc.DEG2RAD},radToDeg:function(e){return e*Wc.RAD2DEG},isPowerOfTwo:function(e){return 0==(e&e-1)&&0!==e},ceilPowerOfTwo:function(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},floorPowerOfTwo:function(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))},setQuaternionFromProperEuler:function(e,t,n,r,i){var o=Math.cos,a=Math.sin,s=o(n/2),u=a(n/2),c=o((t+r)/2),l=a((t+r)/2),f=o((t-r)/2),h=a((t-r)/2),p=o((r-t)/2),d=a((r-t)/2);switch(i){case"XYX":e.set(s*l,u*f,u*h,s*c);break;case"YZY":e.set(u*h,s*l,u*f,s*c);break;case"ZXZ":e.set(u*f,u*h,s*l,s*c);break;case"XZX":e.set(s*l,u*d,u*p,s*c);break;case"YXY":e.set(u*p,s*l,u*d,s*c);break;case"ZYZ":e.set(u*d,u*p,s*l,s*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}},Vc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(cn.a)(this,e),Object.defineProperty(this,"isVector2",{value:!0}),this.x=t,this.y=n}return Object(ln.a)(e,[{key:"width",get:function(){return this.x},set:function(e){this.x=e}},{key:"height",get:function(){return this.y},set:function(e){this.y=e}},{key:"set",value:function(e,t){return this.x=e,this.y=t,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this}},{key:"add",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this)}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}},{key:"sub",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this)}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this}},{key:"divide",value:function(e){return this.x/=e.x,this.y/=e.y,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"applyMatrix3",value:function(e){var t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}},{key:"clamp",value:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}},{key:"clampScalar",value:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}},{key:"clampLength",value:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"roundToZero",value: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}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y}},{key:"cross",value:function(e){return this.x*e.y-this.y*e.x}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"angle",value:function(){var e=Math.atan2(-this.y,-this.x)+Math.PI;return e}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n}},{key:"manhattanDistanceTo",value:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}},{key:"lerpVectors",value:function(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y}},{key:"fromArray",value:function(e,t){return void 0===t&&(t=0),this.x=e[t],this.y=e[t+1],this}},{key:"toArray",value:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.x,e[t+1]=this.y,e}},{key:"fromBufferAttribute",value:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this}},{key:"rotateAround",value:function(e,t){var n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,o=this.y-e.y;return this.x=i*n-o*r+e.x,this.y=i*r+o*n+e.y,this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this}}]),e}(),qc=function(){function e(){Object(cn.a)(this,e),Object.defineProperty(this,"isMatrix3",{value:!0}),this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}return Object(ln.a)(e,[{key:"set",value:function(e,t,n,r,i,o,a,s,u){var c=this.elements;return c[0]=e,c[1]=r,c[2]=a,c[3]=t,c[4]=i,c[5]=s,c[6]=n,c[7]=o,c[8]=u,this}},{key:"identity",value:function(){return this.set(1,0,0,0,1,0,0,0,1),this}},{key:"clone",value:function(){return(new this.constructor).fromArray(this.elements)}},{key:"copy",value:function(e){var t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}},{key:"extractBasis",value:function(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}},{key:"setFromMatrix4",value:function(e){var t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}},{key:"multiply",value:function(e){return this.multiplyMatrices(this,e)}},{key:"premultiply",value:function(e){return this.multiplyMatrices(e,this)}},{key:"multiplyMatrices",value:function(e,t){var n=e.elements,r=t.elements,i=this.elements,o=n[0],a=n[3],s=n[6],u=n[1],c=n[4],l=n[7],f=n[2],h=n[5],p=n[8],d=r[0],m=r[3],v=r[6],g=r[1],y=r[4],b=r[7],x=r[2],_=r[5],w=r[8];return i[0]=o*d+a*g+s*x,i[3]=o*m+a*y+s*_,i[6]=o*v+a*b+s*w,i[1]=u*d+c*g+l*x,i[4]=u*m+c*y+l*_,i[7]=u*v+c*b+l*w,i[2]=f*d+h*g+p*x,i[5]=f*m+h*y+p*_,i[8]=f*v+h*b+p*w,this}},{key:"multiplyScalar",value:function(e){var t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}},{key:"determinant",value:function(){var e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],u=e[7],c=e[8];return t*o*c-t*a*u-n*i*c+n*a*s+r*i*u-r*o*s}},{key:"getInverse",value:function(e,t){void 0!==t&&console.warn("THREE.Matrix3: .getInverse() can no longer be configured to throw on degenerate.");var n=e.elements,r=this.elements,i=n[0],o=n[1],a=n[2],s=n[3],u=n[4],c=n[5],l=n[6],f=n[7],h=n[8],p=h*u-c*f,d=c*l-h*s,m=f*s-u*l,v=i*p+o*d+a*m;if(0===v)return this.set(0,0,0,0,0,0,0,0,0);var g=1/v;return r[0]=p*g,r[1]=(a*f-h*o)*g,r[2]=(c*o-a*u)*g,r[3]=d*g,r[4]=(h*i-a*l)*g,r[5]=(a*s-c*i)*g,r[6]=m*g,r[7]=(o*l-f*i)*g,r[8]=(u*i-o*s)*g,this}},{key:"transpose",value:function(){var e,t=this.elements;return e=t[1],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}},{key:"getNormalMatrix",value:function(e){return this.setFromMatrix4(e).getInverse(this).transpose()}},{key:"transposeIntoArray",value:function(e){var t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}},{key:"setUvTransform",value:function(e,t,n,r,i,o,a){var s=Math.cos(i),u=Math.sin(i);this.set(n*s,n*u,-n*(s*o+u*a)+o+e,-r*u,r*s,-r*(-u*o+s*a)+a+t,0,0,1)}},{key:"scale",value:function(e,t){var n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=t,n[4]*=t,n[7]*=t,this}},{key:"rotate",value:function(e){var t=Math.cos(e),n=Math.sin(e),r=this.elements,i=r[0],o=r[3],a=r[6],s=r[1],u=r[4],c=r[7];return r[0]=t*i+n*s,r[3]=t*o+n*u,r[6]=t*a+n*c,r[1]=-n*i+t*s,r[4]=-n*o+t*u,r[7]=-n*a+t*c,this}},{key:"translate",value:function(e,t){var n=this.elements;return n[0]+=e*n[2],n[3]+=e*n[5],n[6]+=e*n[8],n[1]+=t*n[2],n[4]+=t*n[5],n[7]+=t*n[8],this}},{key:"equals",value:function(e){for(var t=this.elements,n=e.elements,r=0;r<9;r++)if(t[r]!==n[r])return!1;return!0}},{key:"fromArray",value:function(e,t){void 0===t&&(t=0);for(var n=0;n<9;n++)this.elements[n]=e[n+t];return this}},{key:"toArray",value:function(e,t){void 0===e&&(e=[]),void 0===t&&(t=0);var n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}}]),e}(),Yc={getDataURL:function(e){if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;var t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===Hc&&(Hc=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),Hc.width=e.width,Hc.height=e.height;var n=Hc.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=Hc}return t.width>2048||t.height>2048?t.toDataURL("image/jpeg",.6):t.toDataURL("image/png")}},Xc=0;function Zc(e,t,n,r,i,o,a,s,u,c){Object.defineProperty(this,"id",{value:Xc++}),this.uuid=Wc.generateUUID(),this.name="",this.image=void 0!==e?e:Zc.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==t?t:Zc.DEFAULT_MAPPING,this.wrapS=void 0!==n?n:eu,this.wrapT=void 0!==r?r:eu,this.magFilter=void 0!==i?i:ou,this.minFilter=void 0!==o?o:su,this.anisotropy=void 0!==u?u:1,this.format=void 0!==a?a:wu,this.internalFormat=null,this.type=void 0!==s?s:uu,this.offset=new Vc(0,0),this.repeat=new Vc(1,1),this.center=new Vc(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new qc,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==c?c:wc,this.version=0,this.onUpdate=null}Zc.DEFAULT_IMAGE=void 0,Zc.DEFAULT_MAPPING=300,Zc.prototype=Object.assign(Object.create(Fc.prototype),{constructor:Zc,isTexture:!0,updateMatrix:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.name=e.name,this.image=e.image,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.encoding=e.encoding,this},toJSON:function(e){var t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];var n={metadata:{version:4.5,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],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(void 0!==this.image){var r=this.image;if(void 0===r.uuid&&(r.uuid=Wc.generateUUID()),!t&&void 0===e.images[r.uuid]){var i;if(Array.isArray(r)){i=[];for(var o=0,a=r.length;o<a;o++)i.push(Yc.getDataURL(r[o]))}else i=Yc.getDataURL(r);e.images[r.uuid]={uuid:r.uuid,url:i}}n.image=r.uuid}return t||(e.textures[this.uuid]=n),n},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(e){if(300!==this.mapping)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case $s:e.x=e.x-Math.floor(e.x);break;case eu:e.x=e.x<0?0:1;break;case tu:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case $s:e.y=e.y-Math.floor(e.y);break;case eu:e.y=e.y<0?0:1;break;case tu:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}}),Object.defineProperty(Zc.prototype,"needsUpdate",{set:function(e){!0===e&&this.version++}});var Jc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;Object(cn.a)(this,e),Object.defineProperty(this,"isVector4",{value:!0}),this.x=t,this.y=n,this.z=r,this.w=i}return Object(ln.a)(e,[{key:"width",get:function(){return this.z},set:function(e){this.z=e}},{key:"height",get:function(){return this.w},set:function(e){this.w=e}},{key:"set",value:function(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setZ",value:function(e){return this.z=e,this}},{key:"setW",value:function(e){return this.w=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){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: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z,this.w)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}},{key:"add",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this)}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}},{key:"sub",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this)}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}},{key:"applyMatrix4",value:function(e){var t=this.x,n=this.y,r=this.z,i=this.w,o=e.elements;return this.x=o[0]*t+o[4]*n+o[8]*r+o[12]*i,this.y=o[1]*t+o[5]*n+o[9]*r+o[13]*i,this.z=o[2]*t+o[6]*n+o[10]*r+o[14]*i,this.w=o[3]*t+o[7]*n+o[11]*r+o[15]*i,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"setAxisAngleFromQuaternion",value:function(e){this.w=2*Math.acos(e.w);var t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}},{key:"setAxisAngleFromRotationMatrix",value:function(e){var t,n,r,i,o=e.elements,a=o[0],s=o[4],u=o[8],c=o[1],l=o[5],f=o[9],h=o[2],p=o[6],d=o[10];if(Math.abs(s-c)<.01&&Math.abs(u-h)<.01&&Math.abs(f-p)<.01){if(Math.abs(s+c)<.1&&Math.abs(u+h)<.1&&Math.abs(f+p)<.1&&Math.abs(a+l+d-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;var m=(a+1)/2,v=(l+1)/2,g=(d+1)/2,y=(s+c)/4,b=(u+h)/4,x=(f+p)/4;return m>v&&m>g?m<.01?(n=0,r=.707106781,i=.707106781):(r=y/(n=Math.sqrt(m)),i=b/n):v>g?v<.01?(n=.707106781,r=0,i=.707106781):(n=y/(r=Math.sqrt(v)),i=x/r):g<.01?(n=.707106781,r=.707106781,i=0):(n=b/(i=Math.sqrt(g)),r=x/i),this.set(n,r,i,t),this}var _=Math.sqrt((p-f)*(p-f)+(u-h)*(u-h)+(c-s)*(c-s));return Math.abs(_)<.001&&(_=1),this.x=(p-f)/_,this.y=(u-h)/_,this.z=(c-s)/_,this.w=Math.acos((a+l+d-1)/2),this}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}},{key:"clamp",value:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}},{key:"clampScalar",value:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}},{key:"clampLength",value:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}},{key:"floor",value: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}},{key:"ceil",value: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}},{key:"round",value: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}},{key:"roundToZero",value: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}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}},{key:"lerpVectors",value:function(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}},{key:"fromArray",value:function(e,t){return void 0===t&&(t=0),this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}},{key:"toArray",value:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}},{key:"fromBufferAttribute",value:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}}]),e}();function Qc(e,t,n){this.width=e,this.height=t,this.scissor=new Jc(0,0,e,t),this.scissorTest=!1,this.viewport=new Jc(0,0,e,t),n=n||{},this.texture=new Zc(void 0,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.image={},this.texture.image.width=e,this.texture.image.height=t,this.texture.generateMipmaps=void 0!==n.generateMipmaps&&n.generateMipmaps,this.texture.minFilter=void 0!==n.minFilter?n.minFilter:ou,this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0!==n.stencilBuffer&&n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null}function Kc(e,t,n){Qc.call(this,e,t,n),this.samples=4}Qc.prototype=Object.assign(Object.create(Fc.prototype),{constructor:Qc,isWebGLRenderTarget:!0,setSize:function(e,t){this.width===e&&this.height===t||(this.width=e,this.height=t,this.texture.image.width=e,this.texture.image.height=t,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.width=e.width,this.height=e.height,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.depthTexture=e.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Kc.prototype=Object.assign(Object.create(Qc.prototype),{constructor:Kc,isWebGLMultisampleRenderTarget:!0,copy:function(e){return Qc.prototype.copy.call(this,e),this.samples=e.samples,this}});var $c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;Object(cn.a)(this,e),Object.defineProperty(this,"isQuaternion",{value:!0}),this._x=t,this._y=n,this._z=r,this._w=i}return Object(ln.a)(e,[{key:"x",get:function(){return this._x},set:function(e){this._x=e,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(e){this._y=e,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(e){this._z=e,this._onChangeCallback()}},{key:"w",get:function(){return this._w},set:function(e){this._w=e,this._onChangeCallback()}},{key:"set",value:function(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._w)}},{key:"copy",value:function(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}},{key:"setFromEuler",value:function(e,t){if(!e||!e.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var n=e._x,r=e._y,i=e._z,o=e._order,a=Math.cos,s=Math.sin,u=a(n/2),c=a(r/2),l=a(i/2),f=s(n/2),h=s(r/2),p=s(i/2);switch(o){case"XYZ":this._x=f*c*l+u*h*p,this._y=u*h*l-f*c*p,this._z=u*c*p+f*h*l,this._w=u*c*l-f*h*p;break;case"YXZ":this._x=f*c*l+u*h*p,this._y=u*h*l-f*c*p,this._z=u*c*p-f*h*l,this._w=u*c*l+f*h*p;break;case"ZXY":this._x=f*c*l-u*h*p,this._y=u*h*l+f*c*p,this._z=u*c*p+f*h*l,this._w=u*c*l-f*h*p;break;case"ZYX":this._x=f*c*l-u*h*p,this._y=u*h*l+f*c*p,this._z=u*c*p-f*h*l,this._w=u*c*l+f*h*p;break;case"YZX":this._x=f*c*l+u*h*p,this._y=u*h*l+f*c*p,this._z=u*c*p-f*h*l,this._w=u*c*l-f*h*p;break;case"XZY":this._x=f*c*l-u*h*p,this._y=u*h*l-f*c*p,this._z=u*c*p+f*h*l,this._w=u*c*l+f*h*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return!1!==t&&this._onChangeCallback(),this}},{key:"setFromAxisAngle",value:function(e,t){var n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(e){var t=e.elements,n=t[0],r=t[4],i=t[8],o=t[1],a=t[5],s=t[9],u=t[2],c=t[6],l=t[10],f=n+a+l;if(f>0){var h=.5/Math.sqrt(f+1);this._w=.25/h,this._x=(c-s)*h,this._y=(i-u)*h,this._z=(o-r)*h}else if(n>a&&n>l){var p=2*Math.sqrt(1+n-a-l);this._w=(c-s)/p,this._x=.25*p,this._y=(r+o)/p,this._z=(i+u)/p}else if(a>l){var d=2*Math.sqrt(1+a-n-l);this._w=(i-u)/d,this._x=(r+o)/d,this._y=.25*d,this._z=(s+c)/d}else{var m=2*Math.sqrt(1+l-n-a);this._w=(o-r)/m,this._x=(i+u)/m,this._y=(s+c)/m,this._z=.25*m}return this._onChangeCallback(),this}},{key:"setFromUnitVectors",value:function(e,t){var n=e.dot(t)+1;return n<1e-6?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}},{key:"angleTo",value:function(e){return 2*Math.acos(Math.abs(Wc.clamp(this.dot(e),-1,1)))}},{key:"rotateTowards",value:function(e,t){var n=this.angleTo(e);if(0===n)return this;var r=Math.min(1,t/n);return this.slerp(e,r),this}},{key:"identity",value:function(){return this.set(0,0,0,1)}},{key:"inverse",value:function(){return this.conjugate()}},{key:"conjugate",value:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}},{key:"dot",value:function(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}},{key:"lengthSq",value:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}},{key:"length",value:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}},{key:"normalize",value:function(){var e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}},{key:"multiply",value:function(e,t){return void 0!==t?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(e,t)):this.multiplyQuaternions(this,e)}},{key:"premultiply",value:function(e){return this.multiplyQuaternions(e,this)}},{key:"multiplyQuaternions",value:function(e,t){var n=e._x,r=e._y,i=e._z,o=e._w,a=t._x,s=t._y,u=t._z,c=t._w;return this._x=n*c+o*a+r*u-i*s,this._y=r*c+o*s+i*a-n*u,this._z=i*c+o*u+n*s-r*a,this._w=o*c-n*a-r*s-i*u,this._onChangeCallback(),this}},{key:"slerp",value:function(e,t){if(0===t)return this;if(1===t)return this.copy(e);var n=this._x,r=this._y,i=this._z,o=this._w,a=o*e._w+n*e._x+r*e._y+i*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=n,this._y=r,this._z=i,this;var s=1-a*a;if(s<=Number.EPSILON){var u=1-t;return this._w=u*o+t*this._w,this._x=u*n+t*this._x,this._y=u*r+t*this._y,this._z=u*i+t*this._z,this.normalize(),this._onChangeCallback(),this}var c=Math.sqrt(s),l=Math.atan2(c,a),f=Math.sin((1-t)*l)/c,h=Math.sin(t*l)/c;return this._w=o*f+this._w*h,this._x=n*f+this._x*h,this._y=r*f+this._y*h,this._z=i*f+this._z*h,this._onChangeCallback(),this}},{key:"equals",value:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}},{key:"fromArray",value:function(e,t){return void 0===t&&(t=0),this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}},{key:"toArray",value:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}},{key:"fromBufferAttribute",value:function(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}},{key:"_onChange",value:function(e){return this._onChangeCallback=e,this}},{key:"_onChangeCallback",value:function(){}}],[{key:"slerp",value:function(e,t,n,r){return n.copy(e).slerp(t,r)}},{key:"slerpFlat",value:function(e,t,n,r,i,o,a){var s=n[r+0],u=n[r+1],c=n[r+2],l=n[r+3],f=i[o+0],h=i[o+1],p=i[o+2],d=i[o+3];if(l!==d||s!==f||u!==h||c!==p){var m=1-a,v=s*f+u*h+c*p+l*d,g=v>=0?1:-1,y=1-v*v;if(y>Number.EPSILON){var b=Math.sqrt(y),x=Math.atan2(b,v*g);m=Math.sin(m*x)/b,a=Math.sin(a*x)/b}var _=a*g;if(s=s*m+f*_,u=u*m+h*_,c=c*m+p*_,l=l*m+d*_,m===1-a){var w=1/Math.sqrt(s*s+u*u+c*c+l*l);s*=w,u*=w,c*=w,l*=w}}e[t]=s,e[t+1]=u,e[t+2]=c,e[t+3]=l}},{key:"multiplyQuaternionsFlat",value:function(e,t,n,r,i,o){var a=n[r],s=n[r+1],u=n[r+2],c=n[r+3],l=i[o],f=i[o+1],h=i[o+2],p=i[o+3];return e[t]=a*p+c*l+s*h-u*f,e[t+1]=s*p+c*f+u*l-a*h,e[t+2]=u*p+c*h+a*f-s*l,e[t+3]=c*p-a*l-s*f-u*h,e}}]),e}(),el=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Object(cn.a)(this,e),Object.defineProperty(this,"isVector3",{value:!0}),this.x=t,this.y=n,this.z=r}return Object(ln.a)(e,[{key:"set",value:function(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this.z=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setZ",value:function(e){return this.z=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}},{key:"add",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this.z+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}},{key:"sub",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this.z-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}},{key:"multiply",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(e,t)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this}},{key:"multiplyVectors",value:function(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}},{key:"applyEuler",value:function(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(nl.setFromEuler(e))}},{key:"applyAxisAngle",value:function(e,t){return this.applyQuaternion(nl.setFromAxisAngle(e,t))}},{key:"applyMatrix3",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}},{key:"applyNormalMatrix",value:function(e){return this.applyMatrix3(e).normalize()}},{key:"applyMatrix4",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements,o=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*o,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*o,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*o,this}},{key:"applyQuaternion",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.x,o=e.y,a=e.z,s=e.w,u=s*t+o*r-a*n,c=s*n+a*t-i*r,l=s*r+i*n-o*t,f=-i*t-o*n-a*r;return this.x=u*s+f*-i+c*-a-l*-o,this.y=c*s+f*-o+l*-i-u*-a,this.z=l*s+f*-a+u*-o-c*-i,this}},{key:"project",value:function(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}},{key:"unproject",value:function(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}},{key:"transformDirection",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}},{key:"divide",value:function(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}},{key:"clamp",value:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}},{key:"clampScalar",value:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}},{key:"clampLength",value:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}},{key:"roundToZero",value: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}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y+this.z*e.z}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y+this.z*this.z}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}},{key:"lerpVectors",value:function(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}},{key:"cross",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(e,t)):this.crossVectors(this,e)}},{key:"crossVectors",value:function(e,t){var n=e.x,r=e.y,i=e.z,o=t.x,a=t.y,s=t.z;return this.x=r*s-i*a,this.y=i*o-n*s,this.z=n*a-r*o,this}},{key:"projectOnVector",value:function(e){var t=e.lengthSq();if(0===t)return this.set(0,0,0);var n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}},{key:"projectOnPlane",value:function(e){return tl.copy(this).projectOnVector(e),this.sub(tl)}},{key:"reflect",value:function(e){return this.sub(tl.copy(e).multiplyScalar(2*this.dot(e)))}},{key:"angleTo",value:function(e){var t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;var n=this.dot(e)/t;return Math.acos(Wc.clamp(n,-1,1))}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}},{key:"manhattanDistanceTo",value:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}},{key:"setFromSpherical",value:function(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}},{key:"setFromSphericalCoords",value:function(e,t,n){var r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}},{key:"setFromCylindrical",value:function(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}},{key:"setFromCylindricalCoords",value:function(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}},{key:"setFromMatrixPosition",value:function(e){var t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}},{key:"setFromMatrixScale",value:function(e){var t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}},{key:"setFromMatrixColumn",value:function(e,t){return this.fromArray(e.elements,4*t)}},{key:"setFromMatrix3Column",value:function(e,t){return this.fromArray(e.elements,3*t)}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}},{key:"fromArray",value:function(e,t){return void 0===t&&(t=0),this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}},{key:"toArray",value:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}},{key:"fromBufferAttribute",value:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}}]),e}(),tl=new el,nl=new $c,rl=function(){function e(t,n){Object(cn.a)(this,e),Object.defineProperty(this,"isBox3",{value:!0}),this.min=void 0!==t?t:new el(1/0,1/0,1/0),this.max=void 0!==n?n:new el(-1/0,-1/0,-1/0)}return Object(ln.a)(e,[{key:"set",value:function(e,t){return this.min.copy(e),this.max.copy(t),this}},{key:"setFromArray",value:function(e){for(var t=1/0,n=1/0,r=1/0,i=-1/0,o=-1/0,a=-1/0,s=0,u=e.length;s<u;s+=3){var c=e[s],l=e[s+1],f=e[s+2];c<t&&(t=c),l<n&&(n=l),f<r&&(r=f),c>i&&(i=c),l>o&&(o=l),f>a&&(a=f)}return this.min.set(t,n,r),this.max.set(i,o,a),this}},{key:"setFromBufferAttribute",value:function(e){for(var t=1/0,n=1/0,r=1/0,i=-1/0,o=-1/0,a=-1/0,s=0,u=e.count;s<u;s++){var c=e.getX(s),l=e.getY(s),f=e.getZ(s);c<t&&(t=c),l<n&&(n=l),f<r&&(r=f),c>i&&(i=c),l>o&&(o=l),f>a&&(a=f)}return this.min.set(t,n,r),this.max.set(i,o,a),this}},{key:"setFromPoints",value:function(e){this.makeEmpty();for(var t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}},{key:"setFromCenterAndSize",value:function(e,t){var n=al.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}},{key:"setFromObject",value:function(e){return this.makeEmpty(),this.expandByObject(e)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.min.copy(e.min),this.max.copy(e.max),this}},{key:"makeEmpty",value: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}},{key:"isEmpty",value:function(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}},{key:"getCenter",value:function(e){return void 0===e&&(console.warn("THREE.Box3: .getCenter() target is now required"),e=new el),this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}},{key:"getSize",value:function(e){return void 0===e&&(console.warn("THREE.Box3: .getSize() target is now required"),e=new el),this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}},{key:"expandByPoint",value:function(e){return this.min.min(e),this.max.max(e),this}},{key:"expandByVector",value:function(e){return this.min.sub(e),this.max.add(e),this}},{key:"expandByScalar",value:function(e){return this.min.addScalar(-e),this.max.addScalar(e),this}},{key:"expandByObject",value:function(e){e.updateWorldMatrix(!1,!1);var t=e.geometry;void 0!==t&&(null===t.boundingBox&&t.computeBoundingBox(),sl.copy(t.boundingBox),sl.applyMatrix4(e.matrixWorld),this.union(sl));for(var n=e.children,r=0,i=n.length;r<i;r++)this.expandByObject(n[r]);return this}},{key:"containsPoint",value:function(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}},{key:"containsBox",value:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}},{key:"getParameter",value:function(e,t){return void 0===t&&(console.warn("THREE.Box3: .getParameter() target is now required"),t=new el),t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}},{key:"intersectsBox",value:function(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}},{key:"intersectsSphere",value:function(e){return this.clampPoint(e.center,al),al.distanceToSquared(e.center)<=e.radius*e.radius}},{key:"intersectsPlane",value:function(e){var t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}},{key:"intersectsTriangle",value:function(e){if(this.isEmpty())return!1;this.getCenter(dl),ml.subVectors(this.max,dl),ul.subVectors(e.a,dl),cl.subVectors(e.b,dl),ll.subVectors(e.c,dl),fl.subVectors(cl,ul),hl.subVectors(ll,cl),pl.subVectors(ul,ll);var t=[0,-fl.z,fl.y,0,-hl.z,hl.y,0,-pl.z,pl.y,fl.z,0,-fl.x,hl.z,0,-hl.x,pl.z,0,-pl.x,-fl.y,fl.x,0,-hl.y,hl.x,0,-pl.y,pl.x,0];return!!il(t,ul,cl,ll,ml)&&(!!il(t=[1,0,0,0,1,0,0,0,1],ul,cl,ll,ml)&&(vl.crossVectors(fl,hl),il(t=[vl.x,vl.y,vl.z],ul,cl,ll,ml)))}},{key:"clampPoint",value:function(e,t){return void 0===t&&(console.warn("THREE.Box3: .clampPoint() target is now required"),t=new el),t.copy(e).clamp(this.min,this.max)}},{key:"distanceToPoint",value:function(e){return al.copy(e).clamp(this.min,this.max).sub(e).length()}},{key:"getBoundingSphere",value:function(e){return void 0===e&&console.error("THREE.Box3: .getBoundingSphere() target is now required"),this.getCenter(e.center),e.radius=.5*this.getSize(al).length(),e}},{key:"intersect",value:function(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}},{key:"union",value:function(e){return this.min.min(e.min),this.max.max(e.max),this}},{key:"applyMatrix4",value:function(e){return this.isEmpty()?this:(ol[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),ol[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),ol[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),ol[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),ol[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),ol[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),ol[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),ol[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(ol),this)}},{key:"translate",value:function(e){return this.min.add(e),this.max.add(e),this}},{key:"equals",value:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}]),e}();function il(e,t,n,r,i){for(var o=0,a=e.length-3;o<=a;o+=3){gl.fromArray(e,o);var s=i.x*Math.abs(gl.x)+i.y*Math.abs(gl.y)+i.z*Math.abs(gl.z),u=t.dot(gl),c=n.dot(gl),l=r.dot(gl);if(Math.max(-Math.max(u,c,l),Math.min(u,c,l))>s)return!1}return!0}var ol=[new el,new el,new el,new el,new el,new el,new el,new el],al=new el,sl=new rl,ul=new el,cl=new el,ll=new el,fl=new el,hl=new el,pl=new el,dl=new el,ml=new el,vl=new el,gl=new el,yl=new rl,bl=function(){function e(t,n){Object(cn.a)(this,e),this.center=void 0!==t?t:new el,this.radius=void 0!==n?n:-1}return Object(ln.a)(e,[{key:"set",value:function(e,t){return this.center.copy(e),this.radius=t,this}},{key:"setFromPoints",value:function(e,t){var n=this.center;void 0!==t?n.copy(t):yl.setFromPoints(e).getCenter(n);for(var r=0,i=0,o=e.length;i<o;i++)r=Math.max(r,n.distanceToSquared(e[i]));return this.radius=Math.sqrt(r),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.center.copy(e.center),this.radius=e.radius,this}},{key:"isEmpty",value:function(){return this.radius<0}},{key:"makeEmpty",value:function(){return this.center.set(0,0,0),this.radius=-1,this}},{key:"containsPoint",value:function(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}},{key:"distanceToPoint",value:function(e){return e.distanceTo(this.center)-this.radius}},{key:"intersectsSphere",value:function(e){var t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}},{key:"intersectsBox",value:function(e){return e.intersectsSphere(this)}},{key:"intersectsPlane",value:function(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}},{key:"clampPoint",value:function(e,t){var n=this.center.distanceToSquared(e);return void 0===t&&(console.warn("THREE.Sphere: .clampPoint() target is now required"),t=new el),t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}},{key:"getBoundingBox",value:function(e){return void 0===e&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),e=new rl),this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}},{key:"applyMatrix4",value:function(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}},{key:"translate",value:function(e){return this.center.add(e),this}},{key:"equals",value:function(e){return e.center.equals(this.center)&&e.radius===this.radius}}]),e}(),xl=new el,_l=new el,wl=new el,El=new el,Sl=new el,Tl=new el,Ml=new el,Ol=function(){function e(t,n){Object(cn.a)(this,e),this.origin=void 0!==t?t:new el,this.direction=void 0!==n?n:new el(0,0,-1)}return Object(ln.a)(e,[{key:"set",value:function(e,t){return this.origin.copy(e),this.direction.copy(t),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}},{key:"at",value:function(e,t){return void 0===t&&(console.warn("THREE.Ray: .at() target is now required"),t=new el),t.copy(this.direction).multiplyScalar(e).add(this.origin)}},{key:"lookAt",value:function(e){return this.direction.copy(e).sub(this.origin).normalize(),this}},{key:"recast",value:function(e){return this.origin.copy(this.at(e,xl)),this}},{key:"closestPointToPoint",value:function(e,t){void 0===t&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),t=new el),t.subVectors(e,this.origin);var n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.direction).multiplyScalar(n).add(this.origin)}},{key:"distanceToPoint",value:function(e){return Math.sqrt(this.distanceSqToPoint(e))}},{key:"distanceSqToPoint",value:function(e){var t=xl.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(xl.copy(this.direction).multiplyScalar(t).add(this.origin),xl.distanceToSquared(e))}},{key:"distanceSqToSegment",value:function(e,t,n,r){_l.copy(e).add(t).multiplyScalar(.5),wl.copy(t).sub(e).normalize(),El.copy(this.origin).sub(_l);var i,o,a,s,u=.5*e.distanceTo(t),c=-this.direction.dot(wl),l=El.dot(this.direction),f=-El.dot(wl),h=El.lengthSq(),p=Math.abs(1-c*c);if(p>0)if(o=c*l-f,s=u*p,(i=c*f-l)>=0)if(o>=-s)if(o<=s){var d=1/p;a=(i*=d)*(i+c*(o*=d)+2*l)+o*(c*i+o+2*f)+h}else o=u,a=-(i=Math.max(0,-(c*o+l)))*i+o*(o+2*f)+h;else o=-u,a=-(i=Math.max(0,-(c*o+l)))*i+o*(o+2*f)+h;else o<=-s?a=-(i=Math.max(0,-(-c*u+l)))*i+(o=i>0?-u:Math.min(Math.max(-u,-f),u))*(o+2*f)+h:o<=s?(i=0,a=(o=Math.min(Math.max(-u,-f),u))*(o+2*f)+h):a=-(i=Math.max(0,-(c*u+l)))*i+(o=i>0?u:Math.min(Math.max(-u,-f),u))*(o+2*f)+h;else o=c>0?-u:u,a=-(i=Math.max(0,-(c*o+l)))*i+o*(o+2*f)+h;return n&&n.copy(this.direction).multiplyScalar(i).add(this.origin),r&&r.copy(wl).multiplyScalar(o).add(_l),a}},{key:"intersectSphere",value:function(e,t){xl.subVectors(e.center,this.origin);var n=xl.dot(this.direction),r=xl.dot(xl)-n*n,i=e.radius*e.radius;if(r>i)return null;var o=Math.sqrt(i-r),a=n-o,s=n+o;return a<0&&s<0?null:a<0?this.at(s,t):this.at(a,t)}},{key:"intersectsSphere",value:function(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}},{key:"distanceToPlane",value:function(e){var t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;var n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}},{key:"intersectPlane",value:function(e,t){var n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}},{key:"intersectsPlane",value:function(e){var t=e.distanceToPoint(this.origin);return 0===t||e.normal.dot(this.direction)*t<0}},{key:"intersectBox",value:function(e,t){var n,r,i,o,a,s,u=1/this.direction.x,c=1/this.direction.y,l=1/this.direction.z,f=this.origin;return u>=0?(n=(e.min.x-f.x)*u,r=(e.max.x-f.x)*u):(n=(e.max.x-f.x)*u,r=(e.min.x-f.x)*u),c>=0?(i=(e.min.y-f.y)*c,o=(e.max.y-f.y)*c):(i=(e.max.y-f.y)*c,o=(e.min.y-f.y)*c),n>o||i>r?null:((i>n||n!=n)&&(n=i),(o<r||r!=r)&&(r=o),l>=0?(a=(e.min.z-f.z)*l,s=(e.max.z-f.z)*l):(a=(e.max.z-f.z)*l,s=(e.min.z-f.z)*l),n>s||a>r?null:((a>n||n!=n)&&(n=a),(s<r||r!=r)&&(r=s),r<0?null:this.at(n>=0?n:r,t)))}},{key:"intersectsBox",value:function(e){return null!==this.intersectBox(e,xl)}},{key:"intersectTriangle",value:function(e,t,n,r,i){Sl.subVectors(t,e),Tl.subVectors(n,e),Ml.crossVectors(Sl,Tl);var o,a=this.direction.dot(Ml);if(a>0){if(r)return null;o=1}else{if(!(a<0))return null;o=-1,a=-a}El.subVectors(this.origin,e);var s=o*this.direction.dot(Tl.crossVectors(El,Tl));if(s<0)return null;var u=o*this.direction.dot(Sl.cross(El));if(u<0)return null;if(s+u>a)return null;var c=-o*El.dot(Ml);return c<0?null:this.at(c/a,i)}},{key:"applyMatrix4",value:function(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}},{key:"equals",value:function(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}}]),e}(),Al=function(){function e(){Object(cn.a)(this,e),Object.defineProperty(this,"isMatrix4",{value:!0}),this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}return Object(ln.a)(e,[{key:"set",value:function(e,t,n,r,i,o,a,s,u,c,l,f,h,p,d,m){var v=this.elements;return v[0]=e,v[4]=t,v[8]=n,v[12]=r,v[1]=i,v[5]=o,v[9]=a,v[13]=s,v[2]=u,v[6]=c,v[10]=l,v[14]=f,v[3]=h,v[7]=p,v[11]=d,v[15]=m,this}},{key:"identity",value:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}},{key:"clone",value:function(){return(new e).fromArray(this.elements)}},{key:"copy",value:function(e){var t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}},{key:"copyPosition",value:function(e){var t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}},{key:"extractBasis",value:function(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}},{key:"makeBasis",value:function(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}},{key:"extractRotation",value:function(e){var t=this.elements,n=e.elements,r=1/kl.setFromMatrixColumn(e,0).length(),i=1/kl.setFromMatrixColumn(e,1).length(),o=1/kl.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*o,t[9]=n[9]*o,t[10]=n[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}},{key:"makeRotationFromEuler",value:function(e){e&&e.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var t=this.elements,n=e.x,r=e.y,i=e.z,o=Math.cos(n),a=Math.sin(n),s=Math.cos(r),u=Math.sin(r),c=Math.cos(i),l=Math.sin(i);if("XYZ"===e.order){var f=o*c,h=o*l,p=a*c,d=a*l;t[0]=s*c,t[4]=-s*l,t[8]=u,t[1]=h+p*u,t[5]=f-d*u,t[9]=-a*s,t[2]=d-f*u,t[6]=p+h*u,t[10]=o*s}else if("YXZ"===e.order){var m=s*c,v=s*l,g=u*c,y=u*l;t[0]=m+y*a,t[4]=g*a-v,t[8]=o*u,t[1]=o*l,t[5]=o*c,t[9]=-a,t[2]=v*a-g,t[6]=y+m*a,t[10]=o*s}else if("ZXY"===e.order){var b=s*c,x=s*l,_=u*c,w=u*l;t[0]=b-w*a,t[4]=-o*l,t[8]=_+x*a,t[1]=x+_*a,t[5]=o*c,t[9]=w-b*a,t[2]=-o*u,t[6]=a,t[10]=o*s}else if("ZYX"===e.order){var E=o*c,S=o*l,T=a*c,M=a*l;t[0]=s*c,t[4]=T*u-S,t[8]=E*u+M,t[1]=s*l,t[5]=M*u+E,t[9]=S*u-T,t[2]=-u,t[6]=a*s,t[10]=o*s}else if("YZX"===e.order){var O=o*s,A=o*u,k=a*s,C=a*u;t[0]=s*c,t[4]=C-O*l,t[8]=k*l+A,t[1]=l,t[5]=o*c,t[9]=-a*c,t[2]=-u*c,t[6]=A*l+k,t[10]=O-C*l}else if("XZY"===e.order){var P=o*s,L=o*u,R=a*s,j=a*u;t[0]=s*c,t[4]=-l,t[8]=u*c,t[1]=P*l+j,t[5]=o*c,t[9]=L*l-R,t[2]=R*l-L,t[6]=a*c,t[10]=j*l+P}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}},{key:"makeRotationFromQuaternion",value:function(e){return this.compose(Pl,e,Ll)}},{key:"lookAt",value:function(e,t,n){var r=this.elements;return Nl.subVectors(e,t),0===Nl.lengthSq()&&(Nl.z=1),Nl.normalize(),Rl.crossVectors(n,Nl),0===Rl.lengthSq()&&(1===Math.abs(n.z)?Nl.x+=1e-4:Nl.z+=1e-4,Nl.normalize(),Rl.crossVectors(n,Nl)),Rl.normalize(),jl.crossVectors(Nl,Rl),r[0]=Rl.x,r[4]=jl.x,r[8]=Nl.x,r[1]=Rl.y,r[5]=jl.y,r[9]=Nl.y,r[2]=Rl.z,r[6]=jl.z,r[10]=Nl.z,this}},{key:"multiply",value:function(e,t){return void 0!==t?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(e,t)):this.multiplyMatrices(this,e)}},{key:"premultiply",value:function(e){return this.multiplyMatrices(e,this)}},{key:"multiplyMatrices",value:function(e,t){var n=e.elements,r=t.elements,i=this.elements,o=n[0],a=n[4],s=n[8],u=n[12],c=n[1],l=n[5],f=n[9],h=n[13],p=n[2],d=n[6],m=n[10],v=n[14],g=n[3],y=n[7],b=n[11],x=n[15],_=r[0],w=r[4],E=r[8],S=r[12],T=r[1],M=r[5],O=r[9],A=r[13],k=r[2],C=r[6],P=r[10],L=r[14],R=r[3],j=r[7],N=r[11],I=r[15];return i[0]=o*_+a*T+s*k+u*R,i[4]=o*w+a*M+s*C+u*j,i[8]=o*E+a*O+s*P+u*N,i[12]=o*S+a*A+s*L+u*I,i[1]=c*_+l*T+f*k+h*R,i[5]=c*w+l*M+f*C+h*j,i[9]=c*E+l*O+f*P+h*N,i[13]=c*S+l*A+f*L+h*I,i[2]=p*_+d*T+m*k+v*R,i[6]=p*w+d*M+m*C+v*j,i[10]=p*E+d*O+m*P+v*N,i[14]=p*S+d*A+m*L+v*I,i[3]=g*_+y*T+b*k+x*R,i[7]=g*w+y*M+b*C+x*j,i[11]=g*E+y*O+b*P+x*N,i[15]=g*S+y*A+b*L+x*I,this}},{key:"multiplyScalar",value:function(e){var t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}},{key:"determinant",value:function(){var e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],o=e[1],a=e[5],s=e[9],u=e[13],c=e[2],l=e[6],f=e[10],h=e[14];return e[3]*(+i*s*l-r*u*l-i*a*f+n*u*f+r*a*h-n*s*h)+e[7]*(+t*s*h-t*u*f+i*o*f-r*o*h+r*u*c-i*s*c)+e[11]*(+t*u*l-t*a*h-i*o*l+n*o*h+i*a*c-n*u*c)+e[15]*(-r*a*c-t*s*l+t*a*f+r*o*l-n*o*f+n*s*c)}},{key:"transpose",value:function(){var e,t=this.elements;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}},{key:"setPosition",value:function(e,t,n){var r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}},{key:"getInverse",value:function(e,t){void 0!==t&&console.warn("THREE.Matrix4: .getInverse() can no longer be configured to throw on degenerate.");var n=this.elements,r=e.elements,i=r[0],o=r[1],a=r[2],s=r[3],u=r[4],c=r[5],l=r[6],f=r[7],h=r[8],p=r[9],d=r[10],m=r[11],v=r[12],g=r[13],y=r[14],b=r[15],x=p*y*f-g*d*f+g*l*m-c*y*m-p*l*b+c*d*b,_=v*d*f-h*y*f-v*l*m+u*y*m+h*l*b-u*d*b,w=h*g*f-v*p*f+v*c*m-u*g*m-h*c*b+u*p*b,E=v*p*l-h*g*l-v*c*d+u*g*d+h*c*y-u*p*y,S=i*x+o*_+a*w+s*E;if(0===S)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);var T=1/S;return n[0]=x*T,n[1]=(g*d*s-p*y*s-g*a*m+o*y*m+p*a*b-o*d*b)*T,n[2]=(c*y*s-g*l*s+g*a*f-o*y*f-c*a*b+o*l*b)*T,n[3]=(p*l*s-c*d*s-p*a*f+o*d*f+c*a*m-o*l*m)*T,n[4]=_*T,n[5]=(h*y*s-v*d*s+v*a*m-i*y*m-h*a*b+i*d*b)*T,n[6]=(v*l*s-u*y*s-v*a*f+i*y*f+u*a*b-i*l*b)*T,n[7]=(u*d*s-h*l*s+h*a*f-i*d*f-u*a*m+i*l*m)*T,n[8]=w*T,n[9]=(v*p*s-h*g*s-v*o*m+i*g*m+h*o*b-i*p*b)*T,n[10]=(u*g*s-v*c*s+v*o*f-i*g*f-u*o*b+i*c*b)*T,n[11]=(h*c*s-u*p*s-h*o*f+i*p*f+u*o*m-i*c*m)*T,n[12]=E*T,n[13]=(h*g*a-v*p*a+v*o*d-i*g*d-h*o*y+i*p*y)*T,n[14]=(v*c*a-u*g*a-v*o*l+i*g*l+u*o*y-i*c*y)*T,n[15]=(u*p*a-h*c*a+h*o*l-i*p*l-u*o*d+i*c*d)*T,this}},{key:"scale",value:function(e){var t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}},{key:"getMaxScaleOnAxis",value:function(){var e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}},{key:"makeTranslation",value:function(e,t,n){return this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}},{key:"makeRotationX",value:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}},{key:"makeRotationY",value:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}},{key:"makeRotationZ",value:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}},{key:"makeRotationAxis",value:function(e,t){var n=Math.cos(t),r=Math.sin(t),i=1-n,o=e.x,a=e.y,s=e.z,u=i*o,c=i*a;return this.set(u*o+n,u*a-r*s,u*s+r*a,0,u*a+r*s,c*a+n,c*s-r*o,0,u*s-r*a,c*s+r*o,i*s*s+n,0,0,0,0,1),this}},{key:"makeScale",value:function(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}},{key:"makeShear",value:function(e,t,n){return this.set(1,t,n,0,e,1,n,0,e,t,1,0,0,0,0,1),this}},{key:"compose",value:function(e,t,n){var r=this.elements,i=t._x,o=t._y,a=t._z,s=t._w,u=i+i,c=o+o,l=a+a,f=i*u,h=i*c,p=i*l,d=o*c,m=o*l,v=a*l,g=s*u,y=s*c,b=s*l,x=n.x,_=n.y,w=n.z;return r[0]=(1-(d+v))*x,r[1]=(h+b)*x,r[2]=(p-y)*x,r[3]=0,r[4]=(h-b)*_,r[5]=(1-(f+v))*_,r[6]=(m+g)*_,r[7]=0,r[8]=(p+y)*w,r[9]=(m-g)*w,r[10]=(1-(f+d))*w,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}},{key:"decompose",value:function(e,t,n){var r=this.elements,i=kl.set(r[0],r[1],r[2]).length(),o=kl.set(r[4],r[5],r[6]).length(),a=kl.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],Cl.copy(this);var s=1/i,u=1/o,c=1/a;return Cl.elements[0]*=s,Cl.elements[1]*=s,Cl.elements[2]*=s,Cl.elements[4]*=u,Cl.elements[5]*=u,Cl.elements[6]*=u,Cl.elements[8]*=c,Cl.elements[9]*=c,Cl.elements[10]*=c,t.setFromRotationMatrix(Cl),n.x=i,n.y=o,n.z=a,this}},{key:"makePerspective",value:function(e,t,n,r,i,o){void 0===o&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var a=this.elements,s=2*i/(t-e),u=2*i/(n-r),c=(t+e)/(t-e),l=(n+r)/(n-r),f=-(o+i)/(o-i),h=-2*o*i/(o-i);return a[0]=s,a[4]=0,a[8]=c,a[12]=0,a[1]=0,a[5]=u,a[9]=l,a[13]=0,a[2]=0,a[6]=0,a[10]=f,a[14]=h,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this}},{key:"makeOrthographic",value:function(e,t,n,r,i,o){var a=this.elements,s=1/(t-e),u=1/(n-r),c=1/(o-i),l=(t+e)*s,f=(n+r)*u,h=(o+i)*c;return a[0]=2*s,a[4]=0,a[8]=0,a[12]=-l,a[1]=0,a[5]=2*u,a[9]=0,a[13]=-f,a[2]=0,a[6]=0,a[10]=-2*c,a[14]=-h,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this}},{key:"equals",value:function(e){for(var t=this.elements,n=e.elements,r=0;r<16;r++)if(t[r]!==n[r])return!1;return!0}},{key:"fromArray",value:function(e,t){void 0===t&&(t=0);for(var n=0;n<16;n++)this.elements[n]=e[n+t];return this}},{key:"toArray",value:function(e,t){void 0===e&&(e=[]),void 0===t&&(t=0);var n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}]),e}(),kl=new el,Cl=new Al,Pl=new el(0,0,0),Ll=new el(1,1,1),Rl=new el,jl=new el,Nl=new el,Il=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.DefaultOrder;Object(cn.a)(this,e),Object.defineProperty(this,"isEuler",{value:!0}),this._x=t,this._y=n,this._z=r,this._order=i}return Object(ln.a)(e,[{key:"x",get:function(){return this._x},set:function(e){this._x=e,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(e){this._y=e,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(e){this._z=e,this._onChangeCallback()}},{key:"order",get:function(){return this._order},set:function(e){this._order=e,this._onChangeCallback()}},{key:"set",value:function(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._order=r||this._order,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._order)}},{key:"copy",value:function(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(e,t,n){var r=Wc.clamp,i=e.elements,o=i[0],a=i[4],s=i[8],u=i[1],c=i[5],l=i[9],f=i[2],h=i[6],p=i[10];switch(t=t||this._order){case"XYZ":this._y=Math.asin(r(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,p),this._z=Math.atan2(-a,o)):(this._x=Math.atan2(h,c),this._z=0);break;case"YXZ":this._x=Math.asin(-r(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(s,p),this._z=Math.atan2(u,c)):(this._y=Math.atan2(-f,o),this._z=0);break;case"ZXY":this._x=Math.asin(r(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-f,p),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(u,o));break;case"ZYX":this._y=Math.asin(-r(f,-1,1)),Math.abs(f)<.9999999?(this._x=Math.atan2(h,p),this._z=Math.atan2(u,o)):(this._x=0,this._z=Math.atan2(-a,c));break;case"YZX":this._z=Math.asin(r(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(-l,c),this._y=Math.atan2(-f,o)):(this._x=0,this._y=Math.atan2(s,p));break;case"XZY":this._z=Math.asin(-r(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(h,c),this._y=Math.atan2(s,o)):(this._x=Math.atan2(-l,p),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!1!==n&&this._onChangeCallback(),this}},{key:"setFromQuaternion",value:function(e,t,n){return Dl.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Dl,t,n)}},{key:"setFromVector3",value:function(e,t){return this.set(e.x,e.y,e.z,t||this._order)}},{key:"reorder",value:function(e){return Bl.setFromEuler(this),this.setFromQuaternion(Bl,e)}},{key:"equals",value:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}},{key:"fromArray",value:function(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}},{key:"toArray",value:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}},{key:"toVector3",value:function(e){return e?e.set(this._x,this._y,this._z):new el(this._x,this._y,this._z)}},{key:"_onChange",value:function(e){return this._onChangeCallback=e,this}},{key:"_onChangeCallback",value:function(){}}]),e}();Il.DefaultOrder="XYZ",Il.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];var Dl=new Al,Bl=new $c,Fl=function(){function e(){Object(cn.a)(this,e),this.mask=1}return Object(ln.a)(e,[{key:"set",value:function(e){this.mask=1<<e|0}},{key:"enable",value:function(e){this.mask|=1<<e|0}},{key:"enableAll",value:function(){this.mask=-1}},{key:"toggle",value:function(e){this.mask^=1<<e|0}},{key:"disable",value:function(e){this.mask&=~(1<<e|0)}},{key:"disableAll",value:function(){this.mask=0}},{key:"test",value:function(e){return 0!=(this.mask&e.mask)}}]),e}(),Ul=0,zl=new el,Hl=new $c,Gl=new Al,Wl=new el,Vl=new el,ql=new el,Yl=new $c,Xl=new el(1,0,0),Zl=new el(0,1,0),Jl=new el(0,0,1),Ql={type:"added"},Kl={type:"removed"};function $l(){Object.defineProperty(this,"id",{value:Ul++}),this.uuid=Wc.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=$l.DefaultUp.clone();var e=new el,t=new Il,n=new $c,r=new el(1,1,1);t._onChange(function(){n.setFromEuler(t,!1)}),n._onChange(function(){t.setFromQuaternion(n,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new Al},normalMatrix:{value:new qc}}),this.matrix=new Al,this.matrixWorld=new Al,this.matrixAutoUpdate=$l.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new Fl,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}$l.DefaultUp=new el(0,1,0),$l.DefaultMatrixAutoUpdate=!0,$l.prototype=Object.assign(Object.create(Fc.prototype),{constructor:$l,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix4:function(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(e){return this.quaternion.premultiply(e),this},setRotationFromAxisAngle:function(e,t){this.quaternion.setFromAxisAngle(e,t)},setRotationFromEuler:function(e){this.quaternion.setFromEuler(e,!0)},setRotationFromMatrix:function(e){this.quaternion.setFromRotationMatrix(e)},setRotationFromQuaternion:function(e){this.quaternion.copy(e)},rotateOnAxis:function(e,t){return Hl.setFromAxisAngle(e,t),this.quaternion.multiply(Hl),this},rotateOnWorldAxis:function(e,t){return Hl.setFromAxisAngle(e,t),this.quaternion.premultiply(Hl),this},rotateX:function(e){return this.rotateOnAxis(Xl,e)},rotateY:function(e){return this.rotateOnAxis(Zl,e)},rotateZ:function(e){return this.rotateOnAxis(Jl,e)},translateOnAxis:function(e,t){return zl.copy(e).applyQuaternion(this.quaternion),this.position.add(zl.multiplyScalar(t)),this},translateX:function(e){return this.translateOnAxis(Xl,e)},translateY:function(e){return this.translateOnAxis(Zl,e)},translateZ:function(e){return this.translateOnAxis(Jl,e)},localToWorld:function(e){return e.applyMatrix4(this.matrixWorld)},worldToLocal:function(e){return e.applyMatrix4(Gl.getInverse(this.matrixWorld))},lookAt:function(e,t,n){e.isVector3?Wl.copy(e):Wl.set(e,t,n);var r=this.parent;this.updateWorldMatrix(!0,!1),Vl.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Gl.lookAt(Vl,Wl,this.up):Gl.lookAt(Wl,Vl,this.up),this.quaternion.setFromRotationMatrix(Gl),r&&(Gl.extractRotation(r.matrixWorld),Hl.setFromRotationMatrix(Gl),this.quaternion.premultiply(Hl.inverse()))},add:function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(null!==e.parent&&e.parent.remove(e),e.parent=this,this.children.push(e),e.dispatchEvent(Ql)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)},remove:function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.remove(arguments[t]);return this}var n=this.children.indexOf(e);return-1!==n&&(e.parent=null,this.children.splice(n,1),e.dispatchEvent(Kl)),this},attach:function(e){return this.updateWorldMatrix(!0,!1),Gl.getInverse(this.matrixWorld),null!==e.parent&&(e.parent.updateWorldMatrix(!0,!1),Gl.multiply(e.parent.matrixWorld)),e.applyMatrix4(Gl),e.updateWorldMatrix(!1,!1),this.add(e),this},getObjectById:function(e){return this.getObjectByProperty("id",e)},getObjectByName:function(e){return this.getObjectByProperty("name",e)},getObjectByProperty:function(e,t){if(this[e]===t)return this;for(var n=0,r=this.children.length;n<r;n++){var i=this.children[n].getObjectByProperty(e,t);if(void 0!==i)return i}},getWorldPosition:function(e){return void 0===e&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),e=new el),this.updateMatrixWorld(!0),e.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(e){return void 0===e&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),e=new $c),this.updateMatrixWorld(!0),this.matrixWorld.decompose(Vl,e,ql),e},getWorldScale:function(e){return void 0===e&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),e=new el),this.updateMatrixWorld(!0),this.matrixWorld.decompose(Vl,Yl,e),e},getWorldDirection:function(e){void 0===e&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),e=new el),this.updateMatrixWorld(!0);var t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()},raycast:function(){},traverse:function(e){e(this);for(var t=this.children,n=0,r=t.length;n<r;n++)t[n].traverse(e)},traverseVisible:function(e){if(!1!==this.visible){e(this);for(var t=this.children,n=0,r=t.length;n<r;n++)t[n].traverseVisible(e)}},traverseAncestors:function(e){var t=this.parent;null!==t&&(e(t),t.traverseAncestors(e))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);for(var t=this.children,n=0,r=t.length;n<r;n++)t[n].updateMatrixWorld(e)},updateWorldMatrix:function(e,t){var n=this.parent;if(!0===e&&null!==n&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===t)for(var r=this.children,i=0,o=r.length;i<o;i++)r[i].updateWorldMatrix(!1,!0)},toJSON:function(e){var t=void 0===e||"string"==typeof e,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{}},n.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var r={};function i(t,n){return void 0===t[n.uuid]&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(r.uuid=this.uuid,r.type=this.type,""!==this.name&&(r.name=this.name),!0===this.castShadow&&(r.castShadow=!0),!0===this.receiveShadow&&(r.receiveShadow=!0),!1===this.visible&&(r.visible=!1),!1===this.frustumCulled&&(r.frustumCulled=!1),0!==this.renderOrder&&(r.renderOrder=this.renderOrder),"{}"!==JSON.stringify(this.userData)&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON()),this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);var o=this.geometry.parameters;if(void 0!==o&&void 0!==o.shapes){var a=o.shapes;if(Array.isArray(a))for(var s=0,u=a.length;s<u;s++){var c=a[s];i(e.shapes,c)}else i(e.shapes,a)}}if(void 0!==this.material)if(Array.isArray(this.material)){for(var l=[],f=0,h=this.material.length;f<h;f++)l.push(i(e.materials,this.material[f]));r.material=l}else r.material=i(e.materials,this.material);if(this.children.length>0){r.children=[];for(var p=0;p<this.children.length;p++)r.children.push(this.children[p].toJSON(e).object)}if(t){var d=b(e.geometries),m=b(e.materials),v=b(e.textures),g=b(e.images),y=b(e.shapes);d.length>0&&(n.geometries=d),m.length>0&&(n.materials=m),v.length>0&&(n.textures=v),g.length>0&&(n.images=g),y.length>0&&(n.shapes=y)}return n.object=r,n;function b(e){var t=[];for(var n in e){var r=e[n];delete r.metadata,t.push(r)}return t}},clone:function(e){return(new this.constructor).copy(this,e)},copy:function(e,t){if(void 0===t&&(t=!0),this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(var n=0;n<e.children.length;n++){var r=e.children[n];this.add(r.clone())}return this}});var ef=new el,tf=new el,nf=new qc,rf=function(){function e(t,n){Object(cn.a)(this,e),Object.defineProperty(this,"isPlane",{value:!0}),this.normal=void 0!==t?t:new el(1,0,0),this.constant=void 0!==n?n:0}return Object(ln.a)(e,[{key:"set",value:function(e,t){return this.normal.copy(e),this.constant=t,this}},{key:"setComponents",value:function(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}},{key:"setFromNormalAndCoplanarPoint",value:function(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}},{key:"setFromCoplanarPoints",value:function(e,t,n){var r=ef.subVectors(n,t).cross(tf.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.normal.copy(e.normal),this.constant=e.constant,this}},{key:"normalize",value:function(){var e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}},{key:"negate",value:function(){return this.constant*=-1,this.normal.negate(),this}},{key:"distanceToPoint",value:function(e){return this.normal.dot(e)+this.constant}},{key:"distanceToSphere",value:function(e){return this.distanceToPoint(e.center)-e.radius}},{key:"projectPoint",value:function(e,t){return void 0===t&&(console.warn("THREE.Plane: .projectPoint() target is now required"),t=new el),t.copy(this.normal).multiplyScalar(-this.distanceToPoint(e)).add(e)}},{key:"intersectLine",value:function(e,t){void 0===t&&(console.warn("THREE.Plane: .intersectLine() target is now required"),t=new el);var n=e.delta(ef),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(e.start)?t.copy(e.start):void 0;var i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?void 0:t.copy(n).multiplyScalar(i).add(e.start)}},{key:"intersectsLine",value:function(e){var t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}},{key:"intersectsBox",value:function(e){return e.intersectsPlane(this)}},{key:"intersectsSphere",value:function(e){return e.intersectsPlane(this)}},{key:"coplanarPoint",value:function(e){return void 0===e&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),e=new el),e.copy(this.normal).multiplyScalar(-this.constant)}},{key:"applyMatrix4",value:function(e,t){var n=t||nf.getNormalMatrix(e),r=this.coplanarPoint(ef).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}},{key:"translate",value:function(e){return this.constant-=e.dot(this.normal),this}},{key:"equals",value:function(e){return e.normal.equals(this.normal)&&e.constant===this.constant}}]),e}(),of=new el,af=new el,sf=new el,uf=new el,cf=new el,lf=new el,ff=new el,hf=new el,pf=new el,df=new el,mf=function(){function e(t,n,r){Object(cn.a)(this,e),this.a=void 0!==t?t:new el,this.b=void 0!==n?n:new el,this.c=void 0!==r?r:new el}return Object(ln.a)(e,[{key:"set",value:function(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}},{key:"setFromPointsAndIndices",value:function(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}},{key:"getArea",value:function(){return of.subVectors(this.c,this.b),af.subVectors(this.a,this.b),.5*of.cross(af).length()}},{key:"getMidpoint",value:function(e){return void 0===e&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),e=new el),e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}},{key:"getNormal",value:function(t){return e.getNormal(this.a,this.b,this.c,t)}},{key:"getPlane",value:function(e){return void 0===e&&(console.warn("THREE.Triangle: .getPlane() target is now required"),e=new rf),e.setFromCoplanarPoints(this.a,this.b,this.c)}},{key:"getBarycoord",value:function(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}},{key:"getUV",value:function(t,n,r,i,o){return e.getUV(t,this.a,this.b,this.c,n,r,i,o)}},{key:"containsPoint",value:function(t){return e.containsPoint(t,this.a,this.b,this.c)}},{key:"isFrontFacing",value:function(t){return e.isFrontFacing(this.a,this.b,this.c,t)}},{key:"intersectsBox",value:function(e){return e.intersectsTriangle(this)}},{key:"closestPointToPoint",value:function(e,t){void 0===t&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),t=new el);var n,r,i=this.a,o=this.b,a=this.c;cf.subVectors(o,i),lf.subVectors(a,i),hf.subVectors(e,i);var s=cf.dot(hf),u=lf.dot(hf);if(s<=0&&u<=0)return t.copy(i);pf.subVectors(e,o);var c=cf.dot(pf),l=lf.dot(pf);if(c>=0&&l<=c)return t.copy(o);var f=s*l-c*u;if(f<=0&&s>=0&&c<=0)return n=s/(s-c),t.copy(i).addScaledVector(cf,n);df.subVectors(e,a);var h=cf.dot(df),p=lf.dot(df);if(p>=0&&h<=p)return t.copy(a);var d=h*u-s*p;if(d<=0&&u>=0&&p<=0)return r=u/(u-p),t.copy(i).addScaledVector(lf,r);var m=c*p-h*l;if(m<=0&&l-c>=0&&h-p>=0)return ff.subVectors(a,o),r=(l-c)/(l-c+(h-p)),t.copy(o).addScaledVector(ff,r);var v=1/(m+d+f);return n=d*v,r=f*v,t.copy(i).addScaledVector(cf,n).addScaledVector(lf,r)}},{key:"equals",value:function(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}],[{key:"getNormal",value:function(e,t,n,r){void 0===r&&(console.warn("THREE.Triangle: .getNormal() target is now required"),r=new el),r.subVectors(n,t),of.subVectors(e,t),r.cross(of);var i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}},{key:"getBarycoord",value:function(e,t,n,r,i){of.subVectors(r,t),af.subVectors(n,t),sf.subVectors(e,t);var o=of.dot(of),a=of.dot(af),s=of.dot(sf),u=af.dot(af),c=af.dot(sf),l=o*u-a*a;if(void 0===i&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),i=new el),0===l)return i.set(-2,-1,-1);var f=1/l,h=(u*s-a*c)*f,p=(o*c-a*s)*f;return i.set(1-h-p,p,h)}},{key:"containsPoint",value:function(e,t,n,r){return this.getBarycoord(e,t,n,r,uf),uf.x>=0&&uf.y>=0&&uf.x+uf.y<=1}},{key:"getUV",value:function(e,t,n,r,i,o,a,s){return this.getBarycoord(e,t,n,r,uf),s.set(0,0),s.addScaledVector(i,uf.x),s.addScaledVector(o,uf.y),s.addScaledVector(a,uf.z),s}},{key:"isFrontFacing",value:function(e,t,n,r){return of.subVectors(n,t),af.subVectors(e,t),of.cross(af).dot(r)<0}}]),e}(),vf={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},gf={h:0,s:0,l:0},yf={h:0,s:0,l:0};function bf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}function xf(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function _f(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}var wf=function(){function e(t,n,r){return Object(cn.a)(this,e),Object.defineProperty(this,"isColor",{value:!0}),void 0===n&&void 0===r?this.set(t):this.setRGB(t,n,r)}return Object(ln.a)(e,[{key:"set",value:function(e){return e&&e.isColor?this.copy(e):"number"==typeof e?this.setHex(e):"string"==typeof e&&this.setStyle(e),this}},{key:"setScalar",value:function(e){return this.r=e,this.g=e,this.b=e,this}},{key:"setHex",value:function(e){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,this}},{key:"setRGB",value:function(e,t,n){return this.r=e,this.g=t,this.b=n,this}},{key:"setHSL",value:function(e,t,n){if(e=Wc.euclideanModulo(e,1),t=Wc.clamp(t,0,1),n=Wc.clamp(n,0,1),0===t)this.r=this.g=this.b=n;else{var r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=bf(i,r,e+1/3),this.g=bf(i,r,e),this.b=bf(i,r,e-1/3)}return this}},{key:"setStyle",value: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 r,i=n[1],o=n[2];switch(i){case"rgb":case"rgba":if(r=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(o))return this.r=Math.min(255,parseInt(r[1],10))/255,this.g=Math.min(255,parseInt(r[2],10))/255,this.b=Math.min(255,parseInt(r[3],10))/255,t(r[5]),this;if(r=/^(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(o))return this.r=Math.min(100,parseInt(r[1],10))/100,this.g=Math.min(100,parseInt(r[2],10))/100,this.b=Math.min(100,parseInt(r[3],10))/100,t(r[5]),this;break;case"hsl":case"hsla":if(r=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(o)){var a=parseFloat(r[1])/360,s=parseInt(r[2],10)/100,u=parseInt(r[3],10)/100;return t(r[5]),this.setHSL(a,s,u)}}}else if(n=/^\#([A-Fa-f0-9]+)$/.exec(e)){var c=n[1],l=c.length;if(3===l)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===l)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&&e.length>0?this.setColorName(e):this}},{key:"setColorName",value:function(e){var t=vf[e];return void 0!==t?this.setHex(t):console.warn("THREE.Color: Unknown color "+e),this}},{key:"clone",value:function(){return new this.constructor(this.r,this.g,this.b)}},{key:"copy",value:function(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}},{key:"copyGammaToLinear",value:function(e,t){return void 0===t&&(t=2),this.r=Math.pow(e.r,t),this.g=Math.pow(e.g,t),this.b=Math.pow(e.b,t),this}},{key:"copyLinearToGamma",value:function(e,t){void 0===t&&(t=2);var n=t>0?1/t:1;return this.r=Math.pow(e.r,n),this.g=Math.pow(e.g,n),this.b=Math.pow(e.b,n),this}},{key:"convertGammaToLinear",value:function(e){return this.copyGammaToLinear(this,e),this}},{key:"convertLinearToGamma",value:function(e){return this.copyLinearToGamma(this,e),this}},{key:"copySRGBToLinear",value:function(e){return this.r=xf(e.r),this.g=xf(e.g),this.b=xf(e.b),this}},{key:"copyLinearToSRGB",value:function(e){return this.r=_f(e.r),this.g=_f(e.g),this.b=_f(e.b),this}},{key:"convertSRGBToLinear",value:function(){return this.copySRGBToLinear(this),this}},{key:"convertLinearToSRGB",value:function(){return this.copyLinearToSRGB(this),this}},{key:"getHex",value:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0}},{key:"getHexString",value:function(){return("000000"+this.getHex().toString(16)).slice(-6)}},{key:"getHSL",value:function(e){void 0===e&&(console.warn("THREE.Color: .getHSL() target is now required"),e={h:0,s:0,l:0});var t,n,r=this.r,i=this.g,o=this.b,a=Math.max(r,i,o),s=Math.min(r,i,o),u=(s+a)/2;if(s===a)t=0,n=0;else{var c=a-s;switch(n=u<=.5?c/(a+s):c/(2-a-s),a){case r:t=(i-o)/c+(i<o?6:0);break;case i:t=(o-r)/c+2;break;case o:t=(r-i)/c+4}t/=6}return e.h=t,e.s=n,e.l=u,e}},{key:"getStyle",value:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"}},{key:"offsetHSL",value:function(e,t,n){return this.getHSL(gf),gf.h+=e,gf.s+=t,gf.l+=n,this.setHSL(gf.h,gf.s,gf.l),this}},{key:"add",value:function(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}},{key:"addColors",value:function(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}},{key:"addScalar",value:function(e){return this.r+=e,this.g+=e,this.b+=e,this}},{key:"sub",value:function(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}},{key:"multiply",value:function(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}},{key:"multiplyScalar",value:function(e){return this.r*=e,this.g*=e,this.b*=e,this}},{key:"lerp",value:function(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}},{key:"lerpHSL",value:function(e,t){this.getHSL(gf),e.getHSL(yf);var n=Wc.lerp(gf.h,yf.h,t),r=Wc.lerp(gf.s,yf.s,t),i=Wc.lerp(gf.l,yf.l,t);return this.setHSL(n,r,i),this}},{key:"equals",value:function(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}},{key:"fromArray",value:function(e,t){return void 0===t&&(t=0),this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}},{key:"toArray",value:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}},{key:"fromBufferAttribute",value:function(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),!0===e.normalized&&(this.r/=255,this.g/=255,this.b/=255),this}},{key:"toJSON",value:function(){return this.getHex()}}]),e}();wf.NAMES=vf,wf.prototype.r=1,wf.prototype.g=1,wf.prototype.b=1;var Ef=function(){function e(t,n,r,i,o,a){Object(cn.a)(this,e),this.a=t,this.b=n,this.c=r,this.normal=i&&i.isVector3?i:new el,this.vertexNormals=Array.isArray(i)?i:[],this.color=o&&o.isColor?o:new wf,this.vertexColors=Array.isArray(o)?o:[],this.materialIndex=void 0!==a?a:0}return Object(ln.a)(e,[{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){this.a=e.a,this.b=e.b,this.c=e.c,this.normal.copy(e.normal),this.color.copy(e.color),this.materialIndex=e.materialIndex;for(var t=0,n=e.vertexNormals.length;t<n;t++)this.vertexNormals[t]=e.vertexNormals[t].clone();for(var r=0,i=e.vertexColors.length;r<i;r++)this.vertexColors[r]=e.vertexColors[r].clone();return this}}]),e}(),Sf=0;function Tf(){Object.defineProperty(this,"id",{value:Sf++}),this.uuid=Wc.generateUUID(),this.name="",this.type="Material",this.fog=!0,this.blending=cs,this.side=os,this.flatShading=!1,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=Es,this.blendDst=Ss,this.blendEquation=ds,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=Rs,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=Nc,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=jc,this.stencilZFail=jc,this.stencilZPass=jc,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0}function Mf(e){Tf.call(this),this.type="MeshBasicMaterial",this.color=new wf(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Bs,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.setValues(e)}Tf.prototype=Object.assign(Object.create(Fc.prototype),{constructor:Tf,isMaterial:!0,onBeforeCompile:function(){},customProgramCacheKey:function(){return this.onBeforeCompile.toString()},setValues:function(e){if(void 0!==e)for(var t in e){var n=e[t];if(void 0!==n)if("shading"!==t){var r=this[t];void 0!==r?r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n:console.warn("THREE."+this.type+": '"+t+"' is not a property of this material.")}else console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===n;else console.warn("THREE.Material: '"+t+"' parameter is undefined.")}},toJSON:function(e){var t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});var n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function r(e){var t=[];for(var n in e){var r=e[n];delete r.metadata,t.push(r)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),this.sheen&&this.sheen.isColor&&(n.sheen=this.sheen.getHex()),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,n.reflectivity=this.reflectivity,n.refractionRatio=this.refractionRatio,void 0!==this.combine&&(n.combine=this.combine),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.size&&(n.size=this.size),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==cs&&(n.blending=this.blending),!0===this.flatShading&&(n.flatShading=this.flatShading),this.side!==os&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.morphTargets&&(n.morphTargets=!0),!0===this.morphNormals&&(n.morphNormals=!0),!0===this.skinning&&(n.skinning=!0),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),t){var i=r(e.textures),o=r(e.images);i.length>0&&(n.textures=i),o.length>0&&(n.images=o)}return n},clone:function(){return(new this.constructor).copy(this)},copy:function(e){this.name=e.name,this.fog=e.fog,this.blending=e.blending,this.side=e.side,this.flatShading=e.flatShading,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;var t=e.clippingPlanes,n=null;if(null!==t){var r=t.length;n=new Array(r);for(var i=0;i!==r;++i)n[i]=t[i].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.premultipliedAlpha=e.premultipliedAlpha,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(Tf.prototype,"needsUpdate",{set:function(e){!0===e&&this.version++}}),Mf.prototype=Object.create(Tf.prototype),Mf.prototype.constructor=Mf,Mf.prototype.isMeshBasicMaterial=!0,Mf.prototype.copy=function(e){return Tf.prototype.copy.call(this,e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this};var Of=new el,Af=new Vc;function kf(e,t,n){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=!0===n,this.usage=Ic,this.updateRange={offset:0,count:-1},this.version=0}function Cf(e,t,n){kf.call(this,new Int8Array(e),t,n)}function Pf(e,t,n){kf.call(this,new Uint8Array(e),t,n)}function Lf(e,t,n){kf.call(this,new Uint8ClampedArray(e),t,n)}function Rf(e,t,n){kf.call(this,new Int16Array(e),t,n)}function jf(e,t,n){kf.call(this,new Uint16Array(e),t,n)}function Nf(e,t,n){kf.call(this,new Int32Array(e),t,n)}function If(e,t,n){kf.call(this,new Uint32Array(e),t,n)}function Df(e,t,n){kf.call(this,new Float32Array(e),t,n)}function Bf(e,t,n){kf.call(this,new Float64Array(e),t,n)}Object.defineProperty(kf.prototype,"needsUpdate",{set:function(e){!0===e&&this.version++}}),Object.assign(kf.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setUsage:function(e){return this.usage=e,this},copy:function(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this},copyAt:function(e,t,n){e*=this.itemSize,n*=t.itemSize;for(var r=0,i=this.itemSize;r<i;r++)this.array[e+r]=t.array[n+r];return this},copyArray:function(e){return this.array.set(e),this},copyColorsArray:function(e){for(var t=this.array,n=0,r=0,i=e.length;r<i;r++){var o=e[r];void 0===o&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",r),o=new wf),t[n++]=o.r,t[n++]=o.g,t[n++]=o.b}return this},copyVector2sArray:function(e){for(var t=this.array,n=0,r=0,i=e.length;r<i;r++){var o=e[r];void 0===o&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",r),o=new Vc),t[n++]=o.x,t[n++]=o.y}return this},copyVector3sArray:function(e){for(var t=this.array,n=0,r=0,i=e.length;r<i;r++){var o=e[r];void 0===o&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",r),o=new el),t[n++]=o.x,t[n++]=o.y,t[n++]=o.z}return this},copyVector4sArray:function(e){for(var t=this.array,n=0,r=0,i=e.length;r<i;r++){var o=e[r];void 0===o&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",r),o=new Jc),t[n++]=o.x,t[n++]=o.y,t[n++]=o.z,t[n++]=o.w}return this},applyMatrix3:function(e){if(2===this.itemSize)for(var t=0,n=this.count;t<n;t++)Af.fromBufferAttribute(this,t),Af.applyMatrix3(e),this.setXY(t,Af.x,Af.y);else if(3===this.itemSize)for(var r=0,i=this.count;r<i;r++)Of.fromBufferAttribute(this,r),Of.applyMatrix3(e),this.setXYZ(r,Of.x,Of.y,Of.z);return this},applyMatrix4:function(e){for(var t=0,n=this.count;t<n;t++)Of.x=this.getX(t),Of.y=this.getY(t),Of.z=this.getZ(t),Of.applyMatrix4(e),this.setXYZ(t,Of.x,Of.y,Of.z);return this},applyNormalMatrix:function(e){for(var t=0,n=this.count;t<n;t++)Of.x=this.getX(t),Of.y=this.getY(t),Of.z=this.getZ(t),Of.applyNormalMatrix(e),this.setXYZ(t,Of.x,Of.y,Of.z);return this},transformDirection:function(e){for(var t=0,n=this.count;t<n;t++)Of.x=this.getX(t),Of.y=this.getY(t),Of.z=this.getZ(t),Of.transformDirection(e),this.setXYZ(t,Of.x,Of.y,Of.z);return this},set:function(e,t){return void 0===t&&(t=0),this.array.set(e,t),this},getX:function(e){return this.array[e*this.itemSize]},setX:function(e,t){return this.array[e*this.itemSize]=t,this},getY:function(e){return this.array[e*this.itemSize+1]},setY:function(e,t){return this.array[e*this.itemSize+1]=t,this},getZ:function(e){return this.array[e*this.itemSize+2]},setZ:function(e,t){return this.array[e*this.itemSize+2]=t,this},getW:function(e){return this.array[e*this.itemSize+3]},setW:function(e,t){return this.array[e*this.itemSize+3]=t,this},setXY:function(e,t,n){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this},setXYZ:function(e,t,n,r){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this},setXYZW:function(e,t,n,r,i){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this.array[e+3]=i,this},onUpload:function(e){return this.onUploadCallback=e,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)},toJSON:function(){return{itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized}}}),Cf.prototype=Object.create(kf.prototype),Cf.prototype.constructor=Cf,Pf.prototype=Object.create(kf.prototype),Pf.prototype.constructor=Pf,Lf.prototype=Object.create(kf.prototype),Lf.prototype.constructor=Lf,Rf.prototype=Object.create(kf.prototype),Rf.prototype.constructor=Rf,jf.prototype=Object.create(kf.prototype),jf.prototype.constructor=jf,Nf.prototype=Object.create(kf.prototype),Nf.prototype.constructor=Nf,If.prototype=Object.create(kf.prototype),If.prototype.constructor=If,Df.prototype=Object.create(kf.prototype),Df.prototype.constructor=Df,Bf.prototype=Object.create(kf.prototype),Bf.prototype.constructor=Bf;var Ff=function(){function e(){Object(cn.a)(this,e),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}return Object(ln.a)(e,[{key:"computeGroups",value:function(e){var t,n,r=[],i=void 0,o=e.faces;for(n=0;n<o.length;n++){var a=o[n];a.materialIndex!==i&&(i=a.materialIndex,void 0!==t&&(t.count=3*n-t.start,r.push(t)),t={start:3*n,materialIndex:i})}void 0!==t&&(t.count=3*n-t.start,r.push(t)),this.groups=r}},{key:"fromGeometry",value:function(e){var t,n=e.faces,r=e.vertices,i=e.faceVertexUvs,o=i[0]&&i[0].length>0,a=i[1]&&i[1].length>0,s=e.morphTargets,u=s.length;if(u>0){t=[];for(var c=0;c<u;c++)t[c]={name:s[c].name,data:[]};this.morphTargets.position=t}var l,f=e.morphNormals,h=f.length;if(h>0){l=[];for(var p=0;p<h;p++)l[p]={name:f[p].name,data:[]};this.morphTargets.normal=l}var d=e.skinIndices,m=e.skinWeights,v=d.length===r.length,g=m.length===r.length;r.length>0&&0===n.length&&console.error("THREE.DirectGeometry: Faceless geometries are not supported.");for(var y=0;y<n.length;y++){var b=n[y];this.vertices.push(r[b.a],r[b.b],r[b.c]);var x=b.vertexNormals;if(3===x.length)this.normals.push(x[0],x[1],x[2]);else{var _=b.normal;this.normals.push(_,_,_)}var w=b.vertexColors;if(3===w.length)this.colors.push(w[0],w[1],w[2]);else{var E=b.color;this.colors.push(E,E,E)}if(!0===o){var S=i[0][y];void 0!==S?this.uvs.push(S[0],S[1],S[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",y),this.uvs.push(new Vc,new Vc,new Vc))}if(!0===a){var T=i[1][y];void 0!==T?this.uvs2.push(T[0],T[1],T[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",y),this.uvs2.push(new Vc,new Vc,new Vc))}for(var M=0;M<u;M++){var O=s[M].vertices;t[M].data.push(O[b.a],O[b.b],O[b.c])}for(var A=0;A<h;A++){var k=f[A].vertexNormals[y];l[A].data.push(k.a,k.b,k.c)}v&&this.skinIndices.push(d[b.a],d[b.b],d[b.c]),g&&this.skinWeights.push(m[b.a],m[b.b],m[b.c])}return this.computeGroups(e),this.verticesNeedUpdate=e.verticesNeedUpdate,this.normalsNeedUpdate=e.normalsNeedUpdate,this.colorsNeedUpdate=e.colorsNeedUpdate,this.uvsNeedUpdate=e.uvsNeedUpdate,this.groupsNeedUpdate=e.groupsNeedUpdate,null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone()),this}}]),e}();function Uf(e){if(0===e.length)return-1/0;for(var t=e[0],n=1,r=e.length;n<r;++n)e[n]>t&&(t=e[n]);return t}var zf=1,Hf=new Al,Gf=new $l,Wf=new el,Vf=new rl,qf=new rl,Yf=new el;function Xf(){Object.defineProperty(this,"id",{value:zf+=2}),this.uuid=Wc.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}Xf.prototype=Object.assign(Object.create(Fc.prototype),{constructor:Xf,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(e){Array.isArray(e)?this.index=new(Uf(e)>65535?If:jf)(e,1):this.index=e},getAttribute:function(e){return this.attributes[e]},setAttribute:function(e,t){return this.attributes[e]=t,this},deleteAttribute:function(e){return delete this.attributes[e],this},addGroup:function(e,t,n){this.groups.push({start:e,count:t,materialIndex:void 0!==n?n:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(e,t){this.drawRange.start=e,this.drawRange.count=t},applyMatrix4:function(e){var t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);var n=this.attributes.normal;if(void 0!==n){var r=(new qc).getNormalMatrix(e);n.applyNormalMatrix(r),n.needsUpdate=!0}var i=this.attributes.tangent;return void 0!==i&&(i.transformDirection(e),i.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(e){return Hf.makeRotationX(e),this.applyMatrix4(Hf),this},rotateY:function(e){return Hf.makeRotationY(e),this.applyMatrix4(Hf),this},rotateZ:function(e){return Hf.makeRotationZ(e),this.applyMatrix4(Hf),this},translate:function(e,t,n){return Hf.makeTranslation(e,t,n),this.applyMatrix4(Hf),this},scale:function(e,t,n){return Hf.makeScale(e,t,n),this.applyMatrix4(Hf),this},lookAt:function(e){return Gf.lookAt(e),Gf.updateMatrix(),this.applyMatrix4(Gf.matrix),this},center:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(Wf).negate(),this.translate(Wf.x,Wf.y,Wf.z),this},setFromObject:function(e){var t=e.geometry;if(e.isPoints||e.isLine){var n=new Df(3*t.vertices.length,3),r=new Df(3*t.colors.length,3);if(this.setAttribute("position",n.copyVector3sArray(t.vertices)),this.setAttribute("color",r.copyColorsArray(t.colors)),t.lineDistances&&t.lineDistances.length===t.vertices.length){var i=new Df(t.lineDistances.length,1);this.setAttribute("lineDistance",i.copyArray(t.lineDistances))}null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone())}else e.isMesh&&t&&t.isGeometry&&this.fromGeometry(t);return this},setFromPoints:function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];t.push(i.x,i.y,i.z||0)}return this.setAttribute("position",new Df(t,3)),this},updateFromObject:function(e){var t=e.geometry;if(e.isMesh){var n=t.__directGeometry;if(!0===t.elementsNeedUpdate&&(n=void 0,t.elementsNeedUpdate=!1),void 0===n)return this.fromGeometry(t);n.verticesNeedUpdate=t.verticesNeedUpdate,n.normalsNeedUpdate=t.normalsNeedUpdate,n.colorsNeedUpdate=t.colorsNeedUpdate,n.uvsNeedUpdate=t.uvsNeedUpdate,n.groupsNeedUpdate=t.groupsNeedUpdate,t.verticesNeedUpdate=!1,t.normalsNeedUpdate=!1,t.colorsNeedUpdate=!1,t.uvsNeedUpdate=!1,t.groupsNeedUpdate=!1,t=n}if(!0===t.verticesNeedUpdate){var r=this.attributes.position;void 0!==r&&(r.copyVector3sArray(t.vertices),r.needsUpdate=!0),t.verticesNeedUpdate=!1}if(!0===t.normalsNeedUpdate){var i=this.attributes.normal;void 0!==i&&(i.copyVector3sArray(t.normals),i.needsUpdate=!0),t.normalsNeedUpdate=!1}if(!0===t.colorsNeedUpdate){var o=this.attributes.color;void 0!==o&&(o.copyColorsArray(t.colors),o.needsUpdate=!0),t.colorsNeedUpdate=!1}if(t.uvsNeedUpdate){var a=this.attributes.uv;void 0!==a&&(a.copyVector2sArray(t.uvs),a.needsUpdate=!0),t.uvsNeedUpdate=!1}if(t.lineDistancesNeedUpdate){var s=this.attributes.lineDistance;void 0!==s&&(s.copyArray(t.lineDistances),s.needsUpdate=!0),t.lineDistancesNeedUpdate=!1}return t.groupsNeedUpdate&&(t.computeGroups(e.geometry),this.groups=t.groups,t.groupsNeedUpdate=!1),this},fromGeometry:function(e){return e.__directGeometry=(new Ff).fromGeometry(e),this.fromDirectGeometry(e.__directGeometry)},fromDirectGeometry:function(e){var t=new Float32Array(3*e.vertices.length);if(this.setAttribute("position",new kf(t,3).copyVector3sArray(e.vertices)),e.normals.length>0){var n=new Float32Array(3*e.normals.length);this.setAttribute("normal",new kf(n,3).copyVector3sArray(e.normals))}if(e.colors.length>0){var r=new Float32Array(3*e.colors.length);this.setAttribute("color",new kf(r,3).copyColorsArray(e.colors))}if(e.uvs.length>0){var i=new Float32Array(2*e.uvs.length);this.setAttribute("uv",new kf(i,2).copyVector2sArray(e.uvs))}if(e.uvs2.length>0){var o=new Float32Array(2*e.uvs2.length);this.setAttribute("uv2",new kf(o,2).copyVector2sArray(e.uvs2))}for(var a in this.groups=e.groups,e.morphTargets){for(var s=[],u=e.morphTargets[a],c=0,l=u.length;c<l;c++){var f=u[c],h=new Df(3*f.data.length,3);h.name=f.name,s.push(h.copyVector3sArray(f.data))}this.morphAttributes[a]=s}if(e.skinIndices.length>0){var p=new Df(4*e.skinIndices.length,4);this.setAttribute("skinIndex",p.copyVector4sArray(e.skinIndices))}if(e.skinWeights.length>0){var d=new Df(4*e.skinWeights.length,4);this.setAttribute("skinWeight",d.copyVector4sArray(e.skinWeights))}return null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone()),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new rl);var e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingBox.set(new el(-1/0,-1/0,-1/0),new el(1/0,1/0,1/0));if(void 0!==e){if(this.boundingBox.setFromBufferAttribute(e),t)for(var n=0,r=t.length;n<r;n++){var i=t[n];Vf.setFromBufferAttribute(i),this.morphTargetsRelative?(Yf.addVectors(this.boundingBox.min,Vf.min),this.boundingBox.expandByPoint(Yf),Yf.addVectors(this.boundingBox.max,Vf.max),this.boundingBox.expandByPoint(Yf)):(this.boundingBox.expandByPoint(Vf.min),this.boundingBox.expandByPoint(Vf.max))}}else 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:function(){null===this.boundingSphere&&(this.boundingSphere=new bl);var e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingSphere.set(new el,1/0);if(e){var n=this.boundingSphere.center;if(Vf.setFromBufferAttribute(e),t)for(var r=0,i=t.length;r<i;r++){var o=t[r];qf.setFromBufferAttribute(o),this.morphTargetsRelative?(Yf.addVectors(Vf.min,qf.min),Vf.expandByPoint(Yf),Yf.addVectors(Vf.max,qf.max),Vf.expandByPoint(Yf)):(Vf.expandByPoint(qf.min),Vf.expandByPoint(qf.max))}Vf.getCenter(n);for(var a=0,s=0,u=e.count;s<u;s++)Yf.fromBufferAttribute(e,s),a=Math.max(a,n.distanceToSquared(Yf));if(t)for(var c=0,l=t.length;c<l;c++)for(var f=t[c],h=this.morphTargetsRelative,p=0,d=f.count;p<d;p++)Yf.fromBufferAttribute(f,p),h&&(Wf.fromBufferAttribute(e,p),Yf.add(Wf)),a=Math.max(a,n.distanceToSquared(Yf));this.boundingSphere.radius=Math.sqrt(a),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 e=this.index,t=this.getAttribute("position");if(void 0!==t){var n=this.getAttribute("normal");if(void 0===n)n=new kf(new Float32Array(3*t.count),3),this.setAttribute("normal",n);else for(var r=0,i=n.count;r<i;r++)n.setXYZ(r,0,0,0);var o=new el,a=new el,s=new el,u=new el,c=new el,l=new el,f=new el,h=new el;if(e)for(var p=0,d=e.count;p<d;p+=3){var m=e.getX(p+0),v=e.getX(p+1),g=e.getX(p+2);o.fromBufferAttribute(t,m),a.fromBufferAttribute(t,v),s.fromBufferAttribute(t,g),f.subVectors(s,a),h.subVectors(o,a),f.cross(h),u.fromBufferAttribute(n,m),c.fromBufferAttribute(n,v),l.fromBufferAttribute(n,g),u.add(f),c.add(f),l.add(f),n.setXYZ(m,u.x,u.y,u.z),n.setXYZ(v,c.x,c.y,c.z),n.setXYZ(g,l.x,l.y,l.z)}else for(var y=0,b=t.count;y<b;y+=3)o.fromBufferAttribute(t,y+0),a.fromBufferAttribute(t,y+1),s.fromBufferAttribute(t,y+2),f.subVectors(s,a),h.subVectors(o,a),f.cross(h),n.setXYZ(y+0,f.x,f.y,f.z),n.setXYZ(y+1,f.x,f.y,f.z),n.setXYZ(y+2,f.x,f.y,f.z);this.normalizeNormals(),n.needsUpdate=!0}},merge:function(e,t){if(e&&e.isBufferGeometry){void 0===t&&(t=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));var n=this.attributes;for(var r in n)if(void 0!==e.attributes[r])for(var i=n[r].array,o=e.attributes[r],a=o.array,s=o.itemSize*t,u=Math.min(a.length,i.length-s),c=0,l=s;c<u;c++,l++)i[l]=a[c];return this}console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",e)},normalizeNormals:function(){for(var e=this.attributes.normal,t=0,n=e.count;t<n;t++)Yf.fromBufferAttribute(e,t),Yf.normalize(),e.setXYZ(t,Yf.x,Yf.y,Yf.z)},toNonIndexed:function(){function e(e,t){for(var n=e.array,r=e.itemSize,i=e.normalized,o=new n.constructor(t.length*r),a=0,s=0,u=0,c=t.length;u<c;u++){a=t[u]*r;for(var l=0;l<r;l++)o[s++]=n[a++]}return new kf(o,r,i)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var t=new Xf,n=this.index.array,r=this.attributes;for(var i in r){var o=e(r[i],n);t.setAttribute(i,o)}var a=this.morphAttributes;for(var s in a){for(var u=[],c=a[s],l=0,f=c.length;l<f;l++){var h=e(c[l],n);u.push(h)}t.morphAttributes[s]=u}t.morphTargetsRelative=this.morphTargetsRelative;for(var p=this.groups,d=0,m=p.length;d<m;d++){var v=p[d];t.addGroup(v.start,v.count,v.materialIndex)}return t},toJSON:function(){var e={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,""!==this.name&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),void 0!==this.parameters){var t=this.parameters;for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};var r=this.index;null!==r&&(e.data.index={type:r.array.constructor.name,array:Array.prototype.slice.call(r.array)});var i=this.attributes;for(var o in i){var a=i[o],s=a.toJSON(e.data);""!==a.name&&(s.name=a.name),e.data.attributes[o]=s}var u={},c=!1;for(var l in this.morphAttributes){for(var f=this.morphAttributes[l],h=[],p=0,d=f.length;p<d;p++){var m=f[p],v=m.toJSON(e.data);""!==m.name&&(v.name=m.name),h.push(v)}h.length>0&&(u[l]=h,c=!0)}c&&(e.data.morphAttributes=u,e.data.morphTargetsRelative=this.morphTargetsRelative);var g=this.groups;g.length>0&&(e.data.groups=JSON.parse(JSON.stringify(g)));var y=this.boundingSphere;return null!==y&&(e.data.boundingSphere={center:y.center.toArray(),radius:y.radius}),e},clone:function(){return(new Xf).copy(this)},copy:function(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;var t={};this.name=e.name;var n=e.index;null!==n&&this.setIndex(n.clone(t));var r=e.attributes;for(var i in r){var o=r[i];this.setAttribute(i,o.clone(t))}var a=e.morphAttributes;for(var s in a){for(var u=[],c=a[s],l=0,f=c.length;l<f;l++)u.push(c[l].clone(t));this.morphAttributes[s]=u}this.morphTargetsRelative=e.morphTargetsRelative;for(var h=e.groups,p=0,d=h.length;p<d;p++){var m=h[p];this.addGroup(m.start,m.count,m.materialIndex)}var v=e.boundingBox;null!==v&&(this.boundingBox=v.clone());var g=e.boundingSphere;return null!==g&&(this.boundingSphere=g.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});var Zf=new Al,Jf=new Ol,Qf=new bl,Kf=new el,$f=new el,eh=new el,th=new el,nh=new el,rh=new el,ih=new el,oh=new el,ah=new el,sh=new Vc,uh=new Vc,ch=new Vc,lh=new el,fh=new el;function hh(e,t){$l.call(this),this.type="Mesh",this.geometry=void 0!==e?e:new Xf,this.material=void 0!==t?t:new Mf,this.updateMorphTargets()}function ph(e,t,n,r,i,o,a,s){if(null===(t.side===as?r.intersectTriangle(a,o,i,!0,s):r.intersectTriangle(i,o,a,t.side!==ss,s)))return null;fh.copy(s),fh.applyMatrix4(e.matrixWorld);var u=n.ray.origin.distanceTo(fh);return u<n.near||u>n.far?null:{distance:u,point:fh.clone(),object:e}}function dh(e,t,n,r,i,o,a,s,u,c,l,f){Kf.fromBufferAttribute(i,c),$f.fromBufferAttribute(i,l),eh.fromBufferAttribute(i,f);var h=e.morphTargetInfluences;if(t.morphTargets&&o&&h){ih.set(0,0,0),oh.set(0,0,0),ah.set(0,0,0);for(var p=0,d=o.length;p<d;p++){var m=h[p],v=o[p];0!==m&&(th.fromBufferAttribute(v,c),nh.fromBufferAttribute(v,l),rh.fromBufferAttribute(v,f),a?(ih.addScaledVector(th,m),oh.addScaledVector(nh,m),ah.addScaledVector(rh,m)):(ih.addScaledVector(th.sub(Kf),m),oh.addScaledVector(nh.sub($f),m),ah.addScaledVector(rh.sub(eh),m)))}Kf.add(ih),$f.add(oh),eh.add(ah)}e.isSkinnedMesh&&(e.boneTransform(c,Kf),e.boneTransform(l,$f),e.boneTransform(f,eh));var g=ph(e,t,n,r,Kf,$f,eh,lh);if(g){s&&(sh.fromBufferAttribute(s,c),uh.fromBufferAttribute(s,l),ch.fromBufferAttribute(s,f),g.uv=mf.getUV(lh,Kf,$f,eh,sh,uh,ch,new Vc)),u&&(sh.fromBufferAttribute(u,c),uh.fromBufferAttribute(u,l),ch.fromBufferAttribute(u,f),g.uv2=mf.getUV(lh,Kf,$f,eh,sh,uh,ch,new Vc));var y=new Ef(c,l,f);mf.getNormal(Kf,$f,eh,y.normal),g.face=y}return g}hh.prototype=Object.assign(Object.create($l.prototype),{constructor:hh,isMesh:!0,copy:function(e){return $l.prototype.copy.call(this,e),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=e.material,this.geometry=e.geometry,this},updateMorphTargets:function(){var e=this.geometry;if(e.isBufferGeometry){var t=e.morphAttributes,n=Object.keys(t);if(n.length>0){var r=t[n[0]];if(void 0!==r){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var i=0,o=r.length;i<o;i++){var a=r[i].name||String(i);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=i}}}}else{var s=e.morphTargets;void 0!==s&&s.length>0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}},raycast:function(e,t){var n,r=this.geometry,i=this.material,o=this.matrixWorld;if(void 0!==i&&(null===r.boundingSphere&&r.computeBoundingSphere(),Qf.copy(r.boundingSphere),Qf.applyMatrix4(o),!1!==e.ray.intersectsSphere(Qf)&&(Zf.getInverse(o),Jf.copy(e.ray).applyMatrix4(Zf),null===r.boundingBox||!1!==Jf.intersectsBox(r.boundingBox))))if(r.isBufferGeometry){var a=r.index,s=r.attributes.position,u=r.morphAttributes.position,c=r.morphTargetsRelative,l=r.attributes.uv,f=r.attributes.uv2,h=r.groups,p=r.drawRange;if(null!==a)if(Array.isArray(i))for(var d=0,m=h.length;d<m;d++)for(var v=h[d],g=i[v.materialIndex],y=Math.max(v.start,p.start),b=Math.min(v.start+v.count,p.start+p.count);y<b;y+=3){var x=a.getX(y),_=a.getX(y+1),w=a.getX(y+2);(n=dh(this,g,e,Jf,s,u,c,l,f,x,_,w))&&(n.faceIndex=Math.floor(y/3),n.face.materialIndex=v.materialIndex,t.push(n))}else for(var E=Math.max(0,p.start),S=Math.min(a.count,p.start+p.count);E<S;E+=3){var T=a.getX(E),M=a.getX(E+1),O=a.getX(E+2);(n=dh(this,i,e,Jf,s,u,c,l,f,T,M,O))&&(n.faceIndex=Math.floor(E/3),t.push(n))}else if(void 0!==s)if(Array.isArray(i))for(var A=0,k=h.length;A<k;A++)for(var C=h[A],P=i[C.materialIndex],L=Math.max(C.start,p.start),R=Math.min(C.start+C.count,p.start+p.count);L<R;L+=3){(n=dh(this,P,e,Jf,s,u,c,l,f,L,L+1,L+2))&&(n.faceIndex=Math.floor(L/3),n.face.materialIndex=C.materialIndex,t.push(n))}else for(var j=Math.max(0,p.start),N=Math.min(s.count,p.start+p.count);j<N;j+=3){(n=dh(this,i,e,Jf,s,u,c,l,f,j,j+1,j+2))&&(n.faceIndex=Math.floor(j/3),t.push(n))}}else if(r.isGeometry){var I,D=Array.isArray(i),B=r.vertices,F=r.faces,U=r.faceVertexUvs[0];U.length>0&&(I=U);for(var z=0,H=F.length;z<H;z++){var G=F[z],W=D?i[G.materialIndex]:i;if(void 0!==W){var V=B[G.a],q=B[G.b],Y=B[G.c];if(n=ph(this,W,e,Jf,V,q,Y,lh)){if(I&&I[z]){var X=I[z];sh.copy(X[0]),uh.copy(X[1]),ch.copy(X[2]),n.uv=mf.getUV(lh,V,q,Y,sh,uh,ch,new Vc)}n.face=G,n.faceIndex=z,t.push(n)}}}}}});var mh=0,vh=new Al,gh=new $l,yh=new el;function bh(){Object.defineProperty(this,"id",{value:mh+=2}),this.uuid=Wc.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.elementsNeedUpdate=!1,this.verticesNeedUpdate=!1,this.uvsNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.lineDistancesNeedUpdate=!1,this.groupsNeedUpdate=!1}bh.prototype=Object.assign(Object.create(Fc.prototype),{constructor:bh,isGeometry:!0,applyMatrix4:function(e){for(var t=(new qc).getNormalMatrix(e),n=0,r=this.vertices.length;n<r;n++){this.vertices[n].applyMatrix4(e)}for(var i=0,o=this.faces.length;i<o;i++){var a=this.faces[i];a.normal.applyMatrix3(t).normalize();for(var s=0,u=a.vertexNormals.length;s<u;s++)a.vertexNormals[s].applyMatrix3(t).normalize()}return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this.verticesNeedUpdate=!0,this.normalsNeedUpdate=!0,this},rotateX:function(e){return vh.makeRotationX(e),this.applyMatrix4(vh),this},rotateY:function(e){return vh.makeRotationY(e),this.applyMatrix4(vh),this},rotateZ:function(e){return vh.makeRotationZ(e),this.applyMatrix4(vh),this},translate:function(e,t,n){return vh.makeTranslation(e,t,n),this.applyMatrix4(vh),this},scale:function(e,t,n){return vh.makeScale(e,t,n),this.applyMatrix4(vh),this},lookAt:function(e){return gh.lookAt(e),gh.updateMatrix(),this.applyMatrix4(gh.matrix),this},fromBufferGeometry:function(e){var t=this,n=null!==e.index?e.index:void 0,r=e.attributes;if(void 0===r.position)return console.error("THREE.Geometry.fromBufferGeometry(): Position attribute required for conversion."),this;var i=r.position,o=r.normal,a=r.color,s=r.uv,u=r.uv2;void 0!==u&&(this.faceVertexUvs[1]=[]);for(var c=0;c<i.count;c++)t.vertices.push((new el).fromBufferAttribute(i,c)),void 0!==a&&t.colors.push((new wf).fromBufferAttribute(a,c));function l(e,n,r,i){var c=void 0===a?[]:[t.colors[e].clone(),t.colors[n].clone(),t.colors[r].clone()],l=void 0===o?[]:[(new el).fromBufferAttribute(o,e),(new el).fromBufferAttribute(o,n),(new el).fromBufferAttribute(o,r)],f=new Ef(e,n,r,l,c,i);t.faces.push(f),void 0!==s&&t.faceVertexUvs[0].push([(new Vc).fromBufferAttribute(s,e),(new Vc).fromBufferAttribute(s,n),(new Vc).fromBufferAttribute(s,r)]),void 0!==u&&t.faceVertexUvs[1].push([(new Vc).fromBufferAttribute(u,e),(new Vc).fromBufferAttribute(u,n),(new Vc).fromBufferAttribute(u,r)])}var f=e.groups;if(f.length>0)for(var h=0;h<f.length;h++)for(var p=f[h],d=p.start,m=d,v=d+p.count;m<v;m+=3)void 0!==n?l(n.getX(m),n.getX(m+1),n.getX(m+2),p.materialIndex):l(m,m+1,m+2,p.materialIndex);else if(void 0!==n)for(var g=0;g<n.count;g+=3)l(n.getX(g),n.getX(g+1),n.getX(g+2));else for(var y=0;y<i.count;y+=3)l(y,y+1,y+2);return this.computeFaceNormals(),null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone()),null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),this},center:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(yh).negate(),this.translate(yh.x,yh.y,yh.z),this},normalize:function(){this.computeBoundingSphere();var e=this.boundingSphere.center,t=this.boundingSphere.radius,n=0===t?1:1/t,r=new Al;return r.set(n,0,0,-n*e.x,0,n,0,-n*e.y,0,0,n,-n*e.z,0,0,0,1),this.applyMatrix4(r),this},computeFaceNormals:function(){for(var e=new el,t=new el,n=0,r=this.faces.length;n<r;n++){var i=this.faces[n],o=this.vertices[i.a],a=this.vertices[i.b],s=this.vertices[i.c];e.subVectors(s,a),t.subVectors(o,a),e.cross(t),e.normalize(),i.normal.copy(e)}},computeVertexNormals:function(e){void 0===e&&(e=!0);for(var t=new Array(this.vertices.length),n=0,r=this.vertices.length;n<r;n++)t[n]=new el;if(e)for(var i=new el,o=new el,a=0,s=this.faces.length;a<s;a++){var u=this.faces[a],c=this.vertices[u.a],l=this.vertices[u.b],f=this.vertices[u.c];i.subVectors(f,l),o.subVectors(c,l),i.cross(o),t[u.a].add(i),t[u.b].add(i),t[u.c].add(i)}else{this.computeFaceNormals();for(var h=0,p=this.faces.length;h<p;h++){var d=this.faces[h];t[d.a].add(d.normal),t[d.b].add(d.normal),t[d.c].add(d.normal)}}for(var m=0,v=this.vertices.length;m<v;m++)t[m].normalize();for(var g=0,y=this.faces.length;g<y;g++){var b=this.faces[g],x=b.vertexNormals;3===x.length?(x[0].copy(t[b.a]),x[1].copy(t[b.b]),x[2].copy(t[b.c])):(x[0]=t[b.a].clone(),x[1]=t[b.b].clone(),x[2]=t[b.c].clone())}this.faces.length>0&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){this.computeFaceNormals();for(var e=0,t=this.faces.length;e<t;e++){var n=this.faces[e],r=n.vertexNormals;3===r.length?(r[0].copy(n.normal),r[1].copy(n.normal),r[2].copy(n.normal)):(r[0]=n.normal.clone(),r[1]=n.normal.clone(),r[2]=n.normal.clone())}this.faces.length>0&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){for(var e=0,t=this.faces.length;e<t;e++){var n=this.faces[e];n.__originalFaceNormal?n.__originalFaceNormal.copy(n.normal):n.__originalFaceNormal=n.normal.clone(),n.__originalVertexNormals||(n.__originalVertexNormals=[]);for(var r=0,i=n.vertexNormals.length;r<i;r++)n.__originalVertexNormals[r]?n.__originalVertexNormals[r].copy(n.vertexNormals[r]):n.__originalVertexNormals[r]=n.vertexNormals[r].clone()}var o=new bh;o.faces=this.faces;for(var a=0,s=this.morphTargets.length;a<s;a++){if(!this.morphNormals[a]){this.morphNormals[a]={},this.morphNormals[a].faceNormals=[],this.morphNormals[a].vertexNormals=[];for(var u=this.morphNormals[a].faceNormals,c=this.morphNormals[a].vertexNormals,l=0,f=this.faces.length;l<f;l++){var h=new el,p={a:new el,b:new el,c:new el};u.push(h),c.push(p)}}var d=this.morphNormals[a];o.vertices=this.morphTargets[a].vertices,o.computeFaceNormals(),o.computeVertexNormals();for(var m=0,v=this.faces.length;m<v;m++){var g=this.faces[m],y=d.faceNormals[m],b=d.vertexNormals[m];y.copy(g.normal),b.a.copy(g.vertexNormals[0]),b.b.copy(g.vertexNormals[1]),b.c.copy(g.vertexNormals[2])}}for(var x=0,_=this.faces.length;x<_;x++){var w=this.faces[x];w.normal=w.__originalFaceNormal,w.vertexNormals=w.__originalVertexNormals}},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new rl),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new bl),this.boundingSphere.setFromPoints(this.vertices)},merge:function(e,t,n){if(e&&e.isGeometry){var r,i=this.vertices.length,o=this.vertices,a=e.vertices,s=this.faces,u=e.faces,c=this.colors,l=e.colors;void 0===n&&(n=0),void 0!==t&&(r=(new qc).getNormalMatrix(t));for(var f=0,h=a.length;f<h;f++){var p=a[f].clone();void 0!==t&&p.applyMatrix4(t),o.push(p)}for(var d=0,m=l.length;d<m;d++)c.push(l[d].clone());for(var v=0,g=u.length;v<g;v++){var y=u[v],b=void 0,x=void 0,_=y.vertexNormals,w=y.vertexColors,E=new Ef(y.a+i,y.b+i,y.c+i);E.normal.copy(y.normal),void 0!==r&&E.normal.applyMatrix3(r).normalize();for(var S=0,T=_.length;S<T;S++)b=_[S].clone(),void 0!==r&&b.applyMatrix3(r).normalize(),E.vertexNormals.push(b);E.color.copy(y.color);for(var M=0,O=w.length;M<O;M++)x=w[M],E.vertexColors.push(x.clone());E.materialIndex=y.materialIndex+n,s.push(E)}for(var A=0,k=e.faceVertexUvs.length;A<k;A++){var C=e.faceVertexUvs[A];void 0===this.faceVertexUvs[A]&&(this.faceVertexUvs[A]=[]);for(var P=0,L=C.length;P<L;P++){for(var R=C[P],j=[],N=0,I=R.length;N<I;N++)j.push(R[N].clone());this.faceVertexUvs[A].push(j)}}}else console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",e)},mergeMesh:function(e){e&&e.isMesh?(e.matrixAutoUpdate&&e.updateMatrix(),this.merge(e.geometry,e.matrix)):console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",e)},mergeVertices:function(){for(var e={},t=[],n=[],r=Math.pow(10,4),i=0,o=this.vertices.length;i<o;i++){var a=this.vertices[i],s=Math.round(a.x*r)+"_"+Math.round(a.y*r)+"_"+Math.round(a.z*r);void 0===e[s]?(e[s]=i,t.push(this.vertices[i]),n[i]=t.length-1):n[i]=n[e[s]]}for(var u=[],c=0,l=this.faces.length;c<l;c++){var f=this.faces[c];f.a=n[f.a],f.b=n[f.b],f.c=n[f.c];for(var h=[f.a,f.b,f.c],p=0;p<3;p++)if(h[p]===h[(p+1)%3]){u.push(c);break}}for(var d=u.length-1;d>=0;d--){var m=u[d];this.faces.splice(m,1);for(var v=0,g=this.faceVertexUvs.length;v<g;v++)this.faceVertexUvs[v].splice(m,1)}var y=this.vertices.length-t.length;return this.vertices=t,y},setFromPoints:function(e){this.vertices=[];for(var t=0,n=e.length;t<n;t++){var r=e[t];this.vertices.push(new el(r.x,r.y,r.z||0))}return this},sortFacesByMaterialIndex:function(){for(var e=this.faces,t=e.length,n=0;n<t;n++)e[n]._id=n;e.sort(function(e,t){return e.materialIndex-t.materialIndex});var r,i,o=this.faceVertexUvs[0],a=this.faceVertexUvs[1];o&&o.length===t&&(r=[]),a&&a.length===t&&(i=[]);for(var s=0;s<t;s++){var u=e[s]._id;r&&r.push(o[u]),i&&i.push(a[u])}r&&(this.faceVertexUvs[0]=r),i&&(this.faceVertexUvs[1]=i)},toJSON:function(){var e={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,""!==this.name&&(e.name=this.name),void 0!==this.parameters){var t=this.parameters;for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}for(var r=[],i=0;i<this.vertices.length;i++){var o=this.vertices[i];r.push(o.x,o.y,o.z)}for(var a=[],s=[],u={},c=[],l={},f=[],h={},p=0;p<this.faces.length;p++){var d=this.faces[p],m=void 0!==this.faceVertexUvs[0][p],v=d.normal.length()>0,g=d.vertexNormals.length>0,y=1!==d.color.r||1!==d.color.g||1!==d.color.b,b=d.vertexColors.length>0,x=0;if(x=S(x,0,0),x=S(x,1,!0),x=S(x,2,!1),x=S(x,3,m),x=S(x,4,v),x=S(x,5,g),x=S(x,6,y),x=S(x,7,b),a.push(x),a.push(d.a,d.b,d.c),a.push(d.materialIndex),m){var _=this.faceVertexUvs[0][p];a.push(O(_[0]),O(_[1]),O(_[2]))}if(v&&a.push(T(d.normal)),g){var w=d.vertexNormals;a.push(T(w[0]),T(w[1]),T(w[2]))}if(y&&a.push(M(d.color)),b){var E=d.vertexColors;a.push(M(E[0]),M(E[1]),M(E[2]))}}function S(e,t,n){return n?e|1<<t:e&~(1<<t)}function T(e){var t=e.x.toString()+e.y.toString()+e.z.toString();return void 0!==u[t]?u[t]:(u[t]=s.length/3,s.push(e.x,e.y,e.z),u[t])}function M(e){var t=e.r.toString()+e.g.toString()+e.b.toString();return void 0!==l[t]?l[t]:(l[t]=c.length,c.push(e.getHex()),l[t])}function O(e){var t=e.x.toString()+e.y.toString();return void 0!==h[t]?h[t]:(h[t]=f.length/2,f.push(e.x,e.y),h[t])}return e.data={},e.data.vertices=r,e.data.normals=s,c.length>0&&(e.data.colors=c),f.length>0&&(e.data.uvs=[f]),e.data.faces=a,e},clone:function(){return(new bh).copy(this)},copy:function(e){this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.name=e.name;for(var t=e.vertices,n=0,r=t.length;n<r;n++)this.vertices.push(t[n].clone());for(var i=e.colors,o=0,a=i.length;o<a;o++)this.colors.push(i[o].clone());for(var s=e.faces,u=0,c=s.length;u<c;u++)this.faces.push(s[u].clone());for(var l=0,f=e.faceVertexUvs.length;l<f;l++){var h=e.faceVertexUvs[l];void 0===this.faceVertexUvs[l]&&(this.faceVertexUvs[l]=[]);for(var p=0,d=h.length;p<d;p++){for(var m=h[p],v=[],g=0,y=m.length;g<y;g++){var b=m[g];v.push(b.clone())}this.faceVertexUvs[l].push(v)}}for(var x=e.morphTargets,_=0,w=x.length;_<w;_++){var E={};if(E.name=x[_].name,void 0!==x[_].vertices){E.vertices=[];for(var S=0,T=x[_].vertices.length;S<T;S++)E.vertices.push(x[_].vertices[S].clone())}if(void 0!==x[_].normals){E.normals=[];for(var M=0,O=x[_].normals.length;M<O;M++)E.normals.push(x[_].normals[M].clone())}this.morphTargets.push(E)}for(var A=e.morphNormals,k=0,C=A.length;k<C;k++){var P={};if(void 0!==A[k].vertexNormals){P.vertexNormals=[];for(var L=0,R=A[k].vertexNormals.length;L<R;L++){var j=A[k].vertexNormals[L],N={};N.a=j.a.clone(),N.b=j.b.clone(),N.c=j.c.clone(),P.vertexNormals.push(N)}}if(void 0!==A[k].faceNormals){P.faceNormals=[];for(var I=0,D=A[k].faceNormals.length;I<D;I++)P.faceNormals.push(A[k].faceNormals[I].clone())}this.morphNormals.push(P)}for(var B=e.skinWeights,F=0,U=B.length;F<U;F++)this.skinWeights.push(B[F].clone());for(var z=e.skinIndices,H=0,G=z.length;H<G;H++)this.skinIndices.push(z[H].clone());for(var W=e.lineDistances,V=0,q=W.length;V<q;V++)this.lineDistances.push(W[V]);var Y=e.boundingBox;null!==Y&&(this.boundingBox=Y.clone());var X=e.boundingSphere;return null!==X&&(this.boundingSphere=X.clone()),this.elementsNeedUpdate=e.elementsNeedUpdate,this.verticesNeedUpdate=e.verticesNeedUpdate,this.uvsNeedUpdate=e.uvsNeedUpdate,this.normalsNeedUpdate=e.normalsNeedUpdate,this.colorsNeedUpdate=e.colorsNeedUpdate,this.lineDistancesNeedUpdate=e.lineDistancesNeedUpdate,this.groupsNeedUpdate=e.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});var xh=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a,s){var u;return Object(cn.a)(this,n),(u=t.call(this)).type="BoxGeometry",u.parameters={width:e,height:r,depth:i,widthSegments:o,heightSegments:a,depthSegments:s},u.fromBufferGeometry(new _h(e,r,i,o,a,s)),u.mergeVertices(),u}return n}(bh),_h=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;Object(cn.a)(this,n),(e=t.call(this)).type="BoxBufferGeometry",e.parameters={width:r,height:i,depth:o,widthSegments:a,heightSegments:s,depthSegments:u};var c=Object(Ka.a)(e);a=Math.floor(a),s=Math.floor(s),u=Math.floor(u);var l=[],f=[],h=[],p=[],d=0,m=0;function v(e,t,n,r,i,o,a,s,u,v,g){for(var y=o/u,b=a/v,x=o/2,_=a/2,w=s/2,E=u+1,S=v+1,T=0,M=0,O=new el,A=0;A<S;A++)for(var k=A*b-_,C=0;C<E;C++){var P=C*y-x;O[e]=P*r,O[t]=k*i,O[n]=w,f.push(O.x,O.y,O.z),O[e]=0,O[t]=0,O[n]=s>0?1:-1,h.push(O.x,O.y,O.z),p.push(C/u),p.push(1-A/v),T+=1}for(var L=0;L<v;L++)for(var R=0;R<u;R++){var j=d+R+E*L,N=d+R+E*(L+1),I=d+(R+1)+E*(L+1),D=d+(R+1)+E*L;l.push(j,N,D),l.push(N,I,D),M+=6}c.addGroup(m,M,g),m+=M,d+=T}return v("z","y","x",-1,-1,o,i,r,u,s,0),v("z","y","x",1,-1,o,i,-r,u,s,1),v("x","z","y",1,1,r,o,i,a,u,2),v("x","z","y",1,-1,r,o,-i,a,u,3),v("x","y","z",1,-1,r,i,o,a,s,4),v("x","y","z",-1,-1,r,i,-o,a,s,5),e.setIndex(l),e.setAttribute("position",new Df(f,3)),e.setAttribute("normal",new Df(h,3)),e.setAttribute("uv",new Df(p,2)),e}return n}(Xf);function wh(e){var t={};for(var n in e)for(var r in t[n]={},e[n]){var i=e[n][r];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture)?t[n][r]=i.clone():Array.isArray(i)?t[n][r]=i.slice():t[n][r]=i}return t}function Eh(e){for(var t={},n=0;n<e.length;n++){var r=wh(e[n]);for(var i in r)t[i]=r[i]}return t}var Sh={clone:wh,merge:Eh},Th="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",Mh="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}";function Oh(e){Tf.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader=Th,this.fragmentShader=Mh,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,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==e&&(void 0!==e.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(e))}function Ah(){$l.call(this),this.type="Camera",this.matrixWorldInverse=new Al,this.projectionMatrix=new Al,this.projectionMatrixInverse=new Al}function kh(e,t,n,r){Ah.call(this),this.type="PerspectiveCamera",this.fov=void 0!==e?e:50,this.zoom=1,this.near=void 0!==n?n:.1,this.far=void 0!==r?r:2e3,this.focus=10,this.aspect=void 0!==t?t:1,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}Oh.prototype=Object.create(Tf.prototype),Oh.prototype.constructor=Oh,Oh.prototype.isShaderMaterial=!0,Oh.prototype.copy=function(e){return Tf.prototype.copy.call(this,e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=wh(e.uniforms),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.lights=e.lights,this.clipping=e.clipping,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this},Oh.prototype.toJSON=function(e){var t=Tf.prototype.toJSON.call(this,e);for(var n in t.glslVersion=this.glslVersion,t.uniforms={},this.uniforms){var r=this.uniforms[n].value;r&&r.isTexture?t.uniforms[n]={type:"t",value:r.toJSON(e).uuid}:r&&r.isColor?t.uniforms[n]={type:"c",value:r.getHex()}:r&&r.isVector2?t.uniforms[n]={type:"v2",value:r.toArray()}:r&&r.isVector3?t.uniforms[n]={type:"v3",value:r.toArray()}:r&&r.isVector4?t.uniforms[n]={type:"v4",value:r.toArray()}:r&&r.isMatrix3?t.uniforms[n]={type:"m3",value:r.toArray()}:r&&r.isMatrix4?t.uniforms[n]={type:"m4",value:r.toArray()}:t.uniforms[n]={value:r}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader;var i={};for(var o in this.extensions)!0===this.extensions[o]&&(i[o]=!0);return Object.keys(i).length>0&&(t.extensions=i),t},Ah.prototype=Object.assign(Object.create($l.prototype),{constructor:Ah,isCamera:!0,copy:function(e,t){return $l.prototype.copy.call(this,e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this},getWorldDirection:function(e){void 0===e&&(console.warn("THREE.Camera: .getWorldDirection() target is now required"),e=new el),this.updateMatrixWorld(!0);var t=this.matrixWorld.elements;return e.set(-t[8],-t[9],-t[10]).normalize()},updateMatrixWorld:function(e){$l.prototype.updateMatrixWorld.call(this,e),this.matrixWorldInverse.getInverse(this.matrixWorld)},updateWorldMatrix:function(e,t){$l.prototype.updateWorldMatrix.call(this,e,t),this.matrixWorldInverse.getInverse(this.matrixWorld)},clone:function(){return(new this.constructor).copy(this)}}),kh.prototype=Object.assign(Object.create(Ah.prototype),{constructor:kh,isPerspectiveCamera:!0,copy:function(e,t){return Ah.prototype.copy.call(this,e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this},setFocalLength:function(e){var t=.5*this.getFilmHeight()/e;this.fov=2*Wc.RAD2DEG*Math.atan(t),this.updateProjectionMatrix()},getFocalLength:function(){var e=Math.tan(.5*Wc.DEG2RAD*this.fov);return.5*this.getFilmHeight()/e},getEffectiveFOV:function(){return 2*Wc.RAD2DEG*Math.atan(Math.tan(.5*Wc.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(e,t,n,r,i,o){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var e=this.near,t=e*Math.tan(.5*Wc.DEG2RAD*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r,o=this.view;if(null!==this.view&&this.view.enabled){var a=o.fullWidth,s=o.fullHeight;i+=o.offsetX*r/a,t-=o.offsetY*n/s,r*=o.width/a,n*=o.height/s}var u=this.filmOffset;0!==u&&(i+=e*u/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(e){var t=$l.prototype.toJSON.call(this,e);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}});var Ch=90,Ph=1;function Lh(e,t,n){if($l.call(this),this.type="CubeCamera",!0===n.isWebGLCubeRenderTarget){this.renderTarget=n;var r=new kh(Ch,Ph,e,t);r.layers=this.layers,r.up.set(0,-1,0),r.lookAt(new el(1,0,0)),this.add(r);var i=new kh(Ch,Ph,e,t);i.layers=this.layers,i.up.set(0,-1,0),i.lookAt(new el(-1,0,0)),this.add(i);var o=new kh(Ch,Ph,e,t);o.layers=this.layers,o.up.set(0,0,1),o.lookAt(new el(0,1,0)),this.add(o);var a=new kh(Ch,Ph,e,t);a.layers=this.layers,a.up.set(0,0,-1),a.lookAt(new el(0,-1,0)),this.add(a);var s=new kh(Ch,Ph,e,t);s.layers=this.layers,s.up.set(0,-1,0),s.lookAt(new el(0,0,1)),this.add(s);var u=new kh(Ch,Ph,e,t);u.layers=this.layers,u.up.set(0,-1,0),u.lookAt(new el(0,0,-1)),this.add(u),this.update=function(e,t){null===this.parent&&this.updateMatrixWorld();var c=e.xr.enabled,l=e.getRenderTarget();e.xr.enabled=!1;var f=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0),e.render(t,r),e.setRenderTarget(n,1),e.render(t,i),e.setRenderTarget(n,2),e.render(t,o),e.setRenderTarget(n,3),e.render(t,a),e.setRenderTarget(n,4),e.render(t,s),n.texture.generateMipmaps=f,e.setRenderTarget(n,5),e.render(t,u),e.setRenderTarget(l),e.xr.enabled=c},this.clear=function(e,t,r,i){for(var o=e.getRenderTarget(),a=0;a<6;a++)e.setRenderTarget(n,a),e.clear(t,r,i);e.setRenderTarget(o)}}else console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.")}function Rh(e,t,n){Number.isInteger(t)&&(console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"),t=n),Qc.call(this,e,e,t),this.texture.isWebGLCubeRenderTargetTexture=!0}function jh(e,t,n,r,i,o,a,s,u,c,l,f){Zc.call(this,null,o,a,s,u,c,r,i,l,f),this.image={data:e||null,width:t||1,height:n||1},this.magFilter=void 0!==u?u:nu,this.minFilter=void 0!==c?c:nu,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.needsUpdate=!0}Lh.prototype=Object.create($l.prototype),Lh.prototype.constructor=Lh,Rh.prototype=Object.create(Qc.prototype),Rh.prototype.constructor=Rh,Rh.prototype.isWebGLCubeRenderTarget=!0,Rh.prototype.fromEquirectangularTexture=function(e,t){this.texture.type=t.type,this.texture.format=wu,this.texture.encoding=t.encoding,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;var n={tEquirect:{value:null}},r="\n\n\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t#include <begin_vertex>\n\t\t\t\t#include <project_vertex>\n\n\t\t\t}\n\t\t",i="\n\n\t\t\tuniform sampler2D tEquirect;\n\n\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t}\n\t\t",o=new _h(5,5,5),a=new Oh({name:"CubemapFromEquirect",uniforms:wh(n),vertexShader:r,fragmentShader:i,side:as,blending:us});a.uniforms.tEquirect.value=t;var s=new hh(o,a),u=t.minFilter;return t.minFilter===su&&(t.minFilter=ou),new Lh(1,10,this).update(e,s),t.minFilter=u,s.geometry.dispose(),s.material.dispose(),this},jh.prototype=Object.create(Zc.prototype),jh.prototype.constructor=jh,jh.prototype.isDataTexture=!0;var Nh=new bl,Ih=new el,Dh=function(){function e(t,n,r,i,o,a){Object(cn.a)(this,e),this.planes=[void 0!==t?t:new rf,void 0!==n?n:new rf,void 0!==r?r:new rf,void 0!==i?i:new rf,void 0!==o?o:new rf,void 0!==a?a:new rf]}return Object(ln.a)(e,[{key:"set",value:function(e,t,n,r,i,o){var a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(n),a[3].copy(r),a[4].copy(i),a[5].copy(o),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){for(var t=this.planes,n=0;n<6;n++)t[n].copy(e.planes[n]);return this}},{key:"setFromProjectionMatrix",value:function(e){var t=this.planes,n=e.elements,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],c=n[6],l=n[7],f=n[8],h=n[9],p=n[10],d=n[11],m=n[12],v=n[13],g=n[14],y=n[15];return t[0].setComponents(a-r,l-s,d-f,y-m).normalize(),t[1].setComponents(a+r,l+s,d+f,y+m).normalize(),t[2].setComponents(a+i,l+u,d+h,y+v).normalize(),t[3].setComponents(a-i,l-u,d-h,y-v).normalize(),t[4].setComponents(a-o,l-c,d-p,y-g).normalize(),t[5].setComponents(a+o,l+c,d+p,y+g).normalize(),this}},{key:"intersectsObject",value:function(e){var t=e.geometry;return null===t.boundingSphere&&t.computeBoundingSphere(),Nh.copy(t.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(Nh)}},{key:"intersectsSprite",value:function(e){return Nh.center.set(0,0,0),Nh.radius=.7071067811865476,Nh.applyMatrix4(e.matrixWorld),this.intersectsSphere(Nh)}},{key:"intersectsSphere",value:function(e){for(var t=this.planes,n=e.center,r=-e.radius,i=0;i<6;i++){if(t[i].distanceToPoint(n)<r)return!1}return!0}},{key:"intersectsBox",value:function(e){for(var t=this.planes,n=0;n<6;n++){var r=t[n];if(Ih.x=r.normal.x>0?e.max.x:e.min.x,Ih.y=r.normal.y>0?e.max.y:e.min.y,Ih.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Ih)<0)return!1}return!0}},{key:"containsPoint",value:function(e){for(var t=this.planes,n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}}]),e}();function Bh(){var e=null,t=!1,n=null,r=null;function i(t,o){n(t,o),r=e.requestAnimationFrame(i)}return{start:function(){!0!==t&&null!==n&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Fh(e,t){var n=t.isWebGL2,r=new WeakMap;return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),r.get(e)},remove:function(t){t.isInterleavedBufferAttribute&&(t=t.data);var n=r.get(t);n&&(e.deleteBuffer(n.buffer),r.delete(t))},update:function(t,i){if(t.isGLBufferAttribute){var o=r.get(t);(!o||o.version<t.version)&&r.set(t,{buffer:t.buffer,type:t.type,bytesPerElement:t.elementSize,version:t.version})}else{t.isInterleavedBufferAttribute&&(t=t.data);var a=r.get(t);void 0===a?r.set(t,function(t,n){var r=t.array,i=t.usage,o=e.createBuffer();e.bindBuffer(n,o),e.bufferData(n,r,i),t.onUploadCallback();var a=5126;return r instanceof Float32Array?a=5126:r instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):r instanceof Uint16Array?a=5123:r instanceof Int16Array?a=5122:r instanceof Uint32Array?a=5125:r instanceof Int32Array?a=5124:r instanceof Int8Array?a=5120:r instanceof Uint8Array&&(a=5121),{buffer:o,type:a,bytesPerElement:r.BYTES_PER_ELEMENT,version:t.version}}(t,i)):a.version<t.version&&(function(t,r,i){var o=r.array,a=r.updateRange;e.bindBuffer(i,t),-1===a.count?e.bufferSubData(i,0,o):(n?e.bufferSubData(i,a.offset*o.BYTES_PER_ELEMENT,o,a.offset,a.count):e.bufferSubData(i,a.offset*o.BYTES_PER_ELEMENT,o.subarray(a.offset,a.offset+a.count)),a.count=-1)}(a.buffer,t,i),a.version=t.version)}}}}var Uh=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o){var a;return Object(cn.a)(this,n),(a=t.call(this)).type="PlaneGeometry",a.parameters={width:e,height:r,widthSegments:i,heightSegments:o},a.fromBufferGeometry(new zh(e,r,i,o)),a.mergeVertices(),a}return n}(bh),zh=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o){var a;Object(cn.a)(this,n),(a=t.call(this)).type="PlaneBufferGeometry",a.parameters={width:e,height:r,widthSegments:i,heightSegments:o};for(var s=(e=e||1)/2,u=(r=r||1)/2,c=Math.floor(i)||1,l=Math.floor(o)||1,f=c+1,h=l+1,p=e/c,d=r/l,m=[],v=[],g=[],y=[],b=0;b<h;b++)for(var x=b*d-u,_=0;_<f;_++){var w=_*p-s;v.push(w,-x,0),g.push(0,0,1),y.push(_/c),y.push(1-b/l)}for(var E=0;E<l;E++)for(var S=0;S<c;S++){var T=S+f*E,M=S+f*(E+1),O=S+1+f*(E+1),A=S+1+f*E;m.push(T,M,A),m.push(M,O,A)}return a.setIndex(m),a.setAttribute("position",new Df(v,3)),a.setAttribute("normal",new Df(g,3)),a.setAttribute("uv",new Df(y,2)),a}return n}(Xf),Hh={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif",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( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );\n\t#endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"vec3 transformed = vec3( position );",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"vec2 integrateSpecularBRDF( const in float dotNV, const in float roughness ) {\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\treturn vec2( -1.04, 1.04 ) * a004 + r.zw;\n}\nfloat punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n#else\n\tif( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t}\n\treturn 1.0;\n#endif\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}\nvec3 F_Schlick_RoughnessDependent( const in vec3 F0, const in float dotNV, const in float roughness ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotNV - 6.98316 ) * dotNV );\n\tvec3 Fr = max( vec3( 1.0 - roughness ), F0 ) - F0;\n\treturn Fr * fresnel + F0;\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 vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( incidentLight.direction + viewDir );\n\tfloat dotNL = saturate( dot( normal, incidentLight.direction ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( 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}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nvec3 BRDF_Specular_GGX_Environment( const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\treturn specularColor * brdf.x + brdf.y;\n}\nvoid BRDF_Specular_Multiscattering_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tvec3 F = F_Schlick_RoughnessDependent( specularColor, dotNV, roughness );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\tvec3 FssEss = F * brdf.x + brdf.y;\n\tfloat Ess = brdf.x + brdf.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\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#if defined( USE_SHEEN )\nfloat D_Charlie(float roughness, float NoH) {\n\tfloat invAlpha = 1.0 / roughness;\n\tfloat cos2h = NoH * NoH;\n\tfloat sin2h = max(1.0 - cos2h, 0.0078125);\treturn (2.0 + invAlpha) * pow(sin2h, invAlpha * 0.5) / (2.0 * PI);\n}\nfloat V_Neubelt(float NoV, float NoL) {\n\treturn saturate(1.0 / (4.0 * (NoL + NoV - NoL * NoV)));\n}\nvec3 BRDF_Specular_Sheen( const in float roughness, const in vec3 L, const in GeometricContext geometry, vec3 specularColor ) {\n\tvec3 N = geometry.normal;\n\tvec3 V = geometry.viewDir;\n\tvec3 H = normalize( V + L );\n\tfloat dotNH = saturate( dot( N, H ) );\n\treturn specularColor * D_Charlie( roughness, dotNH ) * V_Neubelt( dot(N, V), dot(N, L) );\n}\n#endif",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 = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\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\tfDet *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\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",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#ifdef USE_COLOR\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor.xyz *= color.xyz;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement(a) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\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}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat max3( vec3 v ) { return max( max( v.x, v.y ), v.z ); }\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\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}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_maxMipLevel 8.0\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_maxTileSize 256.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\tfloat texelSize = 1.0 / ( 3.0 * cubeUV_maxTileSize );\n\t\tvec2 uv = getUV( direction, face ) * ( faceSize - 1.0 );\n\t\tvec2 f = fract( uv );\n\t\tuv += 0.5 - f;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tif ( mipInt < cubeUV_maxMipLevel ) {\n\t\t\tuv.y += 2.0 * cubeUV_maxTileSize;\n\t\t}\n\t\tuv.y += filterInt * 2.0 * cubeUV_minTileSize;\n\t\tuv.x += 3.0 * max( 0.0, cubeUV_maxTileSize - 2.0 * faceSize );\n\t\tuv *= texelSize;\n\t\tvec3 tl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.x += texelSize;\n\t\tvec3 tr = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.y += texelSize;\n\t\tvec3 br = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.x -= texelSize;\n\t\tvec3 bl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tvec3 tm = mix( tl, tr, f.x );\n\t\tvec3 bm = mix( bl, br, f.x );\n\t\treturn mix( tm, bm, f.y );\n\t}\n\t#define r0 1.0\n\t#define v0 0.339\n\t#define m0 - 2.0\n\t#define r1 0.8\n\t#define v1 0.276\n\t#define m1 - 1.0\n\t#define r4 0.4\n\t#define v4 0.046\n\t#define m4 2.0\n\t#define r5 0.305\n\t#define v5 0.016\n\t#define m5 3.0\n\t#define r6 0.21\n\t#define v6 0.0038\n\t#define m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= r1 ) {\n\t\t\tmip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\n\t\t} else if ( roughness >= r4 ) {\n\t\t\tmip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\n\t\t} else if ( roughness >= r5 ) {\n\t\t\tmip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\n\t\t} else if ( roughness >= r6 ) {\n\t\t\tmip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), m0, cubeUV_maxMipLevel );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:"\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( gammaFactor ) ), value.a );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( 1.0 / gammaFactor ) ), value.a );\n}\nvec4 sRGBToLinear( in vec4 value ) {\n\treturn 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.a );\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 RGBEToLinear( in vec4 value ) {\n\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\n}\nvec4 LinearToRGBE( in vec4 value ) {\n\tfloat maxComponent = max( max( value.r, value.g ), value.b );\n\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\n\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\n}\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * value.a * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat M = clamp( maxRGB / maxRange, 0.0, 1.0 );\n\tM = ceil( M * 255.0 ) / 255.0;\n\treturn vec4( value.rgb / ( M * maxRange ), M );\n}\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\n}\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat D = max( maxRange / maxRGB, 1.0 );\n\tD = clamp( floor( D ) / 255.0, 0.0, 1.0 );\n\treturn 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\tvec3 Xp_Y_XYZp = cLogLuvM * value.rgb;\n\tXp_Y_XYZp = max( Xp_Y_XYZp, vec3( 1e-6, 1e-6, 1e-6 ) );\n\tvec4 vResult;\n\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\n\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\n\tvResult.w = fract( Le );\n\tvResult.z = ( Le - ( floor( vResult.w * 255.0 ) ) / 255.0 ) / 255.0;\n\treturn 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\tfloat Le = value.z * 255.0 + value.w;\n\tvec3 Xp_Y_XYZp;\n\tXp_Y_XYZp.y = exp2( ( Le - 127.0 ) / 2.0 );\n\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\n\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\n\tvec3 vRGB = cLogLuvInverseM * Xp_Y_XYZp.rgb;\n\treturn vec4( max( vRGB, 0.0 ), 1.0 );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifndef ENVMAP_TYPE_CUBE_UV\n\t\tenvColor = envMapTexelToLinear( envColor );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform int maxMipLevel;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP )\n\t#ifdef ENVMAP_MODE_REFRACTION\n\t\tuniform float refractionRatio;\n\t#endif\n\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\n\t\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryVec = 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\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 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 roughness, const in int maxMIPLevel ) {\n\t\tfloat maxMIPLevelScalar = float( maxMIPLevel );\n\t\tfloat sigma = PI * roughness * roughness / ( 1.0 + roughness );\n\t\tfloat desiredMIPLevel = maxMIPLevelScalar + log2( sigma );\n\t\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\n\t}\n\tvec3 getLightProbeIndirectRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in int maxMIPLevel ) {\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( -viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( -viewDir, normal, refractionRatio );\n\t\t#endif\n\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\tfloat specularMIPLevel = getSpecularMIPLevel( roughness, maxMIPLevel );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryReflectVec = 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\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t#endif\n\t\treturn envMapColor.rgb * envMapIntensity;\n\t}\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tfogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float fogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * fogDepth * fogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float fogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn texture2D( gradientMap, coord ).rgb;\n\t#else\n\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\treflectedLight.indirectDiffuse += PI * lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_vertex:"vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n\tvIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry );\n#ifdef DOUBLE_SIDED\n\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry );\n#endif\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop_start\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\t#pragma unroll_loop_end\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop_start\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\t#pragma unroll_loop_end\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop_start\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\t#pragma unroll_loop_end\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in GeometricContext geometry ) {\n\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\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};\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};\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\tdirectLight.color = pointLight.color;\n\t\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\n\t\tdirectLight.visible = ( directLight.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid 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 ( angleCos > spotLight.coneCos ) {\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_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in 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",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon\n#define Material_LightProbeLOD( material )\t(0)",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\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)",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.specularRoughness = max( roughnessFactor, 0.0525 );material.specularRoughness += geometryRoughness;\nmaterial.specularRoughness = min( material.specularRoughness, 1.0 );\n#ifdef REFLECTIVITY\n\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\n#endif\n#ifdef CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheen;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat specularRoughness;\n\tvec3 specularColor;\n#ifdef CLEARCOAT\n\tfloat clearcoat;\n\tfloat clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tvec3 sheenColor;\n#endif\n};\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\nfloat clearcoatDHRApprox( const in float roughness, const in float dotNL ) {\n\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.specularRoughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3(    0, 1,    0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNL = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = ccDotNL * directLight.color;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tccIrradiance *= PI;\n\t\t#endif\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t\treflectedLight.directSpecular += ccIrradiance * material.clearcoat * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_Sheen(\n\t\t\tmaterial.specularRoughness,\n\t\t\tdirectLight.direction,\n\t\t\tgeometry,\n\t\t\tmaterial.sheenColor\n\t\t);\n\t#else\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.normal, material.specularColor, material.specularRoughness);\n\t#endif\n\treflectedLight.directDiffuse += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNV = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular += clearcoatRadiance * material.clearcoat * BRDF_Specular_GGX_Environment( geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t\tfloat ccDotNL = ccDotNV;\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\tfloat clearcoatInv = 1.0 - clearcoatDHR;\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\tBRDF_Specular_Multiscattering_Environment( geometry, material.specularColor, material.specularRoughness, singleScattering, multiScattering );\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );\n\treflectedLight.indirectSpecular += clearcoatInv * radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\tvec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * 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 defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getLightProbeIndirectIrradiance( geometry, maxMipLevel );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.normal, material.specularRoughness, maxMipLevel );\n\t#ifdef CLEARCOAT\n\t\tclearcoatRadiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness, maxMipLevel );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n#endif\n#ifdef USE_MAP\n\tvec4 mapTexel = texture2D( map, uv );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tuniform mat3 uvTransform;\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifndef USE_MORPHNORMALS\n\t\tuniform float morphTargetInfluences[ 8 ];\n\t#else\n\t\tuniform float morphTargetInfluences[ 4 ];\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t#ifndef USE_MORPHNORMALS\n\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t#endif\n#endif",normal_fragment_begin:"#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 * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t#endif\n\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t\tbitangent = bitangent * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t#endif\n\t\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t#endif\n\t#endif\n#endif\nvec3 geometryNormal = normal;",normal_fragment_maps:"#ifdef OBJECTSPACE_NORMALMAP\n\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( TANGENTSPACE_NORMALMAP )\n\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\t#ifdef USE_TANGENT\n\t\tnormal = normalize( vTBN * mapN );\n\t#else\n\t\tnormal = perturbNormal2Arb( -vViewPosition, normal, mapN );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef OBJECTSPACE_NORMALMAP\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN ) {\n\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tfloat scale = sign( st1.t * st0.s - st0.t * st1.s );\n\t\tvec3 S = normalize( ( q0 * st1.t - q1 * st0.t ) * scale );\n\t\tvec3 T = normalize( ( - q0 * st1.s + q1 * st0.s ) * scale );\n\t\tvec3 N = normalize( surf_norm );\n\t\tmat3 tsn = mat3( S, T, N );\n\t\tmapN.xy *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\treturn normalize( tsn * mapN );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\t#ifdef USE_TANGENT\n\t\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\n\t#else\n\t\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN );\n\t#endif\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ));\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w);\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn (( near + viewZ ) * far ) / (( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\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\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), \n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n\t\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\tvec4 shadowWorldPosition;\n\t#endif\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform highp sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\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",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3(  1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108,  1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605,  1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmissionmap_fragment:"#ifdef USE_TRANSMISSIONMAP\n\ttotalTransmission *= texture2D( transmissionMap, vUv ).r;\n#endif",transmissionmap_pars_fragment:"#ifdef USE_TRANSMISSIONMAP\n\tuniform sampler2D transmissionMap;\n#endif",uv_pars_fragment:"#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif",uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP )\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_frag:"uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",cube_frag:"#include <envmap_common_pars_fragment>\nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include <envmap_fragment>\n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",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>\nvarying vec2 vHighPrecisionZW;\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\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",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>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tvec4 texColor = texture2D( tEquirect, sampleUV );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",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 <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <color_vertex>\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\t#include <fog_vertex>\n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\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 <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_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 = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",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 <fog_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\t#include <fog_vertex>\n}",meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\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_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\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\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n\t#else\n\t\treflectedLight.indirectDiffuse += vIndirectFront;\n\t#endif\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 <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\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_begin>\n#include <color_pars_vertex>\n#include <fog_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\t#include <fog_vertex>\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_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 <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t\tmatcapColor = matcapTexelToLinear( matcapColor );\n\t#else\n\t\tvec4 matcapColor = vec4( 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_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 <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#ifndef FLAT_SHADED\n\t\tvNormal = normalize( transformedNormal );\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\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 <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_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 <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshtoon_vert:"#define TOON\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 <fog_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 <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_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\t#include <fog_vertex>\n}",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 <dithering_pars_fragment>\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_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\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_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\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 <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",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 <fog_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 <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_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\t#include <fog_vertex>\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define REFLECTIVITY\n\t#define CLEARCOAT\n\t#define TRANSMISSION\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef TRANSMISSION\n\tuniform float transmission;\n#endif\n#ifdef REFLECTIVITY\n\tuniform float reflectivity;\n#endif\n#ifdef CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheen;\n#endif\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\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 <transmissionmap_pars_fragment>\n#include <bsdfs>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <lights_physical_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_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#ifdef TRANSMISSION\n\t\tfloat totalTransmission = transmission;\n\t#endif\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 <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <transmissionmap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#ifdef TRANSMISSION\n\t\tdiffuseColor.a *= saturate( 1. - totalTransmission + linearToRelativeLuminance( reflectedLight.directSpecular + reflectedLight.indirectSpecular ) );\n\t#endif\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\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 <fog_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\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_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\t#include <fog_vertex>\n}",normal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}",normal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#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 <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\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",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 <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 <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_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 <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",shadow_vert:"#include <common>\n#include <fog_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_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 <shadowmap_vertex>\n\t#include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_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\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}"},Gh={common:{diffuse:{value:new wf(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new qc},uv2Transform:{value:new qc},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new Vc(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new wf(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new wf(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},uvTransform:{value:new qc}},sprite:{diffuse:{value:new wf(15658734)},opacity:{value:1},center:{value:new Vc(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},uvTransform:{value:new qc}}},Wh={basic:{uniforms:Eh([Gh.common,Gh.specularmap,Gh.envmap,Gh.aomap,Gh.lightmap,Gh.fog]),vertexShader:Hh.meshbasic_vert,fragmentShader:Hh.meshbasic_frag},lambert:{uniforms:Eh([Gh.common,Gh.specularmap,Gh.envmap,Gh.aomap,Gh.lightmap,Gh.emissivemap,Gh.fog,Gh.lights,{emissive:{value:new wf(0)}}]),vertexShader:Hh.meshlambert_vert,fragmentShader:Hh.meshlambert_frag},phong:{uniforms:Eh([Gh.common,Gh.specularmap,Gh.envmap,Gh.aomap,Gh.lightmap,Gh.emissivemap,Gh.bumpmap,Gh.normalmap,Gh.displacementmap,Gh.fog,Gh.lights,{emissive:{value:new wf(0)},specular:{value:new wf(1118481)},shininess:{value:30}}]),vertexShader:Hh.meshphong_vert,fragmentShader:Hh.meshphong_frag},standard:{uniforms:Eh([Gh.common,Gh.envmap,Gh.aomap,Gh.lightmap,Gh.emissivemap,Gh.bumpmap,Gh.normalmap,Gh.displacementmap,Gh.roughnessmap,Gh.metalnessmap,Gh.fog,Gh.lights,{emissive:{value:new wf(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Hh.meshphysical_vert,fragmentShader:Hh.meshphysical_frag},toon:{uniforms:Eh([Gh.common,Gh.aomap,Gh.lightmap,Gh.emissivemap,Gh.bumpmap,Gh.normalmap,Gh.displacementmap,Gh.gradientmap,Gh.fog,Gh.lights,{emissive:{value:new wf(0)}}]),vertexShader:Hh.meshtoon_vert,fragmentShader:Hh.meshtoon_frag},matcap:{uniforms:Eh([Gh.common,Gh.bumpmap,Gh.normalmap,Gh.displacementmap,Gh.fog,{matcap:{value:null}}]),vertexShader:Hh.meshmatcap_vert,fragmentShader:Hh.meshmatcap_frag},points:{uniforms:Eh([Gh.points,Gh.fog]),vertexShader:Hh.points_vert,fragmentShader:Hh.points_frag},dashed:{uniforms:Eh([Gh.common,Gh.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Hh.linedashed_vert,fragmentShader:Hh.linedashed_frag},depth:{uniforms:Eh([Gh.common,Gh.displacementmap]),vertexShader:Hh.depth_vert,fragmentShader:Hh.depth_frag},normal:{uniforms:Eh([Gh.common,Gh.bumpmap,Gh.normalmap,Gh.displacementmap,{opacity:{value:1}}]),vertexShader:Hh.normal_vert,fragmentShader:Hh.normal_frag},sprite:{uniforms:Eh([Gh.sprite,Gh.fog]),vertexShader:Hh.sprite_vert,fragmentShader:Hh.sprite_frag},background:{uniforms:{uvTransform:{value:new qc},t2D:{value:null}},vertexShader:Hh.background_vert,fragmentShader:Hh.background_frag},cube:{uniforms:Eh([Gh.envmap,{opacity:{value:1}}]),vertexShader:Hh.cube_vert,fragmentShader:Hh.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Hh.equirect_vert,fragmentShader:Hh.equirect_frag},distanceRGBA:{uniforms:Eh([Gh.common,Gh.displacementmap,{referencePosition:{value:new el},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Hh.distanceRGBA_vert,fragmentShader:Hh.distanceRGBA_frag},shadow:{uniforms:Eh([Gh.lights,Gh.fog,{color:{value:new wf(0)},opacity:{value:1}}]),vertexShader:Hh.shadow_vert,fragmentShader:Hh.shadow_frag}};function Vh(e,t,n,r,i){var o,a,s=new wf(0),u=0,c=null,l=0,f=null;function h(e,t){n.buffers.color.setClear(e.r,e.g,e.b,t,i)}return{getClearColor:function(){return s},setClearColor:function(e,t){s.set(e),h(s,u=void 0!==t?t:1)},getClearAlpha:function(){return u},setClearAlpha:function(e){h(s,u=e)},render:function(n,i,p,d){var m=!0===i.isScene?i.background:null;m&&m.isTexture&&(m=t.get(m));var v=e.xr,g=v.getSession&&v.getSession();g&&"additive"===g.environmentBlendMode&&(m=null),null===m?h(s,u):m&&m.isColor&&(h(m,1),d=!0),(e.autoClear||d)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),m&&(m.isCubeTexture||m.isWebGLCubeRenderTarget||m.isWebGLCubeRenderTargetTexture||m.mapping===Qs)?(void 0===a&&((a=new hh(new _h(1,1,1),new Oh({name:"BackgroundCubeMaterial",uniforms:wh(Wh.cube.uniforms),vertexShader:Wh.cube.vertexShader,fragmentShader:Wh.cube.fragmentShader,side:as,depthTest:!1,depthWrite:!1,fog:!1}))).geometry.deleteAttribute("normal"),a.geometry.deleteAttribute("uv"),a.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(a.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(a)),m.isWebGLCubeRenderTarget&&(m=m.texture),a.material.uniforms.envMap.value=m,a.material.uniforms.flipEnvMap.value=m.isCubeTexture?-1:1,c===m&&l===m.version&&f===e.toneMapping||(a.material.needsUpdate=!0,c=m,l=m.version,f=e.toneMapping),n.unshift(a,a.geometry,a.material,0,0,null)):m&&m.isTexture&&(void 0===o&&((o=new hh(new zh(2,2),new Oh({name:"BackgroundMaterial",uniforms:wh(Wh.background.uniforms),vertexShader:Wh.background.vertexShader,fragmentShader:Wh.background.fragmentShader,side:os,depthTest:!1,depthWrite:!1,fog:!1}))).geometry.deleteAttribute("normal"),Object.defineProperty(o.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(o)),o.material.uniforms.t2D.value=m,!0===m.matrixAutoUpdate&&m.updateMatrix(),o.material.uniforms.uvTransform.value.copy(m.matrix),c===m&&l===m.version&&f===e.toneMapping||(o.material.needsUpdate=!0,c=m,l=m.version,f=e.toneMapping),n.unshift(o,o.geometry,o.material,0,0,null))}}}function qh(e,t,n,r){var i=e.getParameter(34921),o=r.isWebGL2?null:t.get("OES_vertex_array_object"),a=r.isWebGL2||null!==o,s={},u=h(null),c=u;function l(t){return r.isWebGL2?e.bindVertexArray(t):o.bindVertexArrayOES(t)}function f(t){return r.isWebGL2?e.deleteVertexArray(t):o.deleteVertexArrayOES(t)}function h(e){for(var t=[],n=[],r=[],o=0;o<i;o++)t[o]=0,n[o]=0,r[o]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:t,enabledAttributes:n,attributeDivisors:r,object:e,attributes:{},index:null}}function p(){for(var e=c.newAttributes,t=0,n=e.length;t<n;t++)e[t]=0}function d(e){m(e,0)}function m(n,i){var o=c.newAttributes,a=c.enabledAttributes,s=c.attributeDivisors;(o[n]=1,0===a[n]&&(e.enableVertexAttribArray(n),a[n]=1),s[n]!==i)&&((r.isWebGL2?e:t.get("ANGLE_instanced_arrays"))[r.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,i),s[n]=i)}function v(){for(var t=c.newAttributes,n=c.enabledAttributes,r=0,i=n.length;r<i;r++)n[r]!==t[r]&&(e.disableVertexAttribArray(r),n[r]=0)}function g(t,n,i,o,a,s){!0!==r.isWebGL2||5124!==i&&5125!==i?e.vertexAttribPointer(t,n,i,o,a,s):e.vertexAttribIPointer(t,n,i,a,s)}function y(){b(),c!==u&&l((c=u).object)}function b(){u.geometry=null,u.program=null,u.wireframe=!1}return{setup:function(i,u,f,y,b){var x=!1;if(a){var _=function(t,n,i){var a=!0===i.wireframe,u=s[t.id];void 0===u&&(u={},s[t.id]=u);var c=u[n.id];void 0===c&&(c={},u[n.id]=c);var l=c[a];return void 0===l&&(l=h(r.isWebGL2?e.createVertexArray():o.createVertexArrayOES()),c[a]=l),l}(y,f,u);c!==_&&l((c=_).object),(x=function(e,t){var n=c.attributes,r=e.attributes;if(Object.keys(n).length!==Object.keys(r).length)return!0;for(var i in r){var o=n[i],a=r[i];if(void 0===o)return!0;if(o.attribute!==a)return!0;if(o.data!==a.data)return!0}return c.index!==t}(y,b))&&function(e,t){var n={},r=e.attributes;for(var i in r){var o=r[i],a={};a.attribute=o,o.data&&(a.data=o.data),n[i]=a}c.attributes=n,c.index=t}(y,b)}else{var w=!0===u.wireframe;c.geometry===y.id&&c.program===f.id&&c.wireframe===w||(c.geometry=y.id,c.program=f.id,c.wireframe=w,x=!0)}!0===i.isInstancedMesh&&(x=!0),null!==b&&n.update(b,34963),x&&(function(i,o,a,s){if(!1!==r.isWebGL2||!i.isInstancedMesh&&!s.isInstancedBufferGeometry||null!==t.get("ANGLE_instanced_arrays")){p();var u=s.attributes,c=a.getAttributes(),l=o.defaultAttributeValues;for(var f in c){var h=c[f];if(h>=0){var y=u[f];if(void 0!==y){var b=y.normalized,x=y.itemSize,_=n.get(y);if(void 0===_)continue;var w=_.buffer,E=_.type,S=_.bytesPerElement;if(y.isInterleavedBufferAttribute){var T=y.data,M=T.stride,O=y.offset;T&&T.isInstancedInterleavedBuffer?(m(h,T.meshPerAttribute),void 0===s._maxInstanceCount&&(s._maxInstanceCount=T.meshPerAttribute*T.count)):d(h),e.bindBuffer(34962,w),g(h,x,E,b,M*S,O*S)}else y.isInstancedBufferAttribute?(m(h,y.meshPerAttribute),void 0===s._maxInstanceCount&&(s._maxInstanceCount=y.meshPerAttribute*y.count)):d(h),e.bindBuffer(34962,w),g(h,x,E,b,0,0)}else if("instanceMatrix"===f){var A=n.get(i.instanceMatrix);if(void 0===A)continue;var k=A.buffer,C=A.type;m(h+0,1),m(h+1,1),m(h+2,1),m(h+3,1),e.bindBuffer(34962,k),e.vertexAttribPointer(h+0,4,C,!1,64,0),e.vertexAttribPointer(h+1,4,C,!1,64,16),e.vertexAttribPointer(h+2,4,C,!1,64,32),e.vertexAttribPointer(h+3,4,C,!1,64,48)}else if("instanceColor"===f){var P=n.get(i.instanceColor);if(void 0===P)continue;var L=P.buffer,R=P.type;m(h,1),e.bindBuffer(34962,L),e.vertexAttribPointer(h,3,R,!1,12,0)}else if(void 0!==l){var j=l[f];if(void 0!==j)switch(j.length){case 2:e.vertexAttrib2fv(h,j);break;case 3:e.vertexAttrib3fv(h,j);break;case 4:e.vertexAttrib4fv(h,j);break;default:e.vertexAttrib1fv(h,j)}}}}v()}}(i,u,f,y),null!==b&&e.bindBuffer(34963,n.get(b).buffer))},reset:y,resetDefaultState:b,dispose:function(){for(var e in y(),s){var t=s[e];for(var n in t){var r=t[n];for(var i in r)f(r[i].object),delete r[i];delete t[n]}delete s[e]}},releaseStatesOfGeometry:function(e){if(void 0!==s[e.id]){var t=s[e.id];for(var n in t){var r=t[n];for(var i in r)f(r[i].object),delete r[i];delete t[n]}delete s[e.id]}},releaseStatesOfProgram:function(e){for(var t in s){var n=s[t];if(void 0!==n[e.id]){var r=n[e.id];for(var i in r)f(r[i].object),delete r[i];delete n[e.id]}}},initAttributes:p,enableAttribute:d,disableUnusedAttributes:v}}function Yh(e,t,n,r){var i,o=r.isWebGL2;this.setMode=function(e){i=e},this.render=function(t,r){e.drawArrays(i,t,r),n.update(r,i,1)},this.renderInstances=function(r,a,s){if(0!==s){var u,c;if(o)u=e,c="drawArraysInstanced";else if(c="drawArraysInstancedANGLE",null===(u=t.get("ANGLE_instanced_arrays")))return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");u[c](i,r,a,s),n.update(a,i,s)}}}function Xh(e,t,n){var r;function i(t){if("highp"===t){if(e.getShaderPrecisionFormat(35633,36338).precision>0&&e.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(35633,36337).precision>0&&e.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}var o="undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||"undefined"!=typeof WebGL2ComputeRenderingContext&&e instanceof WebGL2ComputeRenderingContext,a=void 0!==n.precision?n.precision:"highp",s=i(a);s!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",s,"instead."),a=s);var u=!0===n.logarithmicDepthBuffer,c=e.getParameter(34930),l=e.getParameter(35660),f=e.getParameter(3379),h=e.getParameter(34076),p=e.getParameter(34921),d=e.getParameter(36347),m=e.getParameter(36348),v=e.getParameter(36349),g=l>0,y=o||!!t.get("OES_texture_float");return{isWebGL2:o,getMaxAnisotropy:function(){if(void 0!==r)return r;var n=t.get("EXT_texture_filter_anisotropic");return r=null!==n?e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0},getMaxPrecision:i,precision:a,logarithmicDepthBuffer:u,maxTextures:c,maxVertexTextures:l,maxTextureSize:f,maxCubemapSize:h,maxAttributes:p,maxVertexUniforms:d,maxVaryings:m,maxFragmentUniforms:v,vertexTextures:g,floatFragmentTextures:y,floatVertexTextures:g&&y,maxSamples:o?e.getParameter(36183):0}}function Zh(e){var t=this,n=null,r=0,i=!1,o=!1,a=new rf,s=new qc,u={value:null,needsUpdate:!1};function c(){u.value!==n&&(u.value=n,u.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function l(e,n,r,i){var o=null!==e?e.length:0,c=null;if(0!==o){if(c=u.value,!0!==i||null===c){var l=r+4*o,f=n.matrixWorldInverse;s.getNormalMatrix(f),(null===c||c.length<l)&&(c=new Float32Array(l));for(var h=0,p=r;h!==o;++h,p+=4)a.copy(e[h]).applyMatrix4(f,s),a.normal.toArray(c,p),c[p+3]=a.constant}u.value=c,u.needsUpdate=!0}return t.numPlanes=o,t.numIntersection=0,c}this.uniform=u,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t,o){var a=0!==e.length||t||0!==r||i;return i=t,n=l(e,o,0),r=e.length,a},this.beginShadows=function(){o=!0,l(null)},this.endShadows=function(){o=!1,c()},this.setState=function(t,a,s){var f=t.clippingPlanes,h=t.clipIntersection,p=t.clipShadows,d=e.get(t);if(!i||null===f||0===f.length||o&&!p)o?l(null):c();else{var m=o?0:r,v=4*m,g=d.clippingState||null;u.value=g,g=l(f,a,v,s);for(var y=0;y!==v;++y)g[y]=n[y];d.clippingState=g,this.numIntersection=h?this.numPlanes:0,this.numPlanes+=m}}}function Jh(e){var t=new WeakMap;function n(e,t){return t===Zs?e.mapping=Ys:t===Js&&(e.mapping=Xs),e}return{get:function(r){if(r&&r.isTexture){var i=r.mapping;if(i===Zs||i===Js){if(t.has(r))return n(t.get(r).texture,r.mapping);var o=r.image;if(o&&o.height>0){var a=e.getRenderList(),s=e.getRenderTarget(),u=e.getRenderState(),c=new Rh(o.height/2);return c.fromEquirectangularTexture(e,r),t.set(r,c),e.setRenderTarget(s),e.setRenderList(a),e.setRenderState(u),n(c.texture,r.mapping)}return null}}return r},dispose:function(){t=new WeakMap}}}function Qh(e){var t={};return{has:function(n){if(void 0!==t[n])return null!==t[n];var r;switch(n){case"WEBGL_depth_texture":r=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":r=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":r=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:r=e.getExtension(n)}return t[n]=r,null!==r},get:function(e){return this.has(e)||console.warn("THREE.WebGLRenderer: "+e+" extension not supported."),t[e]}}}function Kh(e,t,n,r){var i=new WeakMap,o=new WeakMap;function a(e){var s=e.target,u=i.get(s);for(var c in null!==u.index&&t.remove(u.index),u.attributes)t.remove(u.attributes[c]);s.removeEventListener("dispose",a),i.delete(s);var l=o.get(u);l&&(t.remove(l),o.delete(u)),r.releaseStatesOfGeometry(s),!0===s.isInstancedBufferGeometry&&delete s._maxInstanceCount,n.memory.geometries--}function s(e){var n=[],r=e.index,i=e.attributes.position,a=0;if(null!==r){var s=r.array;a=r.version;for(var u=0,c=s.length;u<c;u+=3){var l=s[u+0],f=s[u+1],h=s[u+2];n.push(l,f,f,h,h,l)}}else{var p=i.array;a=i.version;for(var d=0,m=p.length/3-1;d<m;d+=3){var v=d+0,g=d+1,y=d+2;n.push(v,g,g,y,y,v)}}var b=new(Uf(n)>65535?If:jf)(n,1);b.version=a;var x=o.get(e);x&&t.remove(x),o.set(e,b)}return{get:function(e,t){var r=i.get(t);return r||(t.addEventListener("dispose",a),t.isBufferGeometry?r=t:t.isGeometry&&(void 0===t._bufferGeometry&&(t._bufferGeometry=(new Xf).setFromObject(e)),r=t._bufferGeometry),i.set(t,r),n.memory.geometries++,r)},update:function(e){var n=e.attributes;for(var r in n)t.update(n[r],34962);var i=e.morphAttributes;for(var o in i)for(var a=i[o],s=0,u=a.length;s<u;s++)t.update(a[s],34962)},getWireframeAttribute:function(e){var t=o.get(e);if(t){var n=e.index;null!==n&&t.version<n.version&&s(e)}else s(e);return o.get(e)}}}function $h(e,t,n,r){var i,o,a,s=r.isWebGL2;this.setMode=function(e){i=e},this.setIndex=function(e){o=e.type,a=e.bytesPerElement},this.render=function(t,r){e.drawElements(i,r,o,t*a),n.update(r,i,1)},this.renderInstances=function(r,u,c){if(0!==c){var l,f;if(s)l=e,f="drawElementsInstanced";else if(f="drawElementsInstancedANGLE",null===(l=t.get("ANGLE_instanced_arrays")))return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");l[f](i,u,o,r*a,c),n.update(u,i,c)}}}function ep(e){var t={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:t,programs:null,autoReset:!0,reset:function(){t.frame++,t.calls=0,t.triangles=0,t.points=0,t.lines=0},update:function(e,n,r){switch(t.calls++,n){case 4:t.triangles+=r*(e/3);break;case 1:t.lines+=r*(e/2);break;case 3:t.lines+=r*(e-1);break;case 2:t.lines+=r*e;break;case 0:t.points+=r*e;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",n)}}}}function tp(e,t){return e[0]-t[0]}function np(e,t){return Math.abs(t[1])-Math.abs(e[1])}function rp(e){for(var t={},n=new Float32Array(8),r=[],i=0;i<8;i++)r[i]=[i,0];return{update:function(i,o,a,s){var u=i.morphTargetInfluences,c=void 0===u?0:u.length,l=t[o.id];if(void 0===l){l=[];for(var f=0;f<c;f++)l[f]=[f,0];t[o.id]=l}for(var h=0;h<c;h++){var p=l[h];p[0]=h,p[1]=u[h]}l.sort(np);for(var d=0;d<8;d++)d<c&&l[d][1]?(r[d][0]=l[d][0],r[d][1]=l[d][1]):(r[d][0]=Number.MAX_SAFE_INTEGER,r[d][1]=0);r.sort(tp);for(var m=a.morphTargets&&o.morphAttributes.position,v=a.morphNormals&&o.morphAttributes.normal,g=0,y=0;y<8;y++){var b=r[y],x=b[0],_=b[1];x!==Number.MAX_SAFE_INTEGER&&_?(m&&o.getAttribute("morphTarget"+y)!==m[x]&&o.setAttribute("morphTarget"+y,m[x]),v&&o.getAttribute("morphNormal"+y)!==v[x]&&o.setAttribute("morphNormal"+y,v[x]),n[y]=_,g+=_):(m&&void 0!==o.getAttribute("morphTarget"+y)&&o.deleteAttribute("morphTarget"+y),v&&void 0!==o.getAttribute("morphNormal"+y)&&o.deleteAttribute("morphNormal"+y),n[y]=0)}var w=o.morphTargetsRelative?1:1-g;s.getUniforms().setValue(e,"morphTargetBaseInfluence",w),s.getUniforms().setValue(e,"morphTargetInfluences",n)}}}function ip(e,t,n,r){var i=new WeakMap;return{update:function(e){var o=r.render.frame,a=e.geometry,s=t.get(e,a);return i.get(s)!==o&&(a.isGeometry&&s.updateFromObject(e),t.update(s),i.set(s,o)),e.isInstancedMesh&&(n.update(e.instanceMatrix,34962),null!==e.instanceColor&&n.update(e.instanceColor,34962)),s},dispose:function(){i=new WeakMap}}}function op(e,t,n,r,i,o,a,s,u,c){e=void 0!==e?e:[],t=void 0!==t?t:Ys,a=void 0!==a?a:_u,Zc.call(this,e,t,n,r,i,o,a,s,u,c),this.flipY=!1}function ap(e,t,n,r){Zc.call(this,null),this.image={data:e||null,width:t||1,height:n||1,depth:r||1},this.magFilter=nu,this.minFilter=nu,this.wrapR=eu,this.generateMipmaps=!1,this.flipY=!1,this.needsUpdate=!0}function sp(e,t,n,r){Zc.call(this,null),this.image={data:e||null,width:t||1,height:n||1,depth:r||1},this.magFilter=nu,this.minFilter=nu,this.wrapR=eu,this.generateMipmaps=!1,this.flipY=!1,this.needsUpdate=!0}Wh.physical={uniforms:Eh([Wh.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new Vc(1,1)},clearcoatNormalMap:{value:null},sheen:{value:new wf(0)},transmission:{value:0},transmissionMap:{value:null}}]),vertexShader:Hh.meshphysical_vert,fragmentShader:Hh.meshphysical_frag},op.prototype=Object.create(Zc.prototype),op.prototype.constructor=op,op.prototype.isCubeTexture=!0,Object.defineProperty(op.prototype,"images",{get:function(){return this.image},set:function(e){this.image=e}}),ap.prototype=Object.create(Zc.prototype),ap.prototype.constructor=ap,ap.prototype.isDataTexture2DArray=!0,sp.prototype=Object.create(Zc.prototype),sp.prototype.constructor=sp,sp.prototype.isDataTexture3D=!0;var up=new Zc,cp=new ap,lp=new sp,fp=new op,hp=[],pp=[],dp=new Float32Array(16),mp=new Float32Array(9),vp=new Float32Array(4);function gp(e,t,n){var r=e[0];if(r<=0||r>0)return e;var i=t*n,o=hp[i];if(void 0===o&&(o=new Float32Array(i),hp[i]=o),0!==t){r.toArray(o,0);for(var a=1,s=0;a!==t;++a)s+=n,e[a].toArray(o,s)}return o}function yp(e,t){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function bp(e,t){for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}function xp(e,t){var n=pp[t];void 0===n&&(n=new Int32Array(t),pp[t]=n);for(var r=0;r!==t;++r)n[r]=e.allocateTextureUnit();return n}function _p(e,t){var n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function wp(e,t){var n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2f(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(yp(n,t))return;e.uniform2fv(this.addr,t),bp(n,t)}}function Ep(e,t){var n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3f(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else if(void 0!==t.r)n[0]===t.r&&n[1]===t.g&&n[2]===t.b||(e.uniform3f(this.addr,t.r,t.g,t.b),n[0]=t.r,n[1]=t.g,n[2]=t.b);else{if(yp(n,t))return;e.uniform3fv(this.addr,t),bp(n,t)}}function Sp(e,t){var n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4f(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(yp(n,t))return;e.uniform4fv(this.addr,t),bp(n,t)}}function Tp(e,t){var n=this.cache,r=t.elements;if(void 0===r){if(yp(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),bp(n,t)}else{if(yp(n,r))return;vp.set(r),e.uniformMatrix2fv(this.addr,!1,vp),bp(n,r)}}function Mp(e,t){var n=this.cache,r=t.elements;if(void 0===r){if(yp(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),bp(n,t)}else{if(yp(n,r))return;mp.set(r),e.uniformMatrix3fv(this.addr,!1,mp),bp(n,r)}}function Op(e,t){var n=this.cache,r=t.elements;if(void 0===r){if(yp(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),bp(n,t)}else{if(yp(n,r))return;dp.set(r),e.uniformMatrix4fv(this.addr,!1,dp),bp(n,r)}}function Ap(e,t,n){var r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.safeSetTexture2D(t||up,i)}function kp(e,t,n){var r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture2DArray(t||cp,i)}function Cp(e,t,n){var r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture3D(t||lp,i)}function Pp(e,t,n){var r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.safeSetTextureCube(t||fp,i)}function Lp(e,t){var n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function Rp(e,t){var n=this.cache;yp(n,t)||(e.uniform2iv(this.addr,t),bp(n,t))}function jp(e,t){var n=this.cache;yp(n,t)||(e.uniform3iv(this.addr,t),bp(n,t))}function Np(e,t){var n=this.cache;yp(n,t)||(e.uniform4iv(this.addr,t),bp(n,t))}function Ip(e,t){var n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}function Dp(e,t){e.uniform1fv(this.addr,t)}function Bp(e,t){e.uniform1iv(this.addr,t)}function Fp(e,t){e.uniform2iv(this.addr,t)}function Up(e,t){e.uniform3iv(this.addr,t)}function zp(e,t){e.uniform4iv(this.addr,t)}function Hp(e,t){var n=gp(t,this.size,2);e.uniform2fv(this.addr,n)}function Gp(e,t){var n=gp(t,this.size,3);e.uniform3fv(this.addr,n)}function Wp(e,t){var n=gp(t,this.size,4);e.uniform4fv(this.addr,n)}function Vp(e,t){var n=gp(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,n)}function qp(e,t){var n=gp(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,n)}function Yp(e,t){var n=gp(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,n)}function Xp(e,t,n){var r=t.length,i=xp(n,r);e.uniform1iv(this.addr,i);for(var o=0;o!==r;++o)n.safeSetTexture2D(t[o]||up,i[o])}function Zp(e,t,n){var r=t.length,i=xp(n,r);e.uniform1iv(this.addr,i);for(var o=0;o!==r;++o)n.safeSetTextureCube(t[o]||fp,i[o])}function Jp(e,t,n){this.id=e,this.addr=n,this.cache=[],this.setValue=function(e){switch(e){case 5126:return _p;case 35664:return wp;case 35665:return Ep;case 35666:return Sp;case 35674:return Tp;case 35675:return Mp;case 35676:return Op;case 5124:case 35670:return Lp;case 35667:case 35671:return Rp;case 35668:case 35672:return jp;case 35669:case 35673:return Np;case 5125:return Ip;case 35678:case 36198:case 36298:case 36306:case 35682:return Ap;case 35679:case 36299:case 36307:return Cp;case 35680:case 36300:case 36308:case 36293:return Pp;case 36289:case 36303:case 36311:case 36292:return kp}}(t.type)}function Qp(e,t,n){this.id=e,this.addr=n,this.cache=[],this.size=t.size,this.setValue=function(e){switch(e){case 5126:return Dp;case 35664:return Hp;case 35665:return Gp;case 35666:return Wp;case 35674:return Vp;case 35675:return qp;case 35676:return Yp;case 5124:case 35670:return Bp;case 35667:case 35671:return Fp;case 35668:case 35672:return Up;case 35669:case 35673:return zp;case 35678:case 36198:case 36298:case 36306:case 35682:return Xp;case 35680:case 36300:case 36308:case 36293:return Zp}}(t.type)}function Kp(e){this.id=e,this.seq=[],this.map={}}Qp.prototype.updateCache=function(e){var t=this.cache;e instanceof Float32Array&&t.length!==e.length&&(this.cache=new Float32Array(e.length)),bp(t,e)},Kp.prototype.setValue=function(e,t,n){for(var r=this.seq,i=0,o=r.length;i!==o;++i){var a=r[i];a.setValue(e,t[a.id],n)}};var $p=/([\w\d_]+)(\])?(\[|\.)?/g;function ed(e,t){e.seq.push(t),e.map[t.id]=t}function td(e,t,n){var r=e.name,i=r.length;for($p.lastIndex=0;;){var o=$p.exec(r),a=$p.lastIndex,s=o[1],u="]"===o[2],c=o[3];if(u&&(s|=0),void 0===c||"["===c&&a+2===i){ed(n,void 0===c?new Jp(s,e,t):new Qp(s,e,t));break}var l=n.map[s];void 0===l&&ed(n,l=new Kp(s)),n=l}}function nd(e,t){this.seq=[],this.map={};for(var n=e.getProgramParameter(t,35718),r=0;r<n;++r){var i=e.getActiveUniform(t,r);td(i,e.getUniformLocation(t,i.name),this)}}function rd(e,t,n){var r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}nd.prototype.setValue=function(e,t,n,r){var i=this.map[t];void 0!==i&&i.setValue(e,n,r)},nd.prototype.setOptional=function(e,t,n){var r=t[n];void 0!==r&&this.setValue(e,n,r)},nd.upload=function(e,t,n,r){for(var i=0,o=t.length;i!==o;++i){var a=t[i],s=n[a.id];!1!==s.needsUpdate&&a.setValue(e,s.value,r)}},nd.seqWithValue=function(e,t){for(var n=[],r=0,i=e.length;r!==i;++r){var o=e[r];o.id in t&&n.push(o)}return n};var id=0;function od(e){switch(e){case wc:return["Linear","( value )"];case Ec:return["sRGB","( value )"];case Tc:return["RGBE","( value )"];case Oc:return["RGBM","( value, 7.0 )"];case Ac:return["RGBM","( value, 16.0 )"];case kc:return["RGBD","( value, 256.0 )"];case Sc:return["Gamma","( value, float( GAMMA_FACTOR ) )"];case Mc:return["LogLuv","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",e),["Linear","( value )"]}}function ad(e,t,n){var r=e.getShaderParameter(t,35713),i=e.getShaderInfoLog(t).trim();return r&&""===i?"":"THREE.WebGLShader: gl.getShaderInfoLog() "+n+"\n"+i+function(e){for(var t=e.split("\n"),n=0;n<t.length;n++)t[n]=n+1+": "+t[n];return t.join("\n")}(e.getShaderSource(t))}function sd(e,t){var n=od(t);return"vec4 "+e+"( vec4 value ) { return "+n[0]+"ToLinear"+n[1]+"; }"}function ud(e,t){var n;switch(t){case Hs:n="Linear";break;case Gs:n="Reinhard";break;case Ws:n="OptimizedCineon";break;case Vs:n="ACESFilmic";break;case qs:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function cd(e){return""!==e}function ld(e,t){return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function fd(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}var hd=/^[ \t]*#include +<([\w\d./]+)>/gm;function pd(e){return e.replace(hd,dd)}function dd(e,t){var n=Hh[t];if(void 0===n)throw new Error("Can not resolve #include <"+t+">");return pd(n)}var md=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,vd=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function gd(e){return e.replace(vd,bd).replace(md,yd)}function yd(e,t,n,r){return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),bd(e,t,n,r)}function bd(e,t,n,r){for(var i="",o=parseInt(t);o<parseInt(n);o++)i+=r.replace(/\[\s*i\s*\]/g,"[ "+o+" ]").replace(/UNROLLED_LOOP_INDEX/g,o);return i}function xd(e){var t="precision "+e.precision+" float;\nprecision "+e.precision+" int;";return"highp"===e.precision?t+="\n#define HIGH_PRECISION":"mediump"===e.precision?t+="\n#define MEDIUM_PRECISION":"lowp"===e.precision&&(t+="\n#define LOW_PRECISION"),t}function _d(e,t,n,r){var i,o,a,s,u,c=e.getContext(),l=n.defines,f=n.vertexShader,h=n.fragmentShader,p=function(e){var t="SHADOWMAP_TYPE_BASIC";return e.shadowMapType===ns?t="SHADOWMAP_TYPE_PCF":e.shadowMapType===rs?t="SHADOWMAP_TYPE_PCF_SOFT":e.shadowMapType===is&&(t="SHADOWMAP_TYPE_VSM"),t}(n),d=function(e){var t="ENVMAP_TYPE_CUBE";if(e.envMap)switch(e.envMapMode){case Ys:case Xs:t="ENVMAP_TYPE_CUBE";break;case Qs:case Ks:t="ENVMAP_TYPE_CUBE_UV"}return t}(n),m=function(e){var t="ENVMAP_MODE_REFLECTION";if(e.envMap)switch(e.envMapMode){case Xs:case Ks:t="ENVMAP_MODE_REFRACTION"}return t}(n),v=function(e){var t="ENVMAP_BLENDING_NONE";if(e.envMap)switch(e.combine){case Bs:t="ENVMAP_BLENDING_MULTIPLY";break;case Fs:t="ENVMAP_BLENDING_MIX";break;case Us:t="ENVMAP_BLENDING_ADD"}return t}(n),g=e.gammaFactor>0?e.gammaFactor:1,y=n.isWebGL2?"":function(e){return[e.extensionDerivatives||e.envMapCubeUV||e.bumpMap||e.tangentSpaceNormalMap||e.clearcoatNormalMap||e.flatShading||"physical"===e.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(e.extensionFragDepth||e.logarithmicDepthBuffer)&&e.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",e.extensionDrawBuffers&&e.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(e.extensionShaderTextureLOD||e.envMap)&&e.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(cd).join("\n")}(n),b=function(e){var t=[];for(var n in e){var r=e[n];!1!==r&&t.push("#define "+n+" "+r)}return t.join("\n")}(l),x=c.createProgram(),_=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?((i=[b].filter(cd).join("\n")).length>0&&(i+="\n"),(o=[y,b].filter(cd).join("\n")).length>0&&(o+="\n")):(i=[xd(n),"#define SHADER_NAME "+n.shaderName,b,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+g,"#define MAX_BONES "+n.maxBones,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+m:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.useVertexTexture?"#define BONE_TEXTURE":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+p:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#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(cd).join("\n"),o=[y,xd(n),"#define SHADER_NAME "+n.shaderName,b,n.alphaTest?"#define ALPHATEST "+n.alphaTest+(n.alphaTest%1?"":".0"):"","#define GAMMA_FACTOR "+g,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.envMap?"#define "+m:"",n.envMap?"#define "+v:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.sheen?"#define USE_SHEEN":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+p:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"",(n.extensionShaderTextureLOD||n.envMap)&&n.rendererExtensionShaderTextureLod?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==zs?"#define TONE_MAPPING":"",n.toneMapping!==zs?Hh.tonemapping_pars_fragment:"",n.toneMapping!==zs?ud("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",Hh.encodings_pars_fragment,n.map?sd("mapTexelToLinear",n.mapEncoding):"",n.matcap?sd("matcapTexelToLinear",n.matcapEncoding):"",n.envMap?sd("envMapTexelToLinear",n.envMapEncoding):"",n.emissiveMap?sd("emissiveMapTexelToLinear",n.emissiveMapEncoding):"",n.lightMap?sd("lightMapTexelToLinear",n.lightMapEncoding):"",(a="linearToOutputTexel",s=n.outputEncoding,u=od(s),"vec4 "+a+"( vec4 value ) { return LinearTo"+u[0]+u[1]+"; }"),n.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(cd).join("\n")),f=fd(f=ld(f=pd(f),n),n),h=fd(h=ld(h=pd(h),n),n),f=gd(f),h=gd(h),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(_="#version 300 es\n",i=["#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+i,o=["#define varying in",n.glslVersion===Bc?"":"out highp vec4 pc_fragColor;",n.glslVersion===Bc?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+o);var w,E,S=_+o+h,T=rd(c,35633,_+i+f),M=rd(c,35632,S);if(c.attachShader(x,T),c.attachShader(x,M),void 0!==n.index0AttributeName?c.bindAttribLocation(x,0,n.index0AttributeName):!0===n.morphTargets&&c.bindAttribLocation(x,0,"position"),c.linkProgram(x),e.debug.checkShaderErrors){var O=c.getProgramInfoLog(x).trim(),A=c.getShaderInfoLog(T).trim(),k=c.getShaderInfoLog(M).trim(),C=!0,P=!0;if(!1===c.getProgramParameter(x,35714)){C=!1;var L=ad(c,T,"vertex"),R=ad(c,M,"fragment");console.error("THREE.WebGLProgram: shader error: ",c.getError(),"35715",c.getProgramParameter(x,35715),"gl.getProgramInfoLog",O,L,R)}else""!==O?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",O):""!==A&&""!==k||(P=!1);P&&(this.diagnostics={runnable:C,programLog:O,vertexShader:{log:A,prefix:i},fragmentShader:{log:k,prefix:o}})}return c.deleteShader(T),c.deleteShader(M),this.getUniforms=function(){return void 0===w&&(w=new nd(c,x)),w},this.getAttributes=function(){return void 0===E&&(E=function(e,t){for(var n={},r=e.getProgramParameter(t,35721),i=0;i<r;i++){var o=e.getActiveAttrib(t,i).name;n[o]=e.getAttribLocation(t,o)}return n}(c,x)),E},this.destroy=function(){r.releaseStatesOfProgram(this),c.deleteProgram(x),this.program=void 0},this.name=n.shaderName,this.id=id++,this.cacheKey=t,this.usedTimes=1,this.program=x,this.vertexShader=T,this.fragmentShader=M,this}function wd(e,t,n,r,i,o){var a=[],s=r.isWebGL2,u=r.logarithmicDepthBuffer,c=r.floatVertexTextures,l=r.maxVertexUniforms,f=r.vertexTextures,h=r.precision,p={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"},d=["precision","isWebGL2","supportsVertexTextures","outputEncoding","instancing","instancingColor","map","mapEncoding","matcap","matcapEncoding","envMap","envMapMode","envMapEncoding","envMapCubeUV","lightMap","lightMapEncoding","aoMap","emissiveMap","emissiveMapEncoding","bumpMap","normalMap","objectSpaceNormalMap","tangentSpaceNormalMap","clearcoatMap","clearcoatRoughnessMap","clearcoatNormalMap","displacementMap","specularMap","roughnessMap","metalnessMap","gradientMap","alphaMap","combine","vertexColors","vertexTangents","vertexUvs","uvsVertexOnly","fog","useFog","fogExp2","flatShading","sizeAttenuation","logarithmicDepthBuffer","skinning","maxBones","useVertexTexture","morphTargets","morphNormals","maxMorphTargets","maxMorphNormals","premultipliedAlpha","numDirLights","numPointLights","numSpotLights","numHemiLights","numRectAreaLights","numDirLightShadows","numPointLightShadows","numSpotLightShadows","shadowMapEnabled","shadowMapType","toneMapping","physicallyCorrectLights","alphaTest","doubleSided","flipSided","numClippingPlanes","numClipIntersection","depthPacking","dithering","sheen","transmissionMap"];function m(e){var t;return e?e.isTexture?t=e.encoding:e.isWebGLRenderTarget&&(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),t=e.texture.encoding):t=wc,t}return{getParameters:function(i,a,d,v,g){var y,b,x=v.fog,_=i.isMeshStandardMaterial?v.environment:null,w=t.get(i.envMap||_),E=p[i.type],S=g.isSkinnedMesh?function(e){var t=e.skeleton.bones;if(c)return 1024;var n=l,r=Math.floor((n-20)/4),i=Math.min(r,t.length);return i<t.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+t.length+" bones. This GPU supports "+i+"."),0):i}(g):0;if(null!==i.precision&&(h=r.getMaxPrecision(i.precision))!==i.precision&&console.warn("THREE.WebGLProgram.getParameters:",i.precision,"not supported, using",h,"instead."),E){var T=Wh[E];y=T.vertexShader,b=T.fragmentShader}else y=i.vertexShader,b=i.fragmentShader;var M=e.getRenderTarget();return{isWebGL2:s,shaderID:E,shaderName:i.type,vertexShader:y,fragmentShader:b,defines:i.defines,isRawShaderMaterial:!0===i.isRawShaderMaterial,glslVersion:i.glslVersion,precision:h,instancing:!0===g.isInstancedMesh,instancingColor:!0===g.isInstancedMesh&&null!==g.instanceColor,supportsVertexTextures:f,outputEncoding:null!==M?m(M.texture):e.outputEncoding,map:!!i.map,mapEncoding:m(i.map),matcap:!!i.matcap,matcapEncoding:m(i.matcap),envMap:!!w,envMapMode:w&&w.mapping,envMapEncoding:m(w),envMapCubeUV:!!w&&(w.mapping===Qs||w.mapping===Ks),lightMap:!!i.lightMap,lightMapEncoding:m(i.lightMap),aoMap:!!i.aoMap,emissiveMap:!!i.emissiveMap,emissiveMapEncoding:m(i.emissiveMap),bumpMap:!!i.bumpMap,normalMap:!!i.normalMap,objectSpaceNormalMap:i.normalMapType===Rc,tangentSpaceNormalMap:i.normalMapType===Lc,clearcoatMap:!!i.clearcoatMap,clearcoatRoughnessMap:!!i.clearcoatRoughnessMap,clearcoatNormalMap:!!i.clearcoatNormalMap,displacementMap:!!i.displacementMap,roughnessMap:!!i.roughnessMap,metalnessMap:!!i.metalnessMap,specularMap:!!i.specularMap,alphaMap:!!i.alphaMap,gradientMap:!!i.gradientMap,sheen:!!i.sheen,transmissionMap:!!i.transmissionMap,combine:i.combine,vertexTangents:i.normalMap&&i.vertexTangents,vertexColors:i.vertexColors,vertexUvs:!!(i.map||i.bumpMap||i.normalMap||i.specularMap||i.alphaMap||i.emissiveMap||i.roughnessMap||i.metalnessMap||i.clearcoatMap||i.clearcoatRoughnessMap||i.clearcoatNormalMap||i.displacementMap||i.transmissionMap),uvsVertexOnly:!(i.map||i.bumpMap||i.normalMap||i.specularMap||i.alphaMap||i.emissiveMap||i.roughnessMap||i.metalnessMap||i.clearcoatNormalMap||i.transmissionMap||!i.displacementMap),fog:!!x,useFog:i.fog,fogExp2:x&&x.isFogExp2,flatShading:i.flatShading,sizeAttenuation:i.sizeAttenuation,logarithmicDepthBuffer:u,skinning:i.skinning&&S>0,maxBones:S,useVertexTexture:c,morphTargets:i.morphTargets,morphNormals:i.morphNormals,maxMorphTargets:e.maxMorphTargets,maxMorphNormals:e.maxMorphNormals,numDirLights:a.directional.length,numPointLights:a.point.length,numSpotLights:a.spot.length,numRectAreaLights:a.rectArea.length,numHemiLights:a.hemi.length,numDirLightShadows:a.directionalShadowMap.length,numPointLightShadows:a.pointShadowMap.length,numSpotLightShadows:a.spotShadowMap.length,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:i.dithering,shadowMapEnabled:e.shadowMap.enabled&&d.length>0,shadowMapType:e.shadowMap.type,toneMapping:i.toneMapped?e.toneMapping:zs,physicallyCorrectLights:e.physicallyCorrectLights,premultipliedAlpha:i.premultipliedAlpha,alphaTest:i.alphaTest,doubleSided:i.side===ss,flipSided:i.side===as,depthPacking:void 0!==i.depthPacking&&i.depthPacking,index0AttributeName:i.index0AttributeName,extensionDerivatives:i.extensions&&i.extensions.derivatives,extensionFragDepth:i.extensions&&i.extensions.fragDepth,extensionDrawBuffers:i.extensions&&i.extensions.drawBuffers,extensionShaderTextureLOD:i.extensions&&i.extensions.shaderTextureLOD,rendererExtensionFragDepth:s||n.has("EXT_frag_depth"),rendererExtensionDrawBuffers:s||n.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:s||n.has("EXT_shader_texture_lod"),customProgramCacheKey:i.customProgramCacheKey()}},getProgramCacheKey:function(t){var n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.fragmentShader),n.push(t.vertexShader)),void 0!==t.defines)for(var r in t.defines)n.push(r),n.push(t.defines[r]);if(!1===t.isRawShaderMaterial){for(var i=0;i<d.length;i++)n.push(t[d[i]]);n.push(e.outputEncoding),n.push(e.gammaFactor)}return n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){var t,n=p[e.type];if(n){var r=Wh[n];t=Sh.clone(r.uniforms)}else t=e.uniforms;return t},acquireProgram:function(t,n){for(var r,o=0,s=a.length;o<s;o++){var u=a[o];if(u.cacheKey===n){++(r=u).usedTimes;break}}return void 0===r&&(r=new _d(e,n,t,i),a.push(r)),r},releaseProgram:function(e){if(0==--e.usedTimes){var t=a.indexOf(e);a[t]=a[a.length-1],a.pop(),e.destroy()}},programs:a}}function Ed(){var e=new WeakMap;return{get:function(t){var n=e.get(t);return void 0===n&&(n={},e.set(t,n)),n},remove:function(t){e.delete(t)},update:function(t,n,r){e.get(t)[n]=r},dispose:function(){e=new WeakMap}}}function Sd(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.program!==t.program?e.program.id-t.program.id:e.material.id!==t.material.id?e.material.id-t.material.id:e.z!==t.z?e.z-t.z:e.id-t.id}function Td(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.z!==t.z?t.z-e.z:e.id-t.id}function Md(e){var t=[],n=0,r=[],i=[],o={id:-1};function a(r,i,a,s,u,c){var l=t[n],f=e.get(a);return void 0===l?(l={id:r.id,object:r,geometry:i,material:a,program:f.program||o,groupOrder:s,renderOrder:r.renderOrder,z:u,group:c},t[n]=l):(l.id=r.id,l.object=r,l.geometry=i,l.material=a,l.program=f.program||o,l.groupOrder=s,l.renderOrder=r.renderOrder,l.z=u,l.group=c),n++,l}return{opaque:r,transparent:i,init:function(){n=0,r.length=0,i.length=0},push:function(e,t,n,o,s,u){var c=a(e,t,n,o,s,u);(!0===n.transparent?i:r).push(c)},unshift:function(e,t,n,o,s,u){var c=a(e,t,n,o,s,u);(!0===n.transparent?i:r).unshift(c)},finish:function(){for(var e=n,r=t.length;e<r;e++){var i=t[e];if(null===i.id)break;i.id=null,i.object=null,i.geometry=null,i.material=null,i.program=null,i.group=null}},sort:function(e,t){r.length>1&&r.sort(e||Sd),i.length>1&&i.sort(t||Td)}}}function Od(e){var t=new WeakMap;return{get:function(n,r){var i,o=t.get(n);return void 0===o?(i=new Md(e),t.set(n,new WeakMap),t.get(n).set(r,i)):void 0===(i=o.get(r))&&(i=new Md(e),o.set(r,i)),i},dispose:function(){t=new WeakMap}}}function Ad(){var e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];var n;switch(t.type){case"DirectionalLight":n={direction:new el,color:new wf};break;case"SpotLight":n={position:new el,direction:new el,color:new wf,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new el,color:new wf,distance:0,decay:0};break;case"HemisphereLight":n={direction:new el,skyColor:new wf,groundColor:new wf};break;case"RectAreaLight":n={color:new wf,position:new el,halfWidth:new el,halfHeight:new el}}return e[t.id]=n,n}}}var kd=0;function Cd(e,t){return(t.castShadow?1:0)-(e.castShadow?1:0)}function Pd(){for(var e,t=new Ad,n=(e={},{get:function(t){if(void 0!==e[t.id])return e[t.id];var n;switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Vc};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Vc,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]},i=0;i<9;i++)r.probe.push(new el);var o=new el,a=new Al,s=new Al;return{setup:function(e,i,u){for(var c=0,l=0,f=0,h=0;h<9;h++)r.probe[h].set(0,0,0);var p=0,d=0,m=0,v=0,g=0,y=0,b=0,x=0,_=u.matrixWorldInverse;e.sort(Cd);for(var w=0,E=e.length;w<E;w++){var S=e[w],T=S.color,M=S.intensity,O=S.distance,A=S.shadow&&S.shadow.map?S.shadow.map.texture:null;if(S.isAmbientLight)c+=T.r*M,l+=T.g*M,f+=T.b*M;else if(S.isLightProbe)for(var k=0;k<9;k++)r.probe[k].addScaledVector(S.sh.coefficients[k],M);else if(S.isDirectionalLight){var C=t.get(S);if(C.color.copy(S.color).multiplyScalar(S.intensity),C.direction.setFromMatrixPosition(S.matrixWorld),o.setFromMatrixPosition(S.target.matrixWorld),C.direction.sub(o),C.direction.transformDirection(_),S.castShadow){var P=S.shadow,L=n.get(S);L.shadowBias=P.bias,L.shadowNormalBias=P.normalBias,L.shadowRadius=P.radius,L.shadowMapSize=P.mapSize,r.directionalShadow[p]=L,r.directionalShadowMap[p]=A,r.directionalShadowMatrix[p]=S.shadow.matrix,y++}r.directional[p]=C,p++}else if(S.isSpotLight){var R=t.get(S);if(R.position.setFromMatrixPosition(S.matrixWorld),R.position.applyMatrix4(_),R.color.copy(T).multiplyScalar(M),R.distance=O,R.direction.setFromMatrixPosition(S.matrixWorld),o.setFromMatrixPosition(S.target.matrixWorld),R.direction.sub(o),R.direction.transformDirection(_),R.coneCos=Math.cos(S.angle),R.penumbraCos=Math.cos(S.angle*(1-S.penumbra)),R.decay=S.decay,S.castShadow){var j=S.shadow,N=n.get(S);N.shadowBias=j.bias,N.shadowNormalBias=j.normalBias,N.shadowRadius=j.radius,N.shadowMapSize=j.mapSize,r.spotShadow[m]=N,r.spotShadowMap[m]=A,r.spotShadowMatrix[m]=S.shadow.matrix,x++}r.spot[m]=R,m++}else if(S.isRectAreaLight){var I=t.get(S);I.color.copy(T).multiplyScalar(M),I.position.setFromMatrixPosition(S.matrixWorld),I.position.applyMatrix4(_),s.identity(),a.copy(S.matrixWorld),a.premultiply(_),s.extractRotation(a),I.halfWidth.set(.5*S.width,0,0),I.halfHeight.set(0,.5*S.height,0),I.halfWidth.applyMatrix4(s),I.halfHeight.applyMatrix4(s),r.rectArea[v]=I,v++}else if(S.isPointLight){var D=t.get(S);if(D.position.setFromMatrixPosition(S.matrixWorld),D.position.applyMatrix4(_),D.color.copy(S.color).multiplyScalar(S.intensity),D.distance=S.distance,D.decay=S.decay,S.castShadow){var B=S.shadow,F=n.get(S);F.shadowBias=B.bias,F.shadowNormalBias=B.normalBias,F.shadowRadius=B.radius,F.shadowMapSize=B.mapSize,F.shadowCameraNear=B.camera.near,F.shadowCameraFar=B.camera.far,r.pointShadow[d]=F,r.pointShadowMap[d]=A,r.pointShadowMatrix[d]=S.shadow.matrix,b++}r.point[d]=D,d++}else if(S.isHemisphereLight){var U=t.get(S);U.direction.setFromMatrixPosition(S.matrixWorld),U.direction.transformDirection(_),U.direction.normalize(),U.skyColor.copy(S.color).multiplyScalar(M),U.groundColor.copy(S.groundColor).multiplyScalar(M),r.hemi[g]=U,g++}}v>0&&(r.rectAreaLTC1=Gh.LTC_1,r.rectAreaLTC2=Gh.LTC_2),r.ambient[0]=c,r.ambient[1]=l,r.ambient[2]=f;var z=r.hash;z.directionalLength===p&&z.pointLength===d&&z.spotLength===m&&z.rectAreaLength===v&&z.hemiLength===g&&z.numDirectionalShadows===y&&z.numPointShadows===b&&z.numSpotShadows===x||(r.directional.length=p,r.spot.length=m,r.rectArea.length=v,r.point.length=d,r.hemi.length=g,r.directionalShadow.length=y,r.directionalShadowMap.length=y,r.pointShadow.length=b,r.pointShadowMap.length=b,r.spotShadow.length=x,r.spotShadowMap.length=x,r.directionalShadowMatrix.length=y,r.pointShadowMatrix.length=b,r.spotShadowMatrix.length=x,z.directionalLength=p,z.pointLength=d,z.spotLength=m,z.rectAreaLength=v,z.hemiLength=g,z.numDirectionalShadows=y,z.numPointShadows=b,z.numSpotShadows=x,r.version=kd++)},state:r}}function Ld(){var e=new Pd,t=[],n=[];return{init:function(){t.length=0,n.length=0},state:{lightsArray:t,shadowsArray:n,lights:e},setupLights:function(r){e.setup(t,n,r)},pushLight:function(e){t.push(e)},pushShadow:function(e){n.push(e)}}}function Rd(){var e=new WeakMap;return{get:function(t,n){var r;return!1===e.has(t)?(r=new Ld,e.set(t,new WeakMap),e.get(t).set(n,r)):!1===e.get(t).has(n)?(r=new Ld,e.get(t).set(n,r)):r=e.get(t).get(n),r},dispose:function(){e=new WeakMap}}}function jd(e){Tf.call(this),this.type="MeshDepthMaterial",this.depthPacking=Cc,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.setValues(e)}function Nd(e){Tf.call(this),this.type="MeshDistanceMaterial",this.referencePosition=new el,this.nearDistance=1,this.farDistance=1e3,this.skinning=!1,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.fog=!1,this.setValues(e)}jd.prototype=Object.create(Tf.prototype),jd.prototype.constructor=jd,jd.prototype.isMeshDepthMaterial=!0,jd.prototype.copy=function(e){return Tf.prototype.copy.call(this,e),this.depthPacking=e.depthPacking,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this},Nd.prototype=Object.create(Tf.prototype),Nd.prototype.constructor=Nd,Nd.prototype.isMeshDistanceMaterial=!0,Nd.prototype.copy=function(e){return Tf.prototype.copy.call(this,e),this.referencePosition.copy(e.referencePosition),this.nearDistance=e.nearDistance,this.farDistance=e.farDistance,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this};var Id="uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy ) / resolution ) );\n\tfor ( float i = -1.0; i < 1.0 ; i += SAMPLE_RATE) {\n\t\t#ifdef HORIZONAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( i, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, i ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean * HALF_SAMPLE_RATE;\n\tsquared_mean = squared_mean * HALF_SAMPLE_RATE;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}",Dd="void main() {\n\tgl_Position = vec4( position, 1.0 );\n}";function Bd(e,t,n){var r=new Dh,i=new Vc,o=new Vc,a=new Jc,s=[],u=[],c={},l={0:as,1:os,2:ss},f=new Oh({defines:{SAMPLE_RATE:.25,HALF_SAMPLE_RATE:1/8},uniforms:{shadow_pass:{value:null},resolution:{value:new Vc},radius:{value:4}},vertexShader:Dd,fragmentShader:Id}),h=f.clone();h.defines.HORIZONAL_PASS=1;var p=new Xf;p.setAttribute("position",new kf(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));var d=new hh(p,f),m=this;function v(n,r){var i=t.update(d);f.uniforms.shadow_pass.value=n.map.texture,f.uniforms.resolution.value=n.mapSize,f.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,i,f,d,null),h.uniforms.shadow_pass.value=n.mapPass.texture,h.uniforms.resolution.value=n.mapSize,h.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,i,h,d,null)}function g(e,t,n){var r=e<<0|t<<1|n<<2,i=s[r];return void 0===i&&(i=new jd({depthPacking:Pc,morphTargets:e,skinning:t}),s[r]=i),i}function y(e,t,n){var r=e<<0|t<<1|n<<2,i=u[r];return void 0===i&&(i=new Nd({morphTargets:e,skinning:t}),u[r]=i),i}function b(t,n,r,i,o,a,s){var u=null,f=g,h=t.customDepthMaterial;if(!0===i.isPointLight&&(f=y,h=t.customDistanceMaterial),void 0===h){var p=!1;!0===r.morphTargets&&(p=n.morphAttributes&&n.morphAttributes.position&&n.morphAttributes.position.length>0);var d=!1;!0===t.isSkinnedMesh&&(!0===r.skinning?d=!0:console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",t)),u=f(p,d,!0===t.isInstancedMesh)}else u=h;if(e.localClippingEnabled&&!0===r.clipShadows&&0!==r.clippingPlanes.length){var m=u.uuid,v=r.uuid,b=c[m];void 0===b&&(b={},c[m]=b);var x=b[v];void 0===x&&(x=u.clone(),b[v]=x),u=x}return u.visible=r.visible,u.wireframe=r.wireframe,u.side=s===is?null!==r.shadowSide?r.shadowSide:r.side:null!==r.shadowSide?r.shadowSide:l[r.side],u.clipShadows=r.clipShadows,u.clippingPlanes=r.clippingPlanes,u.clipIntersection=r.clipIntersection,u.wireframeLinewidth=r.wireframeLinewidth,u.linewidth=r.linewidth,!0===i.isPointLight&&!0===u.isMeshDistanceMaterial&&(u.referencePosition.setFromMatrixPosition(i.matrixWorld),u.nearDistance=o,u.farDistance=a),u}function x(n,i,o,a,s){if(!1!==n.visible){if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===is)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,n.matrixWorld);var u=t.update(n),c=n.material;if(Array.isArray(c))for(var l=u.groups,f=0,h=l.length;f<h;f++){var p=l[f],d=c[p.materialIndex];if(d&&d.visible){var m=b(n,u,d,a,o.near,o.far,s);e.renderBufferDirect(o,null,u,m,n,p)}}else if(c.visible){var v=b(n,u,c,a,o.near,o.far,s);e.renderBufferDirect(o,null,u,v,n,null)}}for(var g=n.children,y=0,_=g.length;y<_;y++)x(g[y],i,o,a,s)}}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=ns,this.render=function(t,s,u){if(!1!==m.enabled&&(!1!==m.autoUpdate||!1!==m.needsUpdate)&&0!==t.length){var c=e.getRenderTarget(),l=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),h=e.state;h.setBlending(us),h.buffers.color.setClear(1,1,1,1),h.buffers.depth.setTest(!0),h.setScissorTest(!1);for(var p=0,d=t.length;p<d;p++){var g=t[p],y=g.shadow;if(!1!==y.autoUpdate||!1!==y.needsUpdate)if(void 0!==y){i.copy(y.mapSize);var b=y.getFrameExtents();if(i.multiply(b),o.copy(y.mapSize),(i.x>n||i.y>n)&&(i.x>n&&(o.x=Math.floor(n/b.x),i.x=o.x*b.x,y.mapSize.x=o.x),i.y>n&&(o.y=Math.floor(n/b.y),i.y=o.y*b.y,y.mapSize.y=o.y)),null===y.map&&!y.isPointLightShadow&&this.type===is){var _={minFilter:ou,magFilter:ou,format:wu};y.map=new Qc(i.x,i.y,_),y.map.texture.name=g.name+".shadowMap",y.mapPass=new Qc(i.x,i.y,_),y.camera.updateProjectionMatrix()}if(null===y.map){var w={minFilter:nu,magFilter:nu,format:wu};y.map=new Qc(i.x,i.y,w),y.map.texture.name=g.name+".shadowMap",y.camera.updateProjectionMatrix()}e.setRenderTarget(y.map),e.clear();for(var E=y.getViewportCount(),S=0;S<E;S++){var T=y.getViewport(S);a.set(o.x*T.x,o.y*T.y,o.x*T.z,o.y*T.w),h.viewport(a),y.updateMatrices(g,S),r=y.getFrustum(),x(s,u,y.camera,g,this.type)}y.isPointLightShadow||this.type!==is||v(y,u),y.needsUpdate=!1}else console.warn("THREE.WebGLShadowMap:",g,"has no shadow.")}m.needsUpdate=!1,e.setRenderTarget(c,l,f)}}}function Fd(e,t,n){var r,i,o=n.isWebGL2;var a=new function(){var t=!1,n=new Jc,r=null,i=new Jc(0,0,0,0);return{setMask:function(n){r===n||t||(e.colorMask(n,n,n,n),r=n)},setLocked:function(e){t=e},setClear:function(t,r,o,a,s){!0===s&&(t*=a,r*=a,o*=a),n.set(t,r,o,a),!1===i.equals(n)&&(e.clearColor(t,r,o,a),i.copy(n))},reset:function(){t=!1,r=null,i.set(-1,0,0,0)}}},s=new function(){var t=!1,n=null,r=null,i=null;return{setTest:function(e){e?I(2929):D(2929)},setMask:function(r){n===r||t||(e.depthMask(r),n=r)},setFunc:function(t){if(r!==t){if(t)switch(t){case Cs:e.depthFunc(512);break;case Ps:e.depthFunc(519);break;case Ls:e.depthFunc(513);break;case Rs:e.depthFunc(515);break;case js:e.depthFunc(514);break;case Ns:e.depthFunc(518);break;case Is:e.depthFunc(516);break;case Ds:e.depthFunc(517);break;default:e.depthFunc(515)}else e.depthFunc(515);r=t}},setLocked:function(e){t=e},setClear:function(t){i!==t&&(e.clearDepth(t),i=t)},reset:function(){t=!1,n=null,r=null,i=null}}},u=new function(){var t=!1,n=null,r=null,i=null,o=null,a=null,s=null,u=null,c=null;return{setTest:function(e){t||(e?I(2960):D(2960))},setMask:function(r){n===r||t||(e.stencilMask(r),n=r)},setFunc:function(t,n,a){r===t&&i===n&&o===a||(e.stencilFunc(t,n,a),r=t,i=n,o=a)},setOp:function(t,n,r){a===t&&s===n&&u===r||(e.stencilOp(t,n,r),a=t,s=n,u=r)},setLocked:function(e){t=e},setClear:function(t){c!==t&&(e.clearStencil(t),c=t)},reset:function(){t=!1,n=null,r=null,i=null,o=null,a=null,s=null,u=null,c=null}}},c={},l=null,f=null,h=null,p=null,d=null,m=null,v=null,g=null,y=null,b=!1,x=null,_=null,w=null,E=null,S=null,T=e.getParameter(35661),M=!1,O=0,A=e.getParameter(7938);-1!==A.indexOf("WebGL")?(O=parseFloat(/^WebGL\ ([0-9])/.exec(A)[1]),M=O>=1):-1!==A.indexOf("OpenGL ES")&&(O=parseFloat(/^OpenGL\ ES\ ([0-9])/.exec(A)[1]),M=O>=2);var k=null,C={},P=new Jc,R=new Jc;function j(t,n,r){var i=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,10241,9728),e.texParameteri(t,10240,9728);for(var a=0;a<r;a++)e.texImage2D(n+a,0,6408,1,1,0,6408,5121,i);return o}var N={};function I(t){!0!==c[t]&&(e.enable(t),c[t]=!0)}function D(t){!1!==c[t]&&(e.disable(t),c[t]=!1)}N[3553]=j(3553,3553,1),N[34067]=j(34067,34069,6),a.setClear(0,0,0,1),s.setClear(1),u.setClear(0),I(2929),s.setFunc(Rs),H(!1),G(es),I(2884),z(us);var B=(r={},Object(L.a)(r,ds,32774),Object(L.a)(r,ms,32778),Object(L.a)(r,vs,32779),r);if(o)B[gs]=32775,B[ys]=32776;else{var F=t.get("EXT_blend_minmax");null!==F&&(B[gs]=F.MIN_EXT,B[ys]=F.MAX_EXT)}var U=(i={},Object(L.a)(i,bs,0),Object(L.a)(i,xs,1),Object(L.a)(i,_s,768),Object(L.a)(i,Es,770),Object(L.a)(i,ks,776),Object(L.a)(i,Os,774),Object(L.a)(i,Ts,772),Object(L.a)(i,ws,769),Object(L.a)(i,Ss,771),Object(L.a)(i,As,775),Object(L.a)(i,Ms,773),i);function z(t,n,r,i,o,a,s,u){if(t!==us){if(f||(I(3042),f=!0),t===ps)o=o||n,a=a||r,s=s||i,n===p&&o===v||(e.blendEquationSeparate(B[n],B[o]),p=n,v=o),r===d&&i===m&&a===g&&s===y||(e.blendFuncSeparate(U[r],U[i],U[a],U[s]),d=r,m=i,g=a,y=s),h=t,b=null;else if(t!==h||u!==b){if(p===ds&&v===ds||(e.blendEquation(32774),p=ds,v=ds),u)switch(t){case cs:e.blendFuncSeparate(1,771,1,771);break;case ls:e.blendFunc(1,1);break;case fs:e.blendFuncSeparate(0,0,769,771);break;case hs:e.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}else switch(t){case cs:e.blendFuncSeparate(770,771,1,771);break;case ls:e.blendFunc(770,1);break;case fs:e.blendFunc(0,769);break;case hs:e.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}d=null,m=null,g=null,y=null,h=t,b=u}}else f&&(D(3042),f=!1)}function H(t){x!==t&&(t?e.frontFace(2304):e.frontFace(2305),x=t)}function G(t){t!==$a?(I(2884),t!==_&&(t===es?e.cullFace(1029):t===ts?e.cullFace(1028):e.cullFace(1032))):D(2884),_=t}function W(t,n,r){t?(I(32823),E===n&&S===r||(e.polygonOffset(n,r),E=n,S=r)):D(32823)}function V(t){void 0===t&&(t=33984+T-1),k!==t&&(e.activeTexture(t),k=t)}return{buffers:{color:a,depth:s,stencil:u},enable:I,disable:D,useProgram:function(t){return l!==t&&(e.useProgram(t),l=t,!0)},setBlending:z,setMaterial:function(e,t){e.side===ss?D(2884):I(2884);var n=e.side===as;t&&(n=!n),H(n),e.blending===cs&&!1===e.transparent?z(us):z(e.blending,e.blendEquation,e.blendSrc,e.blendDst,e.blendEquationAlpha,e.blendSrcAlpha,e.blendDstAlpha,e.premultipliedAlpha),s.setFunc(e.depthFunc),s.setTest(e.depthTest),s.setMask(e.depthWrite),a.setMask(e.colorWrite);var r=e.stencilWrite;u.setTest(r),r&&(u.setMask(e.stencilWriteMask),u.setFunc(e.stencilFunc,e.stencilRef,e.stencilFuncMask),u.setOp(e.stencilFail,e.stencilZFail,e.stencilZPass)),W(e.polygonOffset,e.polygonOffsetFactor,e.polygonOffsetUnits)},setFlipSided:H,setCullFace:G,setLineWidth:function(t){t!==w&&(M&&e.lineWidth(t),w=t)},setPolygonOffset:W,setScissorTest:function(e){e?I(3089):D(3089)},activeTexture:V,bindTexture:function(t,n){null===k&&V();var r=C[k];void 0===r&&(r={type:void 0,texture:void 0},C[k]=r),r.type===t&&r.texture===n||(e.bindTexture(t,n||N[t]),r.type=t,r.texture=n)},unbindTexture:function(){var t=C[k];void 0!==t&&void 0!==t.type&&(e.bindTexture(t.type,null),t.type=void 0,t.texture=void 0)},compressedTexImage2D:function(){try{e.compressedTexImage2D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage2D:function(){try{e.texImage2D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage3D:function(){try{e.texImage3D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},scissor:function(t){!1===P.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),P.copy(t))},viewport:function(t){!1===R.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),R.copy(t))},reset:function(){c={},k=null,C={},l=null,h=null,x=null,_=null,a.reset(),s.reset(),u.reset()}}}function Ud(e,t,n,r,i,o,a){var s,u,c,l=i.isWebGL2,f=i.maxTextures,h=i.maxCubemapSize,p=i.maxTextureSize,d=i.maxSamples,m=new WeakMap,v=!1;try{v="undefined"!=typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(e){}function g(e,t){return v?new OffscreenCanvas(e,t):document.createElementNS("http://www.w3.org/1999/xhtml","canvas")}function y(e,t,n,r){var i=1;if((e.width>r||e.height>r)&&(i=r/Math.max(e.width,e.height)),i<1||!0===t){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){var o=t?Wc.floorPowerOfTwo:Math.floor,a=o(i*e.width),s=o(i*e.height);void 0===c&&(c=g(a,s));var u=n?g(a,s):c;return u.width=a,u.height=s,u.getContext("2d").drawImage(e,0,0,a,s),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+e.width+"x"+e.height+") to ("+a+"x"+s+")."),u}return"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+e.width+"x"+e.height+")."),e}return e}function b(e){return Wc.isPowerOfTwo(e.width)&&Wc.isPowerOfTwo(e.height)}function x(e,t){return e.generateMipmaps&&t&&e.minFilter!==nu&&e.minFilter!==ou}function _(t,n,i,o){e.generateMipmap(t),r.get(n).__maxMipLevel=Math.log(Math.max(i,o))*Math.LOG2E}function w(n,r,i){if(!1===l)return r;if(null!==n){if(void 0!==e[n])return e[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}var o=r;return 6403===r&&(5126===i&&(o=33326),5131===i&&(o=33325),5121===i&&(o=33321)),6407===r&&(5126===i&&(o=34837),5131===i&&(o=34843),5121===i&&(o=32849)),6408===r&&(5126===i&&(o=34836),5131===i&&(o=34842),5121===i&&(o=32856)),33325!==o&&33326!==o&&34842!==o&&34836!==o||t.get("EXT_color_buffer_float"),o}function E(e){return e===nu||e===ru||e===iu?9728:9729}function S(t){var n=t.target;n.removeEventListener("dispose",S),function(t){var n=r.get(t);if(void 0===n.__webglInit)return;e.deleteTexture(n.__webglTexture),r.remove(t)}(n),n.isVideoTexture&&m.delete(n),a.memory.textures--}function T(t){var n=t.target;n.removeEventListener("dispose",T),function(t){var n=r.get(t),i=r.get(t.texture);if(!t)return;void 0!==i.__webglTexture&&e.deleteTexture(i.__webglTexture);t.depthTexture&&t.depthTexture.dispose();if(t.isWebGLCubeRenderTarget)for(var o=0;o<6;o++)e.deleteFramebuffer(n.__webglFramebuffer[o]),n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer[o]);else e.deleteFramebuffer(n.__webglFramebuffer),n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer),n.__webglMultisampledFramebuffer&&e.deleteFramebuffer(n.__webglMultisampledFramebuffer),n.__webglColorRenderbuffer&&e.deleteRenderbuffer(n.__webglColorRenderbuffer),n.__webglDepthRenderbuffer&&e.deleteRenderbuffer(n.__webglDepthRenderbuffer);r.remove(t.texture),r.remove(t)}(n),a.memory.textures--}var M=0;function O(e,t){var i=r.get(e);if(e.isVideoTexture&&function(e){var t=a.render.frame;m.get(e)!==t&&(m.set(e,t),e.update())}(e),e.version>0&&i.__version!==e.version){var o=e.image;if(void 0===o)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else{if(!1!==o.complete)return void N(i,e,t);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.activeTexture(33984+t),n.bindTexture(3553,i.__webglTexture)}function A(t,i){if(6===t.image.length){var a=r.get(t);if(t.version>0&&a.__version!==t.version){j(a,t),n.activeTexture(33984+i),n.bindTexture(34067,a.__webglTexture),e.pixelStorei(37440,t.flipY);for(var s=t&&(t.isCompressedTexture||t.image[0].isCompressedTexture),u=t.image[0]&&t.image[0].isDataTexture,c=[],f=0;f<6;f++)c[f]=s||u?u?t.image[f].image:t.image[f]:y(t.image[f],!1,!0,h);var p,d=c[0],m=b(d)||l,v=o.convert(t.format),g=o.convert(t.type),E=w(t.internalFormat,v,g);if(R(34067,t,m),s){for(var S=0;S<6;S++){p=c[S].mipmaps;for(var T=0;T<p.length;T++){var M=p[T];t.format!==wu&&t.format!==_u?null!==v?n.compressedTexImage2D(34069+S,T,E,M.width,M.height,0,M.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):n.texImage2D(34069+S,T,E,M.width,M.height,0,v,g,M.data)}}a.__maxMipLevel=p.length-1}else{p=t.mipmaps;for(var O=0;O<6;O++)if(u){n.texImage2D(34069+O,0,E,c[O].width,c[O].height,0,v,g,c[O].data);for(var A=0;A<p.length;A++){var k=p[A].image[O].image;n.texImage2D(34069+O,A+1,E,k.width,k.height,0,v,g,k.data)}}else{n.texImage2D(34069+O,0,E,v,g,c[O]);for(var C=0;C<p.length;C++){var P=p[C];n.texImage2D(34069+O,C+1,E,v,g,P.image[O])}}a.__maxMipLevel=p.length}x(t,m)&&_(34067,t,d.width,d.height),a.__version=t.version,t.onUpdate&&t.onUpdate(t)}else n.activeTexture(33984+i),n.bindTexture(34067,a.__webglTexture)}}function k(e,t){n.activeTexture(33984+t),n.bindTexture(34067,r.get(e).__webglTexture)}var C=(s={},Object(L.a)(s,$s,10497),Object(L.a)(s,eu,33071),Object(L.a)(s,tu,33648),s),P=(u={},Object(L.a)(u,nu,9728),Object(L.a)(u,ru,9984),Object(L.a)(u,iu,9986),Object(L.a)(u,ou,9729),Object(L.a)(u,au,9985),Object(L.a)(u,su,9987),u);function R(n,o,a){a?(e.texParameteri(n,10242,C[o.wrapS]),e.texParameteri(n,10243,C[o.wrapT]),32879!==n&&35866!==n||e.texParameteri(n,32882,C[o.wrapR]),e.texParameteri(n,10240,P[o.magFilter]),e.texParameteri(n,10241,P[o.minFilter])):(e.texParameteri(n,10242,33071),e.texParameteri(n,10243,33071),32879!==n&&35866!==n||e.texParameteri(n,32882,33071),o.wrapS===eu&&o.wrapT===eu||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),e.texParameteri(n,10240,E(o.magFilter)),e.texParameteri(n,10241,E(o.minFilter)),o.minFilter!==nu&&o.minFilter!==ou&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter."));var s=t.get("EXT_texture_filter_anisotropic");if(s){if(o.type===du&&null===t.get("OES_texture_float_linear"))return;if(o.type===mu&&null===(l||t.get("OES_texture_half_float_linear")))return;(o.anisotropy>1||r.get(o).__currentAnisotropy)&&(e.texParameterf(n,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,i.getMaxAnisotropy())),r.get(o).__currentAnisotropy=o.anisotropy)}}function j(t,n){void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",S),t.__webglTexture=e.createTexture(),a.memory.textures++)}function N(t,r,i){var a=3553;r.isDataTexture2DArray&&(a=35866),r.isDataTexture3D&&(a=32879),j(t,r),n.activeTexture(33984+i),n.bindTexture(a,t.__webglTexture),e.pixelStorei(37440,r.flipY),e.pixelStorei(37441,r.premultiplyAlpha),e.pixelStorei(3317,r.unpackAlignment);var s,u=function(e){return!l&&(e.wrapS!==eu||e.wrapT!==eu||e.minFilter!==nu&&e.minFilter!==ou)}(r)&&!1===b(r.image),c=y(r.image,u,!1,p),f=b(c)||l,h=o.convert(r.format),d=o.convert(r.type),m=w(r.internalFormat,h,d);R(a,r,f);var v=r.mipmaps;if(r.isDepthTexture)m=6402,l?m=r.type===du?36012:r.type===pu?33190:r.type===bu?35056:33189:r.type===du&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),r.format===Tu&&6402===m&&r.type!==fu&&r.type!==pu&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),r.type=fu,d=o.convert(r.type)),r.format===Mu&&6402===m&&(m=34041,r.type!==bu&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),r.type=bu,d=o.convert(r.type))),n.texImage2D(3553,0,m,c.width,c.height,0,h,d,null);else if(r.isDataTexture)if(v.length>0&&f){for(var g=0,E=v.length;g<E;g++)s=v[g],n.texImage2D(3553,g,m,s.width,s.height,0,h,d,s.data);r.generateMipmaps=!1,t.__maxMipLevel=v.length-1}else n.texImage2D(3553,0,m,c.width,c.height,0,h,d,c.data),t.__maxMipLevel=0;else if(r.isCompressedTexture){for(var S=0,T=v.length;S<T;S++)s=v[S],r.format!==wu&&r.format!==_u?null!==h?n.compressedTexImage2D(3553,S,m,s.width,s.height,0,s.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):n.texImage2D(3553,S,m,s.width,s.height,0,h,d,s.data);t.__maxMipLevel=v.length-1}else if(r.isDataTexture2DArray)n.texImage3D(35866,0,m,c.width,c.height,c.depth,0,h,d,c.data),t.__maxMipLevel=0;else if(r.isDataTexture3D)n.texImage3D(32879,0,m,c.width,c.height,c.depth,0,h,d,c.data),t.__maxMipLevel=0;else if(v.length>0&&f){for(var M=0,O=v.length;M<O;M++)s=v[M],n.texImage2D(3553,M,m,h,d,s);r.generateMipmaps=!1,t.__maxMipLevel=v.length-1}else n.texImage2D(3553,0,m,h,d,c),t.__maxMipLevel=0;x(r,f)&&_(a,r,c.width,c.height),t.__version=r.version,r.onUpdate&&r.onUpdate(r)}function I(t,i,a,s){var u=o.convert(i.texture.format),c=o.convert(i.texture.type),l=w(i.texture.internalFormat,u,c);n.texImage2D(s,0,l,i.width,i.height,0,u,c,null),e.bindFramebuffer(36160,t),e.framebufferTexture2D(36160,a,s,r.get(i.texture).__webglTexture,0),e.bindFramebuffer(36160,null)}function D(t,n,r){if(e.bindRenderbuffer(36161,t),n.depthBuffer&&!n.stencilBuffer){var i=33189;if(r){var a=n.depthTexture;a&&a.isDepthTexture&&(a.type===du?i=36012:a.type===pu&&(i=33190));var s=F(n);e.renderbufferStorageMultisample(36161,s,i,n.width,n.height)}else e.renderbufferStorage(36161,i,n.width,n.height);e.framebufferRenderbuffer(36160,36096,36161,t)}else if(n.depthBuffer&&n.stencilBuffer){if(r){var u=F(n);e.renderbufferStorageMultisample(36161,u,35056,n.width,n.height)}else e.renderbufferStorage(36161,34041,n.width,n.height);e.framebufferRenderbuffer(36160,33306,36161,t)}else{var c=o.convert(n.texture.format),l=o.convert(n.texture.type),f=w(n.texture.internalFormat,c,l);if(r){var h=F(n);e.renderbufferStorageMultisample(36161,h,f,n.width,n.height)}else e.renderbufferStorage(36161,f,n.width,n.height)}e.bindRenderbuffer(36161,null)}function B(t){var n=r.get(t),i=!0===t.isWebGLCubeRenderTarget;if(t.depthTexture){if(i)throw new Error("target.depthTexture not supported in Cube render targets");!function(t,n){if(n&&n.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(e.bindFramebuffer(36160,t),!n.depthTexture||!n.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");r.get(n.depthTexture).__webglTexture&&n.depthTexture.image.width===n.width&&n.depthTexture.image.height===n.height||(n.depthTexture.image.width=n.width,n.depthTexture.image.height=n.height,n.depthTexture.needsUpdate=!0),O(n.depthTexture,0);var i=r.get(n.depthTexture).__webglTexture;if(n.depthTexture.format===Tu)e.framebufferTexture2D(36160,36096,3553,i,0);else{if(n.depthTexture.format!==Mu)throw new Error("Unknown depthTexture format");e.framebufferTexture2D(36160,33306,3553,i,0)}}(n.__webglFramebuffer,t)}else if(i){n.__webglDepthbuffer=[];for(var o=0;o<6;o++)e.bindFramebuffer(36160,n.__webglFramebuffer[o]),n.__webglDepthbuffer[o]=e.createRenderbuffer(),D(n.__webglDepthbuffer[o],t,!1)}else e.bindFramebuffer(36160,n.__webglFramebuffer),n.__webglDepthbuffer=e.createRenderbuffer(),D(n.__webglDepthbuffer,t,!1);e.bindFramebuffer(36160,null)}function F(e){return l&&e.isWebGLMultisampleRenderTarget?Math.min(d,e.samples):0}var U=!1,z=!1;this.allocateTextureUnit=function(){var e=M;return e>=f&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+f),M+=1,e},this.resetTextureUnits=function(){M=0},this.setTexture2D=O,this.setTexture2DArray=function(e,t){var i=r.get(e);e.version>0&&i.__version!==e.version?N(i,e,t):(n.activeTexture(33984+t),n.bindTexture(35866,i.__webglTexture))},this.setTexture3D=function(e,t){var i=r.get(e);e.version>0&&i.__version!==e.version?N(i,e,t):(n.activeTexture(33984+t),n.bindTexture(32879,i.__webglTexture))},this.setTextureCube=A,this.setTextureCubeDynamic=k,this.setupRenderTarget=function(t){var i=r.get(t),s=r.get(t.texture);t.addEventListener("dispose",T),s.__webglTexture=e.createTexture(),a.memory.textures++;var u=!0===t.isWebGLCubeRenderTarget,c=!0===t.isWebGLMultisampleRenderTarget,f=b(t)||l;if(!l||t.texture.format!==_u||t.texture.type!==du&&t.texture.type!==mu||(t.texture.format=wu,console.warn("THREE.WebGLRenderer: Rendering to textures with RGB format is not supported. Using RGBA format instead.")),u){i.__webglFramebuffer=[];for(var h=0;h<6;h++)i.__webglFramebuffer[h]=e.createFramebuffer()}else if(i.__webglFramebuffer=e.createFramebuffer(),c)if(l){i.__webglMultisampledFramebuffer=e.createFramebuffer(),i.__webglColorRenderbuffer=e.createRenderbuffer(),e.bindRenderbuffer(36161,i.__webglColorRenderbuffer);var p=o.convert(t.texture.format),d=o.convert(t.texture.type),m=w(t.texture.internalFormat,p,d),v=F(t);e.renderbufferStorageMultisample(36161,v,m,t.width,t.height),e.bindFramebuffer(36160,i.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(36160,36064,36161,i.__webglColorRenderbuffer),e.bindRenderbuffer(36161,null),t.depthBuffer&&(i.__webglDepthRenderbuffer=e.createRenderbuffer(),D(i.__webglDepthRenderbuffer,t,!0)),e.bindFramebuffer(36160,null)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.");if(u){n.bindTexture(34067,s.__webglTexture),R(34067,t.texture,f);for(var g=0;g<6;g++)I(i.__webglFramebuffer[g],t,36064,34069+g);x(t.texture,f)&&_(34067,t.texture,t.width,t.height),n.bindTexture(34067,null)}else n.bindTexture(3553,s.__webglTexture),R(3553,t.texture,f),I(i.__webglFramebuffer,t,36064,3553),x(t.texture,f)&&_(3553,t.texture,t.width,t.height),n.bindTexture(3553,null);t.depthBuffer&&B(t)},this.updateRenderTargetMipmap=function(e){var t=e.texture;if(x(t,b(e)||l)){var i=e.isWebGLCubeRenderTarget?34067:3553,o=r.get(t).__webglTexture;n.bindTexture(i,o),_(i,t,e.width,e.height),n.bindTexture(i,null)}},this.updateMultisampleRenderTarget=function(t){if(t.isWebGLMultisampleRenderTarget)if(l){var n=r.get(t);e.bindFramebuffer(36008,n.__webglMultisampledFramebuffer),e.bindFramebuffer(36009,n.__webglFramebuffer);var i=t.width,o=t.height,a=16384;t.depthBuffer&&(a|=256),t.stencilBuffer&&(a|=1024),e.blitFramebuffer(0,0,i,o,0,0,i,o,a,9728),e.bindFramebuffer(36160,n.__webglMultisampledFramebuffer)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.")},this.safeSetTexture2D=function(e,t){e&&e.isWebGLRenderTarget&&(!1===U&&(console.warn("THREE.WebGLTextures.safeSetTexture2D: don't use render targets as textures. Use their .texture property instead."),U=!0),e=e.texture),O(e,t)},this.safeSetTextureCube=function(e,t){e&&e.isWebGLCubeRenderTarget&&(!1===z&&(console.warn("THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead."),z=!0),e=e.texture),e&&e.isCubeTexture||Array.isArray(e.image)&&6===e.image.length?A(e,t):k(e,t)}}function zd(e,t,n){var r=n.isWebGL2;return{convert:function(e){var n;if(e===uu)return 5121;if(e===vu)return 32819;if(e===gu)return 32820;if(e===yu)return 33635;if(e===cu)return 5120;if(e===lu)return 5122;if(e===fu)return 5123;if(e===hu)return 5124;if(e===pu)return 5125;if(e===du)return 5126;if(e===mu)return r?5131:null!==(n=t.get("OES_texture_half_float"))?n.HALF_FLOAT_OES:null;if(e===xu)return 6406;if(e===_u)return 6407;if(e===wu)return 6408;if(e===Eu)return 6409;if(e===Su)return 6410;if(e===Tu)return 6402;if(e===Mu)return 34041;if(e===Ou)return 6403;if(e===Au)return 36244;if(e===ku)return 33319;if(e===Cu)return 33320;if(e===Pu)return 36248;if(e===Lu)return 36249;if(e===Ru||e===ju||e===Nu||e===Iu){if(null===(n=t.get("WEBGL_compressed_texture_s3tc")))return null;if(e===Ru)return n.COMPRESSED_RGB_S3TC_DXT1_EXT;if(e===ju)return n.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(e===Nu)return n.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(e===Iu)return n.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(e===Du||e===Bu||e===Fu||e===Uu){if(null===(n=t.get("WEBGL_compressed_texture_pvrtc")))return null;if(e===Du)return n.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(e===Bu)return n.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(e===Fu)return n.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(e===Uu)return n.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(e===zu)return null!==(n=t.get("WEBGL_compressed_texture_etc1"))?n.COMPRESSED_RGB_ETC1_WEBGL:null;if((e===Hu||e===Gu)&&null!==(n=t.get("WEBGL_compressed_texture_etc"))){if(e===Hu)return n.COMPRESSED_RGB8_ETC2;if(e===Gu)return n.COMPRESSED_RGBA8_ETC2_EAC}return e===Wu||e===Vu||e===qu||e===Yu||e===Xu||e===Zu||e===Ju||e===Qu||e===Ku||e===$u||e===ec||e===tc||e===nc||e===rc||e===oc||e===ac||e===sc||e===uc||e===cc||e===lc||e===fc||e===hc||e===pc||e===dc||e===mc||e===vc||e===gc||e===yc?null!==(n=t.get("WEBGL_compressed_texture_astc"))?e:null:e===ic?null!==(n=t.get("EXT_texture_compression_bptc"))?e:null:e===bu?r?34042:null!==(n=t.get("WEBGL_depth_texture"))?n.UNSIGNED_INT_24_8_WEBGL:null:void 0}}}function Hd(e){kh.call(this),this.cameras=e||[]}function Gd(){$l.call(this),this.type="Group"}function Wd(){this._targetRay=null,this._grip=null,this._hand=null}function Vd(e,t){var n=this,r=null,i=1,o=null,a="local-floor",s=null,u=[],c=new Map,l=new kh;l.layers.enable(1),l.viewport=new Jc;var f=new kh;f.layers.enable(2),f.viewport=new Jc;var h=[l,f],p=new Hd;p.layers.enable(1),p.layers.enable(2);var d=null,m=null;function v(e){var t=c.get(e.inputSource);t&&t.dispatchEvent({type:e.type})}function g(){c.forEach(function(e,t){e.disconnect(t)}),c.clear(),e.setFramebuffer(null),e.setRenderTarget(e.getRenderTarget()),S.stop(),n.isPresenting=!1,n.dispatchEvent({type:"sessionend"})}function y(e){o=e,S.setContext(r),S.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}function b(e){for(var t=r.inputSources,n=0;n<u.length;n++)c.set(t[n],u[n]);for(var i=0;i<e.removed.length;i++){var o=e.removed[i],a=c.get(o);a&&(a.dispatchEvent({type:"disconnected",data:o}),c.delete(o))}for(var s=0;s<e.added.length;s++){var l=e.added[s],f=c.get(l);f&&f.dispatchEvent({type:"connected",data:l})}}this.enabled=!1,this.isPresenting=!1,this.getController=function(e){var t=u[e];return void 0===t&&(t=new Wd,u[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){var t=u[e];return void 0===t&&(t=new Wd,u[e]=t),t.getGripSpace()},this.getHand=function(e){var t=u[e];return void 0===t&&(t=new Wd,u[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){i=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(e){a=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return o},this.getSession=function(){return r},this.setSession=function(e){if(null!==(r=e)){r.addEventListener("select",v),r.addEventListener("selectstart",v),r.addEventListener("selectend",v),r.addEventListener("squeeze",v),r.addEventListener("squeezestart",v),r.addEventListener("squeezeend",v),r.addEventListener("end",g);var n=t.getContextAttributes();!0!==n.xrCompatible&&t.makeXRCompatible();var o={antialias:n.antialias,alpha:n.alpha,depth:n.depth,stencil:n.stencil,framebufferScaleFactor:i},s=new XRWebGLLayer(r,t,o);r.updateRenderState({baseLayer:s}),r.requestReferenceSpace(a).then(y),r.addEventListener("inputsourceschange",b)}};var x=new el,_=new el;function w(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.getInverse(e.matrixWorld)}this.getCamera=function(e){p.near=f.near=l.near=e.near,p.far=f.far=l.far=e.far,d===p.near&&m===p.far||(r.updateRenderState({depthNear:p.near,depthFar:p.far}),d=p.near,m=p.far);var t=e.parent,n=p.cameras;w(p,t);for(var i=0;i<n.length;i++)w(n[i],t);e.matrixWorld.copy(p.matrixWorld);for(var o=e.children,a=0,s=o.length;a<s;a++)o[a].updateMatrixWorld(!0);return 2===n.length?function(e,t,n){x.setFromMatrixPosition(t.matrixWorld),_.setFromMatrixPosition(n.matrixWorld);var r=x.distanceTo(_),i=t.projectionMatrix.elements,o=n.projectionMatrix.elements,a=i[14]/(i[10]-1),s=i[14]/(i[10]+1),u=(i[9]+1)/i[5],c=(i[9]-1)/i[5],l=(i[8]-1)/i[0],f=(o[8]+1)/o[0],h=a*l,p=a*f,d=r/(-l+f),m=d*-l;t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(m),e.translateZ(d),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.getInverse(e.matrixWorld);var v=a+d,g=s+d,y=h-m,b=p+(r-m),w=u*s/g*v,E=c*s/g*v;e.projectionMatrix.makePerspective(y,b,w,E,v,g)}(p,l,f):p.projectionMatrix.copy(l.projectionMatrix),p};var E=null;var S=new Bh;S.setAnimationLoop(function(t,n){if(null!==(s=n.getViewerPose(o))){var i=s.views,a=r.renderState.baseLayer;e.setFramebuffer(a.framebuffer);var c=!1;i.length!==p.cameras.length&&(p.cameras.length=0,c=!0);for(var l=0;l<i.length;l++){var f=i[l],d=a.getViewport(f),m=h[l];m.matrix.fromArray(f.transform.matrix),m.projectionMatrix.fromArray(f.projectionMatrix),m.viewport.set(d.x,d.y,d.width,d.height),0===l&&p.matrix.copy(m.matrix),!0===c&&p.cameras.push(m)}}for(var v=r.inputSources,g=0;g<u.length;g++){var y=u[g],b=v[g];y.update(b,n,o)}E&&E(t,n)}),this.setAnimationLoop=function(e){E=e},this.dispose=function(){}}function qd(e){function t(t,n){t.opacity.value=n.opacity,n.color&&t.diffuse.value.copy(n.color),n.emissive&&t.emissive.value.copy(n.emissive).multiplyScalar(n.emissiveIntensity),n.map&&(t.map.value=n.map),n.alphaMap&&(t.alphaMap.value=n.alphaMap),n.specularMap&&(t.specularMap.value=n.specularMap);var r,i,o=e.get(n).envMap;if(o){t.envMap.value=o,t.flipEnvMap.value=o.isCubeTexture?-1:1,t.reflectivity.value=n.reflectivity,t.refractionRatio.value=n.refractionRatio;var a=e.get(o).__maxMipLevel;void 0!==a&&(t.maxMipLevel.value=a)}n.lightMap&&(t.lightMap.value=n.lightMap,t.lightMapIntensity.value=n.lightMapIntensity),n.aoMap&&(t.aoMap.value=n.aoMap,t.aoMapIntensity.value=n.aoMapIntensity),n.map?r=n.map:n.specularMap?r=n.specularMap:n.displacementMap?r=n.displacementMap:n.normalMap?r=n.normalMap:n.bumpMap?r=n.bumpMap:n.roughnessMap?r=n.roughnessMap:n.metalnessMap?r=n.metalnessMap:n.alphaMap?r=n.alphaMap:n.emissiveMap?r=n.emissiveMap:n.clearcoatMap?r=n.clearcoatMap:n.clearcoatNormalMap?r=n.clearcoatNormalMap:n.clearcoatRoughnessMap&&(r=n.clearcoatRoughnessMap),void 0!==r&&(r.isWebGLRenderTarget&&(r=r.texture),!0===r.matrixAutoUpdate&&r.updateMatrix(),t.uvTransform.value.copy(r.matrix)),n.aoMap?i=n.aoMap:n.lightMap&&(i=n.lightMap),void 0!==i&&(i.isWebGLRenderTarget&&(i=i.texture),!0===i.matrixAutoUpdate&&i.updateMatrix(),t.uv2Transform.value.copy(i.matrix))}function n(t,n){t.roughness.value=n.roughness,t.metalness.value=n.metalness,n.roughnessMap&&(t.roughnessMap.value=n.roughnessMap),n.metalnessMap&&(t.metalnessMap.value=n.metalnessMap),n.emissiveMap&&(t.emissiveMap.value=n.emissiveMap),n.bumpMap&&(t.bumpMap.value=n.bumpMap,t.bumpScale.value=n.bumpScale,n.side===as&&(t.bumpScale.value*=-1)),n.normalMap&&(t.normalMap.value=n.normalMap,t.normalScale.value.copy(n.normalScale),n.side===as&&t.normalScale.value.negate()),n.displacementMap&&(t.displacementMap.value=n.displacementMap,t.displacementScale.value=n.displacementScale,t.displacementBias.value=n.displacementBias),e.get(n).envMap&&(t.envMapIntensity.value=n.envMapIntensity)}return{refreshFogUniforms:function(e,t){e.fogColor.value.copy(t.color),t.isFog?(e.fogNear.value=t.near,e.fogFar.value=t.far):t.isFogExp2&&(e.fogDensity.value=t.density)},refreshMaterialUniforms:function(e,r,i,o){r.isMeshBasicMaterial?t(e,r):r.isMeshLambertMaterial?(t(e,r),function(e,t){t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap)}(e,r)):r.isMeshToonMaterial?(t(e,r),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===as&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===as&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isMeshPhongMaterial?(t(e,r),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===as&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===as&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isMeshStandardMaterial?(t(e,r),r.isMeshPhysicalMaterial?function(e,t){n(e,t),e.reflectivity.value=t.reflectivity,e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.sheen&&e.sheen.value.copy(t.sheen),t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap),t.clearcoatNormalMap&&(e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),e.clearcoatNormalMap.value=t.clearcoatNormalMap,t.side===as&&e.clearcoatNormalScale.value.negate()),e.transmission.value=t.transmission,t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap)}(e,r):n(e,r)):r.isMeshMatcapMaterial?(t(e,r),function(e,t){t.matcap&&(e.matcap.value=t.matcap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===as&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===as&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isMeshDepthMaterial?(t(e,r),function(e,t){t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isMeshDistanceMaterial?(t(e,r),function(e,t){t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias),e.referencePosition.value.copy(t.referencePosition),e.nearDistance.value=t.nearDistance,e.farDistance.value=t.farDistance}(e,r)):r.isMeshNormalMaterial?(t(e,r),function(e,t){t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===as&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===as&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity}(e,r),r.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(e,r)):r.isPointsMaterial?function(e,t,n,r){var i;e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*n,e.scale.value=.5*r,t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.map?i=t.map:t.alphaMap&&(i=t.alphaMap),void 0!==i&&(!0===i.matrixAutoUpdate&&i.updateMatrix(),e.uvTransform.value.copy(i.matrix))}(e,r,i,o):r.isSpriteMaterial?function(e,t){var n;e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.map?n=t.map:t.alphaMap&&(n=t.alphaMap),void 0!==n&&(!0===n.matrixAutoUpdate&&n.updateMatrix(),e.uvTransform.value.copy(n.matrix))}(e,r):r.isShadowMaterial?(e.color.value.copy(r.color),e.opacity.value=r.opacity):r.isShaderMaterial&&(r.uniformsNeedUpdate=!1)}}}function Yd(e){var t=void 0!==(e=e||{}).canvas?e.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),n=void 0!==e.context?e.context:null,r=void 0!==e.alpha&&e.alpha,i=void 0===e.depth||e.depth,o=void 0===e.stencil||e.stencil,a=void 0!==e.antialias&&e.antialias,s=void 0===e.premultipliedAlpha||e.premultipliedAlpha,u=void 0!==e.preserveDrawingBuffer&&e.preserveDrawingBuffer,c=void 0!==e.powerPreference?e.powerPreference:"default",l=void 0!==e.failIfMajorPerformanceCaveat&&e.failIfMajorPerformanceCaveat,f=null,h=null;this.domElement=t,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.outputEncoding=wc,this.physicallyCorrectLights=!1,this.toneMapping=zs,this.toneMappingExposure=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var p=this,d=!1,m=null,v=0,g=0,y=null,b=null,x=-1,_=null,w=null,E=new Jc,S=new Jc,T=null,M=t.width,O=t.height,A=1,k=null,C=null,P=new Jc(0,0,M,O),L=new Jc(0,0,M,O),R=!1,j=new Dh,N=!1,I=!1,D=new Al,B=new el,F={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function U(){return null===y?A:1}var z,H,G,W,V,q,Y,X,Z,J,Q,K,$,ee,te,ne,re,ie,oe,ae,se,ue=n;function ce(e,n){for(var r=0;r<e.length;r++){var i=e[r],o=t.getContext(i,n);if(null!==o)return o}return null}try{var le={alpha:r,depth:i,stencil:o,antialias:a,premultipliedAlpha:s,preserveDrawingBuffer:u,powerPreference:c,failIfMajorPerformanceCaveat:l};if(t.addEventListener("webglcontextlost",me,!1),t.addEventListener("webglcontextrestored",ve,!1),null===ue){var fe=["webgl2","webgl","experimental-webgl"];if(!0===p.isWebGL1Renderer&&fe.shift(),null===(ue=ce(fe,le)))throw ce(fe)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}void 0===ue.getShaderPrecisionFormat&&(ue.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(e){throw console.error("THREE.WebGLRenderer: "+e.message),e}function he(){z=new Qh(ue),!1===(H=new Xh(ue,z,e)).isWebGL2&&(z.get("WEBGL_depth_texture"),z.get("OES_texture_float"),z.get("OES_texture_half_float"),z.get("OES_texture_half_float_linear"),z.get("OES_standard_derivatives"),z.get("OES_element_index_uint"),z.get("OES_vertex_array_object"),z.get("ANGLE_instanced_arrays")),z.get("OES_texture_float_linear"),ae=new zd(ue,z,H),(G=new Fd(ue,z,H)).scissor(S.copy(L).multiplyScalar(A).floor()),G.viewport(E.copy(P).multiplyScalar(A).floor()),W=new ep(ue),V=new Ed,q=new Ud(ue,z,G,V,H,ae,W),Y=new Jh(p),X=new Fh(ue,H),se=new qh(ue,z,X,H),Z=new Kh(ue,X,W,se),J=new ip(ue,Z,X,W),re=new rp(ue),te=new Zh(V),Q=new wd(p,Y,z,H,se,te),K=new qd(V),$=new Od(V),ee=new Rd,ne=new Vh(p,Y,G,J,s),ie=new Yh(ue,z,W,H),oe=new $h(ue,z,W,H),W.programs=Q.programs,p.capabilities=H,p.extensions=z,p.properties=V,p.renderLists=$,p.state=G,p.info=W}he();var pe=new Vd(p,ue);this.xr=pe;var de=new Bd(p,J,H.maxTextureSize);function me(e){e.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),d=!0}function ve(){console.log("THREE.WebGLRenderer: Context Restored."),d=!1,he()}function ge(e){var t=e.target;t.removeEventListener("dispose",ge),function(e){ye(e),V.remove(e)}(t)}function ye(e){var t=V.get(e).program;void 0!==t&&Q.releaseProgram(t)}this.shadowMap=de,this.getContext=function(){return ue},this.getContextAttributes=function(){return ue.getContextAttributes()},this.forceContextLoss=function(){var e=z.get("WEBGL_lose_context");e&&e.loseContext()},this.forceContextRestore=function(){var e=z.get("WEBGL_lose_context");e&&e.restoreContext()},this.getPixelRatio=function(){return A},this.setPixelRatio=function(e){void 0!==e&&(A=e,this.setSize(M,O,!1))},this.getSize=function(e){return void 0===e&&(console.warn("WebGLRenderer: .getsize() now requires a Vector2 as an argument"),e=new Vc),e.set(M,O)},this.setSize=function(e,n,r){pe.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(M=e,O=n,t.width=Math.floor(e*A),t.height=Math.floor(n*A),!1!==r&&(t.style.width=e+"px",t.style.height=n+"px"),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return void 0===e&&(console.warn("WebGLRenderer: .getdrawingBufferSize() now requires a Vector2 as an argument"),e=new Vc),e.set(M*A,O*A).floor()},this.setDrawingBufferSize=function(e,n,r){M=e,O=n,A=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.getCurrentViewport=function(e){return void 0===e&&(console.warn("WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument"),e=new Jc),e.copy(E)},this.getViewport=function(e){return e.copy(P)},this.setViewport=function(e,t,n,r){e.isVector4?P.set(e.x,e.y,e.z,e.w):P.set(e,t,n,r),G.viewport(E.copy(P).multiplyScalar(A).floor())},this.getScissor=function(e){return e.copy(L)},this.setScissor=function(e,t,n,r){e.isVector4?L.set(e.x,e.y,e.z,e.w):L.set(e,t,n,r),G.scissor(S.copy(L).multiplyScalar(A).floor())},this.getScissorTest=function(){return R},this.setScissorTest=function(e){G.setScissorTest(R=e)},this.setOpaqueSort=function(e){k=e},this.setTransparentSort=function(e){C=e},this.getClearColor=function(){return ne.getClearColor()},this.setClearColor=function(){ne.setClearColor.apply(ne,arguments)},this.getClearAlpha=function(){return ne.getClearAlpha()},this.setClearAlpha=function(){ne.setClearAlpha.apply(ne,arguments)},this.clear=function(e,t,n){var r=0;(void 0===e||e)&&(r|=16384),(void 0===t||t)&&(r|=256),(void 0===n||n)&&(r|=1024),ue.clear(r)},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.dispose=function(){t.removeEventListener("webglcontextlost",me,!1),t.removeEventListener("webglcontextrestored",ve,!1),$.dispose(),ee.dispose(),V.dispose(),Y.dispose(),J.dispose(),se.dispose(),pe.dispose(),xe.stop()},this.renderBufferImmediate=function(e,t){se.initAttributes();var n=V.get(e);e.hasPositions&&!n.position&&(n.position=ue.createBuffer()),e.hasNormals&&!n.normal&&(n.normal=ue.createBuffer()),e.hasUvs&&!n.uv&&(n.uv=ue.createBuffer()),e.hasColors&&!n.color&&(n.color=ue.createBuffer());var r=t.getAttributes();e.hasPositions&&(ue.bindBuffer(34962,n.position),ue.bufferData(34962,e.positionArray,35048),se.enableAttribute(r.position),ue.vertexAttribPointer(r.position,3,5126,!1,0,0)),e.hasNormals&&(ue.bindBuffer(34962,n.normal),ue.bufferData(34962,e.normalArray,35048),se.enableAttribute(r.normal),ue.vertexAttribPointer(r.normal,3,5126,!1,0,0)),e.hasUvs&&(ue.bindBuffer(34962,n.uv),ue.bufferData(34962,e.uvArray,35048),se.enableAttribute(r.uv),ue.vertexAttribPointer(r.uv,2,5126,!1,0,0)),e.hasColors&&(ue.bindBuffer(34962,n.color),ue.bufferData(34962,e.colorArray,35048),se.enableAttribute(r.color),ue.vertexAttribPointer(r.color,3,5126,!1,0,0)),se.disableUnusedAttributes(),ue.drawArrays(4,0,e.count),e.count=0},this.renderBufferDirect=function(e,t,n,r,i,o){null===t&&(t=F);var a=i.isMesh&&i.matrixWorld.determinant()<0,s=Se(e,t,r,i);G.setMaterial(r,a);var u=n.index,c=n.attributes.position;if(null===u){if(void 0===c||0===c.count)return}else if(0===u.count)return;var l,f=1;!0===r.wireframe&&(u=Z.getWireframeAttribute(n),f=2),(r.morphTargets||r.morphNormals)&&re.update(i,n,r,s),se.setup(i,r,s,n,u);var h=ie;null!==u&&(l=X.get(u),(h=oe).setIndex(l));var p=null!==u?u.count:c.count,d=n.drawRange.start*f,m=n.drawRange.count*f,v=null!==o?o.start*f:0,g=null!==o?o.count*f:1/0,y=Math.max(d,v),b=Math.min(p,d+m,v+g)-1,x=Math.max(0,b-y+1);if(0!==x){if(i.isMesh)!0===r.wireframe?(G.setLineWidth(r.wireframeLinewidth*U()),h.setMode(1)):h.setMode(4);else if(i.isLine){var _=r.linewidth;void 0===_&&(_=1),G.setLineWidth(_*U()),i.isLineSegments?h.setMode(1):i.isLineLoop?h.setMode(2):h.setMode(3)}else i.isPoints?h.setMode(0):i.isSprite&&h.setMode(4);if(i.isInstancedMesh)h.renderInstances(y,x,i.count);else if(n.isInstancedBufferGeometry){var w=Math.min(n.instanceCount,n._maxInstanceCount);h.renderInstances(y,x,w)}else h.render(y,x)}},this.compile=function(e,t){(h=ee.get(e,t)).init(),e.traverse(function(e){e.isLight&&(h.pushLight(e),e.castShadow&&h.pushShadow(e))}),h.setupLights(t);var n=new WeakMap;e.traverse(function(t){var r=t.material;if(r)if(Array.isArray(r))for(var i=0;i<r.length;i++){var o=r[i];!1===n.has(o)&&(Ee(o,e,t),n.set(o))}else!1===n.has(r)&&(Ee(r,e,t),n.set(r))})};var be=null;var xe=new Bh;function _e(e,t,n){for(var r=!0===t.isScene?t.overrideMaterial:null,i=0,o=e.length;i<o;i++){var a=e[i],s=a.object,u=a.geometry,c=null===r?a.material:r,l=a.group;if(n.isArrayCamera){w=n;for(var f=n.cameras,p=0,d=f.length;p<d;p++){var m=f[p];s.layers.test(m.layers)&&(G.viewport(E.copy(m.viewport)),h.setupLights(m),we(s,t,m,u,c,l))}}else w=null,we(s,t,n,u,c,l)}}function we(e,t,n,r,i,o){if(e.onBeforeRender(p,t,n,r,i,o),h=ee.get(t,w||n),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),e.isImmediateRenderObject){var a=Se(n,t,i,e);G.setMaterial(i),se.reset(),function(e,t){e.render(function(e){p.renderBufferImmediate(e,t)})}(e,a)}else p.renderBufferDirect(n,t,r,i,e,o);e.onAfterRender(p,t,n,r,i,o),h=ee.get(t,w||n)}function Ee(e,t,n){!0!==t.isScene&&(t=F);var r=V.get(e),i=h.state.lights,o=h.state.shadowsArray,a=i.state.version,s=Q.getParameters(e,i.state,o,t,n),u=Q.getProgramCacheKey(s),c=r.program,l=!0;if(void 0===c)e.addEventListener("dispose",ge);else if(c.cacheKey!==u)ye(e);else if(r.lightsStateVersion!==a)l=!1;else{if(void 0!==s.shaderID){var f=e.isMeshStandardMaterial?t.environment:null;return void(r.envMap=Y.get(e.envMap||f))}l=!1}l&&(s.uniforms=Q.getUniforms(e),e.onBeforeCompile(s,p),c=Q.acquireProgram(s,u),r.program=c,r.uniforms=s.uniforms,r.outputEncoding=s.outputEncoding);var d=r.uniforms;(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(r.numClippingPlanes=te.numPlanes,r.numIntersection=te.numIntersection,d.clippingPlanes=te.uniform),r.environment=e.isMeshStandardMaterial?t.environment:null,r.fog=t.fog,r.envMap=Y.get(e.envMap||r.environment),r.needsLights=function(e){return e.isMeshLambertMaterial||e.isMeshToonMaterial||e.isMeshPhongMaterial||e.isMeshStandardMaterial||e.isShadowMaterial||e.isShaderMaterial&&!0===e.lights}(e),r.lightsStateVersion=a,r.needsLights&&(d.ambientLightColor.value=i.state.ambient,d.lightProbe.value=i.state.probe,d.directionalLights.value=i.state.directional,d.directionalLightShadows.value=i.state.directionalShadow,d.spotLights.value=i.state.spot,d.spotLightShadows.value=i.state.spotShadow,d.rectAreaLights.value=i.state.rectArea,d.ltc_1.value=i.state.rectAreaLTC1,d.ltc_2.value=i.state.rectAreaLTC2,d.pointLights.value=i.state.point,d.pointLightShadows.value=i.state.pointShadow,d.hemisphereLights.value=i.state.hemi,d.directionalShadowMap.value=i.state.directionalShadowMap,d.directionalShadowMatrix.value=i.state.directionalShadowMatrix,d.spotShadowMap.value=i.state.spotShadowMap,d.spotShadowMatrix.value=i.state.spotShadowMatrix,d.pointShadowMap.value=i.state.pointShadowMap,d.pointShadowMatrix.value=i.state.pointShadowMatrix);var m=r.program.getUniforms(),v=nd.seqWithValue(m.seq,d);r.uniformsList=v}function Se(e,t,n,r){!0!==t.isScene&&(t=F),q.resetTextureUnits();var i=t.fog,o=n.isMeshStandardMaterial?t.environment:null,a=null===y?p.outputEncoding:y.texture.encoding,s=Y.get(n.envMap||o),u=V.get(n),c=h.state.lights;if(!0===N&&(!0===I||e!==_)){var l=e===_&&n.id===x;te.setState(n,e,l)}n.version===u.__version?n.fog&&u.fog!==i?Ee(n,t,r):u.environment!==o?Ee(n,t,r):u.needsLights&&u.lightsStateVersion!==c.state.version?Ee(n,t,r):void 0===u.numClippingPlanes||u.numClippingPlanes===te.numPlanes&&u.numIntersection===te.numIntersection?u.outputEncoding!==a?Ee(n,t,r):u.envMap!==s&&Ee(n,t,r):Ee(n,t,r):(Ee(n,t,r),u.__version=n.version);var f,d,m=!1,v=!1,g=!1,b=u.program,w=b.getUniforms(),E=u.uniforms;if(G.useProgram(b.program)&&(m=!0,v=!0,g=!0),n.id!==x&&(x=n.id,v=!0),m||_!==e){if(w.setValue(ue,"projectionMatrix",e.projectionMatrix),H.logarithmicDepthBuffer&&w.setValue(ue,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),_!==e&&(_=e,v=!0,g=!0),n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshStandardMaterial||n.envMap){var S=w.map.cameraPosition;void 0!==S&&S.setValue(ue,B.setFromMatrixPosition(e.matrixWorld))}(n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial)&&w.setValue(ue,"isOrthographic",!0===e.isOrthographicCamera),(n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.isShadowMaterial||n.skinning)&&w.setValue(ue,"viewMatrix",e.matrixWorldInverse)}if(n.skinning){w.setOptional(ue,r,"bindMatrix"),w.setOptional(ue,r,"bindMatrixInverse");var T=r.skeleton;if(T){var M=T.bones;if(H.floatVertexTextures){if(void 0===T.boneTexture){var k=Math.sqrt(4*M.length);k=Wc.ceilPowerOfTwo(k),k=Math.max(k,4);var C=new Float32Array(k*k*4);C.set(T.boneMatrices);var P=new jh(C,k,k,wu,du);T.boneMatrices=C,T.boneTexture=P,T.boneTextureSize=k}w.setValue(ue,"boneTexture",T.boneTexture,q),w.setValue(ue,"boneTextureSize",T.boneTextureSize)}else w.setOptional(ue,T,"boneMatrices")}}return(v||u.receiveShadow!==r.receiveShadow)&&(u.receiveShadow=r.receiveShadow,w.setValue(ue,"receiveShadow",r.receiveShadow)),v&&(w.setValue(ue,"toneMappingExposure",p.toneMappingExposure),u.needsLights&&(d=g,(f=E).ambientLightColor.needsUpdate=d,f.lightProbe.needsUpdate=d,f.directionalLights.needsUpdate=d,f.directionalLightShadows.needsUpdate=d,f.pointLights.needsUpdate=d,f.pointLightShadows.needsUpdate=d,f.spotLights.needsUpdate=d,f.spotLightShadows.needsUpdate=d,f.rectAreaLights.needsUpdate=d,f.hemisphereLights.needsUpdate=d),i&&n.fog&&K.refreshFogUniforms(E,i),K.refreshMaterialUniforms(E,n,A,O),nd.upload(ue,u.uniformsList,E,q)),n.isShaderMaterial&&!0===n.uniformsNeedUpdate&&(nd.upload(ue,u.uniformsList,E,q),n.uniformsNeedUpdate=!1),n.isSpriteMaterial&&w.setValue(ue,"center",r.center),w.setValue(ue,"modelViewMatrix",r.modelViewMatrix),w.setValue(ue,"normalMatrix",r.normalMatrix),w.setValue(ue,"modelMatrix",r.matrixWorld),b}xe.setAnimationLoop(function(e){pe.isPresenting||be&&be(e)}),"undefined"!=typeof window&&xe.setContext(window),this.setAnimationLoop=function(e){be=e,pe.setAnimationLoop(e),null===e?xe.stop():xe.start()},this.render=function(e,t){var n,r;if(void 0!==arguments[2]&&(console.warn("THREE.WebGLRenderer.render(): the renderTarget argument has been removed. Use .setRenderTarget() instead."),n=arguments[2]),void 0!==arguments[3]&&(console.warn("THREE.WebGLRenderer.render(): the forceClear argument has been removed. Use .clear() instead."),r=arguments[3]),void 0===t||!0===t.isCamera){if(!0!==d){se.resetDefaultState(),x=-1,_=null,!0===e.autoUpdate&&e.updateMatrixWorld(),null===t.parent&&t.updateMatrixWorld(),!0===pe.enabled&&!0===pe.isPresenting&&(t=pe.getCamera(t)),!0===e.isScene&&e.onBeforeRender(p,e,t,n||y),(h=ee.get(e,t)).init(),D.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),j.setFromProjectionMatrix(D),I=this.localClippingEnabled,N=te.init(this.clippingPlanes,I,t),(f=$.get(e,t)).init(),function e(t,n,r,i){if(!1===t.visible)return;var o=t.layers.test(n.layers);if(o)if(t.isGroup)r=t.renderOrder;else if(t.isLOD)!0===t.autoUpdate&&t.update(n);else if(t.isLight)h.pushLight(t),t.castShadow&&h.pushShadow(t);else if(t.isSprite){if(!t.frustumCulled||j.intersectsSprite(t)){i&&B.setFromMatrixPosition(t.matrixWorld).applyMatrix4(D);var a=J.update(t),s=t.material;s.visible&&f.push(t,a,s,r,B.z,null)}}else if(t.isImmediateRenderObject)i&&B.setFromMatrixPosition(t.matrixWorld).applyMatrix4(D),f.push(t,null,t.material,r,B.z,null);else if((t.isMesh||t.isLine||t.isPoints)&&(t.isSkinnedMesh&&t.skeleton.frame!==W.render.frame&&(t.skeleton.update(),t.skeleton.frame=W.render.frame),!t.frustumCulled||j.intersectsObject(t))){i&&B.setFromMatrixPosition(t.matrixWorld).applyMatrix4(D);var u=J.update(t),c=t.material;if(Array.isArray(c))for(var l=u.groups,p=0,d=l.length;p<d;p++){var m=l[p],v=c[m.materialIndex];v&&v.visible&&f.push(t,u,v,r,B.z,m)}else c.visible&&f.push(t,u,c,r,B.z,null)}var g=t.children;for(var y=0,b=g.length;y<b;y++)e(g[y],n,r,i)}(e,t,0,p.sortObjects),f.finish(),!0===p.sortObjects&&f.sort(k,C),!0===N&&te.beginShadows();var i=h.state.shadowsArray;de.render(i,e,t),h.setupLights(t),!0===N&&te.endShadows(),!0===this.info.autoReset&&this.info.reset(),void 0!==n&&this.setRenderTarget(n),ne.render(f,e,t,r);var o=f.opaque,a=f.transparent;o.length>0&&_e(o,e,t),a.length>0&&_e(a,e,t),!0===e.isScene&&e.onAfterRender(p,e,t),null!==y&&(q.updateRenderTargetMipmap(y),q.updateMultisampleRenderTarget(y)),G.buffers.depth.setTest(!0),G.buffers.depth.setMask(!0),G.buffers.color.setMask(!0),G.setPolygonOffset(!1),f=null,h=null}}else console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.")},this.setFramebuffer=function(e){m!==e&&null===y&&ue.bindFramebuffer(36160,e),m=e},this.getActiveCubeFace=function(){return v},this.getActiveMipmapLevel=function(){return g},this.getRenderList=function(){return f},this.setRenderList=function(e){f=e},this.getRenderState=function(){return h},this.setRenderState=function(e){h=e},this.getRenderTarget=function(){return y},this.setRenderTarget=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;y=e,v=t,g=n,e&&void 0===V.get(e).__webglFramebuffer&&q.setupRenderTarget(e);var r=m,i=!1;if(e){var o=V.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(r=o[t],i=!0):r=e.isWebGLMultisampleRenderTarget?V.get(e).__webglMultisampledFramebuffer:o,E.copy(e.viewport),S.copy(e.scissor),T=e.scissorTest}else E.copy(P).multiplyScalar(A).floor(),S.copy(L).multiplyScalar(A).floor(),T=R;if(b!==r&&(ue.bindFramebuffer(36160,r),b=r),G.viewport(E),G.scissor(S),G.setScissorTest(T),i){var a=V.get(e.texture);ue.framebufferTexture2D(36160,36064,34069+t,a.__webglTexture,n)}},this.readRenderTargetPixels=function(e,t,n,r,i,o,a){if(e&&e.isWebGLRenderTarget){var s=V.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==a&&(s=s[a]),s){var u=!1;s!==b&&(ue.bindFramebuffer(36160,s),u=!0);try{var c=e.texture,l=c.format,f=c.type;if(l!==wu&&ae.convert(l)!==ue.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");if(!(f===uu||ae.convert(f)===ue.getParameter(35738)||f===du&&(H.isWebGL2||z.get("OES_texture_float")||z.get("WEBGL_color_buffer_float"))||f===mu&&(H.isWebGL2?z.get("EXT_color_buffer_float"):z.get("EXT_color_buffer_half_float"))))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");36053===ue.checkFramebufferStatus(36160)?t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&ue.readPixels(t,n,r,i,ae.convert(l),ae.convert(f),o):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{u&&ue.bindFramebuffer(36160,b)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")},this.copyFramebufferToTexture=function(e,t,n){void 0===n&&(n=0);var r=Math.pow(2,-n),i=Math.floor(t.image.width*r),o=Math.floor(t.image.height*r),a=ae.convert(t.format);q.setTexture2D(t,0),ue.copyTexImage2D(3553,n,a,e.x,e.y,i,o,0),G.unbindTexture()},this.copyTextureToTexture=function(e,t,n,r){void 0===r&&(r=0);var i=t.image.width,o=t.image.height,a=ae.convert(n.format),s=ae.convert(n.type);q.setTexture2D(n,0),ue.pixelStorei(37440,n.flipY),ue.pixelStorei(37441,n.premultiplyAlpha),ue.pixelStorei(3317,n.unpackAlignment),t.isDataTexture?ue.texSubImage2D(3553,r,e.x,e.y,i,o,a,s,t.image.data):t.isCompressedTexture?ue.compressedTexSubImage2D(3553,r,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,a,t.mipmaps[0].data):ue.texSubImage2D(3553,r,e.x,e.y,a,s,t.image),0===r&&n.generateMipmaps&&ue.generateMipmap(3553),G.unbindTexture()},this.initTexture=function(e){q.setTexture2D(e,0),G.unbindTexture()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}function Xd(e){Yd.call(this,e)}Hd.prototype=Object.assign(Object.create(kh.prototype),{constructor:Hd,isArrayCamera:!0}),Gd.prototype=Object.assign(Object.create($l.prototype),{constructor:Gd,isGroup:!0}),Object.assign(Wd.prototype,{constructor:Wd,getHandSpace:function(){if(null===this._hand&&(this._hand=new Gd,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints=[],this._hand.inputState={pinching:!1},window.XRHand))for(var e=0;e<=window.XRHand.LITTLE_PHALANX_TIP;e++){var t=new Gd;t.matrixAutoUpdate=!1,t.visible=!1,this._hand.joints.push(t),this._hand.add(t)}return this._hand},getTargetRaySpace:function(){return null===this._targetRay&&(this._targetRay=new Gd,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1),this._targetRay},getGripSpace:function(){return null===this._grip&&(this._grip=new Gd,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1),this._grip},dispatchEvent:function(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this},disconnect:function(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this},update:function(e,t,n){var r=null,i=null,o=null,a=this._targetRay,s=this._grip,u=this._hand;if(e)if(u&&e.hand){o=!0;for(var c=0;c<=window.XRHand.LITTLE_PHALANX_TIP;c++)if(e.hand[c]){var l=t.getJointPose(e.hand[c],n),f=u.joints[c];null!==l&&(f.matrix.fromArray(l.transform.matrix),f.matrix.decompose(f.position,f.rotation,f.scale),f.jointRadius=l.radius),f.visible=null!==l;var h=u.joints[window.XRHand.INDEX_PHALANX_TIP],p=u.joints[window.XRHand.THUMB_PHALANX_TIP],d=h.position.distanceTo(p.position);u.inputState.pinching&&d>.025?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!u.inputState.pinching&&d<=.015&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}}else null!==a&&null!==(r=t.getPose(e.targetRaySpace,n))&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale)),null!==s&&e.gripSpace&&null!==(i=t.getPose(e.gripSpace,n))&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale));return null!==a&&(a.visible=null!==r),null!==s&&(s.visible=null!==i),null!==u&&(u.visible=null!==o),this}}),Object.assign(Vd.prototype,Fc.prototype),Xd.prototype=Object.assign(Object.create(Yd.prototype),{constructor:Xd,isWebGL1Renderer:!0});var Zd=function(){function e(t,n){Object(cn.a)(this,e),Object.defineProperty(this,"isFogExp2",{value:!0}),this.name="",this.color=new wf(t),this.density=void 0!==n?n:25e-5}return Object(ln.a)(e,[{key:"clone",value:function(){return new e(this.color,this.density)}},{key:"toJSON",value:function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}]),e}(),Jd=function(){function e(t,n,r){Object(cn.a)(this,e),Object.defineProperty(this,"isFog",{value:!0}),this.name="",this.color=new wf(t),this.near=void 0!==n?n:1,this.far=void 0!==r?r:1e3}return Object(ln.a)(e,[{key:"clone",value:function(){return new e(this.color,this.near,this.far)}},{key:"toJSON",value:function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}]),e}(),Qd=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(){var e;return Object(cn.a)(this,n),e=t.call(this),Object.defineProperty(Object(Ka.a)(e),"isScene",{value:!0}),e.type="Scene",e.background=null,e.environment=null,e.fog=null,e.overrideMaterial=null,e.autoUpdate=!0,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:Object(Ka.a)(e)})),e}return Object(ln.a)(n,[{key:"copy",value:function(e,t){return Ja(Object(Za.a)(n.prototype),"copy",this).call(this,e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.autoUpdate=e.autoUpdate,this.matrixAutoUpdate=e.matrixAutoUpdate,this}},{key:"toJSON",value:function(e){var t=Ja(Object(Za.a)(n.prototype),"toJSON",this).call(this,e);return null!==this.background&&(t.object.background=this.background.toJSON(e)),null!==this.environment&&(t.object.environment=this.environment.toJSON(e)),null!==this.fog&&(t.object.fog=this.fog.toJSON()),t}}]),n}($l);function Kd(e,t){this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.usage=Ic,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Wc.generateUUID()}Object.defineProperty(Kd.prototype,"needsUpdate",{set:function(e){!0===e&&this.version++}}),Object.assign(Kd.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setUsage:function(e){return this.usage=e,this},copy:function(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this},copyAt:function(e,t,n){e*=this.stride,n*=t.stride;for(var r=0,i=this.stride;r<i;r++)this.array[e+r]=t.array[n+r];return this},set:function(e,t){return void 0===t&&(t=0),this.array.set(e,t),this},clone:function(e){void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Wc.generateUUID()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);var t=new Kd(new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),this.stride);return t.setUsage(this.usage),t},onUpload:function(e){return this.onUploadCallback=e,this},toJSON:function(e){return void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Wc.generateUUID()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}});var $d,em=new el;function tm(e,t,n,r){this.name="",this.data=e,this.itemSize=t,this.offset=n,this.normalized=!0===r}function nm(e){Tf.call(this),this.type="SpriteMaterial",this.color=new wf(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.setValues(e)}Object.defineProperties(tm.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}},needsUpdate:{set:function(e){this.data.needsUpdate=e}}}),Object.assign(tm.prototype,{isInterleavedBufferAttribute:!0,applyMatrix4:function(e){for(var t=0,n=this.data.count;t<n;t++)em.x=this.getX(t),em.y=this.getY(t),em.z=this.getZ(t),em.applyMatrix4(e),this.setXYZ(t,em.x,em.y,em.z);return this},setX:function(e,t){return this.data.array[e*this.data.stride+this.offset]=t,this},setY:function(e,t){return this.data.array[e*this.data.stride+this.offset+1]=t,this},setZ:function(e,t){return this.data.array[e*this.data.stride+this.offset+2]=t,this},setW:function(e,t){return this.data.array[e*this.data.stride+this.offset+3]=t,this},getX:function(e){return this.data.array[e*this.data.stride+this.offset]},getY:function(e){return this.data.array[e*this.data.stride+this.offset+1]},getZ:function(e){return this.data.array[e*this.data.stride+this.offset+2]},getW:function(e){return this.data.array[e*this.data.stride+this.offset+3]},setXY:function(e,t,n){return e=e*this.data.stride+this.offset,this.data.array[e+0]=t,this.data.array[e+1]=n,this},setXYZ:function(e,t,n,r){return e=e*this.data.stride+this.offset,this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=r,this},setXYZW:function(e,t,n,r,i){return e=e*this.data.stride+this.offset,this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=r,this.data.array[e+3]=i,this},clone:function(e){if(void 0===e){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.");for(var t=[],n=0;n<this.count;n++)for(var r=n*this.data.stride+this.offset,i=0;i<this.itemSize;i++)t.push(this.data.array[r+i]);return new kf(new this.array.constructor(t),this.itemSize,this.normalized)}return void 0===e.interleavedBuffers&&(e.interleavedBuffers={}),void 0===e.interleavedBuffers[this.data.uuid]&&(e.interleavedBuffers[this.data.uuid]=this.data.clone(e)),new tm(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)},toJSON:function(e){if(void 0===e){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.");for(var t=[],n=0;n<this.count;n++)for(var r=n*this.data.stride+this.offset,i=0;i<this.itemSize;i++)t.push(this.data.array[r+i]);return{itemSize:this.itemSize,type:this.array.constructor.name,array:t,normalized:this.normalized}}return void 0===e.interleavedBuffers&&(e.interleavedBuffers={}),void 0===e.interleavedBuffers[this.data.uuid]&&(e.interleavedBuffers[this.data.uuid]=this.data.toJSON(e)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}),nm.prototype=Object.create(Tf.prototype),nm.prototype.constructor=nm,nm.prototype.isSpriteMaterial=!0,nm.prototype.copy=function(e){return Tf.prototype.copy.call(this,e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.rotation=e.rotation,this.sizeAttenuation=e.sizeAttenuation,this};var rm=new el,im=new el,om=new el,am=new Vc,sm=new Vc,um=new Al,cm=new el,lm=new el,fm=new el,hm=new Vc,pm=new Vc,dm=new Vc;function mm(e){if($l.call(this),this.type="Sprite",void 0===$d){$d=new Xf;var t=new Kd(new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),5);$d.setIndex([0,1,2,0,2,3]),$d.setAttribute("position",new tm(t,3,0,!1)),$d.setAttribute("uv",new tm(t,2,3,!1))}this.geometry=$d,this.material=void 0!==e?e:new nm,this.center=new Vc(.5,.5)}function vm(e,t,n,r,i,o){am.subVectors(e,n).addScalar(.5).multiply(r),void 0!==i?(sm.x=o*am.x-i*am.y,sm.y=i*am.x+o*am.y):sm.copy(am),e.copy(t),e.x+=sm.x,e.y+=sm.y,e.applyMatrix4(um)}mm.prototype=Object.assign(Object.create($l.prototype),{constructor:mm,isSprite:!0,raycast:function(e,t){null===e.camera&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),im.setFromMatrixScale(this.matrixWorld),um.copy(e.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse,this.matrixWorld),om.setFromMatrixPosition(this.modelViewMatrix),e.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&im.multiplyScalar(-om.z);var n,r,i=this.material.rotation;0!==i&&(r=Math.cos(i),n=Math.sin(i));var o=this.center;vm(cm.set(-.5,-.5,0),om,o,im,n,r),vm(lm.set(.5,-.5,0),om,o,im,n,r),vm(fm.set(.5,.5,0),om,o,im,n,r),hm.set(0,0),pm.set(1,0),dm.set(1,1);var a=e.ray.intersectTriangle(cm,lm,fm,!1,rm);if(null!==a||(vm(lm.set(-.5,.5,0),om,o,im,n,r),pm.set(0,1),null!==(a=e.ray.intersectTriangle(cm,fm,lm,!1,rm)))){var s=e.ray.origin.distanceTo(rm);s<e.near||s>e.far||t.push({distance:s,point:rm.clone(),uv:mf.getUV(rm,cm,lm,fm,hm,pm,dm,new Vc),face:null,object:this})}},copy:function(e){return $l.prototype.copy.call(this,e),void 0!==e.center&&this.center.copy(e.center),this.material=e.material,this}});var gm,ym,bm,xm,_m,wm=new el,Em=new el;function Sm(){$l.call(this),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}}),this.autoUpdate=!0}function Tm(e,t){e&&e.isGeometry&&console.error("THREE.SkinnedMesh no longer supports THREE.Geometry. Use THREE.BufferGeometry instead."),hh.call(this,e,t),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new Al,this.bindMatrixInverse=new Al}Sm.prototype=Object.assign(Object.create($l.prototype),{constructor:Sm,isLOD:!0,copy:function(e){$l.prototype.copy.call(this,e,!1);for(var t=e.levels,n=0,r=t.length;n<r;n++){var i=t[n];this.addLevel(i.object.clone(),i.distance)}return this.autoUpdate=e.autoUpdate,this},addLevel:function(e,t){void 0===t&&(t=0),t=Math.abs(t);var n,r=this.levels;for(n=0;n<r.length&&!(t<r[n].distance);n++);return r.splice(n,0,{distance:t,object:e}),this.add(e),this},getCurrentLevel:function(){return this._currentLevel},getObjectForDistance:function(e){var t=this.levels;if(t.length>0){var n,r;for(n=1,r=t.length;n<r&&!(e<t[n].distance);n++);return t[n-1].object}return null},raycast:function(e,t){if(this.levels.length>0){wm.setFromMatrixPosition(this.matrixWorld);var n=e.ray.origin.distanceTo(wm);this.getObjectForDistance(n).raycast(e,t)}},update:function(e){var t=this.levels;if(t.length>1){wm.setFromMatrixPosition(e.matrixWorld),Em.setFromMatrixPosition(this.matrixWorld);var n,r,i=wm.distanceTo(Em)/e.zoom;for(t[0].object.visible=!0,n=1,r=t.length;n<r&&i>=t[n].distance;n++)t[n-1].object.visible=!1,t[n].object.visible=!0;for(this._currentLevel=n-1;n<r;n++)t[n].object.visible=!1}},toJSON:function(e){var t=$l.prototype.toJSON.call(this,e);!1===this.autoUpdate&&(t.object.autoUpdate=!1),t.object.levels=[];for(var n=this.levels,r=0,i=n.length;r<i;r++){var o=n[r];t.object.levels.push({object:o.object.uuid,distance:o.distance})}return t}}),Tm.prototype=Object.assign(Object.create(hh.prototype),{constructor:Tm,isSkinnedMesh:!0,copy:function(e){return hh.prototype.copy.call(this,e),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,this},bind:function(e,t){this.skeleton=e,void 0===t&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.getInverse(t)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){for(var e=new Jc,t=this.geometry.attributes.skinWeight,n=0,r=t.count;n<r;n++){e.x=t.getX(n),e.y=t.getY(n),e.z=t.getZ(n),e.w=t.getW(n);var i=1/e.manhattanLength();i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0),t.setXYZW(n,e.x,e.y,e.z,e.w)}},updateMatrixWorld:function(e){hh.prototype.updateMatrixWorld.call(this,e),"attached"===this.bindMode?this.bindMatrixInverse.getInverse(this.matrixWorld):"detached"===this.bindMode?this.bindMatrixInverse.getInverse(this.bindMatrix):console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)},boneTransform:(gm=new el,ym=new Jc,bm=new Jc,xm=new el,_m=new Al,function(e,t){var n=this.skeleton,r=this.geometry;ym.fromBufferAttribute(r.attributes.skinIndex,e),bm.fromBufferAttribute(r.attributes.skinWeight,e),gm.fromBufferAttribute(r.attributes.position,e).applyMatrix4(this.bindMatrix),t.set(0,0,0);for(var i=0;i<4;i++){var o=bm.getComponent(i);if(0!==o){var a=ym.getComponent(i);_m.multiplyMatrices(n.bones[a].matrixWorld,n.boneInverses[a]),t.addScaledVector(xm.copy(gm).applyMatrix4(_m),o)}}return t.applyMatrix4(this.bindMatrixInverse)})});var Mm=new Al,Om=new Al;function Am(e,t){if(e=e||[],this.bones=e.slice(0),this.boneMatrices=new Float32Array(16*this.bones.length),this.frame=-1,void 0===t)this.calculateInverses();else if(this.bones.length===t.length)this.boneInverses=t.slice(0);else{console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[];for(var n=0,r=this.bones.length;n<r;n++)this.boneInverses.push(new Al)}}function km(){$l.call(this),this.type="Bone"}Object.assign(Am.prototype,{calculateInverses:function(){this.boneInverses=[];for(var e=0,t=this.bones.length;e<t;e++){var n=new Al;this.bones[e]&&n.getInverse(this.bones[e].matrixWorld),this.boneInverses.push(n)}},pose:function(){for(var e=0,t=this.bones.length;e<t;e++){var n=this.bones[e];n&&n.matrixWorld.getInverse(this.boneInverses[e])}for(var r=0,i=this.bones.length;r<i;r++){var o=this.bones[r];o&&(o.parent&&o.parent.isBone?(o.matrix.getInverse(o.parent.matrixWorld),o.matrix.multiply(o.matrixWorld)):o.matrix.copy(o.matrixWorld),o.matrix.decompose(o.position,o.quaternion,o.scale))}},update:function(){for(var e=this.bones,t=this.boneInverses,n=this.boneMatrices,r=this.boneTexture,i=0,o=e.length;i<o;i++){var a=e[i]?e[i].matrixWorld:Om;Mm.multiplyMatrices(a,t[i]),Mm.toArray(n,16*i)}void 0!==r&&(r.needsUpdate=!0)},clone:function(){return new Am(this.bones,this.boneInverses)},getBoneByName:function(e){for(var t=0,n=this.bones.length;t<n;t++){var r=this.bones[t];if(r.name===e)return r}},dispose:function(){this.boneTexture&&(this.boneTexture.dispose(),this.boneTexture=void 0)}}),km.prototype=Object.assign(Object.create($l.prototype),{constructor:km,isBone:!0});var Cm=new Al,Pm=new Al,Lm=[],Rm=new hh;function jm(e,t,n){hh.call(this,e,t),this.instanceMatrix=new kf(new Float32Array(16*n),16),this.instanceColor=null,this.count=n,this.frustumCulled=!1}function Nm(e){Tf.call(this),this.type="LineBasicMaterial",this.color=new wf(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.morphTargets=!1,this.setValues(e)}jm.prototype=Object.assign(Object.create(hh.prototype),{constructor:jm,isInstancedMesh:!0,copy:function(e){return hh.prototype.copy.call(this,e),this.instanceMatrix.copy(e.instanceMatrix),this.count=e.count,this},setColorAt:function(e,t){null===this.instanceColor&&(this.instanceColor=new kf(new Float32Array(3*this.count),3)),t.toArray(this.instanceColor.array,3*e)},getMatrixAt:function(e,t){t.fromArray(this.instanceMatrix.array,16*e)},raycast:function(e,t){var n=this.matrixWorld,r=this.count;if(Rm.geometry=this.geometry,Rm.material=this.material,void 0!==Rm.material)for(var i=0;i<r;i++){this.getMatrixAt(i,Cm),Pm.multiplyMatrices(n,Cm),Rm.matrixWorld=Pm,Rm.raycast(e,Lm);for(var o=0,a=Lm.length;o<a;o++){var s=Lm[o];s.instanceId=i,s.object=this,t.push(s)}Lm.length=0}},setMatrixAt:function(e,t){t.toArray(this.instanceMatrix.array,16*e)},updateMorphTargets:function(){}}),Nm.prototype=Object.create(Tf.prototype),Nm.prototype.constructor=Nm,Nm.prototype.isLineBasicMaterial=!0,Nm.prototype.copy=function(e){return Tf.prototype.copy.call(this,e),this.color.copy(e.color),this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.morphTargets=e.morphTargets,this};var Im=new el,Dm=new el,Bm=new Al,Fm=new Ol,Um=new bl;function zm(e,t,n){1===n&&console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead."),$l.call(this),this.type="Line",this.geometry=void 0!==e?e:new Xf,this.material=void 0!==t?t:new Nm,this.updateMorphTargets()}zm.prototype=Object.assign(Object.create($l.prototype),{constructor:zm,isLine:!0,copy:function(e){return $l.prototype.copy.call(this,e),this.material=e.material,this.geometry=e.geometry,this},computeLineDistances:function(){var e=this.geometry;if(e.isBufferGeometry)if(null===e.index){for(var t=e.attributes.position,n=[0],r=1,i=t.count;r<i;r++)Im.fromBufferAttribute(t,r-1),Dm.fromBufferAttribute(t,r),n[r]=n[r-1],n[r]+=Im.distanceTo(Dm);e.setAttribute("lineDistance",new Df(n,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(e.isGeometry){var o=e.vertices,a=e.lineDistances;a[0]=0;for(var s=1,u=o.length;s<u;s++)a[s]=a[s-1],a[s]+=o[s-1].distanceTo(o[s])}return this},raycast:function(e,t){var n=this.geometry,r=this.matrixWorld,i=e.params.Line.threshold;if(null===n.boundingSphere&&n.computeBoundingSphere(),Um.copy(n.boundingSphere),Um.applyMatrix4(r),Um.radius+=i,!1!==e.ray.intersectsSphere(Um)){Bm.getInverse(r),Fm.copy(e.ray).applyMatrix4(Bm);var o=i/((this.scale.x+this.scale.y+this.scale.z)/3),a=o*o,s=new el,u=new el,c=new el,l=new el,f=this&&this.isLineSegments?2:1;if(n.isBufferGeometry){var h=n.index,p=n.attributes.position.array;if(null!==h)for(var d=h.array,m=0,v=d.length-1;m<v;m+=f){var g=d[m],y=d[m+1];if(s.fromArray(p,3*g),u.fromArray(p,3*y),!(Fm.distanceSqToSegment(s,u,l,c)>a)){l.applyMatrix4(this.matrixWorld);var b=e.ray.origin.distanceTo(l);b<e.near||b>e.far||t.push({distance:b,point:c.clone().applyMatrix4(this.matrixWorld),index:m,face:null,faceIndex:null,object:this})}}else for(var x=0,_=p.length/3-1;x<_;x+=f){if(s.fromArray(p,3*x),u.fromArray(p,3*x+3),!(Fm.distanceSqToSegment(s,u,l,c)>a)){l.applyMatrix4(this.matrixWorld);var w=e.ray.origin.distanceTo(l);w<e.near||w>e.far||t.push({distance:w,point:c.clone().applyMatrix4(this.matrixWorld),index:x,face:null,faceIndex:null,object:this})}}}else if(n.isGeometry)for(var E=n.vertices,S=E.length,T=0;T<S-1;T+=f){if(!(Fm.distanceSqToSegment(E[T],E[T+1],l,c)>a)){l.applyMatrix4(this.matrixWorld);var M=e.ray.origin.distanceTo(l);M<e.near||M>e.far||t.push({distance:M,point:c.clone().applyMatrix4(this.matrixWorld),index:T,face:null,faceIndex:null,object:this})}}}},updateMorphTargets:function(){var e=this.geometry;if(e.isBufferGeometry){var t=e.morphAttributes,n=Object.keys(t);if(n.length>0){var r=t[n[0]];if(void 0!==r){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var i=0,o=r.length;i<o;i++){var a=r[i].name||String(i);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=i}}}}else{var s=e.morphTargets;void 0!==s&&s.length>0&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}});var Hm=new el,Gm=new el;function Wm(e,t){zm.call(this,e,t),this.type="LineSegments"}function Vm(e,t){zm.call(this,e,t),this.type="LineLoop"}function qm(e){Tf.call(this),this.type="PointsMaterial",this.color=new wf(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.morphTargets=!1,this.setValues(e)}Wm.prototype=Object.assign(Object.create(zm.prototype),{constructor:Wm,isLineSegments:!0,computeLineDistances:function(){var e=this.geometry;if(e.isBufferGeometry)if(null===e.index){for(var t=e.attributes.position,n=[],r=0,i=t.count;r<i;r+=2)Hm.fromBufferAttribute(t,r),Gm.fromBufferAttribute(t,r+1),n[r]=0===r?0:n[r-1],n[r+1]=n[r]+Hm.distanceTo(Gm);e.setAttribute("lineDistance",new Df(n,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(e.isGeometry)for(var o=e.vertices,a=e.lineDistances,s=0,u=o.length;s<u;s+=2)Hm.copy(o[s]),Gm.copy(o[s+1]),a[s]=0===s?0:a[s-1],a[s+1]=a[s]+Hm.distanceTo(Gm);return this}}),Vm.prototype=Object.assign(Object.create(zm.prototype),{constructor:Vm,isLineLoop:!0}),qm.prototype=Object.create(Tf.prototype),qm.prototype.constructor=qm,qm.prototype.isPointsMaterial=!0,qm.prototype.copy=function(e){return Tf.prototype.copy.call(this,e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this.morphTargets=e.morphTargets,this};var Ym=new Al,Xm=new Ol,Zm=new bl,Jm=new el;function Qm(e,t){$l.call(this),this.type="Points",this.geometry=void 0!==e?e:new Xf,this.material=void 0!==t?t:new qm,this.updateMorphTargets()}function Km(e,t,n,r,i,o,a){var s=Xm.distanceSqToPoint(e);if(s<n){var u=new el;Xm.closestPointToPoint(e,u),u.applyMatrix4(r);var c=i.ray.origin.distanceTo(u);if(c<i.near||c>i.far)return;o.push({distance:c,distanceToRay:Math.sqrt(s),point:u,index:t,face:null,object:a})}}function $m(e,t,n,r,i,o,a,s,u){Zc.call(this,e,t,n,r,i,o,a,s,u),this.format=void 0!==a?a:_u,this.minFilter=void 0!==o?o:ou,this.magFilter=void 0!==i?i:ou,this.generateMipmaps=!1;var c=this;"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(function t(){c.needsUpdate=!0,e.requestVideoFrameCallback(t)})}function ev(e,t,n,r,i,o,a,s,u,c,l,f){Zc.call(this,null,o,a,s,u,c,r,i,l,f),this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}function tv(e,t,n,r,i,o,a,s,u){Zc.call(this,e,t,n,r,i,o,a,s,u),this.needsUpdate=!0}function nv(e,t,n,r,i,o,a,s,u,c){if((c=void 0!==c?c:Tu)!==Tu&&c!==Mu)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===Tu&&(n=fu),void 0===n&&c===Mu&&(n=bu),Zc.call(this,null,r,i,o,a,s,c,n,u),this.image={width:e,height:t},this.magFilter=void 0!==a?a:nu,this.minFilter=void 0!==s?s:nu,this.flipY=!1,this.generateMipmaps=!1}Qm.prototype=Object.assign(Object.create($l.prototype),{constructor:Qm,isPoints:!0,copy:function(e){return $l.prototype.copy.call(this,e),this.material=e.material,this.geometry=e.geometry,this},raycast:function(e,t){var n=this.geometry,r=this.matrixWorld,i=e.params.Points.threshold;if(null===n.boundingSphere&&n.computeBoundingSphere(),Zm.copy(n.boundingSphere),Zm.applyMatrix4(r),Zm.radius+=i,!1!==e.ray.intersectsSphere(Zm)){Ym.getInverse(r),Xm.copy(e.ray).applyMatrix4(Ym);var o=i/((this.scale.x+this.scale.y+this.scale.z)/3),a=o*o;if(n.isBufferGeometry){var s=n.index,u=n.attributes.position.array;if(null!==s)for(var c=s.array,l=0,f=c.length;l<f;l++){var h=c[l];Jm.fromArray(u,3*h),Km(Jm,h,a,r,e,t,this)}else for(var p=0,d=u.length/3;p<d;p++)Jm.fromArray(u,3*p),Km(Jm,p,a,r,e,t,this)}else for(var m=n.vertices,v=0,g=m.length;v<g;v++)Km(m[v],v,a,r,e,t,this)}},updateMorphTargets:function(){var e=this.geometry;if(e.isBufferGeometry){var t=e.morphAttributes,n=Object.keys(t);if(n.length>0){var r=t[n[0]];if(void 0!==r){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var i=0,o=r.length;i<o;i++){var a=r[i].name||String(i);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=i}}}}else{var s=e.morphTargets;void 0!==s&&s.length>0&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}),$m.prototype=Object.assign(Object.create(Zc.prototype),{constructor:$m,isVideoTexture:!0,update:function(){var e=this.image;!1==="requestVideoFrameCallback"in e&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}),ev.prototype=Object.create(Zc.prototype),ev.prototype.constructor=ev,ev.prototype.isCompressedTexture=!0,tv.prototype=Object.create(Zc.prototype),tv.prototype.constructor=tv,tv.prototype.isCanvasTexture=!0,nv.prototype=Object.create(Zc.prototype),nv.prototype.constructor=nv,nv.prototype.isDepthTexture=!0;var rv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e){var r;Object(cn.a)(this,n),(r=t.call(this)).type="WireframeGeometry";var i=[],o=[0,0],a={},s=["a","b","c"];if(e&&e.isGeometry){for(var u=e.faces,c=0,l=u.length;c<l;c++)for(var f=u[c],h=0;h<3;h++){var p=f[s[h]],d=f[s[(h+1)%3]];o[0]=Math.min(p,d),o[1]=Math.max(p,d);var m=o[0]+","+o[1];void 0===a[m]&&(a[m]={index1:o[0],index2:o[1]})}for(var v in a){var g=a[v],y=e.vertices[g.index1];i.push(y.x,y.y,y.z),y=e.vertices[g.index2],i.push(y.x,y.y,y.z)}}else if(e&&e.isBufferGeometry){var b=new el;if(null!==e.index){var x=e.attributes.position,_=e.index,w=e.groups;0===w.length&&(w=[{start:0,count:_.count,materialIndex:0}]);for(var E=0,S=w.length;E<S;++E)for(var T=w[E],M=T.start,O=M,A=M+T.count;O<A;O+=3)for(var k=0;k<3;k++){var C=_.getX(O+k),P=_.getX(O+(k+1)%3);o[0]=Math.min(C,P),o[1]=Math.max(C,P);var L=o[0]+","+o[1];void 0===a[L]&&(a[L]={index1:o[0],index2:o[1]})}for(var R in a){var j=a[R];b.fromBufferAttribute(x,j.index1),i.push(b.x,b.y,b.z),b.fromBufferAttribute(x,j.index2),i.push(b.x,b.y,b.z)}}else for(var N=e.attributes.position,I=0,D=N.count/3;I<D;I++)for(var B=0;B<3;B++){var F=3*I+B;b.fromBufferAttribute(N,F),i.push(b.x,b.y,b.z);var U=3*I+(B+1)%3;b.fromBufferAttribute(N,U),i.push(b.x,b.y,b.z)}}return r.setAttribute("position",new Df(i,3)),r}return n}(Xf);function iv(e,t,n){bh.call(this),this.type="ParametricGeometry",this.parameters={func:e,slices:t,stacks:n},this.fromBufferGeometry(new ov(e,t,n)),this.mergeVertices()}function ov(e,t,n){Xf.call(this),this.type="ParametricBufferGeometry",this.parameters={func:e,slices:t,stacks:n};var r=[],i=[],o=[],a=[],s=new el,u=new el,c=new el,l=new el,f=new el;e.length<3&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");for(var h=t+1,p=0;p<=n;p++)for(var d=p/n,m=0;m<=t;m++){var v=m/t;e(v,d,u),i.push(u.x,u.y,u.z),v-1e-5>=0?(e(v-1e-5,d,c),l.subVectors(u,c)):(e(v+1e-5,d,c),l.subVectors(c,u)),d-1e-5>=0?(e(v,d-1e-5,c),f.subVectors(u,c)):(e(v,d+1e-5,c),f.subVectors(c,u)),s.crossVectors(l,f).normalize(),o.push(s.x,s.y,s.z),a.push(v,d)}for(var g=0;g<n;g++)for(var y=0;y<t;y++){var b=g*h+y,x=g*h+y+1,_=(g+1)*h+y+1,w=(g+1)*h+y;r.push(b,x,w),r.push(x,_,w)}this.setIndex(r),this.setAttribute("position",new Df(i,3)),this.setAttribute("normal",new Df(o,3)),this.setAttribute("uv",new Df(a,2))}iv.prototype=Object.create(bh.prototype),iv.prototype.constructor=iv,ov.prototype=Object.create(Xf.prototype),ov.prototype.constructor=ov;var av=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o){var a;return Object(cn.a)(this,n),(a=t.call(this)).type="PolyhedronGeometry",a.parameters={vertices:e,indices:r,radius:i,detail:o},a.fromBufferGeometry(new sv(e,r,i,o)),a.mergeVertices(),a}return n}(bh),sv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o){var a;Object(cn.a)(this,n),(a=t.call(this)).type="PolyhedronBufferGeometry",a.parameters={vertices:e,indices:r,radius:i,detail:o},i=i||1;var s=[],u=[];function c(e,t,n,r){for(var i=Math.pow(2,r),o=[],a=0;a<=i;a++){o[a]=[];for(var s=e.clone().lerp(n,a/i),u=t.clone().lerp(n,a/i),c=i-a,f=0;f<=c;f++)o[a][f]=0===f&&a===i?s:s.clone().lerp(u,f/c)}for(var h=0;h<i;h++)for(var p=0;p<2*(i-h)-1;p++){var d=Math.floor(p/2);p%2==0?(l(o[h][d+1]),l(o[h+1][d]),l(o[h][d])):(l(o[h][d+1]),l(o[h+1][d+1]),l(o[h+1][d]))}}function l(e){s.push(e.x,e.y,e.z)}function f(t,n){var r=3*t;n.x=e[r+0],n.y=e[r+1],n.z=e[r+2]}function h(e,t,n,r){r<0&&1===e.x&&(u[t]=e.x-1),0===n.x&&0===n.z&&(u[t]=r/2/Math.PI+.5)}function p(e){return Math.atan2(e.z,-e.x)}return function(e){for(var t=new el,n=new el,i=new el,o=0;o<r.length;o+=3)f(r[o+0],t),f(r[o+1],n),f(r[o+2],i),c(t,n,i,e)}(o=o||0),function(e){for(var t=new el,n=0;n<s.length;n+=3)t.x=s[n+0],t.y=s[n+1],t.z=s[n+2],t.normalize().multiplyScalar(e),s[n+0]=t.x,s[n+1]=t.y,s[n+2]=t.z}(i),function(){for(var e=new el,t=0;t<s.length;t+=3){e.x=s[t+0],e.y=s[t+1],e.z=s[t+2];var n=p(e)/2/Math.PI+.5,r=(i=e,Math.atan2(-i.y,Math.sqrt(i.x*i.x+i.z*i.z))/Math.PI+.5);u.push(n,1-r)}var i;(function(){for(var e=new el,t=new el,n=new el,r=new el,i=new Vc,o=new Vc,a=new Vc,c=0,l=0;c<s.length;c+=9,l+=6){e.set(s[c+0],s[c+1],s[c+2]),t.set(s[c+3],s[c+4],s[c+5]),n.set(s[c+6],s[c+7],s[c+8]),i.set(u[l+0],u[l+1]),o.set(u[l+2],u[l+3]),a.set(u[l+4],u[l+5]),r.copy(e).add(t).add(n).divideScalar(3);var f=p(r);h(i,l+0,e,f),h(o,l+2,t,f),h(a,l+4,n,f)}})(),function(){for(var e=0;e<u.length;e+=6){var t=u[e+0],n=u[e+2],r=u[e+4],i=Math.max(t,n,r),o=Math.min(t,n,r);i>.9&&o<.1&&(t<.2&&(u[e+0]+=1),n<.2&&(u[e+2]+=1),r<.2&&(u[e+4]+=1))}}()}(),a.setAttribute("position",new Df(s,3)),a.setAttribute("normal",new Df(s.slice(),3)),a.setAttribute("uv",new Df(u,2)),0===o?a.computeVertexNormals():a.normalizeNormals(),a}return n}(Xf),uv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;return Object(cn.a)(this,n),(i=t.call(this)).type="TetrahedronGeometry",i.parameters={radius:e,detail:r},i.fromBufferGeometry(new cv(e,r)),i.mergeVertices(),i}return n}(bh),cv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;Object(cn.a)(this,n);return(i=t.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],e,r)).type="TetrahedronBufferGeometry",i.parameters={radius:e,detail:r},i}return n}(sv),lv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;return Object(cn.a)(this,n),(i=t.call(this)).type="OctahedronGeometry",i.parameters={radius:e,detail:r},i.fromBufferGeometry(new fv(e,r)),i.mergeVertices(),i}return n}(bh),fv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;Object(cn.a)(this,n);return(i=t.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],e,r)).type="OctahedronBufferGeometry",i.parameters={radius:e,detail:r},i}return n}(sv),hv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;return Object(cn.a)(this,n),(i=t.call(this)).type="IcosahedronGeometry",i.parameters={radius:e,detail:r},i.fromBufferGeometry(new pv(e,r)),i.mergeVertices(),i}return n}(bh),pv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;Object(cn.a)(this,n);var o=(1+Math.sqrt(5))/2,a=[-1,o,0,1,o,0,-1,-o,0,1,-o,0,0,-1,o,0,1,o,0,-1,-o,0,1,-o,o,0,-1,o,0,1,-o,0,-1,-o,0,1];return(i=t.call(this,a,[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],e,r)).type="IcosahedronBufferGeometry",i.parameters={radius:e,detail:r},i}return n}(sv),dv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;return Object(cn.a)(this,n),(i=t.call(this)).type="DodecahedronGeometry",i.parameters={radius:e,detail:r},i.fromBufferGeometry(new mv(e,r)),i.mergeVertices(),i}return n}(bh),mv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;Object(cn.a)(this,n);var o=(1+Math.sqrt(5))/2,a=1/o,s=[-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,-a,-o,0,-a,o,0,a,-o,0,a,o,-a,-o,0,-a,o,0,a,-o,0,a,o,0,-o,0,-a,o,0,-a,-o,0,a,o,0,a];return(i=t.call(this,s,[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],e,r)).type="DodecahedronBufferGeometry",i.parameters={radius:e,detail:r},i}return n}(sv),vv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a,s){var u;Object(cn.a)(this,n),(u=t.call(this)).type="TubeGeometry",u.parameters={path:e,tubularSegments:r,radius:i,radialSegments:o,closed:a},void 0!==s&&console.warn("THREE.TubeGeometry: taper has been removed.");var c=new gv(e,r,i,o,a);return u.tangents=c.tangents,u.normals=c.normals,u.binormals=c.binormals,u.fromBufferGeometry(c),u.mergeVertices(),u}return n}(bh),gv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a){var s;Object(cn.a)(this,n),(s=t.call(this)).type="TubeBufferGeometry",s.parameters={path:e,tubularSegments:r,radius:i,radialSegments:o,closed:a},r=r||64,i=i||1,o=o||8,a=a||!1;var u=e.computeFrenetFrames(r,a);s.tangents=u.tangents,s.normals=u.normals,s.binormals=u.binormals;var c=new el,l=new el,f=new Vc,h=new el,p=[],d=[],m=[],v=[];function g(t){h=e.getPointAt(t/r,h);for(var n=u.normals[t],a=u.binormals[t],s=0;s<=o;s++){var f=s/o*Math.PI*2,m=Math.sin(f),v=-Math.cos(f);l.x=v*n.x+m*a.x,l.y=v*n.y+m*a.y,l.z=v*n.z+m*a.z,l.normalize(),d.push(l.x,l.y,l.z),c.x=h.x+i*l.x,c.y=h.y+i*l.y,c.z=h.z+i*l.z,p.push(c.x,c.y,c.z)}}return function(){for(var e=0;e<r;e++)g(e);g(!1===a?r:0),function(){for(var e=0;e<=r;e++)for(var t=0;t<=o;t++)f.x=e/r,f.y=t/o,m.push(f.x,f.y)}(),function(){for(var e=1;e<=r;e++)for(var t=1;t<=o;t++){var n=(o+1)*(e-1)+(t-1),i=(o+1)*e+(t-1),a=(o+1)*e+t,s=(o+1)*(e-1)+t;v.push(n,i,s),v.push(i,a,s)}}()}(),s.setIndex(v),s.setAttribute("position",new Df(p,3)),s.setAttribute("normal",new Df(d,3)),s.setAttribute("uv",new Df(m,2)),s}return Object(ln.a)(n,[{key:"toJSON",value:function(){var e=Xf.prototype.toJSON.call(this);return e.path=this.parameters.path.toJSON(),e}}]),n}(Xf),yv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a,s,u){var c;return Object(cn.a)(this,n),(c=t.call(this)).type="TorusKnotGeometry",c.parameters={radius:e,tube:r,tubularSegments:i,radialSegments:o,p:a,q:s},void 0!==u&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead."),c.fromBufferGeometry(new bv(e,r,i,o,a,s)),c.mergeVertices(),c}return n}(bh),bv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a,s){var u;Object(cn.a)(this,n),(u=t.call(this)).type="TorusKnotBufferGeometry",u.parameters={radius:e,tube:r,tubularSegments:i,radialSegments:o,p:a,q:s},e=e||1,r=r||.4,i=Math.floor(i)||64,o=Math.floor(o)||8,a=a||2,s=s||3;for(var c=[],l=[],f=[],h=[],p=new el,d=new el,m=new el,v=new el,g=new el,y=new el,b=new el,x=0;x<=i;++x){var _=x/i*a*Math.PI*2;L(_,a,s,e,m),L(_+.01,a,s,e,v),y.subVectors(v,m),b.addVectors(v,m),g.crossVectors(y,b),b.crossVectors(g,y),g.normalize(),b.normalize();for(var w=0;w<=o;++w){var E=w/o*Math.PI*2,S=-r*Math.cos(E),T=r*Math.sin(E);p.x=m.x+(S*b.x+T*g.x),p.y=m.y+(S*b.y+T*g.y),p.z=m.z+(S*b.z+T*g.z),l.push(p.x,p.y,p.z),d.subVectors(p,m).normalize(),f.push(d.x,d.y,d.z),h.push(x/i),h.push(w/o)}}for(var M=1;M<=i;M++)for(var O=1;O<=o;O++){var A=(o+1)*(M-1)+(O-1),k=(o+1)*M+(O-1),C=(o+1)*M+O,P=(o+1)*(M-1)+O;c.push(A,k,P),c.push(k,C,P)}function L(e,t,n,r,i){var o=Math.cos(e),a=Math.sin(e),s=n/t*e,u=Math.cos(s);i.x=r*(2+u)*.5*o,i.y=r*(2+u)*a*.5,i.z=r*Math.sin(s)*.5}return u.setIndex(c),u.setAttribute("position",new Df(l,3)),u.setAttribute("normal",new Df(f,3)),u.setAttribute("uv",new Df(h,2)),u}return n}(Xf),xv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a){var s;return Object(cn.a)(this,n),(s=t.call(this)).type="TorusGeometry",s.parameters={radius:e,tube:r,radialSegments:i,tubularSegments:o,arc:a},s.fromBufferGeometry(new _v(e,r,i,o,a)),s.mergeVertices(),s}return n}(bh),_v=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a){var s;Object(cn.a)(this,n),(s=t.call(this)).type="TorusBufferGeometry",s.parameters={radius:e,tube:r,radialSegments:i,tubularSegments:o,arc:a},e=e||1,r=r||.4,i=Math.floor(i)||8,o=Math.floor(o)||6,a=a||2*Math.PI;for(var u=[],c=[],l=[],f=[],h=new el,p=new el,d=new el,m=0;m<=i;m++)for(var v=0;v<=o;v++){var g=v/o*a,y=m/i*Math.PI*2;p.x=(e+r*Math.cos(y))*Math.cos(g),p.y=(e+r*Math.cos(y))*Math.sin(g),p.z=r*Math.sin(y),c.push(p.x,p.y,p.z),h.x=e*Math.cos(g),h.y=e*Math.sin(g),d.subVectors(p,h).normalize(),l.push(d.x,d.y,d.z),f.push(v/o),f.push(m/i)}for(var b=1;b<=i;b++)for(var x=1;x<=o;x++){var _=(o+1)*b+x-1,w=(o+1)*(b-1)+x-1,E=(o+1)*(b-1)+x,S=(o+1)*b+x;u.push(_,w,S),u.push(w,E,S)}return s.setIndex(u),s.setAttribute("position",new Df(c,3)),s.setAttribute("normal",new Df(l,3)),s.setAttribute("uv",new Df(f,2)),s}return n}(Xf),wv=function(e,t,n){n=n||2;var r,i,o,a,s,u,c,l=t&&t.length,f=l?t[0]*n:e.length,h=Ev(e,0,f,n,!0),p=[];if(!h||h.next===h.prev)return p;if(l&&(h=function(e,t,n,r){var i,o,a,s,u,c=[];for(i=0,o=t.length;i<o;i++)a=t[i]*r,s=i<o-1?t[i+1]*r:e.length,(u=Ev(e,a,s,r,!1))===u.next&&(u.steiner=!0),c.push(jv(u));for(c.sort(Cv),i=0;i<c.length;i++)Pv(c[i],n),n=Sv(n,n.next);return n}(e,t,h,n)),e.length>80*n){r=o=e[0],i=a=e[1];for(var d=n;d<f;d+=n)(s=e[d])<r&&(r=s),(u=e[d+1])<i&&(i=u),s>o&&(o=s),u>a&&(a=u);c=0!==(c=Math.max(o-r,a-i))?1/c:0}return Tv(h,p,n,r,i,c),p};function Ev(e,t,n,r,i){var o,a;if(i===function(e,t,n,r){for(var i=0,o=t,a=n-r;o<n;o+=r)i+=(e[a]-e[o])*(e[o+1]+e[a+1]),a=o;return i}(e,t,n,r)>0)for(o=t;o<n;o+=r)a=Wv(o,e[o],e[o+1],a);else for(o=n-r;o>=t;o-=r)a=Wv(o,e[o],e[o+1],a);return a&&Bv(a,a.next)&&(Vv(a),a=a.next),a}function Sv(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!Bv(r,r.next)&&0!==Dv(r.prev,r,r.next))r=r.next;else{if(Vv(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function Tv(e,t,n,r,i,o,a){if(e){!a&&o&&function(e,t,n,r){var i=e;do{null===i.z&&(i.z=Rv(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,o,a,s,u,c=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t<c&&(s++,r=r.nextZ);t++);for(u=c;s>0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(a>1)}(i)}(e,r,i,o);for(var s,u,c=e;e.prev!==e.next;)if(s=e.prev,u=e.next,o?Ov(e,r,i,o):Mv(e))t.push(s.i/n),t.push(e.i/n),t.push(u.i/n),Vv(e),e=u.next,c=u.next;else if((e=u)===c){a?1===a?Tv(e=Av(Sv(e),t,n),t,n,r,i,o,2):2===a&&kv(e,t,n,r,i,o):Tv(Sv(e),t,n,r,i,o,1);break}}}function Mv(e){var t=e.prev,n=e,r=e.next;if(Dv(t,n,r)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(Nv(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Dv(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Ov(e,t,n,r){var i=e.prev,o=e,a=e.next;if(Dv(i,o,a)>=0)return!1;for(var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,u=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,c=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,l=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,f=Rv(s,u,t,n,r),h=Rv(c,l,t,n,r),p=e.prevZ,d=e.nextZ;p&&p.z>=f&&d&&d.z<=h;){if(p!==e.prev&&p!==e.next&&Nv(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&Dv(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,d!==e.prev&&d!==e.next&&Nv(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&Dv(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;p&&p.z>=f;){if(p!==e.prev&&p!==e.next&&Nv(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&Dv(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;d&&d.z<=h;){if(d!==e.prev&&d!==e.next&&Nv(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&Dv(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function Av(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!Bv(i,o)&&Fv(i,r,r.next,o)&&Hv(i,o)&&Hv(o,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(o.i/n),Vv(r),Vv(r.next),r=e=o),r=r.next}while(r!==e);return Sv(r)}function kv(e,t,n,r,i,o){var a=e;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&Iv(a,s)){var u=Gv(a,s);return a=Sv(a,a.next),u=Sv(u,u.next),Tv(a,t,n,r,i,o),void Tv(u,t,n,r,i,o)}s=s.next}a=a.next}while(a!==e)}function Cv(e,t){return e.x-t.x}function Pv(e,t){if(t=function(e,t){var n,r=t,i=e.x,o=e.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(i===a)return n;var u,c=n,l=n.x,f=n.y,h=1/0;r=n;do{i>=r.x&&r.x>=l&&i!==r.x&&Nv(o<f?i:a,o,l,f,o<f?a:i,o,r.x,r.y)&&(u=Math.abs(o-r.y)/(i-r.x),Hv(r,e)&&(u<h||u===h&&(r.x>n.x||r.x===n.x&&Lv(n,r)))&&(n=r,h=u)),r=r.next}while(r!==c);return n}(e,t)){var n=Gv(t,e);Sv(t,t.next),Sv(n,n.next)}}function Lv(e,t){return Dv(e.prev,e,t.prev)<0&&Dv(t.next,e,e.next)<0}function Rv(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function jv(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function Nv(e,t,n,r,i,o,a,s){return(i-a)*(t-s)-(e-a)*(o-s)>=0&&(e-a)*(r-s)-(n-a)*(t-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function Iv(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Fv(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Hv(e,t)&&Hv(t,e)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(Dv(e.prev,e,t.prev)||Dv(e,t.prev,t))||Bv(e,t)&&Dv(e.prev,e,e.next)>0&&Dv(t.prev,t,t.next)>0)}function Dv(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Bv(e,t){return e.x===t.x&&e.y===t.y}function Fv(e,t,n,r){var i=zv(Dv(e,t,n)),o=zv(Dv(e,t,r)),a=zv(Dv(n,r,e)),s=zv(Dv(n,r,t));return i!==o&&a!==s||(!(0!==i||!Uv(e,n,t))||(!(0!==o||!Uv(e,r,t))||(!(0!==a||!Uv(n,e,r))||!(0!==s||!Uv(n,t,r)))))}function Uv(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function zv(e){return e>0?1:e<0?-1:0}function Hv(e,t){return Dv(e.prev,e,e.next)<0?Dv(e,t,e.next)>=0&&Dv(e,e.prev,t)>=0:Dv(e,t,e.prev)<0||Dv(e,e.next,t)<0}function Gv(e,t){var n=new qv(e.i,e.x,e.y),r=new qv(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Wv(e,t,n,r){var i=new qv(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Vv(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function qv(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}var Yv={area:function(e){for(var t=e.length,n=0,r=t-1,i=0;i<t;r=i++)n+=e[r].x*e[i].y-e[i].x*e[r].y;return.5*n},isClockWise:function(e){return Yv.area(e)<0},triangulateShape:function(e,t){var n=[],r=[],i=[];Xv(e),Zv(n,e);var o=e.length;t.forEach(Xv);for(var a=0;a<t.length;a++)r.push(o),o+=t[a].length,Zv(n,t[a]);for(var s=wv(n,r),u=0;u<s.length;u+=3)i.push(s.slice(u,u+3));return i}};function Xv(e){var t=e.length;t>2&&e[t-1].equals(e[0])&&e.pop()}function Zv(e,t){for(var n=0;n<t.length;n++)e.push(t[n].x),e.push(t[n].y)}var Jv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;return Object(cn.a)(this,n),(i=t.call(this)).type="ExtrudeGeometry",i.parameters={shapes:e,options:r},i.fromBufferGeometry(new Qv(e,r)),i.mergeVertices(),i}return Object(ln.a)(n,[{key:"toJSON",value:function(){var e=Ja(Object(Za.a)(n.prototype),"toJSON",this).call(this);return $v(this.parameters.shapes,this.parameters.options,e)}}]),n}(bh),Qv=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;Object(cn.a)(this,n),(i=t.call(this)).type="ExtrudeBufferGeometry",i.parameters={shapes:e,options:r},e=Array.isArray(e)?e:[e];for(var o=Object(Ka.a)(i),a=[],s=[],u=0,c=e.length;u<c;u++){l(e[u])}function l(e){var t=[],n=void 0!==r.curveSegments?r.curveSegments:12,i=void 0!==r.steps?r.steps:1,u=void 0!==r.depth?r.depth:100,c=void 0===r.bevelEnabled||r.bevelEnabled,l=void 0!==r.bevelThickness?r.bevelThickness:6,f=void 0!==r.bevelSize?r.bevelSize:l-2,h=void 0!==r.bevelOffset?r.bevelOffset:0,p=void 0!==r.bevelSegments?r.bevelSegments:3,d=r.extrudePath,m=void 0!==r.UVGenerator?r.UVGenerator:Kv;void 0!==r.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),u=r.amount);var v,g,y,b,x,_=!1;d&&(v=d.getSpacedPoints(i),_=!0,c=!1,g=d.computeFrenetFrames(i,!1),y=new el,b=new el,x=new el),c||(p=0,l=0,f=0,h=0);var w=e.extractPoints(n),E=w.shape,S=w.holes;if(!Yv.isClockWise(E)){E=E.reverse();for(var T=0,M=S.length;T<M;T++){var O=S[T];Yv.isClockWise(O)&&(S[T]=O.reverse())}}for(var A=Yv.triangulateShape(E,S),k=E,C=0,P=S.length;C<P;C++){var L=S[C];E=E.concat(L)}function R(e,t,n){return t||console.error("THREE.ExtrudeGeometry: vec does not exist"),t.clone().multiplyScalar(n).add(e)}var j=E.length,N=A.length;function I(e,t,n){var r,i,o,a=e.x-t.x,s=e.y-t.y,u=n.x-e.x,c=n.y-e.y,l=a*a+s*s,f=a*c-s*u;if(Math.abs(f)>Number.EPSILON){var h=Math.sqrt(l),p=Math.sqrt(u*u+c*c),d=t.x-s/h,m=t.y+a/h,v=((n.x-c/p-d)*c-(n.y+u/p-m)*u)/(a*c-s*u),g=(r=d+a*v-e.x)*r+(i=m+s*v-e.y)*i;if(g<=2)return new Vc(r,i);o=Math.sqrt(g/2)}else{var y=!1;a>Number.EPSILON?u>Number.EPSILON&&(y=!0):a<-Number.EPSILON?u<-Number.EPSILON&&(y=!0):Math.sign(s)===Math.sign(c)&&(y=!0),y?(r=-s,i=a,o=Math.sqrt(l)):(r=a,i=s,o=Math.sqrt(l/2))}return new Vc(r/o,i/o)}for(var D=[],B=0,F=k.length,U=F-1,z=B+1;B<F;B++,U++,z++)U===F&&(U=0),z===F&&(z=0),D[B]=I(k[B],k[U],k[z]);for(var H,G=[],W=D.concat(),V=0,q=S.length;V<q;V++){var Y=S[V];H=[];for(var X=0,Z=Y.length,J=Z-1,Q=X+1;X<Z;X++,J++,Q++)J===Z&&(J=0),Q===Z&&(Q=0),H[X]=I(Y[X],Y[J],Y[Q]);G.push(H),W=W.concat(H)}for(var K=0;K<p;K++){for(var $=K/p,ee=l*Math.cos($*Math.PI/2),te=f*Math.sin($*Math.PI/2)+h,ne=0,re=k.length;ne<re;ne++){var ie=R(k[ne],D[ne],te);Pe(ie.x,ie.y,-ee)}for(var oe=0,ae=S.length;oe<ae;oe++){var se=S[oe];H=G[oe];for(var ue=0,ce=se.length;ue<ce;ue++){var le=R(se[ue],H[ue],te);Pe(le.x,le.y,-ee)}}}for(var fe=f+h,he=0;he<j;he++){var pe=c?R(E[he],W[he],fe):E[he];_?(b.copy(g.normals[0]).multiplyScalar(pe.x),y.copy(g.binormals[0]).multiplyScalar(pe.y),x.copy(v[0]).add(b).add(y),Pe(x.x,x.y,x.z)):Pe(pe.x,pe.y,0)}for(var de=1;de<=i;de++)for(var me=0;me<j;me++){var ve=c?R(E[me],W[me],fe):E[me];_?(b.copy(g.normals[de]).multiplyScalar(ve.x),y.copy(g.binormals[de]).multiplyScalar(ve.y),x.copy(v[de]).add(b).add(y),Pe(x.x,x.y,x.z)):Pe(ve.x,ve.y,u/i*de)}for(var ge=p-1;ge>=0;ge--){for(var ye=ge/p,be=l*Math.cos(ye*Math.PI/2),xe=f*Math.sin(ye*Math.PI/2)+h,_e=0,we=k.length;_e<we;_e++){var Ee=R(k[_e],D[_e],xe);Pe(Ee.x,Ee.y,u+be)}for(var Se=0,Te=S.length;Se<Te;Se++){var Me=S[Se];H=G[Se];for(var Oe=0,Ae=Me.length;Oe<Ae;Oe++){var ke=R(Me[Oe],H[Oe],xe);_?Pe(ke.x,ke.y+v[i-1].y,v[i-1].x+be):Pe(ke.x,ke.y,u+be)}}}function Ce(e,t){for(var n=e.length;--n>=0;){var r=n,o=n-1;o<0&&(o=e.length-1);for(var a=0,s=i+2*p;a<s;a++){var u=j*a,c=j*(a+1);Re(t+r+u,t+o+u,t+o+c,t+r+c)}}}function Pe(e,n,r){t.push(e),t.push(n),t.push(r)}function Le(e,t,n){je(e),je(t),je(n);var r=a.length/3,i=m.generateTopUV(o,a,r-3,r-2,r-1);Ne(i[0]),Ne(i[1]),Ne(i[2])}function Re(e,t,n,r){je(e),je(t),je(r),je(t),je(n),je(r);var i=a.length/3,s=m.generateSideWallUV(o,a,i-6,i-3,i-2,i-1);Ne(s[0]),Ne(s[1]),Ne(s[3]),Ne(s[1]),Ne(s[2]),Ne(s[3])}function je(e){a.push(t[3*e+0]),a.push(t[3*e+1]),a.push(t[3*e+2])}function Ne(e){s.push(e.x),s.push(e.y)}!function(){var e=a.length/3;if(c){for(var t=0,n=j*t,r=0;r<N;r++){var s=A[r];Le(s[2]+n,s[1]+n,s[0]+n)}n=j*(t=i+2*p);for(var u=0;u<N;u++){var l=A[u];Le(l[0]+n,l[1]+n,l[2]+n)}}else{for(var f=0;f<N;f++){var h=A[f];Le(h[2],h[1],h[0])}for(var d=0;d<N;d++){var m=A[d];Le(m[0]+j*i,m[1]+j*i,m[2]+j*i)}}o.addGroup(e,a.length/3-e,0)}(),function(){var e=a.length/3,t=0;Ce(k,t),t+=k.length;for(var n=0,r=S.length;n<r;n++){var i=S[n];Ce(i,t),t+=i.length}o.addGroup(e,a.length/3-e,1)}()}return i.setAttribute("position",new Df(a,3)),i.setAttribute("uv",new Df(s,2)),i.computeVertexNormals(),i}return Object(ln.a)(n,[{key:"toJSON",value:function(){var e=Xf.prototype.toJSON.call(this);return $v(this.parameters.shapes,this.parameters.options,e)}}]),n}(Xf),Kv={generateTopUV:function(e,t,n,r,i){var o=t[3*n],a=t[3*n+1],s=t[3*r],u=t[3*r+1],c=t[3*i],l=t[3*i+1];return[new Vc(o,a),new Vc(s,u),new Vc(c,l)]},generateSideWallUV:function(e,t,n,r,i,o){var a=t[3*n],s=t[3*n+1],u=t[3*n+2],c=t[3*r],l=t[3*r+1],f=t[3*r+2],h=t[3*i],p=t[3*i+1],d=t[3*i+2],m=t[3*o],v=t[3*o+1],g=t[3*o+2];return Math.abs(s-l)<.01?[new Vc(a,1-u),new Vc(c,1-f),new Vc(h,1-d),new Vc(m,1-g)]:[new Vc(s,1-u),new Vc(l,1-f),new Vc(p,1-d),new Vc(v,1-g)]}};function $v(e,t,n){if(n.shapes=[],Array.isArray(e))for(var r=0,i=e.length;r<i;r++){var o=e[r];n.shapes.push(o.uuid)}else n.shapes.push(e.uuid);return void 0!==t.extrudePath&&(n.options.extrudePath=t.extrudePath.toJSON()),n}var eg=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;return Object(cn.a)(this,n),(i=t.call(this)).type="TextGeometry",i.parameters={text:e,parameters:r},i.fromBufferGeometry(new tg(e,r)),i.mergeVertices(),i}return n}(bh),tg=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;Object(cn.a)(this,n);var o=(r=r||{}).font;if(!o||!o.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),Object(Xa.a)(i,new bh);var a=o.generateShapes(e,r.size);return r.depth=void 0!==r.height?r.height:50,void 0===r.bevelThickness&&(r.bevelThickness=10),void 0===r.bevelSize&&(r.bevelSize=8),void 0===r.bevelEnabled&&(r.bevelEnabled=!1),(i=t.call(this,a,r)).type="TextBufferGeometry",i}return n}(Qv),ng=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a,s,u){var c;return Object(cn.a)(this,n),(c=t.call(this)).type="SphereGeometry",c.parameters={radius:e,widthSegments:r,heightSegments:i,phiStart:o,phiLength:a,thetaStart:s,thetaLength:u},c.fromBufferGeometry(new rg(e,r,i,o,a,s,u)),c.mergeVertices(),c}return n}(bh),rg=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a,s,u){var c;Object(cn.a)(this,n),(c=t.call(this)).type="SphereBufferGeometry",c.parameters={radius:e,widthSegments:r,heightSegments:i,phiStart:o,phiLength:a,thetaStart:s,thetaLength:u},e=e||1,r=Math.max(3,Math.floor(r)||8),i=Math.max(2,Math.floor(i)||6),o=void 0!==o?o:0,a=void 0!==a?a:2*Math.PI,s=void 0!==s?s:0,u=void 0!==u?u:Math.PI;for(var l=Math.min(s+u,Math.PI),f=0,h=[],p=new el,d=new el,m=[],v=[],g=[],y=[],b=0;b<=i;b++){var x=[],_=b/i,w=0;0==b&&0==s?w=.5/r:b==i&&l==Math.PI&&(w=-.5/r);for(var E=0;E<=r;E++){var S=E/r;p.x=-e*Math.cos(o+S*a)*Math.sin(s+_*u),p.y=e*Math.cos(s+_*u),p.z=e*Math.sin(o+S*a)*Math.sin(s+_*u),v.push(p.x,p.y,p.z),d.copy(p).normalize(),g.push(d.x,d.y,d.z),y.push(S+w,1-_),x.push(f++)}h.push(x)}for(var T=0;T<i;T++)for(var M=0;M<r;M++){var O=h[T][M+1],A=h[T][M],k=h[T+1][M],C=h[T+1][M+1];(0!==T||s>0)&&m.push(O,A,C),(T!==i-1||l<Math.PI)&&m.push(A,k,C)}return c.setIndex(m),c.setAttribute("position",new Df(v,3)),c.setAttribute("normal",new Df(g,3)),c.setAttribute("uv",new Df(y,2)),c}return n}(Xf),ig=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a,s){var u;return Object(cn.a)(this,n),(u=t.call(this)).type="RingGeometry",u.parameters={innerRadius:e,outerRadius:r,thetaSegments:i,phiSegments:o,thetaStart:a,thetaLength:s},u.fromBufferGeometry(new og(e,r,i,o,a,s)),u.mergeVertices(),u}return n}(bh),og=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a,s){var u;Object(cn.a)(this,n),(u=t.call(this)).type="RingBufferGeometry",u.parameters={innerRadius:e,outerRadius:r,thetaSegments:i,phiSegments:o,thetaStart:a,thetaLength:s},e=e||.5,r=r||1,a=void 0!==a?a:0,s=void 0!==s?s:2*Math.PI,i=void 0!==i?Math.max(3,i):8;for(var c=[],l=[],f=[],h=[],p=e,d=(r-e)/(o=void 0!==o?Math.max(1,o):1),m=new el,v=new Vc,g=0;g<=o;g++){for(var y=0;y<=i;y++){var b=a+y/i*s;m.x=p*Math.cos(b),m.y=p*Math.sin(b),l.push(m.x,m.y,m.z),f.push(0,0,1),v.x=(m.x/r+1)/2,v.y=(m.y/r+1)/2,h.push(v.x,v.y)}p+=d}for(var x=0;x<o;x++)for(var _=x*(i+1),w=0;w<i;w++){var E=w+_,S=E,T=E+i+1,M=E+i+2,O=E+1;c.push(S,T,O),c.push(T,M,O)}return u.setIndex(c),u.setAttribute("position",new Df(l,3)),u.setAttribute("normal",new Df(f,3)),u.setAttribute("uv",new Df(h,2)),u}return n}(Xf),ag=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o){var a;return Object(cn.a)(this,n),(a=t.call(this)).type="LatheGeometry",a.parameters={points:e,segments:r,phiStart:i,phiLength:o},a.fromBufferGeometry(new sg(e,r,i,o)),a.mergeVertices(),a}return n}(bh),sg=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o){var a;Object(cn.a)(this,n),(a=t.call(this)).type="LatheBufferGeometry",a.parameters={points:e,segments:r,phiStart:i,phiLength:o},r=Math.floor(r)||12,i=i||0,o=o||2*Math.PI,o=Wc.clamp(o,0,2*Math.PI);for(var s=[],u=[],c=[],l=1/r,f=new el,h=new Vc,p=0;p<=r;p++)for(var d=i+p*l*o,m=Math.sin(d),v=Math.cos(d),g=0;g<=e.length-1;g++)f.x=e[g].x*m,f.y=e[g].y,f.z=e[g].x*v,u.push(f.x,f.y,f.z),h.x=p/r,h.y=g/(e.length-1),c.push(h.x,h.y);for(var y=0;y<r;y++)for(var b=0;b<e.length-1;b++){var x=b+y*e.length,_=x,w=x+e.length,E=x+e.length+1,S=x+1;s.push(_,w,S),s.push(w,E,S)}if(a.setIndex(s),a.setAttribute("position",new Df(u,3)),a.setAttribute("uv",new Df(c,2)),a.computeVertexNormals(),o===2*Math.PI)for(var T=a.attributes.normal.array,M=new el,O=new el,A=new el,k=r*e.length*3,C=0,P=0;C<e.length;C++,P+=3)M.x=T[P+0],M.y=T[P+1],M.z=T[P+2],O.x=T[k+P+0],O.y=T[k+P+1],O.z=T[k+P+2],A.addVectors(M,O).normalize(),T[P+0]=T[k+P+0]=A.x,T[P+1]=T[k+P+1]=A.y,T[P+2]=T[k+P+2]=A.z;return a}return n}(Xf),ug=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;return Object(cn.a)(this,n),(i=t.call(this)).type="ShapeGeometry","object"==typeof r&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),r=r.curveSegments),i.parameters={shapes:e,curveSegments:r},i.fromBufferGeometry(new cg(e,r)),i.mergeVertices(),i}return Object(ln.a)(n,[{key:"toJSON",value:function(){var e=bh.prototype.toJSON.call(this);return lg(this.parameters.shapes,e)}}]),n}(bh),cg=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;Object(cn.a)(this,n),(i=t.call(this)).type="ShapeBufferGeometry",i.parameters={shapes:e,curveSegments:r},r=r||12;var o=[],a=[],s=[],u=[],c=0,l=0;if(!1===Array.isArray(e))h(e);else for(var f=0;f<e.length;f++)h(e[f]),i.addGroup(c,l,f),c+=l,l=0;function h(e){var t=a.length/3,n=e.extractPoints(r),i=n.shape,c=n.holes;!1===Yv.isClockWise(i)&&(i=i.reverse());for(var f=0,h=c.length;f<h;f++){var p=c[f];!0===Yv.isClockWise(p)&&(c[f]=p.reverse())}for(var d=Yv.triangulateShape(i,c),m=0,v=c.length;m<v;m++){var g=c[m];i=i.concat(g)}for(var y=0,b=i.length;y<b;y++){var x=i[y];a.push(x.x,x.y,0),s.push(0,0,1),u.push(x.x,x.y)}for(var _=0,w=d.length;_<w;_++){var E=d[_],S=E[0]+t,T=E[1]+t,M=E[2]+t;o.push(S,T,M),l+=3}}return i.setIndex(o),i.setAttribute("position",new Df(a,3)),i.setAttribute("normal",new Df(s,3)),i.setAttribute("uv",new Df(u,2)),i}return Object(ln.a)(n,[{key:"toJSON",value:function(){var e=Xf.prototype.toJSON.call(this);return lg(this.parameters.shapes,e)}}]),n}(Xf);function lg(e,t){if(t.shapes=[],Array.isArray(e))for(var n=0,r=e.length;n<r;n++){var i=e[n];t.shapes.push(i.uuid)}else t.shapes.push(e.uuid);return t}var fg=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r){var i;Object(cn.a)(this,n),(i=t.call(this)).type="EdgesGeometry",i.parameters={thresholdAngle:r},r=void 0!==r?r:1;var o,a,s,u,c=[],l=Math.cos(Wc.DEG2RAD*r),f=[0,0],h={},p=["a","b","c"];e.isBufferGeometry?(u=new bh).fromBufferGeometry(e):u=e.clone(),u.mergeVertices(),u.computeFaceNormals();for(var d=u.vertices,m=u.faces,v=0,g=m.length;v<g;v++)for(var y=m[v],b=0;b<3;b++)o=y[p[b]],a=y[p[(b+1)%3]],f[0]=Math.min(o,a),f[1]=Math.max(o,a),void 0===h[s=f[0]+","+f[1]]?h[s]={index1:f[0],index2:f[1],face1:v,face2:void 0}:h[s].face2=v;for(s in h){var x=h[s];if(void 0===x.face2||m[x.face1].normal.dot(m[x.face2].normal)<=l){var _=d[x.index1];c.push(_.x,_.y,_.z),_=d[x.index2],c.push(_.x,_.y,_.z)}}return i.setAttribute("position",new Df(c,3)),i}return n}(Xf),hg=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a,s,u,c){var l;return Object(cn.a)(this,n),(l=t.call(this)).type="CylinderGeometry",l.parameters={radiusTop:e,radiusBottom:r,height:i,radialSegments:o,heightSegments:a,openEnded:s,thetaStart:u,thetaLength:c},l.fromBufferGeometry(new pg(e,r,i,o,a,s,u,c)),l.mergeVertices(),l}return n}(bh),pg=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a,s,u,c){var l;Object(cn.a)(this,n),(l=t.call(this)).type="CylinderBufferGeometry",l.parameters={radiusTop:e,radiusBottom:r,height:i,radialSegments:o,heightSegments:a,openEnded:s,thetaStart:u,thetaLength:c};var f=Object(Ka.a)(l);e=void 0!==e?e:1,r=void 0!==r?r:1,i=i||1,o=Math.floor(o)||8,a=Math.floor(a)||1,s=void 0!==s&&s,u=void 0!==u?u:0,c=void 0!==c?c:2*Math.PI;var h=[],p=[],d=[],m=[],v=0,g=[],y=i/2,b=0;function x(t){for(var n=v,i=new Vc,a=new el,s=0,l=!0===t?e:r,g=!0===t?1:-1,x=1;x<=o;x++)p.push(0,y*g,0),d.push(0,g,0),m.push(.5,.5),v++;for(var _=v,w=0;w<=o;w++){var E=w/o*c+u,S=Math.cos(E),T=Math.sin(E);a.x=l*T,a.y=y*g,a.z=l*S,p.push(a.x,a.y,a.z),d.push(0,g,0),i.x=.5*S+.5,i.y=.5*T*g+.5,m.push(i.x,i.y),v++}for(var M=0;M<o;M++){var O=n+M,A=_+M;!0===t?h.push(A,A+1,O):h.push(A+1,A,O),s+=3}f.addGroup(b,s,!0===t?1:2),b+=s}return function(){for(var t=new el,n=new el,s=0,l=(r-e)/i,x=0;x<=a;x++){for(var _=[],w=x/a,E=w*(r-e)+e,S=0;S<=o;S++){var T=S/o,M=T*c+u,O=Math.sin(M),A=Math.cos(M);n.x=E*O,n.y=-w*i+y,n.z=E*A,p.push(n.x,n.y,n.z),t.set(O,l,A).normalize(),d.push(t.x,t.y,t.z),m.push(T,1-w),_.push(v++)}g.push(_)}for(var k=0;k<o;k++)for(var C=0;C<a;C++){var P=g[C][k],L=g[C+1][k],R=g[C+1][k+1],j=g[C][k+1];h.push(P,L,j),h.push(L,R,j),s+=6}f.addGroup(b,s,0),b+=s}(),!1===s&&(e>0&&x(!0),r>0&&x(!1)),l.setIndex(h),l.setAttribute("position",new Df(p,3)),l.setAttribute("normal",new Df(d,3)),l.setAttribute("uv",new Df(m,2)),l}return n}(Xf),dg=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a,s,u){var c;return Object(cn.a)(this,n),(c=t.call(this,0,e,r,i,o,a,s,u)).type="ConeGeometry",c.parameters={radius:e,height:r,radialSegments:i,heightSegments:o,openEnded:a,thetaStart:s,thetaLength:u},c}return n}(hg),mg=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o,a,s,u){var c;return Object(cn.a)(this,n),(c=t.call(this,0,e,r,i,o,a,s,u)).type="ConeBufferGeometry",c.parameters={radius:e,height:r,radialSegments:i,heightSegments:o,openEnded:a,thetaStart:s,thetaLength:u},c}return n}(pg),vg=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o){var a;return Object(cn.a)(this,n),(a=t.call(this)).type="CircleGeometry",a.parameters={radius:e,segments:r,thetaStart:i,thetaLength:o},a.fromBufferGeometry(new gg(e,r,i,o)),a.mergeVertices(),a}return n}(bh),gg=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o){var a;Object(cn.a)(this,n),(a=t.call(this)).type="CircleBufferGeometry",a.parameters={radius:e,segments:r,thetaStart:i,thetaLength:o},e=e||1,r=void 0!==r?Math.max(3,r):8,i=void 0!==i?i:0,o=void 0!==o?o:2*Math.PI;var s=[],u=[],c=[],l=[],f=new el,h=new Vc;u.push(0,0,0),c.push(0,0,1),l.push(.5,.5);for(var p=0,d=3;p<=r;p++,d+=3){var m=i+p/r*o;f.x=e*Math.cos(m),f.y=e*Math.sin(m),u.push(f.x,f.y,f.z),c.push(0,0,1),h.x=(u[d]/e+1)/2,h.y=(u[d+1]/e+1)/2,l.push(h.x,h.y)}for(var v=1;v<=r;v++)s.push(v,v+1,0);return a.setIndex(s),a.setAttribute("position",new Df(u,3)),a.setAttribute("normal",new Df(c,3)),a.setAttribute("uv",new Df(l,2)),a}return n}(Xf),yg=Object.freeze({__proto__:null,WireframeGeometry:rv,ParametricGeometry:iv,ParametricBufferGeometry:ov,TetrahedronGeometry:uv,TetrahedronBufferGeometry:cv,OctahedronGeometry:lv,OctahedronBufferGeometry:fv,IcosahedronGeometry:hv,IcosahedronBufferGeometry:pv,DodecahedronGeometry:dv,DodecahedronBufferGeometry:mv,PolyhedronGeometry:av,PolyhedronBufferGeometry:sv,TubeGeometry:vv,TubeBufferGeometry:gv,TorusKnotGeometry:yv,TorusKnotBufferGeometry:bv,TorusGeometry:xv,TorusBufferGeometry:_v,TextGeometry:eg,TextBufferGeometry:tg,SphereGeometry:ng,SphereBufferGeometry:rg,RingGeometry:ig,RingBufferGeometry:og,PlaneGeometry:Uh,PlaneBufferGeometry:zh,LatheGeometry:ag,LatheBufferGeometry:sg,ShapeGeometry:ug,ShapeBufferGeometry:cg,ExtrudeGeometry:Jv,ExtrudeBufferGeometry:Qv,EdgesGeometry:fg,ConeGeometry:dg,ConeBufferGeometry:mg,CylinderGeometry:hg,CylinderBufferGeometry:pg,CircleGeometry:vg,CircleBufferGeometry:gg,BoxGeometry:xh,BoxBufferGeometry:_h});function bg(e){Tf.call(this),this.type="ShadowMaterial",this.color=new wf(0),this.transparent=!0,this.setValues(e)}function xg(e){Oh.call(this,e),this.type="RawShaderMaterial"}function _g(e){Tf.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new wf(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new wf(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Lc,this.normalScale=new Vc(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.vertexTangents=!1,this.setValues(e)}function wg(e){_g.call(this),this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.clearcoat=0,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new Vc(1,1),this.clearcoatNormalMap=null,this.reflectivity=.5,this.sheen=null,this.transmission=0,this.transmissionMap=null,this.setValues(e)}function Eg(e){Tf.call(this),this.type="MeshPhongMaterial",this.color=new wf(16777215),this.specular=new wf(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new wf(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Lc,this.normalScale=new Vc(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Bs,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(e)}function Sg(e){Tf.call(this),this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new wf(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new wf(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Lc,this.normalScale=new Vc(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function Tg(e){Tf.call(this),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Lc,this.normalScale=new Vc(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function Mg(e){Tf.call(this),this.type="MeshLambertMaterial",this.color=new wf(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new wf(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Bs,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(e)}function Og(e){Tf.call(this),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new wf(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Lc,this.normalScale=new Vc(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function Ag(e){Nm.call(this),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}bg.prototype=Object.create(Tf.prototype),bg.prototype.constructor=bg,bg.prototype.isShadowMaterial=!0,bg.prototype.copy=function(e){return Tf.prototype.copy.call(this,e),this.color.copy(e.color),this},xg.prototype=Object.create(Oh.prototype),xg.prototype.constructor=xg,xg.prototype.isRawShaderMaterial=!0,_g.prototype=Object.create(Tf.prototype),_g.prototype.constructor=_g,_g.prototype.isMeshStandardMaterial=!0,_g.prototype.copy=function(e){return Tf.prototype.copy.call(this,e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this.vertexTangents=e.vertexTangents,this},wg.prototype=Object.create(_g.prototype),wg.prototype.constructor=wg,wg.prototype.isMeshPhysicalMaterial=!0,wg.prototype.copy=function(e){return _g.prototype.copy.call(this,e),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.reflectivity=e.reflectivity,e.sheen?this.sheen=(this.sheen||new wf).copy(e.sheen):this.sheen=null,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this},Eg.prototype=Object.create(Tf.prototype),Eg.prototype.constructor=Eg,Eg.prototype.isMeshPhongMaterial=!0,Eg.prototype.copy=function(e){return Tf.prototype.copy.call(this,e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this},Sg.prototype=Object.create(Tf.prototype),Sg.prototype.constructor=Sg,Sg.prototype.isMeshToonMaterial=!0,Sg.prototype.copy=function(e){return Tf.prototype.copy.call(this,e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this},Tg.prototype=Object.create(Tf.prototype),Tg.prototype.constructor=Tg,Tg.prototype.isMeshNormalMaterial=!0,Tg.prototype.copy=function(e){return Tf.prototype.copy.call(this,e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this},Mg.prototype=Object.create(Tf.prototype),Mg.prototype.constructor=Mg,Mg.prototype.isMeshLambertMaterial=!0,Mg.prototype.copy=function(e){return Tf.prototype.copy.call(this,e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this},Og.prototype=Object.create(Tf.prototype),Og.prototype.constructor=Og,Og.prototype.isMeshMatcapMaterial=!0,Og.prototype.copy=function(e){return Tf.prototype.copy.call(this,e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this},Ag.prototype=Object.create(Nm.prototype),Ag.prototype.constructor=Ag,Ag.prototype.isLineDashedMaterial=!0,Ag.prototype.copy=function(e){return Nm.prototype.copy.call(this,e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this};var kg=Object.freeze({__proto__:null,ShadowMaterial:bg,SpriteMaterial:nm,RawShaderMaterial:xg,ShaderMaterial:Oh,PointsMaterial:qm,MeshPhysicalMaterial:wg,MeshStandardMaterial:_g,MeshPhongMaterial:Eg,MeshToonMaterial:Sg,MeshNormalMaterial:Tg,MeshLambertMaterial:Mg,MeshDepthMaterial:jd,MeshDistanceMaterial:Nd,MeshBasicMaterial:Mf,MeshMatcapMaterial:Og,LineDashedMaterial:Ag,LineBasicMaterial:Nm,Material:Tf}),Cg={arraySlice:function(e,t,n){return Cg.isTypedArray(e)?new e.constructor(e.subarray(t,void 0!==n?n:e.length)):e.slice(t,n)},convertArray:function(e,t,n){return!e||!n&&e.constructor===t?e:"number"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)},isTypedArray:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},getKeyframeOrder:function(e){for(var t=e.length,n=new Array(t),r=0;r!==t;++r)n[r]=r;return n.sort(function(t,n){return e[t]-e[n]}),n},sortedArray:function(e,t,n){for(var r=e.length,i=new e.constructor(r),o=0,a=0;a!==r;++o)for(var s=n[o]*t,u=0;u!==t;++u)i[a++]=e[s+u];return i},flattenJSON:function(e,t,n,r){for(var i=1,o=e[0];void 0!==o&&void 0===o[r];)o=e[i++];if(void 0!==o){var a=o[r];if(void 0!==a)if(Array.isArray(a))do{void 0!==(a=o[r])&&(t.push(o.time),n.push.apply(n,a)),o=e[i++]}while(void 0!==o);else if(void 0!==a.toArray)do{void 0!==(a=o[r])&&(t.push(o.time),a.toArray(n,n.length)),o=e[i++]}while(void 0!==o);else do{void 0!==(a=o[r])&&(t.push(o.time),n.push(a)),o=e[i++]}while(void 0!==o)}},subclip:function(e,t,n,r,i){i=i||30;var o=e.clone();o.name=t;for(var a=[],s=0;s<o.tracks.length;++s){for(var u=o.tracks[s],c=u.getValueSize(),l=[],f=[],h=0;h<u.times.length;++h){var p=u.times[h]*i;if(!(p<n||p>=r)){l.push(u.times[h]);for(var d=0;d<c;++d)f.push(u.values[h*c+d])}}0!==l.length&&(u.times=Cg.convertArray(l,u.times.constructor),u.values=Cg.convertArray(f,u.values.constructor),a.push(u))}o.tracks=a;for(var m=1/0,v=0;v<o.tracks.length;++v)m>o.tracks[v].times[0]&&(m=o.tracks[v].times[0]);for(var g=0;g<o.tracks.length;++g)o.tracks[g].shift(-1*m);return o.resetDuration(),o},makeClipAdditive:function(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=e),(void 0===r||r<=0)&&(r=30);for(var i=e.tracks.length,o=t/r,a=function(t){var r=n.tracks[t],i=r.ValueTypeName;if("bool"===i||"string"===i)return"continue";var a=e.tracks.find(function(e){return e.name===r.name&&e.ValueTypeName===i});if(void 0===a)return"continue";var s=0,u=r.getValueSize();r.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(s=u/3);var c=0,l=a.getValueSize();a.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(c=l/3);var f=r.times.length-1,h=void 0;if(o<=r.times[0]){var p=s,d=u-s;h=Cg.arraySlice(r.values,p,d)}else if(o>=r.times[f]){var m=f*u+s,v=m+u-s;h=Cg.arraySlice(r.values,m,v)}else{var g=r.createInterpolant(),y=s,b=u-s;g.evaluate(o),h=Cg.arraySlice(g.resultBuffer,y,b)}"quaternion"===i&&(new $c).fromArray(h).normalize().conjugate().toArray(h);for(var x=a.times.length,_=0;_<x;++_){var w=_*l+c;if("quaternion"===i)$c.multiplyQuaternionsFlat(a.values,w,h,0,a.values,w);else for(var E=l-2*c,S=0;S<E;++S)a.values[w+S]-=h[S]}},s=0;s<i;++s)a(s);return e.blendMode=2501,e}};function Pg(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=void 0!==r?r:new t.constructor(n),this.sampleValues=t,this.valueSize=n}function Lg(e,t,n,r){Pg.call(this,e,t,n,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0}function Rg(e,t,n,r){Pg.call(this,e,t,n,r)}function jg(e,t,n,r){Pg.call(this,e,t,n,r)}function Ng(e,t,n,r){if(void 0===e)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===t||0===t.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=Cg.convertArray(t,this.TimeBufferType),this.values=Cg.convertArray(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}function Ig(e,t,n){Ng.call(this,e,t,n)}function Dg(e,t,n,r){Ng.call(this,e,t,n,r)}function Bg(e,t,n,r){Ng.call(this,e,t,n,r)}function Fg(e,t,n,r){Pg.call(this,e,t,n,r)}function Ug(e,t,n,r){Ng.call(this,e,t,n,r)}function zg(e,t,n,r){Ng.call(this,e,t,n,r)}function Hg(e,t,n,r){Ng.call(this,e,t,n,r)}function Gg(e,t,n,r){this.name=e,this.tracks=n,this.duration=void 0!==t?t:-1,this.blendMode=void 0!==r?r:_c,this.uuid=Wc.generateUUID(),this.duration<0&&this.resetDuration()}function Wg(e){if(void 0===e.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");var t=function(e){switch(e.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return Bg;case"vector":case"vector2":case"vector3":case"vector4":return Hg;case"color":return Dg;case"quaternion":return Ug;case"bool":case"boolean":return Ig;case"string":return zg}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+e)}(e.type);if(void 0===e.times){var n=[],r=[];Cg.flattenJSON(e.keys,n,r,"value"),e.times=n,e.values=r}return void 0!==t.parse?t.parse(e):new t(e.name,e.times,e.values,e.interpolation)}Object.assign(Pg.prototype,{evaluate:function(e){var t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];e:{t:{var o;n:{r:if(!(e<r)){for(var a=n+2;;){if(void 0===r){if(e<i)break r;return n=t.length,this._cachedIndex=n,this.afterEnd_(n-1,e,i)}if(n===a)break;if(i=r,e<(r=t[++n]))break t}o=t.length;break n}if(e>=i)break e;var s=t[1];e<s&&(n=2,i=s);for(var u=n-2;;){if(void 0===i)return this._cachedIndex=0,this.beforeStart_(0,e,r);if(n===u)break;if(r=i,e>=(i=t[--n-1]))break t}o=n,n=0}for(;n<o;){var c=n+o>>>1;e<t[c]?o=c:n=c+1}if(r=t[n],void 0===(i=t[n-1]))return this._cachedIndex=0,this.beforeStart_(0,e,r);if(void 0===r)return n=t.length,this._cachedIndex=n,this.afterEnd_(n-1,i,e)}this._cachedIndex=n,this.intervalChanged_(n,i,r)}return this.interpolate_(n,i,e,r)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(e){for(var t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r,o=0;o!==r;++o)t[o]=n[i+o];return t},interpolate_:function(){throw new Error("call to abstract method")},intervalChanged_:function(){}}),Object.assign(Pg.prototype,{beforeStart_:Pg.prototype.copySampleValue_,afterEnd_:Pg.prototype.copySampleValue_}),Lg.prototype=Object.assign(Object.create(Pg.prototype),{constructor:Lg,DefaultSettings_:{endingStart:xc,endingEnd:xc},intervalChanged_:function(e,t,n){var r=this.parameterPositions,i=e-2,o=e+1,a=r[i],s=r[o];if(void 0===a)switch(this.getSettings_().endingStart){case 2401:i=e,a=2*t-n;break;case 2402:a=t+r[i=r.length-2]-r[i+1];break;default:i=e,a=n}if(void 0===s)switch(this.getSettings_().endingEnd){case 2401:o=e,s=2*n-t;break;case 2402:o=1,s=n+r[1]-r[0];break;default:o=e-1,s=t}var u=.5*(n-t),c=this.valueSize;this._weightPrev=u/(t-a),this._weightNext=u/(s-n),this._offsetPrev=i*c,this._offsetNext=o*c},interpolate_:function(e,t,n,r){for(var i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=e*a,u=s-a,c=this._offsetPrev,l=this._offsetNext,f=this._weightPrev,h=this._weightNext,p=(n-t)/(r-t),d=p*p,m=d*p,v=-f*m+2*f*d-f*p,g=(1+f)*m+(-1.5-2*f)*d+(-.5+f)*p+1,y=(-1-h)*m+(1.5+h)*d+.5*p,b=h*m-h*d,x=0;x!==a;++x)i[x]=v*o[c+x]+g*o[u+x]+y*o[s+x]+b*o[l+x];return i}}),Rg.prototype=Object.assign(Object.create(Pg.prototype),{constructor:Rg,interpolate_:function(e,t,n,r){for(var i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=e*a,u=s-a,c=(n-t)/(r-t),l=1-c,f=0;f!==a;++f)i[f]=o[u+f]*l+o[s+f]*c;return i}}),jg.prototype=Object.assign(Object.create(Pg.prototype),{constructor:jg,interpolate_:function(e){return this.copySampleValue_(e-1)}}),Object.assign(Ng,{toJSON:function(e){var t,n=e.constructor;if(void 0!==n.toJSON)t=n.toJSON(e);else{t={name:e.name,times:Cg.convertArray(e.times,Array),values:Cg.convertArray(e.values,Array)};var r=e.getInterpolation();r!==e.DefaultInterpolation&&(t.interpolation=r)}return t.type=e.ValueTypeName,t}}),Object.assign(Ng.prototype,{constructor:Ng,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:2301,InterpolantFactoryMethodDiscrete:function(e){return new jg(this.times,this.values,this.getValueSize(),e)},InterpolantFactoryMethodLinear:function(e){return new Rg(this.times,this.values,this.getValueSize(),e)},InterpolantFactoryMethodSmooth:function(e){return new Lg(this.times,this.values,this.getValueSize(),e)},setInterpolation:function(e){var t;switch(e){case 2300:t=this.InterpolantFactoryMethodDiscrete;break;case 2301:t=this.InterpolantFactoryMethodLinear;break;case 2302:t=this.InterpolantFactoryMethodSmooth}if(void 0===t){var n="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(e===this.DefaultInterpolation)throw new Error(n);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",n),this}return this.createInterpolant=t,this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return 2300;case this.InterpolantFactoryMethodLinear:return 2301;case this.InterpolantFactoryMethodSmooth:return 2302}},getValueSize:function(){return this.values.length/this.times.length},shift:function(e){if(0!==e)for(var t=this.times,n=0,r=t.length;n!==r;++n)t[n]+=e;return this},scale:function(e){if(1!==e)for(var t=this.times,n=0,r=t.length;n!==r;++n)t[n]*=e;return this},trim:function(e,t){for(var n=this.times,r=n.length,i=0,o=r-1;i!==r&&n[i]<e;)++i;for(;-1!==o&&n[o]>t;)--o;if(++o,0!==i||o!==r){i>=o&&(i=(o=Math.max(o,1))-1);var a=this.getValueSize();this.times=Cg.arraySlice(n,i,o),this.values=Cg.arraySlice(this.values,i*a,o*a)}return this},validate:function(){var e=!0,t=this.getValueSize();t-Math.floor(t)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);var n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);for(var o=null,a=0;a!==i;a++){var s=n[a];if("number"==typeof s&&isNaN(s)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,s),e=!1;break}if(null!==o&&o>s){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,s,o),e=!1;break}o=s}if(void 0!==r&&Cg.isTypedArray(r))for(var u=0,c=r.length;u!==c;++u){var l=r[u];if(isNaN(l)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,u,l),e=!1;break}}return e},optimize:function(){for(var e=Cg.arraySlice(this.times),t=Cg.arraySlice(this.values),n=this.getValueSize(),r=2302===this.getInterpolation(),i=e.length-1,o=1,a=1;a<i;++a){var s=!1,u=e[a];if(u!==e[a+1]&&(1!==a||u!==u[0]))if(r)s=!0;else for(var c=a*n,l=c-n,f=c+n,h=0;h!==n;++h){var p=t[c+h];if(p!==t[l+h]||p!==t[f+h]){s=!0;break}}if(s){if(a!==o){e[o]=e[a];for(var d=a*n,m=o*n,v=0;v!==n;++v)t[m+v]=t[d+v]}++o}}if(i>0){e[o]=e[i];for(var g=i*n,y=o*n,b=0;b!==n;++b)t[y+b]=t[g+b];++o}return o!==e.length?(this.times=Cg.arraySlice(e,0,o),this.values=Cg.arraySlice(t,0,o*n)):(this.times=e,this.values=t),this},clone:function(){var e=Cg.arraySlice(this.times,0),t=Cg.arraySlice(this.values,0),n=new(0,this.constructor)(this.name,e,t);return n.createInterpolant=this.createInterpolant,n}}),Ig.prototype=Object.assign(Object.create(Ng.prototype),{constructor:Ig,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Dg.prototype=Object.assign(Object.create(Ng.prototype),{constructor:Dg,ValueTypeName:"color"}),Bg.prototype=Object.assign(Object.create(Ng.prototype),{constructor:Bg,ValueTypeName:"number"}),Fg.prototype=Object.assign(Object.create(Pg.prototype),{constructor:Fg,interpolate_:function(e,t,n,r){for(var i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=(n-t)/(r-t),u=e*a,c=u+a;u!==c;u+=4)$c.slerpFlat(i,0,o,u-a,o,u,s);return i}}),Ug.prototype=Object.assign(Object.create(Ng.prototype),{constructor:Ug,ValueTypeName:"quaternion",DefaultInterpolation:2301,InterpolantFactoryMethodLinear:function(e){return new Fg(this.times,this.values,this.getValueSize(),e)},InterpolantFactoryMethodSmooth:void 0}),zg.prototype=Object.assign(Object.create(Ng.prototype),{constructor:zg,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Hg.prototype=Object.assign(Object.create(Ng.prototype),{constructor:Hg,ValueTypeName:"vector"}),Object.assign(Gg,{parse:function(e){for(var t=[],n=e.tracks,r=1/(e.fps||1),i=0,o=n.length;i!==o;++i)t.push(Wg(n[i]).scale(r));return new Gg(e.name,e.duration,t,e.blendMode)},toJSON:function(e){for(var t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode},i=0,o=n.length;i!==o;++i)t.push(Ng.toJSON(n[i]));return r},CreateFromMorphTargetSequence:function(e,t,n,r){for(var i=t.length,o=[],a=0;a<i;a++){var s=[],u=[];s.push((a+i-1)%i,a,(a+1)%i),u.push(0,1,0);var c=Cg.getKeyframeOrder(s);s=Cg.sortedArray(s,1,c),u=Cg.sortedArray(u,1,c),r||0!==s[0]||(s.push(i),u.push(u[0])),o.push(new Bg(".morphTargetInfluences["+t[a].name+"]",s,u).scale(1/n))}return new Gg(e,-1,o)},findByName:function(e,t){var n=e;if(!Array.isArray(e)){var r=e;n=r.geometry&&r.geometry.animations||r.animations}for(var i=0;i<n.length;i++)if(n[i].name===t)return n[i];return null},CreateClipsFromMorphTargetSequences:function(e,t,n){for(var r={},i=/^([\w-]*?)([\d]+)$/,o=0,a=e.length;o<a;o++){var s=e[o],u=s.name.match(i);if(u&&u.length>1){var c=u[1],l=r[c];l||(r[c]=l=[]),l.push(s)}}var f=[];for(var h in r)f.push(Gg.CreateFromMorphTargetSequence(h,r[h],t,n));return f},parseAnimation:function(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;for(var n=function(e,t,n,r,i){if(0!==n.length){var o=[],a=[];Cg.flattenJSON(n,o,a,r),0!==o.length&&i.push(new e(t,o,a))}},r=[],i=e.name||"default",o=e.fps||30,a=e.blendMode,s=e.length||-1,u=e.hierarchy||[],c=0;c<u.length;c++){var l=u[c].keys;if(l&&0!==l.length)if(l[0].morphTargets){var f={},h=void 0;for(h=0;h<l.length;h++)if(l[h].morphTargets)for(var p=0;p<l[h].morphTargets.length;p++)f[l[h].morphTargets[p]]=-1;for(var d in f){for(var m=[],v=[],g=0;g!==l[h].morphTargets.length;++g){var y=l[h];m.push(y.time),v.push(y.morphTarget===d?1:0)}r.push(new Bg(".morphTargetInfluence["+d+"]",m,v))}s=f.length*(o||1)}else{var b=".bones["+t[c].name+"]";n(Hg,b+".position",l,"pos",r),n(Ug,b+".quaternion",l,"rot",r),n(Hg,b+".scale",l,"scl",r)}}return 0===r.length?null:new Gg(i,s,r,a)}}),Object.assign(Gg.prototype,{resetDuration:function(){for(var e=0,t=0,n=this.tracks.length;t!==n;++t){var r=this.tracks[t];e=Math.max(e,r.times[r.times.length-1])}return this.duration=e,this},trim:function(){for(var e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this},validate:function(){for(var e=!0,t=0;t<this.tracks.length;t++)e=e&&this.tracks[t].validate();return e},optimize:function(){for(var e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this},clone:function(){for(var e=[],t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());return new Gg(this.name,this.duration,e,this.blendMode)}});var Vg={enabled:!1,files:{},add:function(e,t){!1!==this.enabled&&(this.files[e]=t)},get:function(e){if(!1!==this.enabled)return this.files[e]},remove:function(e){delete this.files[e]},clear:function(){this.files={}}};function qg(e,t,n){var r=this,i=!1,o=0,a=0,s=void 0,u=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){a++,!1===i&&void 0!==r.onStart&&r.onStart(e,o,a),i=!0},this.itemEnd=function(e){o++,void 0!==r.onProgress&&r.onProgress(e,o,a),o===a&&(i=!1,void 0!==r.onLoad&&r.onLoad())},this.itemError=function(e){void 0!==r.onError&&r.onError(e)},this.resolveURL=function(e){return s?s(e):e},this.setURLModifier=function(e){return s=e,this},this.addHandler=function(e,t){return u.push(e,t),this},this.removeHandler=function(e){var t=u.indexOf(e);return-1!==t&&u.splice(t,2),this},this.getHandler=function(e){for(var t=0,n=u.length;t<n;t+=2){var r=u[t],i=u[t+1];if(r.global&&(r.lastIndex=0),r.test(e))return i}return null}}var Yg=new qg;function Xg(e){this.manager=void 0!==e?e:Yg,this.crossOrigin="anonymous",this.path="",this.resourcePath="",this.requestHeader={}}Object.assign(Xg.prototype,{load:function(){},loadAsync:function(e,t){var n=this;return new Promise(function(r,i){n.load(e,r,t,i)})},parse:function(){},setCrossOrigin:function(e){return this.crossOrigin=e,this},setPath:function(e){return this.path=e,this},setResourcePath:function(e){return this.resourcePath=e,this},setRequestHeader:function(e){return this.requestHeader=e,this}});var Zg={};function Jg(e){Xg.call(this,e)}function Qg(e){Xg.call(this,e)}function Kg(e){Xg.call(this,e)}function $g(e){Xg.call(this,e)}function ey(e){Xg.call(this,e)}function ty(e){Xg.call(this,e)}function ny(e){Xg.call(this,e)}function ry(){this.type="Curve",this.arcLengthDivisions=200}function iy(e,t,n,r,i,o,a,s){ry.call(this),this.type="EllipseCurve",this.aX=e||0,this.aY=t||0,this.xRadius=n||1,this.yRadius=r||1,this.aStartAngle=i||0,this.aEndAngle=o||2*Math.PI,this.aClockwise=a||!1,this.aRotation=s||0}function oy(e,t,n,r,i,o){iy.call(this,e,t,n,n,r,i,o),this.type="ArcCurve"}function ay(){var e=0,t=0,n=0,r=0;function i(i,o,a,s){e=i,t=a,n=-3*i+3*o-2*a-s,r=2*i-2*o+a+s}return{initCatmullRom:function(e,t,n,r,o){i(t,n,o*(n-e),o*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,o,a,s){var u=(t-e)/o-(n-e)/(o+a)+(n-t)/a,c=(n-t)/a-(r-t)/(a+s)+(r-n)/s;i(t,n,u*=a,c*=a)},calc:function(i){var o=i*i;return e+t*i+n*o+r*(o*i)}}}Jg.prototype=Object.assign(Object.create(Xg.prototype),{constructor:Jg,load:function(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);var i=this,o=Vg.get(e);if(void 0!==o)return i.manager.itemStart(e),setTimeout(function(){t&&t(o),i.manager.itemEnd(e)},0),o;if(void 0===Zg[e]){var a,s=e.match(/^data:(.*?)(;base64)?,(.*)$/);if(s){var u=s[1],c=!!s[2],l=s[3];l=decodeURIComponent(l),c&&(l=atob(l));try{var f,h=(this.responseType||"").toLowerCase();switch(h){case"arraybuffer":case"blob":for(var p=new Uint8Array(l.length),d=0;d<l.length;d++)p[d]=l.charCodeAt(d);f="blob"===h?new Blob([p.buffer],{type:u}):p.buffer;break;case"document":var m=new DOMParser;f=m.parseFromString(l,u);break;case"json":f=JSON.parse(l);break;default:f=l}setTimeout(function(){t&&t(f),i.manager.itemEnd(e)},0)}catch(t){setTimeout(function(){r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)},0)}}else{for(var v in Zg[e]=[],Zg[e].push({onLoad:t,onProgress:n,onError:r}),(a=new XMLHttpRequest).open("GET",e,!0),a.addEventListener("load",function(t){var n=this.response,r=Zg[e];if(delete Zg[e],200===this.status||0===this.status){0===this.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),Vg.add(e,n);for(var o=0,a=r.length;o<a;o++){var s=r[o];s.onLoad&&s.onLoad(n)}i.manager.itemEnd(e)}else{for(var u=0,c=r.length;u<c;u++){var l=r[u];l.onError&&l.onError(t)}i.manager.itemError(e),i.manager.itemEnd(e)}},!1),a.addEventListener("progress",function(t){for(var n=Zg[e],r=0,i=n.length;r<i;r++){var o=n[r];o.onProgress&&o.onProgress(t)}},!1),a.addEventListener("error",function(t){var n=Zg[e];delete Zg[e];for(var r=0,o=n.length;r<o;r++){var a=n[r];a.onError&&a.onError(t)}i.manager.itemError(e),i.manager.itemEnd(e)},!1),a.addEventListener("abort",function(t){var n=Zg[e];delete Zg[e];for(var r=0,o=n.length;r<o;r++){var a=n[r];a.onError&&a.onError(t)}i.manager.itemError(e),i.manager.itemEnd(e)},!1),void 0!==this.responseType&&(a.responseType=this.responseType),void 0!==this.withCredentials&&(a.withCredentials=this.withCredentials),a.overrideMimeType&&a.overrideMimeType(void 0!==this.mimeType?this.mimeType:"text/plain"),this.requestHeader)a.setRequestHeader(v,this.requestHeader[v]);a.send(null)}return i.manager.itemStart(e),a}Zg[e].push({onLoad:t,onProgress:n,onError:r})},setResponseType:function(e){return this.responseType=e,this},setWithCredentials:function(e){return this.withCredentials=e,this},setMimeType:function(e){return this.mimeType=e,this}}),Qg.prototype=Object.assign(Object.create(Xg.prototype),{constructor:Qg,load:function(e,t,n,r){var i=this,o=new Jg(i.manager);o.setPath(i.path),o.setRequestHeader(i.requestHeader),o.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}},n,r)},parse:function(e){for(var t=[],n=0;n<e.length;n++){var r=Gg.parse(e[n]);t.push(r)}return t}}),Kg.prototype=Object.assign(Object.create(Xg.prototype),{constructor:Kg,load:function(e,t,n,r){var i=this,o=[],a=new ev;a.image=o;var s=new Jg(this.manager);s.setPath(this.path),s.setResponseType("arraybuffer"),s.setRequestHeader(this.requestHeader);var u=0;function c(c){s.load(e[c],function(e){var n=i.parse(e,!0);o[c]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps},6===(u+=1)&&(1===n.mipmapCount&&(a.minFilter=ou),a.format=n.format,a.needsUpdate=!0,t&&t(a))},n,r)}if(Array.isArray(e))for(var l=0,f=e.length;l<f;++l)c(l);else s.load(e,function(e){var n=i.parse(e,!0);if(n.isCubemap)for(var r=n.mipmaps.length/n.mipmapCount,s=0;s<r;s++){o[s]={mipmaps:[]};for(var u=0;u<n.mipmapCount;u++)o[s].mipmaps.push(n.mipmaps[s*n.mipmapCount+u]),o[s].format=n.format,o[s].width=n.width,o[s].height=n.height}else a.image.width=n.width,a.image.height=n.height,a.mipmaps=n.mipmaps;1===n.mipmapCount&&(a.minFilter=ou),a.format=n.format,a.needsUpdate=!0,t&&t(a)},n,r);return a}}),$g.prototype=Object.assign(Object.create(Xg.prototype),{constructor:$g,load:function(e,t,n,r){void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);var i=this,o=Vg.get(e);if(void 0!==o)return i.manager.itemStart(e),setTimeout(function(){t&&t(o),i.manager.itemEnd(e)},0),o;var a=document.createElementNS("http://www.w3.org/1999/xhtml","img");function s(){a.removeEventListener("load",s,!1),a.removeEventListener("error",u,!1),Vg.add(e,this),t&&t(this),i.manager.itemEnd(e)}function u(t){a.removeEventListener("load",s,!1),a.removeEventListener("error",u,!1),r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)}return a.addEventListener("load",s,!1),a.addEventListener("error",u,!1),"data:"!==e.substr(0,5)&&void 0!==this.crossOrigin&&(a.crossOrigin=this.crossOrigin),i.manager.itemStart(e),a.src=e,a}}),ey.prototype=Object.assign(Object.create(Xg.prototype),{constructor:ey,load:function(e,t,n,r){var i=new op,o=new $g(this.manager);o.setCrossOrigin(this.crossOrigin),o.setPath(this.path);var a=0;function s(n){o.load(e[n],function(e){i.images[n]=e,6===++a&&(i.needsUpdate=!0,t&&t(i))},void 0,r)}for(var u=0;u<e.length;++u)s(u);return i}}),ty.prototype=Object.assign(Object.create(Xg.prototype),{constructor:ty,load:function(e,t,n,r){var i=this,o=new jh,a=new Jg(this.manager);return a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setPath(this.path),a.load(e,function(e){var n=i.parse(e);n&&(void 0!==n.image?o.image=n.image:void 0!==n.data&&(o.image.width=n.width,o.image.height=n.height,o.image.data=n.data),o.wrapS=void 0!==n.wrapS?n.wrapS:eu,o.wrapT=void 0!==n.wrapT?n.wrapT:eu,o.magFilter=void 0!==n.magFilter?n.magFilter:ou,o.minFilter=void 0!==n.minFilter?n.minFilter:ou,o.anisotropy=void 0!==n.anisotropy?n.anisotropy:1,void 0!==n.format&&(o.format=n.format),void 0!==n.type&&(o.type=n.type),void 0!==n.mipmaps&&(o.mipmaps=n.mipmaps,o.minFilter=su),1===n.mipmapCount&&(o.minFilter=ou),o.needsUpdate=!0,t&&t(o,n))},n,r),o}}),ny.prototype=Object.assign(Object.create(Xg.prototype),{constructor:ny,load:function(e,t,n,r){var i=new Zc,o=new $g(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(n){i.image=n;var r=e.search(/\.jpe?g($|\?)/i)>0||0===e.search(/^data\:image\/jpeg/);i.format=r?_u:wu,i.needsUpdate=!0,void 0!==t&&t(i)},n,r),i}}),Object.assign(ry.prototype,{getPoint:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null},getPointAt:function(e,t){var n=this.getUtoTmapping(e);return this.getPoint(n,t)},getPoints:function(e){void 0===e&&(e=5);for(var t=[],n=0;n<=e;n++)t.push(this.getPoint(n/e));return t},getSpacedPoints:function(e){void 0===e&&(e=5);for(var t=[],n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t},getLength:function(){var e=this.getLengths();return e[e.length-1]},getLengths:function(e){if(void 0===e&&(e=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var t,n=[],r=this.getPoint(0),i=0;n.push(0);for(var o=1;o<=e;o++)i+=(t=this.getPoint(o/e)).distanceTo(r),n.push(i),r=t;return this.cacheArcLengths=n,n},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(e,t){var n,r=this.getLengths(),i=0,o=r.length;n=t||e*r[o-1];for(var a,s=0,u=o-1;s<=u;)if((a=r[i=Math.floor(s+(u-s)/2)]-n)<0)s=i+1;else{if(!(a>0)){u=i;break}u=i-1}if(r[i=u]===n)return i/(o-1);var c=r[i];return(i+(n-c)/(r[i+1]-c))/(o-1)},getTangent:function(e,t){var n=e-1e-4,r=e+1e-4;n<0&&(n=0),r>1&&(r=1);var i=this.getPoint(n),o=this.getPoint(r),a=t||(i.isVector2?new Vc:new el);return a.copy(o).sub(i).normalize(),a},getTangentAt:function(e,t){var n=this.getUtoTmapping(e);return this.getTangent(n,t)},computeFrenetFrames:function(e,t){for(var n=new el,r=[],i=[],o=[],a=new el,s=new Al,u=0;u<=e;u++){var c=u/e;r[u]=this.getTangentAt(c,new el),r[u].normalize()}i[0]=new el,o[0]=new el;var l=Number.MAX_VALUE,f=Math.abs(r[0].x),h=Math.abs(r[0].y),p=Math.abs(r[0].z);f<=l&&(l=f,n.set(1,0,0)),h<=l&&(l=h,n.set(0,1,0)),p<=l&&n.set(0,0,1),a.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],a),o[0].crossVectors(r[0],i[0]);for(var d=1;d<=e;d++){if(i[d]=i[d-1].clone(),o[d]=o[d-1].clone(),a.crossVectors(r[d-1],r[d]),a.length()>Number.EPSILON){a.normalize();var m=Math.acos(Wc.clamp(r[d-1].dot(r[d]),-1,1));i[d].applyMatrix4(s.makeRotationAxis(a,m))}o[d].crossVectors(r[d],i[d])}if(!0===t){var v=Math.acos(Wc.clamp(i[0].dot(i[e]),-1,1));v/=e,r[0].dot(a.crossVectors(i[0],i[e]))>0&&(v=-v);for(var g=1;g<=e;g++)i[g].applyMatrix4(s.makeRotationAxis(r[g],v*g)),o[g].crossVectors(r[g],i[g])}return{tangents:r,normals:i,binormals:o}},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this},toJSON:function(){var e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e},fromJSON:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}),iy.prototype=Object.create(ry.prototype),iy.prototype.constructor=iy,iy.prototype.isEllipseCurve=!0,iy.prototype.getPoint=function(e,t){for(var n=t||new Vc,r=2*Math.PI,i=this.aEndAngle-this.aStartAngle,o=Math.abs(i)<Number.EPSILON;i<0;)i+=r;for(;i>r;)i-=r;i<Number.EPSILON&&(i=o?0:r),!0!==this.aClockwise||o||(i===r?i=-r:i-=r);var a=this.aStartAngle+e*i,s=this.aX+this.xRadius*Math.cos(a),u=this.aY+this.yRadius*Math.sin(a);if(0!==this.aRotation){var c=Math.cos(this.aRotation),l=Math.sin(this.aRotation),f=s-this.aX,h=u-this.aY;s=f*c-h*l+this.aX,u=f*l+h*c+this.aY}return n.set(s,u)},iy.prototype.copy=function(e){return ry.prototype.copy.call(this,e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this},iy.prototype.toJSON=function(){var e=ry.prototype.toJSON.call(this);return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e},iy.prototype.fromJSON=function(e){return ry.prototype.fromJSON.call(this,e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this},oy.prototype=Object.create(iy.prototype),oy.prototype.constructor=oy,oy.prototype.isArcCurve=!0;var sy=new el,uy=new ay,cy=new ay,ly=new ay;function fy(e,t,n,r){ry.call(this),this.type="CatmullRomCurve3",this.points=e||[],this.closed=t||!1,this.curveType=n||"centripetal",this.tension=void 0!==r?r:.5}function hy(e,t,n,r,i){var o=.5*(r-t),a=.5*(i-n),s=e*e;return(2*n-2*r+o+a)*(e*s)+(-3*n+3*r-2*o-a)*s+o*e+n}function py(e,t,n,r){return function(e,t){var n=1-e;return n*n*t}(e,t)+function(e,t){return 2*(1-e)*e*t}(e,n)+function(e,t){return e*e*t}(e,r)}function dy(e,t,n,r,i){return function(e,t){var n=1-e;return n*n*n*t}(e,t)+function(e,t){var n=1-e;return 3*n*n*e*t}(e,n)+function(e,t){return 3*(1-e)*e*e*t}(e,r)+function(e,t){return e*e*e*t}(e,i)}function my(e,t,n,r){ry.call(this),this.type="CubicBezierCurve",this.v0=e||new Vc,this.v1=t||new Vc,this.v2=n||new Vc,this.v3=r||new Vc}function vy(e,t,n,r){ry.call(this),this.type="CubicBezierCurve3",this.v0=e||new el,this.v1=t||new el,this.v2=n||new el,this.v3=r||new el}function gy(e,t){ry.call(this),this.type="LineCurve",this.v1=e||new Vc,this.v2=t||new Vc}function yy(e,t){ry.call(this),this.type="LineCurve3",this.v1=e||new el,this.v2=t||new el}function by(e,t,n){ry.call(this),this.type="QuadraticBezierCurve",this.v0=e||new Vc,this.v1=t||new Vc,this.v2=n||new Vc}function xy(e,t,n){ry.call(this),this.type="QuadraticBezierCurve3",this.v0=e||new el,this.v1=t||new el,this.v2=n||new el}function _y(e){ry.call(this),this.type="SplineCurve",this.points=e||[]}fy.prototype=Object.create(ry.prototype),fy.prototype.constructor=fy,fy.prototype.isCatmullRomCurve3=!0,fy.prototype.getPoint=function(e,t){var n,r,i=t||new el,o=this.points,a=o.length,s=(a-(this.closed?0:1))*e,u=Math.floor(s),c=s-u;this.closed?u+=u>0?0:(Math.floor(Math.abs(u)/a)+1)*a:0===c&&u===a-1&&(u=a-2,c=1),this.closed||u>0?n=o[(u-1)%a]:(sy.subVectors(o[0],o[1]).add(o[0]),n=sy);var l=o[u%a],f=o[(u+1)%a];if(this.closed||u+2<a?r=o[(u+2)%a]:(sy.subVectors(o[a-1],o[a-2]).add(o[a-1]),r=sy),"centripetal"===this.curveType||"chordal"===this.curveType){var h="chordal"===this.curveType?.5:.25,p=Math.pow(n.distanceToSquared(l),h),d=Math.pow(l.distanceToSquared(f),h),m=Math.pow(f.distanceToSquared(r),h);d<1e-4&&(d=1),p<1e-4&&(p=d),m<1e-4&&(m=d),uy.initNonuniformCatmullRom(n.x,l.x,f.x,r.x,p,d,m),cy.initNonuniformCatmullRom(n.y,l.y,f.y,r.y,p,d,m),ly.initNonuniformCatmullRom(n.z,l.z,f.z,r.z,p,d,m)}else"catmullrom"===this.curveType&&(uy.initCatmullRom(n.x,l.x,f.x,r.x,this.tension),cy.initCatmullRom(n.y,l.y,f.y,r.y,this.tension),ly.initCatmullRom(n.z,l.z,f.z,r.z,this.tension));return i.set(uy.calc(c),cy.calc(c),ly.calc(c)),i},fy.prototype.copy=function(e){ry.prototype.copy.call(this,e),this.points=[];for(var t=0,n=e.points.length;t<n;t++){var r=e.points[t];this.points.push(r.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this},fy.prototype.toJSON=function(){var e=ry.prototype.toJSON.call(this);e.points=[];for(var t=0,n=this.points.length;t<n;t++){var r=this.points[t];e.points.push(r.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e},fy.prototype.fromJSON=function(e){ry.prototype.fromJSON.call(this,e),this.points=[];for(var t=0,n=e.points.length;t<n;t++){var r=e.points[t];this.points.push((new el).fromArray(r))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this},my.prototype=Object.create(ry.prototype),my.prototype.constructor=my,my.prototype.isCubicBezierCurve=!0,my.prototype.getPoint=function(e,t){var n=t||new Vc,r=this.v0,i=this.v1,o=this.v2,a=this.v3;return n.set(dy(e,r.x,i.x,o.x,a.x),dy(e,r.y,i.y,o.y,a.y)),n},my.prototype.copy=function(e){return ry.prototype.copy.call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this},my.prototype.toJSON=function(){var e=ry.prototype.toJSON.call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e},my.prototype.fromJSON=function(e){return ry.prototype.fromJSON.call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this},vy.prototype=Object.create(ry.prototype),vy.prototype.constructor=vy,vy.prototype.isCubicBezierCurve3=!0,vy.prototype.getPoint=function(e,t){var n=t||new el,r=this.v0,i=this.v1,o=this.v2,a=this.v3;return n.set(dy(e,r.x,i.x,o.x,a.x),dy(e,r.y,i.y,o.y,a.y),dy(e,r.z,i.z,o.z,a.z)),n},vy.prototype.copy=function(e){return ry.prototype.copy.call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this},vy.prototype.toJSON=function(){var e=ry.prototype.toJSON.call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e},vy.prototype.fromJSON=function(e){return ry.prototype.fromJSON.call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this},gy.prototype=Object.create(ry.prototype),gy.prototype.constructor=gy,gy.prototype.isLineCurve=!0,gy.prototype.getPoint=function(e,t){var n=t||new Vc;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n},gy.prototype.getPointAt=function(e,t){return this.getPoint(e,t)},gy.prototype.getTangent=function(e,t){var n=t||new Vc;return n.copy(this.v2).sub(this.v1).normalize(),n},gy.prototype.copy=function(e){return ry.prototype.copy.call(this,e),this.v1.copy(e.v1),this.v2.copy(e.v2),this},gy.prototype.toJSON=function(){var e=ry.prototype.toJSON.call(this);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e},gy.prototype.fromJSON=function(e){return ry.prototype.fromJSON.call(this,e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this},yy.prototype=Object.create(ry.prototype),yy.prototype.constructor=yy,yy.prototype.isLineCurve3=!0,yy.prototype.getPoint=function(e,t){var n=t||new el;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n},yy.prototype.getPointAt=function(e,t){return this.getPoint(e,t)},yy.prototype.copy=function(e){return ry.prototype.copy.call(this,e),this.v1.copy(e.v1),this.v2.copy(e.v2),this},yy.prototype.toJSON=function(){var e=ry.prototype.toJSON.call(this);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e},yy.prototype.fromJSON=function(e){return ry.prototype.fromJSON.call(this,e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this},by.prototype=Object.create(ry.prototype),by.prototype.constructor=by,by.prototype.isQuadraticBezierCurve=!0,by.prototype.getPoint=function(e,t){var n=t||new Vc,r=this.v0,i=this.v1,o=this.v2;return n.set(py(e,r.x,i.x,o.x),py(e,r.y,i.y,o.y)),n},by.prototype.copy=function(e){return ry.prototype.copy.call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this},by.prototype.toJSON=function(){var e=ry.prototype.toJSON.call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e},by.prototype.fromJSON=function(e){return ry.prototype.fromJSON.call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this},xy.prototype=Object.create(ry.prototype),xy.prototype.constructor=xy,xy.prototype.isQuadraticBezierCurve3=!0,xy.prototype.getPoint=function(e,t){var n=t||new el,r=this.v0,i=this.v1,o=this.v2;return n.set(py(e,r.x,i.x,o.x),py(e,r.y,i.y,o.y),py(e,r.z,i.z,o.z)),n},xy.prototype.copy=function(e){return ry.prototype.copy.call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this},xy.prototype.toJSON=function(){var e=ry.prototype.toJSON.call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e},xy.prototype.fromJSON=function(e){return ry.prototype.fromJSON.call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this},_y.prototype=Object.create(ry.prototype),_y.prototype.constructor=_y,_y.prototype.isSplineCurve=!0,_y.prototype.getPoint=function(e,t){var n=t||new Vc,r=this.points,i=(r.length-1)*e,o=Math.floor(i),a=i-o,s=r[0===o?o:o-1],u=r[o],c=r[o>r.length-2?r.length-1:o+1],l=r[o>r.length-3?r.length-1:o+2];return n.set(hy(a,s.x,u.x,c.x,l.x),hy(a,s.y,u.y,c.y,l.y)),n},_y.prototype.copy=function(e){ry.prototype.copy.call(this,e),this.points=[];for(var t=0,n=e.points.length;t<n;t++){var r=e.points[t];this.points.push(r.clone())}return this},_y.prototype.toJSON=function(){var e=ry.prototype.toJSON.call(this);e.points=[];for(var t=0,n=this.points.length;t<n;t++){var r=this.points[t];e.points.push(r.toArray())}return e},_y.prototype.fromJSON=function(e){ry.prototype.fromJSON.call(this,e),this.points=[];for(var t=0,n=e.points.length;t<n;t++){var r=e.points[t];this.points.push((new Vc).fromArray(r))}return this};var wy=Object.freeze({__proto__:null,ArcCurve:oy,CatmullRomCurve3:fy,CubicBezierCurve:my,CubicBezierCurve3:vy,EllipseCurve:iy,LineCurve:gy,LineCurve3:yy,QuadraticBezierCurve:by,QuadraticBezierCurve3:xy,SplineCurve:_y});function Ey(){ry.call(this),this.type="CurvePath",this.curves=[],this.autoClose=!1}function Sy(e){Ey.call(this),this.type="Path",this.currentPoint=new Vc,e&&this.setFromPoints(e)}function Ty(e){Sy.call(this,e),this.uuid=Wc.generateUUID(),this.type="Shape",this.holes=[]}function My(e,t){$l.call(this),this.type="Light",this.color=new wf(e),this.intensity=void 0!==t?t:1,this.receiveShadow=void 0}function Oy(e,t,n){My.call(this,e,n),this.type="HemisphereLight",this.castShadow=void 0,this.position.copy($l.DefaultUp),this.updateMatrix(),this.groundColor=new wf(t)}function Ay(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.mapSize=new Vc(512,512),this.map=null,this.mapPass=null,this.matrix=new Al,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Dh,this._frameExtents=new Vc(1,1),this._viewportCount=1,this._viewports=[new Jc(0,0,1,1)]}function ky(){Ay.call(this,new kh(50,1,.5,500))}function Cy(e,t,n,r,i,o){My.call(this,e,t),this.type="SpotLight",this.position.copy($l.DefaultUp),this.updateMatrix(),this.target=new $l,Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(e){this.intensity=e/Math.PI}}),this.distance=void 0!==n?n:0,this.angle=void 0!==r?r:Math.PI/3,this.penumbra=void 0!==i?i:0,this.decay=void 0!==o?o:1,this.shadow=new ky}function Py(){Ay.call(this,new kh(90,1,.5,500)),this._frameExtents=new Vc(4,2),this._viewportCount=6,this._viewports=[new Jc(2,1,1,1),new Jc(0,1,1,1),new Jc(3,1,1,1),new Jc(1,1,1,1),new Jc(3,0,1,1),new Jc(1,0,1,1)],this._cubeDirections=[new el(1,0,0),new el(-1,0,0),new el(0,0,1),new el(0,0,-1),new el(0,1,0),new el(0,-1,0)],this._cubeUps=[new el(0,1,0),new el(0,1,0),new el(0,1,0),new el(0,1,0),new el(0,0,1),new el(0,0,-1)]}function Ly(e,t,n,r){My.call(this,e,t),this.type="PointLight",Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(e){this.intensity=e/(4*Math.PI)}}),this.distance=void 0!==n?n:0,this.decay=void 0!==r?r:1,this.shadow=new Py}function Ry(e,t,n,r,i,o){Ah.call(this),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=void 0!==e?e:-1,this.right=void 0!==t?t:1,this.top=void 0!==n?n:1,this.bottom=void 0!==r?r:-1,this.near=void 0!==i?i:.1,this.far=void 0!==o?o:2e3,this.updateProjectionMatrix()}function jy(){Ay.call(this,new Ry(-5,5,5,-5,.5,500))}function Ny(e,t){My.call(this,e,t),this.type="DirectionalLight",this.position.copy($l.DefaultUp),this.updateMatrix(),this.target=new $l,this.shadow=new jy}function Iy(e,t){My.call(this,e,t),this.type="AmbientLight",this.castShadow=void 0}function Dy(e,t,n,r){My.call(this,e,t),this.type="RectAreaLight",this.width=void 0!==n?n:10,this.height=void 0!==r?r:10}Ey.prototype=Object.assign(Object.create(ry.prototype),{constructor:Ey,add:function(e){this.curves.push(e)},closePath:function(){var e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);e.equals(t)||this.curves.push(new gy(t,e))},getPoint:function(e){for(var t=e*this.getLength(),n=this.getCurveLengths(),r=0;r<n.length;){if(n[r]>=t){var i=n[r]-t,o=this.curves[r],a=o.getLength(),s=0===a?0:1-i/a;return o.getPointAt(s)}r++}return null},getLength:function(){var e=this.getCurveLengths();return e[e.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var e=[],t=0,n=0,r=this.curves.length;n<r;n++)t+=this.curves[n].getLength(),e.push(t);return this.cacheLengths=e,e},getSpacedPoints:function(e){void 0===e&&(e=40);for(var t=[],n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t},getPoints:function(e){e=e||12;for(var t,n=[],r=0,i=this.curves;r<i.length;r++)for(var o=i[r],a=o&&o.isEllipseCurve?2*e:o&&(o.isLineCurve||o.isLineCurve3)?1:o&&o.isSplineCurve?e*o.points.length:e,s=o.getPoints(a),u=0;u<s.length;u++){var c=s[u];t&&t.equals(c)||(n.push(c),t=c)}return this.autoClose&&n.length>1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n},copy:function(e){ry.prototype.copy.call(this,e),this.curves=[];for(var t=0,n=e.curves.length;t<n;t++){var r=e.curves[t];this.curves.push(r.clone())}return this.autoClose=e.autoClose,this},toJSON:function(){var e=ry.prototype.toJSON.call(this);e.autoClose=this.autoClose,e.curves=[];for(var t=0,n=this.curves.length;t<n;t++){var r=this.curves[t];e.curves.push(r.toJSON())}return e},fromJSON:function(e){ry.prototype.fromJSON.call(this,e),this.autoClose=e.autoClose,this.curves=[];for(var t=0,n=e.curves.length;t<n;t++){var r=e.curves[t];this.curves.push((new wy[r.type]).fromJSON(r))}return this}}),Sy.prototype=Object.assign(Object.create(Ey.prototype),{constructor:Sy,setFromPoints:function(e){this.moveTo(e[0].x,e[0].y);for(var t=1,n=e.length;t<n;t++)this.lineTo(e[t].x,e[t].y);return this},moveTo:function(e,t){return this.currentPoint.set(e,t),this},lineTo:function(e,t){var n=new gy(this.currentPoint.clone(),new Vc(e,t));return this.curves.push(n),this.currentPoint.set(e,t),this},quadraticCurveTo:function(e,t,n,r){var i=new by(this.currentPoint.clone(),new Vc(e,t),new Vc(n,r));return this.curves.push(i),this.currentPoint.set(n,r),this},bezierCurveTo:function(e,t,n,r,i,o){var a=new my(this.currentPoint.clone(),new Vc(e,t),new Vc(n,r),new Vc(i,o));return this.curves.push(a),this.currentPoint.set(i,o),this},splineThru:function(e){var t=new _y([this.currentPoint.clone()].concat(e));return this.curves.push(t),this.currentPoint.copy(e[e.length-1]),this},arc:function(e,t,n,r,i,o){var a=this.currentPoint.x,s=this.currentPoint.y;return this.absarc(e+a,t+s,n,r,i,o),this},absarc:function(e,t,n,r,i,o){return this.absellipse(e,t,n,n,r,i,o),this},ellipse:function(e,t,n,r,i,o,a,s){var u=this.currentPoint.x,c=this.currentPoint.y;return this.absellipse(e+u,t+c,n,r,i,o,a,s),this},absellipse:function(e,t,n,r,i,o,a,s){var u=new iy(e,t,n,r,i,o,a,s);if(this.curves.length>0){var c=u.getPoint(0);c.equals(this.currentPoint)||this.lineTo(c.x,c.y)}this.curves.push(u);var l=u.getPoint(1);return this.currentPoint.copy(l),this},copy:function(e){return Ey.prototype.copy.call(this,e),this.currentPoint.copy(e.currentPoint),this},toJSON:function(){var e=Ey.prototype.toJSON.call(this);return e.currentPoint=this.currentPoint.toArray(),e},fromJSON:function(e){return Ey.prototype.fromJSON.call(this,e),this.currentPoint.fromArray(e.currentPoint),this}}),Ty.prototype=Object.assign(Object.create(Sy.prototype),{constructor:Ty,getPointsHoles:function(e){for(var t=[],n=0,r=this.holes.length;n<r;n++)t[n]=this.holes[n].getPoints(e);return t},extractPoints:function(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}},copy:function(e){Sy.prototype.copy.call(this,e),this.holes=[];for(var t=0,n=e.holes.length;t<n;t++){var r=e.holes[t];this.holes.push(r.clone())}return this},toJSON:function(){var e=Sy.prototype.toJSON.call(this);e.uuid=this.uuid,e.holes=[];for(var t=0,n=this.holes.length;t<n;t++){var r=this.holes[t];e.holes.push(r.toJSON())}return e},fromJSON:function(e){Sy.prototype.fromJSON.call(this,e),this.uuid=e.uuid,this.holes=[];for(var t=0,n=e.holes.length;t<n;t++){var r=e.holes[t];this.holes.push((new Sy).fromJSON(r))}return this}}),My.prototype=Object.assign(Object.create($l.prototype),{constructor:My,isLight:!0,copy:function(e){return $l.prototype.copy.call(this,e),this.color.copy(e.color),this.intensity=e.intensity,this},toJSON:function(e){var t=$l.prototype.toJSON.call(this,e);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),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),t}}),Oy.prototype=Object.assign(Object.create(My.prototype),{constructor:Oy,isHemisphereLight:!0,copy:function(e){return My.prototype.copy.call(this,e),this.groundColor.copy(e.groundColor),this}}),Object.assign(Ay.prototype,{_projScreenMatrix:new Al,_lightPositionWorld:new el,_lookTarget:new el,getViewportCount:function(){return this._viewportCount},getFrustum:function(){return this._frustum},updateMatrices:function(e){var t=this.camera,n=this.matrix,r=this._projScreenMatrix,i=this._lookTarget,o=this._lightPositionWorld;o.setFromMatrixPosition(e.matrixWorld),t.position.copy(o),i.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(i),t.updateMatrixWorld(),r.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(r),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(t.projectionMatrix),n.multiply(t.matrixWorldInverse)},getViewport:function(e){return this._viewports[e]},getFrameExtents:function(){return this._frameExtents},copy:function(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var e={};return 0!==this.bias&&(e.bias=this.bias),0!==this.normalBias&&(e.normalBias=this.normalBias),1!==this.radius&&(e.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}),ky.prototype=Object.assign(Object.create(Ay.prototype),{constructor:ky,isSpotLightShadow:!0,updateMatrices:function(e){var t=this.camera,n=2*Wc.RAD2DEG*e.angle,r=this.mapSize.width/this.mapSize.height,i=e.distance||t.far;n===t.fov&&r===t.aspect&&i===t.far||(t.fov=n,t.aspect=r,t.far=i,t.updateProjectionMatrix()),Ay.prototype.updateMatrices.call(this,e)}}),Cy.prototype=Object.assign(Object.create(My.prototype),{constructor:Cy,isSpotLight:!0,copy:function(e){return My.prototype.copy.call(this,e),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}),Py.prototype=Object.assign(Object.create(Ay.prototype),{constructor:Py,isPointLightShadow:!0,updateMatrices:function(e,t){void 0===t&&(t=0);var n=this.camera,r=this.matrix,i=this._lightPositionWorld,o=this._lookTarget,a=this._projScreenMatrix;i.setFromMatrixPosition(e.matrixWorld),n.position.copy(i),o.copy(n.position),o.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(o),n.updateMatrixWorld(),r.makeTranslation(-i.x,-i.y,-i.z),a.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(a)}}),Ly.prototype=Object.assign(Object.create(My.prototype),{constructor:Ly,isPointLight:!0,copy:function(e){return My.prototype.copy.call(this,e),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}),Ry.prototype=Object.assign(Object.create(Ah.prototype),{constructor:Ry,isOrthographicCamera:!0,copy:function(e,t){return Ah.prototype.copy.call(this,e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this},setViewOffset:function(e,t,n,r,i,o){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2,i=n-e,o=n+e,a=r+t,s=r-t;if(null!==this.view&&this.view.enabled){var u=(this.right-this.left)/this.view.fullWidth/this.zoom,c=(this.top-this.bottom)/this.view.fullHeight/this.zoom;o=(i+=u*this.view.offsetX)+u*this.view.width,s=(a-=c*this.view.offsetY)-c*this.view.height}this.projectionMatrix.makeOrthographic(i,o,a,s,this.near,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(e){var t=$l.prototype.toJSON.call(this,e);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,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}),jy.prototype=Object.assign(Object.create(Ay.prototype),{constructor:jy,isDirectionalLightShadow:!0,updateMatrices:function(e){Ay.prototype.updateMatrices.call(this,e)}}),Ny.prototype=Object.assign(Object.create(My.prototype),{constructor:Ny,isDirectionalLight:!0,copy:function(e){return My.prototype.copy.call(this,e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}),Iy.prototype=Object.assign(Object.create(My.prototype),{constructor:Iy,isAmbientLight:!0}),Dy.prototype=Object.assign(Object.create(My.prototype),{constructor:Dy,isRectAreaLight:!0,copy:function(e){return My.prototype.copy.call(this,e),this.width=e.width,this.height=e.height,this},toJSON:function(e){var t=My.prototype.toJSON.call(this,e);return t.object.width=this.width,t.object.height=this.height,t}});var By=function(){function e(){Object(cn.a)(this,e),Object.defineProperty(this,"isSphericalHarmonics3",{value:!0}),this.coefficients=[];for(var t=0;t<9;t++)this.coefficients.push(new el)}return Object(ln.a)(e,[{key:"set",value:function(e){for(var t=0;t<9;t++)this.coefficients[t].copy(e[t]);return this}},{key:"zero",value:function(){for(var e=0;e<9;e++)this.coefficients[e].set(0,0,0);return this}},{key:"getAt",value:function(e,t){var n=e.x,r=e.y,i=e.z,o=this.coefficients;return t.copy(o[0]).multiplyScalar(.282095),t.addScaledVector(o[1],.488603*r),t.addScaledVector(o[2],.488603*i),t.addScaledVector(o[3],.488603*n),t.addScaledVector(o[4],n*r*1.092548),t.addScaledVector(o[5],r*i*1.092548),t.addScaledVector(o[6],.315392*(3*i*i-1)),t.addScaledVector(o[7],n*i*1.092548),t.addScaledVector(o[8],.546274*(n*n-r*r)),t}},{key:"getIrradianceAt",value:function(e,t){var n=e.x,r=e.y,i=e.z,o=this.coefficients;return t.copy(o[0]).multiplyScalar(.886227),t.addScaledVector(o[1],1.023328*r),t.addScaledVector(o[2],1.023328*i),t.addScaledVector(o[3],1.023328*n),t.addScaledVector(o[4],.858086*n*r),t.addScaledVector(o[5],.858086*r*i),t.addScaledVector(o[6],.743125*i*i-.247708),t.addScaledVector(o[7],.858086*n*i),t.addScaledVector(o[8],.429043*(n*n-r*r)),t}},{key:"add",value:function(e){for(var t=0;t<9;t++)this.coefficients[t].add(e.coefficients[t]);return this}},{key:"addScaledSH",value:function(e,t){for(var n=0;n<9;n++)this.coefficients[n].addScaledVector(e.coefficients[n],t);return this}},{key:"scale",value:function(e){for(var t=0;t<9;t++)this.coefficients[t].multiplyScalar(e);return this}},{key:"lerp",value:function(e,t){for(var n=0;n<9;n++)this.coefficients[n].lerp(e.coefficients[n],t);return this}},{key:"equals",value:function(e){for(var t=0;t<9;t++)if(!this.coefficients[t].equals(e.coefficients[t]))return!1;return!0}},{key:"copy",value:function(e){return this.set(e.coefficients)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"fromArray",value:function(e,t){void 0===t&&(t=0);for(var n=this.coefficients,r=0;r<9;r++)n[r].fromArray(e,t+3*r);return this}},{key:"toArray",value:function(e,t){void 0===e&&(e=[]),void 0===t&&(t=0);for(var n=this.coefficients,r=0;r<9;r++)n[r].toArray(e,t+3*r);return e}}],[{key:"getBasisAt",value:function(e,t){var n=e.x,r=e.y,i=e.z;t[0]=.282095,t[1]=.488603*r,t[2]=.488603*i,t[3]=.488603*n,t[4]=1.092548*n*r,t[5]=1.092548*r*i,t[6]=.315392*(3*i*i-1),t[7]=1.092548*n*i,t[8]=.546274*(n*n-r*r)}}]),e}();function Fy(e,t){My.call(this,void 0,t),this.type="LightProbe",this.sh=void 0!==e?e:new By}function Uy(e){Xg.call(this,e),this.textures={}}Fy.prototype=Object.assign(Object.create(My.prototype),{constructor:Fy,isLightProbe:!0,copy:function(e){return My.prototype.copy.call(this,e),this.sh.copy(e.sh),this},fromJSON:function(e){return this.intensity=e.intensity,this.sh.fromArray(e.sh),this},toJSON:function(e){var t=My.prototype.toJSON.call(this,e);return t.object.sh=this.sh.toArray(),t}}),Uy.prototype=Object.assign(Object.create(Xg.prototype),{constructor:Uy,load:function(e,t,n,r){var i=this,o=new Jg(i.manager);o.setPath(i.path),o.setRequestHeader(i.requestHeader),o.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}},n,r)},parse:function(e){var t=this.textures;function n(e){return void 0===t[e]&&console.warn("THREE.MaterialLoader: Undefined texture",e),t[e]}var r=new kg[e.type];if(void 0!==e.uuid&&(r.uuid=e.uuid),void 0!==e.name&&(r.name=e.name),void 0!==e.color&&r.color.setHex(e.color),void 0!==e.roughness&&(r.roughness=e.roughness),void 0!==e.metalness&&(r.metalness=e.metalness),void 0!==e.sheen&&(r.sheen=(new wf).setHex(e.sheen)),void 0!==e.emissive&&r.emissive.setHex(e.emissive),void 0!==e.specular&&r.specular.setHex(e.specular),void 0!==e.shininess&&(r.shininess=e.shininess),void 0!==e.clearcoat&&(r.clearcoat=e.clearcoat),void 0!==e.clearcoatRoughness&&(r.clearcoatRoughness=e.clearcoatRoughness),void 0!==e.fog&&(r.fog=e.fog),void 0!==e.flatShading&&(r.flatShading=e.flatShading),void 0!==e.blending&&(r.blending=e.blending),void 0!==e.combine&&(r.combine=e.combine),void 0!==e.side&&(r.side=e.side),void 0!==e.opacity&&(r.opacity=e.opacity),void 0!==e.transparent&&(r.transparent=e.transparent),void 0!==e.alphaTest&&(r.alphaTest=e.alphaTest),void 0!==e.depthTest&&(r.depthTest=e.depthTest),void 0!==e.depthWrite&&(r.depthWrite=e.depthWrite),void 0!==e.colorWrite&&(r.colorWrite=e.colorWrite),void 0!==e.stencilWrite&&(r.stencilWrite=e.stencilWrite),void 0!==e.stencilWriteMask&&(r.stencilWriteMask=e.stencilWriteMask),void 0!==e.stencilFunc&&(r.stencilFunc=e.stencilFunc),void 0!==e.stencilRef&&(r.stencilRef=e.stencilRef),void 0!==e.stencilFuncMask&&(r.stencilFuncMask=e.stencilFuncMask),void 0!==e.stencilFail&&(r.stencilFail=e.stencilFail),void 0!==e.stencilZFail&&(r.stencilZFail=e.stencilZFail),void 0!==e.stencilZPass&&(r.stencilZPass=e.stencilZPass),void 0!==e.wireframe&&(r.wireframe=e.wireframe),void 0!==e.wireframeLinewidth&&(r.wireframeLinewidth=e.wireframeLinewidth),void 0!==e.wireframeLinecap&&(r.wireframeLinecap=e.wireframeLinecap),void 0!==e.wireframeLinejoin&&(r.wireframeLinejoin=e.wireframeLinejoin),void 0!==e.rotation&&(r.rotation=e.rotation),1!==e.linewidth&&(r.linewidth=e.linewidth),void 0!==e.dashSize&&(r.dashSize=e.dashSize),void 0!==e.gapSize&&(r.gapSize=e.gapSize),void 0!==e.scale&&(r.scale=e.scale),void 0!==e.polygonOffset&&(r.polygonOffset=e.polygonOffset),void 0!==e.polygonOffsetFactor&&(r.polygonOffsetFactor=e.polygonOffsetFactor),void 0!==e.polygonOffsetUnits&&(r.polygonOffsetUnits=e.polygonOffsetUnits),void 0!==e.skinning&&(r.skinning=e.skinning),void 0!==e.morphTargets&&(r.morphTargets=e.morphTargets),void 0!==e.morphNormals&&(r.morphNormals=e.morphNormals),void 0!==e.dithering&&(r.dithering=e.dithering),void 0!==e.vertexTangents&&(r.vertexTangents=e.vertexTangents),void 0!==e.visible&&(r.visible=e.visible),void 0!==e.toneMapped&&(r.toneMapped=e.toneMapped),void 0!==e.userData&&(r.userData=e.userData),void 0!==e.vertexColors&&("number"==typeof e.vertexColors?r.vertexColors=e.vertexColors>0:r.vertexColors=e.vertexColors),void 0!==e.uniforms)for(var i in e.uniforms){var o=e.uniforms[i];switch(r.uniforms[i]={},o.type){case"t":r.uniforms[i].value=n(o.value);break;case"c":r.uniforms[i].value=(new wf).setHex(o.value);break;case"v2":r.uniforms[i].value=(new Vc).fromArray(o.value);break;case"v3":r.uniforms[i].value=(new el).fromArray(o.value);break;case"v4":r.uniforms[i].value=(new Jc).fromArray(o.value);break;case"m3":r.uniforms[i].value=(new qc).fromArray(o.value);break;case"m4":r.uniforms[i].value=(new Al).fromArray(o.value);break;default:r.uniforms[i].value=o.value}}if(void 0!==e.defines&&(r.defines=e.defines),void 0!==e.vertexShader&&(r.vertexShader=e.vertexShader),void 0!==e.fragmentShader&&(r.fragmentShader=e.fragmentShader),void 0!==e.extensions)for(var a in e.extensions)r.extensions[a]=e.extensions[a];if(void 0!==e.shading&&(r.flatShading=1===e.shading),void 0!==e.size&&(r.size=e.size),void 0!==e.sizeAttenuation&&(r.sizeAttenuation=e.sizeAttenuation),void 0!==e.map&&(r.map=n(e.map)),void 0!==e.matcap&&(r.matcap=n(e.matcap)),void 0!==e.alphaMap&&(r.alphaMap=n(e.alphaMap)),void 0!==e.bumpMap&&(r.bumpMap=n(e.bumpMap)),void 0!==e.bumpScale&&(r.bumpScale=e.bumpScale),void 0!==e.normalMap&&(r.normalMap=n(e.normalMap)),void 0!==e.normalMapType&&(r.normalMapType=e.normalMapType),void 0!==e.normalScale){var s=e.normalScale;!1===Array.isArray(s)&&(s=[s,s]),r.normalScale=(new Vc).fromArray(s)}return void 0!==e.displacementMap&&(r.displacementMap=n(e.displacementMap)),void 0!==e.displacementScale&&(r.displacementScale=e.displacementScale),void 0!==e.displacementBias&&(r.displacementBias=e.displacementBias),void 0!==e.roughnessMap&&(r.roughnessMap=n(e.roughnessMap)),void 0!==e.metalnessMap&&(r.metalnessMap=n(e.metalnessMap)),void 0!==e.emissiveMap&&(r.emissiveMap=n(e.emissiveMap)),void 0!==e.emissiveIntensity&&(r.emissiveIntensity=e.emissiveIntensity),void 0!==e.specularMap&&(r.specularMap=n(e.specularMap)),void 0!==e.envMap&&(r.envMap=n(e.envMap)),void 0!==e.envMapIntensity&&(r.envMapIntensity=e.envMapIntensity),void 0!==e.reflectivity&&(r.reflectivity=e.reflectivity),void 0!==e.refractionRatio&&(r.refractionRatio=e.refractionRatio),void 0!==e.lightMap&&(r.lightMap=n(e.lightMap)),void 0!==e.lightMapIntensity&&(r.lightMapIntensity=e.lightMapIntensity),void 0!==e.aoMap&&(r.aoMap=n(e.aoMap)),void 0!==e.aoMapIntensity&&(r.aoMapIntensity=e.aoMapIntensity),void 0!==e.gradientMap&&(r.gradientMap=n(e.gradientMap)),void 0!==e.clearcoatMap&&(r.clearcoatMap=n(e.clearcoatMap)),void 0!==e.clearcoatRoughnessMap&&(r.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),void 0!==e.clearcoatNormalMap&&(r.clearcoatNormalMap=n(e.clearcoatNormalMap)),void 0!==e.clearcoatNormalScale&&(r.clearcoatNormalScale=(new Vc).fromArray(e.clearcoatNormalScale)),void 0!==e.transmission&&(r.transmission=e.transmission),void 0!==e.transmissionMap&&(r.transmissionMap=n(e.transmissionMap)),r},setTextures:function(e){return this.textures=e,this}});var zy=function(e){var t=e.lastIndexOf("/");return-1===t?"./":e.substr(0,t+1)};function Hy(){Xf.call(this),this.type="InstancedBufferGeometry",this.instanceCount=1/0}function Gy(e,t,n,r){"number"==typeof n&&(r=n,n=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),kf.call(this,e,t,n),this.meshPerAttribute=r||1}function Wy(e){Xg.call(this,e)}Hy.prototype=Object.assign(Object.create(Xf.prototype),{constructor:Hy,isInstancedBufferGeometry:!0,copy:function(e){return Xf.prototype.copy.call(this,e),this.instanceCount=e.instanceCount,this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var e=Xf.prototype.toJSON.call(this);return e.instanceCount=this.instanceCount,e.isInstancedBufferGeometry=!0,e}}),Gy.prototype=Object.assign(Object.create(kf.prototype),{constructor:Gy,isInstancedBufferAttribute:!0,copy:function(e){return kf.prototype.copy.call(this,e),this.meshPerAttribute=e.meshPerAttribute,this},toJSON:function(){var e=kf.prototype.toJSON.call(this);return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}),Wy.prototype=Object.assign(Object.create(Xg.prototype),{constructor:Wy,load:function(e,t,n,r){var i=this,o=new Jg(i.manager);o.setPath(i.path),o.setRequestHeader(i.requestHeader),o.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}},n,r)},parse:function(e){var t={},n={};function r(e,r){if(void 0!==t[r])return t[r];var i=e.interleavedBuffers[r],o=function(e,t){if(void 0!==n[t])return n[t];var r=e.arrayBuffers[t],i=new Uint32Array(r).buffer;return n[t]=i,i}(e,i.buffer),a=new Kd(new Vy[i.type](o),i.stride);return a.uuid=i.uuid,t[r]=a,a}var i=e.isInstancedBufferGeometry?new Hy:new Xf,o=e.data.index;if(void 0!==o){var a=new Vy[o.type](o.array);i.setIndex(new kf(a,1))}var s=e.data.attributes;for(var u in s){var c=s[u],l=void 0;if(c.isInterleavedBufferAttribute){l=new tm(r(e.data,c.data),c.itemSize,c.offset,c.normalized)}else{var f=new Vy[c.type](c.array);l=new(c.isInstancedBufferAttribute?Gy:kf)(f,c.itemSize,c.normalized)}void 0!==c.name&&(l.name=c.name),i.setAttribute(u,l)}var h=e.data.morphAttributes;if(h)for(var p in h){for(var d=h[p],m=[],v=0,g=d.length;v<g;v++){var y=d[v],b=void 0;if(y.isInterleavedBufferAttribute)b=new tm(r(e.data,y.data),y.itemSize,y.offset,y.normalized);else b=new kf(new Vy[y.type](y.array),y.itemSize,y.normalized);void 0!==y.name&&(b.name=y.name),m.push(b)}i.morphAttributes[p]=m}e.data.morphTargetsRelative&&(i.morphTargetsRelative=!0);var x=e.data.groups||e.data.drawcalls||e.data.offsets;if(void 0!==x)for(var _=0,w=x.length;_!==w;++_){var E=x[_];i.addGroup(E.start,E.count,E.materialIndex)}var S=e.data.boundingSphere;if(void 0!==S){var T=new el;void 0!==S.center&&T.fromArray(S.center),i.boundingSphere=new bl(T,S.radius)}return e.name&&(i.name=e.name),e.userData&&(i.userData=e.userData),i}});var Vy={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:"undefined"!=typeof Uint8ClampedArray?Uint8ClampedArray:Uint8Array,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function qy(e){Xg.call(this,e)}qy.prototype=Object.assign(Object.create(Xg.prototype),{constructor:qy,load:function(e,t,n,r){var i=this,o=""===this.path?zy(e):this.path;this.resourcePath=this.resourcePath||o;var a=new Jg(i.manager);a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.load(e,function(n){var o=null;try{o=JSON.parse(n)}catch(t){return void 0!==r&&r(t),void console.error("THREE:ObjectLoader: Can't parse "+e+".",t.message)}var a=o.metadata;void 0!==a&&void 0!==a.type&&"geometry"!==a.type.toLowerCase()?i.parse(o,t):console.error("THREE.ObjectLoader: Can't load "+e)},n,r)},parse:function(e,t){var n=this.parseShape(e.shapes),r=this.parseGeometries(e.geometries,n),i=this.parseImages(e.images,function(){void 0!==t&&t(s)}),o=this.parseTextures(e.textures,i),a=this.parseMaterials(e.materials,o),s=this.parseObject(e.object,r,a);return e.animations&&(s.animations=this.parseAnimations(e.animations)),void 0!==e.images&&0!==e.images.length||void 0!==t&&t(s),s},parseShape:function(e){var t={};if(void 0!==e)for(var n=0,r=e.length;n<r;n++){var i=(new Ty).fromJSON(e[n]);t[i.uuid]=i}return t},parseGeometries:function(e,t){var n,r={};if(void 0!==e)for(var i=new Wy,o=0,a=e.length;o<a;o++){var s=void 0,u=e[o];switch(u.type){case"PlaneGeometry":case"PlaneBufferGeometry":s=new yg[u.type](u.width,u.height,u.widthSegments,u.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":s=new yg[u.type](u.width,u.height,u.depth,u.widthSegments,u.heightSegments,u.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":s=new yg[u.type](u.radius,u.segments,u.thetaStart,u.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":s=new yg[u.type](u.radiusTop,u.radiusBottom,u.height,u.radialSegments,u.heightSegments,u.openEnded,u.thetaStart,u.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":s=new yg[u.type](u.radius,u.height,u.radialSegments,u.heightSegments,u.openEnded,u.thetaStart,u.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":s=new yg[u.type](u.radius,u.widthSegments,u.heightSegments,u.phiStart,u.phiLength,u.thetaStart,u.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":s=new yg[u.type](u.radius,u.detail);break;case"RingGeometry":case"RingBufferGeometry":s=new yg[u.type](u.innerRadius,u.outerRadius,u.thetaSegments,u.phiSegments,u.thetaStart,u.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":s=new yg[u.type](u.radius,u.tube,u.radialSegments,u.tubularSegments,u.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":s=new yg[u.type](u.radius,u.tube,u.tubularSegments,u.radialSegments,u.p,u.q);break;case"TubeGeometry":case"TubeBufferGeometry":s=new yg[u.type]((new wy[u.path.type]).fromJSON(u.path),u.tubularSegments,u.radius,u.radialSegments,u.closed);break;case"LatheGeometry":case"LatheBufferGeometry":s=new yg[u.type](u.points,u.segments,u.phiStart,u.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":s=new yg[u.type](u.vertices,u.indices,u.radius,u.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":n=[];for(var c=0,l=u.shapes.length;c<l;c++){var f=t[u.shapes[c]];n.push(f)}s=new yg[u.type](n,u.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":n=[];for(var h=0,p=u.shapes.length;h<p;h++){var d=t[u.shapes[h]];n.push(d)}var m=u.options.extrudePath;void 0!==m&&(u.options.extrudePath=(new wy[m.type]).fromJSON(m)),s=new yg[u.type](n,u.options);break;case"BufferGeometry":case"InstancedBufferGeometry":s=i.parse(u);break;case"Geometry":console.error('THREE.ObjectLoader: Loading "Geometry" is not supported anymore.');break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+u.type+'"');continue}s.uuid=u.uuid,void 0!==u.name&&(s.name=u.name),!0===s.isBufferGeometry&&void 0!==u.userData&&(s.userData=u.userData),r[u.uuid]=s}return r},parseMaterials:function(e,t){var n={},r={};if(void 0!==e){var i=new Uy;i.setTextures(t);for(var o=0,a=e.length;o<a;o++){var s=e[o];if("MultiMaterial"===s.type){for(var u=[],c=0;c<s.materials.length;c++){var l=s.materials[c];void 0===n[l.uuid]&&(n[l.uuid]=i.parse(l)),u.push(n[l.uuid])}r[s.uuid]=u}else void 0===n[s.uuid]&&(n[s.uuid]=i.parse(s)),r[s.uuid]=n[s.uuid]}}return r},parseAnimations:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=Gg.parse(r);void 0!==r.uuid&&(i.uuid=r.uuid),t.push(i)}return t},parseImages:function(e,t){var n,r=this,i={};function o(e){return r.manager.itemStart(e),n.load(e,function(){r.manager.itemEnd(e)},void 0,function(){r.manager.itemError(e),r.manager.itemEnd(e)})}if(void 0!==e&&e.length>0){var a=new qg(t);(n=new $g(a)).setCrossOrigin(this.crossOrigin);for(var s=0,u=e.length;s<u;s++){var c=e[s],l=c.url;if(Array.isArray(l)){i[c.uuid]=[];for(var f=0,h=l.length;f<h;f++){var p=l[f],d=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(p)?p:r.resourcePath+p;i[c.uuid].push(o(d))}}else{var m=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(c.url)?c.url:r.resourcePath+c.url;i[c.uuid]=o(m)}}}return i},parseTextures:function(e,t){function n(e,t){return"number"==typeof e?e:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",e),t[e])}var r={};if(void 0!==e)for(var i=0,o=e.length;i<o;i++){var a=e[i];void 0===a.image&&console.warn('THREE.ObjectLoader: No "image" specified for',a.uuid),void 0===t[a.image]&&console.warn("THREE.ObjectLoader: Undefined image",a.image);var s=void 0;(s=Array.isArray(t[a.image])?new op(t[a.image]):new Zc(t[a.image])).needsUpdate=!0,s.uuid=a.uuid,void 0!==a.name&&(s.name=a.name),void 0!==a.mapping&&(s.mapping=n(a.mapping,Xy)),void 0!==a.offset&&s.offset.fromArray(a.offset),void 0!==a.repeat&&s.repeat.fromArray(a.repeat),void 0!==a.center&&s.center.fromArray(a.center),void 0!==a.rotation&&(s.rotation=a.rotation),void 0!==a.wrap&&(s.wrapS=n(a.wrap[0],Zy),s.wrapT=n(a.wrap[1],Zy)),void 0!==a.format&&(s.format=a.format),void 0!==a.type&&(s.type=a.type),void 0!==a.encoding&&(s.encoding=a.encoding),void 0!==a.minFilter&&(s.minFilter=n(a.minFilter,Jy)),void 0!==a.magFilter&&(s.magFilter=n(a.magFilter,Jy)),void 0!==a.anisotropy&&(s.anisotropy=a.anisotropy),void 0!==a.flipY&&(s.flipY=a.flipY),void 0!==a.premultiplyAlpha&&(s.premultiplyAlpha=a.premultiplyAlpha),void 0!==a.unpackAlignment&&(s.unpackAlignment=a.unpackAlignment),r[a.uuid]=s}return r},parseObject:function(e,t,n){var r,i,o;function a(e){return void 0===t[e]&&console.warn("THREE.ObjectLoader: Undefined geometry",e),t[e]}function s(e){if(void 0!==e){if(Array.isArray(e)){for(var t=[],r=0,i=e.length;r<i;r++){var o=e[r];void 0===n[o]&&console.warn("THREE.ObjectLoader: Undefined material",o),t.push(n[o])}return t}return void 0===n[e]&&console.warn("THREE.ObjectLoader: Undefined material",e),n[e]}}switch(e.type){case"Scene":r=new Qd,void 0!==e.background&&Number.isInteger(e.background)&&(r.background=new wf(e.background)),void 0!==e.fog&&("Fog"===e.fog.type?r.fog=new Jd(e.fog.color,e.fog.near,e.fog.far):"FogExp2"===e.fog.type&&(r.fog=new Zd(e.fog.color,e.fog.density)));break;case"PerspectiveCamera":r=new kh(e.fov,e.aspect,e.near,e.far),void 0!==e.focus&&(r.focus=e.focus),void 0!==e.zoom&&(r.zoom=e.zoom),void 0!==e.filmGauge&&(r.filmGauge=e.filmGauge),void 0!==e.filmOffset&&(r.filmOffset=e.filmOffset),void 0!==e.view&&(r.view=Object.assign({},e.view));break;case"OrthographicCamera":r=new Ry(e.left,e.right,e.top,e.bottom,e.near,e.far),void 0!==e.zoom&&(r.zoom=e.zoom),void 0!==e.view&&(r.view=Object.assign({},e.view));break;case"AmbientLight":r=new Iy(e.color,e.intensity);break;case"DirectionalLight":r=new Ny(e.color,e.intensity);break;case"PointLight":r=new Ly(e.color,e.intensity,e.distance,e.decay);break;case"RectAreaLight":r=new Dy(e.color,e.intensity,e.width,e.height);break;case"SpotLight":r=new Cy(e.color,e.intensity,e.distance,e.angle,e.penumbra,e.decay);break;case"HemisphereLight":r=new Oy(e.color,e.groundColor,e.intensity);break;case"LightProbe":r=(new Fy).fromJSON(e);break;case"SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh yet.");case"Mesh":r=new hh(i=a(e.geometry),o=s(e.material));break;case"InstancedMesh":i=a(e.geometry),o=s(e.material);var u=e.count,c=e.instanceMatrix;(r=new jm(i,o,u)).instanceMatrix=new kf(new Float32Array(c.array),16);break;case"LOD":r=new Sm;break;case"Line":r=new zm(a(e.geometry),s(e.material),e.mode);break;case"LineLoop":r=new Vm(a(e.geometry),s(e.material));break;case"LineSegments":r=new Wm(a(e.geometry),s(e.material));break;case"PointCloud":case"Points":r=new Qm(a(e.geometry),s(e.material));break;case"Sprite":r=new mm(s(e.material));break;case"Group":r=new Gd;break;default:r=new $l}if(r.uuid=e.uuid,void 0!==e.name&&(r.name=e.name),void 0!==e.matrix?(r.matrix.fromArray(e.matrix),void 0!==e.matrixAutoUpdate&&(r.matrixAutoUpdate=e.matrixAutoUpdate),r.matrixAutoUpdate&&r.matrix.decompose(r.position,r.quaternion,r.scale)):(void 0!==e.position&&r.position.fromArray(e.position),void 0!==e.rotation&&r.rotation.fromArray(e.rotation),void 0!==e.quaternion&&r.quaternion.fromArray(e.quaternion),void 0!==e.scale&&r.scale.fromArray(e.scale)),void 0!==e.castShadow&&(r.castShadow=e.castShadow),void 0!==e.receiveShadow&&(r.receiveShadow=e.receiveShadow),e.shadow&&(void 0!==e.shadow.bias&&(r.shadow.bias=e.shadow.bias),void 0!==e.shadow.normalBias&&(r.shadow.normalBias=e.shadow.normalBias),void 0!==e.shadow.radius&&(r.shadow.radius=e.shadow.radius),void 0!==e.shadow.mapSize&&r.shadow.mapSize.fromArray(e.shadow.mapSize),void 0!==e.shadow.camera&&(r.shadow.camera=this.parseObject(e.shadow.camera))),void 0!==e.visible&&(r.visible=e.visible),void 0!==e.frustumCulled&&(r.frustumCulled=e.frustumCulled),void 0!==e.renderOrder&&(r.renderOrder=e.renderOrder),void 0!==e.userData&&(r.userData=e.userData),void 0!==e.layers&&(r.layers.mask=e.layers),void 0!==e.children)for(var l=e.children,f=0;f<l.length;f++)r.add(this.parseObject(l[f],t,n));if("LOD"===e.type){void 0!==e.autoUpdate&&(r.autoUpdate=e.autoUpdate);for(var h=e.levels,p=0;p<h.length;p++){var d=h[p],m=r.getObjectByProperty("uuid",d.object);void 0!==m&&r.addLevel(m,d.distance)}}return r}});var Yy,Xy={UVMapping:300,CubeReflectionMapping:Ys,CubeRefractionMapping:Xs,EquirectangularReflectionMapping:Zs,EquirectangularRefractionMapping:Js,CubeUVReflectionMapping:Qs,CubeUVRefractionMapping:Ks},Zy={RepeatWrapping:$s,ClampToEdgeWrapping:eu,MirroredRepeatWrapping:tu},Jy={NearestFilter:nu,NearestMipmapNearestFilter:ru,NearestMipmapLinearFilter:iu,LinearFilter:ou,LinearMipmapNearestFilter:au,LinearMipmapLinearFilter:su};function Qy(e){"undefined"==typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"==typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),Xg.call(this,e),this.options={premultiplyAlpha:"none"}}function Ky(){this.type="ShapePath",this.color=new wf,this.subPaths=[],this.currentPath=null}function $y(e){this.type="Font",this.data=e}function eb(e,t,n,r,i){var o=i.glyphs[e]||i.glyphs["?"];if(o){var a,s,u,c,l,f,h,p,d=new Ky;if(o.o)for(var m=o._cachedOutline||(o._cachedOutline=o.o.split(" ")),v=0,g=m.length;v<g;){switch(m[v++]){case"m":a=m[v++]*t+n,s=m[v++]*t+r,d.moveTo(a,s);break;case"l":a=m[v++]*t+n,s=m[v++]*t+r,d.lineTo(a,s);break;case"q":u=m[v++]*t+n,c=m[v++]*t+r,l=m[v++]*t+n,f=m[v++]*t+r,d.quadraticCurveTo(l,f,u,c);break;case"b":u=m[v++]*t+n,c=m[v++]*t+r,l=m[v++]*t+n,f=m[v++]*t+r,h=m[v++]*t+n,p=m[v++]*t+r,d.bezierCurveTo(l,f,h,p,u,c)}}return{offsetX:o.ha*t,path:d}}console.error('THREE.Font: character "'+e+'" does not exists in font family '+i.familyName+".")}function tb(e){Xg.call(this,e)}Qy.prototype=Object.assign(Object.create(Xg.prototype),{constructor:Qy,isImageBitmapLoader:!0,setOptions:function(e){return this.options=e,this},load:function(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);var i=this,o=Vg.get(e);if(void 0!==o)return i.manager.itemStart(e),setTimeout(function(){t&&t(o),i.manager.itemEnd(e)},0),o;fetch(e).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,i.options)}).then(function(n){Vg.add(e,n),t&&t(n),i.manager.itemEnd(e)}).catch(function(t){r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)}),i.manager.itemStart(e)}}),Object.assign(Ky.prototype,{moveTo:function(e,t){return this.currentPath=new Sy,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this},lineTo:function(e,t){return this.currentPath.lineTo(e,t),this},quadraticCurveTo:function(e,t,n,r){return this.currentPath.quadraticCurveTo(e,t,n,r),this},bezierCurveTo:function(e,t,n,r,i,o){return this.currentPath.bezierCurveTo(e,t,n,r,i,o),this},splineThru:function(e){return this.currentPath.splineThru(e),this},toShapes:function(e,t){function n(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n],o=new Ty;o.curves=i.curves,t.push(o)}return t}function r(e,t){for(var n=t.length,r=!1,i=n-1,o=0;o<n;i=o++){var a=t[i],s=t[o],u=s.x-a.x,c=s.y-a.y;if(Math.abs(c)>Number.EPSILON){if(c<0&&(a=t[o],u=-u,s=t[i],c=-c),e.y<a.y||e.y>s.y)continue;if(e.y===a.y){if(e.x===a.x)return!0}else{var l=c*(e.x-a.x)-u*(e.y-a.y);if(0===l)return!0;if(l<0)continue;r=!r}}else{if(e.y!==a.y)continue;if(s.x<=e.x&&e.x<=a.x||a.x<=e.x&&e.x<=s.x)return!0}}return r}var i,o,a,s=Yv.isClockWise,u=this.subPaths;if(0===u.length)return[];if(!0===t)return n(u);var c=[];if(1===u.length)return o=u[0],(a=new Ty).curves=o.curves,c.push(a),c;var l=!s(u[0].getPoints());l=e?!l:l;var f,h,p=[],d=[],m=[],v=0;d[v]=void 0,m[v]=[];for(var g=0,y=u.length;g<y;g++)i=s(f=(o=u[g]).getPoints()),(i=e?!i:i)?(!l&&d[v]&&v++,d[v]={s:new Ty,p:f},d[v].s.curves=o.curves,l&&v++,m[v]=[]):m[v].push({h:o,p:f[0]});if(!d[0])return n(u);if(d.length>1){for(var b=!1,x=[],_=0,w=d.length;_<w;_++)p[_]=[];for(var E=0,S=d.length;E<S;E++)for(var T=m[E],M=0;M<T.length;M++){for(var O=T[M],A=!0,k=0;k<d.length;k++)r(O.p,d[k].p)&&(E!==k&&x.push({froms:E,tos:k,hole:M}),A?(A=!1,p[k].push(O)):b=!0);A&&p[E].push(O)}x.length>0&&(b||(m=p))}for(var C=0,P=d.length;C<P;C++){a=d[C].s,c.push(a);for(var L=0,R=(h=m[C]).length;L<R;L++)a.holes.push(h[L].h)}return c}}),Object.assign($y.prototype,{isFont:!0,generateShapes:function(e,t){void 0===t&&(t=100);for(var n=[],r=function(e,t,n){for(var r=Array.from?Array.from(e):String(e).split(""),i=t/n.resolution,o=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*i,a=[],s=0,u=0,c=0;c<r.length;c++){var l=r[c];if("\n"===l)s=0,u-=o;else{var f=eb(l,i,s,u,n);s+=f.offsetX,a.push(f.path)}}return a}(e,t,this.data),i=0,o=r.length;i<o;i++)Array.prototype.push.apply(n,r[i].toShapes());return n}}),tb.prototype=Object.assign(Object.create(Xg.prototype),{constructor:tb,load:function(e,t,n,r){var i=this,o=new Jg(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.load(e,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))}var r=i.parse(n);t&&t(r)},n,r)},parse:function(e){return new $y(e)}});var nb={getContext:function(){return void 0===Yy&&(Yy=new(window.AudioContext||window.webkitAudioContext)),Yy},setContext:function(e){Yy=e}};function rb(e){Xg.call(this,e)}function ib(e,t,n){Fy.call(this,void 0,n);var r=(new wf).set(e),i=(new wf).set(t),o=new el(r.r,r.g,r.b),a=new el(i.r,i.g,i.b),s=Math.sqrt(Math.PI),u=s*Math.sqrt(.75);this.sh.coefficients[0].copy(o).add(a).multiplyScalar(s),this.sh.coefficients[1].copy(o).sub(a).multiplyScalar(u)}function ob(e,t){Fy.call(this,void 0,t);var n=(new wf).set(e);this.sh.coefficients[0].set(n.r,n.g,n.b).multiplyScalar(2*Math.sqrt(Math.PI))}rb.prototype=Object.assign(Object.create(Xg.prototype),{constructor:rb,load:function(e,t,n,r){var i=this,o=new Jg(i.manager);o.setResponseType("arraybuffer"),o.setPath(i.path),o.setRequestHeader(i.requestHeader),o.load(e,function(n){try{var o=n.slice(0);nb.getContext().decodeAudioData(o,function(e){t(e)})}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}},n,r)}}),ib.prototype=Object.assign(Object.create(Fy.prototype),{constructor:ib,isHemisphereLightProbe:!0,copy:function(e){return Fy.prototype.copy.call(this,e),this},toJSON:function(e){return Fy.prototype.toJSON.call(this,e)}}),ob.prototype=Object.assign(Object.create(Fy.prototype),{constructor:ob,isAmbientLightProbe:!0,copy:function(e){return Fy.prototype.copy.call(this,e),this},toJSON:function(e){return Fy.prototype.toJSON.call(this,e)}});var ab=new Al,sb=new Al;Object.assign(function(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new kh,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new kh,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}.prototype,{update:function(e){var t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep;var n,r,i=e.projectionMatrix.clone(),o=t.eyeSep/2,a=o*t.near/t.focus,s=t.near*Math.tan(Wc.DEG2RAD*t.fov*.5)/t.zoom;sb.elements[12]=-o,ab.elements[12]=o,n=-s*t.aspect+a,r=s*t.aspect+a,i.elements[0]=2*t.near/(r-n),i.elements[8]=(r+n)/(r-n),this.cameraL.projectionMatrix.copy(i),n=-s*t.aspect-a,r=s*t.aspect-a,i.elements[0]=2*t.near/(r-n),i.elements[8]=(r+n)/(r-n),this.cameraR.projectionMatrix.copy(i)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(sb),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(ab)}});new el,new $c,new el,new el;var ub=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e){var r;return Object(cn.a)(this,n),(r=t.call(this)).type="Audio",r.listener=e,r.context=e.context,r.gain=r.context.createGain(),r.gain.connect(e.getInput()),r.autoplay=!1,r.buffer=null,r.detune=0,r.loop=!1,r.loopStart=0,r.loopEnd=0,r.offset=0,r.duration=void 0,r.playbackRate=1,r.isPlaying=!1,r.hasPlaybackControl=!0,r.source=null,r.sourceType="empty",r._startedAt=0,r._progress=0,r._connected=!1,r.filters=[],r}return Object(ln.a)(n,[{key:"getOutput",value:function(){return this.gain}},{key:"setNodeSource",value:function(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}},{key:"setMediaElementSource",value:function(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}},{key:"setMediaStreamSource",value:function(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}},{key:"setBuffer",value:function(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}},{key:"play",value:function(e){if(void 0===e&&(e=0),!0!==this.isPlaying){if(!1!==this.hasPlaybackControl){this._startedAt=this.context.currentTime+e;var t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}console.warn("THREE.Audio: this Audio has no playback control.")}else console.warn("THREE.Audio: Audio is already playing.")}},{key:"pause",value:function(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")}},{key:"stop",value:function(){if(!1!==this.hasPlaybackControl)return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}},{key:"connect",value:function(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(var e=1,t=this.filters.length;e<t;e++)this.filters[e-1].connect(this.filters[e]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this._connected=!0,this}},{key:"disconnect",value:function(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(var e=1,t=this.filters.length;e<t;e++)this.filters[e-1].disconnect(this.filters[e]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this._connected=!1,this}},{key:"getFilters",value:function(){return this.filters}},{key:"setFilters",value:function(e){return e||(e=[]),!0===this._connected?(this.disconnect(),this.filters=e,this.connect()):this.filters=e,this}},{key:"setDetune",value:function(e){if(this.detune=e,void 0!==this.source.detune)return!0===this.isPlaying&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this}},{key:"getDetune",value:function(){return this.detune}},{key:"getFilter",value:function(){return this.getFilters()[0]}},{key:"setFilter",value:function(e){return this.setFilters(e?[e]:[])}},{key:"setPlaybackRate",value:function(e){if(!1!==this.hasPlaybackControl)return this.playbackRate=e,!0===this.isPlaying&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this;console.warn("THREE.Audio: this Audio has no playback control.")}},{key:"getPlaybackRate",value:function(){return this.playbackRate}},{key:"onEnded",value:function(){this.isPlaying=!1}},{key:"getLoop",value:function(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop}},{key:"setLoop",value:function(e){if(!1!==this.hasPlaybackControl)return this.loop=e,!0===this.isPlaying&&(this.source.loop=this.loop),this;console.warn("THREE.Audio: this Audio has no playback control.")}},{key:"setLoopStart",value:function(e){return this.loopStart=e,this}},{key:"setLoopEnd",value:function(e){return this.loopEnd=e,this}},{key:"getVolume",value:function(){return this.gain.gain.value}},{key:"setVolume",value:function(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}}]),n}($l),cb=(new el,new $c,new el,new el,function(){function e(t,n){Object(cn.a)(this,e),this.analyser=t.context.createAnalyser(),this.analyser.fftSize=void 0!==n?n:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}return Object(ln.a)(e,[{key:"getFrequencyData",value:function(){return this.analyser.getByteFrequencyData(this.data),this.data}},{key:"getAverageFrequency",value:function(){for(var e=0,t=this.getFrequencyData(),n=0;n<t.length;n++)e+=t[n];return e/t.length}}]),e}());function lb(e,t,n){var r,i,o;switch(this.binding=e,this.valueSize=n,t){case"quaternion":r=this._slerp,i=this._slerpAdditive,o=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(6*n),this._workIndex=5;break;case"string":case"bool":r=this._select,i=this._select,o=this._setAdditiveIdentityOther,this.buffer=new Array(5*n);break;default:r=this._lerp,i=this._lerpAdditive,o=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*n)}this._mixBufferRegion=r,this._mixBufferRegionAdditive=i,this._setIdentity=o,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}Object.assign(lb.prototype,{accumulate:function(e,t){var n=this.buffer,r=this.valueSize,i=e*r+r,o=this.cumulativeWeight;if(0===o){for(var a=0;a!==r;++a)n[i+a]=n[a];o=t}else{var s=t/(o+=t);this._mixBufferRegion(n,i,0,s,r)}this.cumulativeWeight=o},accumulateAdditive:function(e){var t=this.buffer,n=this.valueSize,r=n*this._addIndex;0===this.cumulativeWeightAdditive&&this._setIdentity(),this._mixBufferRegionAdditive(t,r,0,e,n),this.cumulativeWeightAdditive+=e},apply:function(e){var t=this.valueSize,n=this.buffer,r=e*t+t,i=this.cumulativeWeight,o=this.cumulativeWeightAdditive,a=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,i<1){var s=t*this._origIndex;this._mixBufferRegion(n,r,s,1-i,t)}o>0&&this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(var u=t,c=t+t;u!==c;++u)if(n[u]!==n[u+t]){a.setValue(n,r);break}},saveOriginalState:function(){var e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(var i=n,o=r;i!==o;++i)t[i]=t[r+i%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0},restoreOriginalState:function(){var e=3*this.valueSize;this.binding.setValue(this.buffer,e)},_setAdditiveIdentityNumeric:function(){for(var e=this._addIndex*this.valueSize,t=e+this.valueSize,n=e;n<t;n++)this.buffer[n]=0},_setAdditiveIdentityQuaternion:function(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1},_setAdditiveIdentityOther:function(){for(var e=this._origIndex*this.valueSize,t=this._addIndex*this.valueSize,n=0;n<this.valueSize;n++)this.buffer[t+n]=this.buffer[e+n]},_select:function(e,t,n,r,i){if(r>=.5)for(var o=0;o!==i;++o)e[t+o]=e[n+o]},_slerp:function(e,t,n,r){$c.slerpFlat(e,t,e,t,e,n,r)},_slerpAdditive:function(e,t,n,r,i){var o=this._workIndex*i;$c.multiplyQuaternionsFlat(e,o,e,t,e,n),$c.slerpFlat(e,t,e,t,e,o,r)},_lerp:function(e,t,n,r,i){for(var o=1-r,a=0;a!==i;++a){var s=t+a;e[s]=e[s]*o+e[n+a]*r}},_lerpAdditive:function(e,t,n,r,i){for(var o=0;o!==i;++o){var a=t+o;e[a]=e[a]+e[n+o]*r}}});var fb=new RegExp("[\\[\\]\\.:\\/]","g"),hb="[^"+"\\[\\]\\.:\\/".replace("\\.","")+"]",pb=/((?:WC+[\/:])*)/.source.replace("WC","[^\\[\\]\\.:\\/]"),db=/(WCOD+)?/.source.replace("WCOD",hb),mb=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC","[^\\[\\]\\.:\\/]"),vb=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC","[^\\[\\]\\.:\\/]"),gb=new RegExp("^"+pb+db+mb+vb+"$"),yb=["material","materials","bones"];function bb(e,t,n){var r=n||xb.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}function xb(e,t,n){this.path=t,this.parsedPath=n||xb.parseTrackName(t),this.node=xb.findNode(e,this.parsedPath.nodeName)||e,this.rootNode=e}Object.assign(bb.prototype,{getValue:function(e,t){this.bind();var n=this._targetGroup.nCachedObjects_,r=this._bindings[n];void 0!==r&&r.getValue(e,t)},setValue:function(e,t){for(var n=this._bindings,r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)},bind:function(){for(var e=this._bindings,t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()},unbind:function(){for(var e=this._bindings,t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}),Object.assign(xb,{Composite:bb,create:function(e,t,n){return e&&e.isAnimationObjectGroup?new xb.Composite(e,t,n):new xb(e,t,n)},sanitizeNodeName:function(e){return e.replace(/\s/g,"_").replace(fb,"")},parseTrackName:function(e){var t=gb.exec(e);if(!t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);var n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==r&&-1!==r){var i=n.nodeName.substring(r+1);-1!==yb.indexOf(i)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=i)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n},findNode:function(e,t){if(!t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){var n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){var r=function e(n){for(var r=0;r<n.length;r++){var i=n[r];if(i.name===t||i.uuid===t)return i;var o=e(i.children);if(o)return o}return null}(e.children);if(r)return r}return null}}),Object.assign(xb.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(e,t){e[t]=this.node[this.propertyName]},function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)e[t++]=n[r]},function(e,t){e[t]=this.resolvedProperty[this.propertyIndex]},function(e,t){this.resolvedProperty.toArray(e,t)}],SetterByBindingTypeAndVersioning:[[function(e,t){this.targetObject[this.propertyName]=e[t]},function(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0},function(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++]},function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.needsUpdate=!0},function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(e,t){this.resolvedProperty[this.propertyIndex]=e[t]},function(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0},function(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(e,t){this.resolvedProperty.fromArray(e,t)},function(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0},function(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(e,t){this.bind(),this.getValue(e,t)},setValue:function(e,t){this.bind(),this.setValue(e,t)},bind:function(){var e=this.node,t=this.parsedPath,n=t.objectName,r=t.propertyName,i=t.propertyIndex;if(e||(e=xb.findNode(this.rootNode,t.nodeName)||this.rootNode,this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,e){if(n){var o=t.objectIndex;switch(n){case"materials":if(!e.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!e.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);e=e.material.materials;break;case"bones":if(!e.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);e=e.skeleton.bones;for(var a=0;a<e.length;a++)if(e[a].name===o){o=a;break}break;default:if(void 0===e[n])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);e=e[n]}if(void 0!==o){if(void 0===e[o])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,e);e=e[o]}}var s=e[r];if(void 0!==s){var u=this.Versioning.None;this.targetObject=e,void 0!==e.needsUpdate?u=this.Versioning.NeedsUpdate:void 0!==e.matrixWorldNeedsUpdate&&(u=this.Versioning.MatrixWorldNeedsUpdate);var c=this.BindingType.Direct;if(void 0!==i){if("morphTargetInfluences"===r){if(!e.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(!e.geometry.isBufferGeometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences on THREE.Geometry. Use THREE.BufferGeometry instead.",this);if(!e.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);void 0!==e.morphTargetDictionary[i]&&(i=e.morphTargetDictionary[i])}c=this.BindingType.ArrayElement,this.resolvedProperty=s,this.propertyIndex=i}else void 0!==s.fromArray&&void 0!==s.toArray?(c=this.BindingType.HasFromToArray,this.resolvedProperty=s):Array.isArray(s)?(c=this.BindingType.EntireArray,this.resolvedProperty=s):this.propertyName=r;this.getValue=this.GetterByBindingType[c],this.setValue=this.SetterByBindingTypeAndVersioning[c][u]}else{var l=t.nodeName;console.error("THREE.PropertyBinding: Trying to update property for track: "+l+"."+r+" but it wasn't found.",e)}}else console.error("THREE.PropertyBinding: 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(xb.prototype,{_getValue_unbound:xb.prototype.getValue,_setValue_unbound:xb.prototype.setValue}),Object.assign(function(){this.uuid=Wc.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var e={};this._indicesByUUID=e;for(var t=0,n=arguments.length;t!==n;++t)e[arguments[t].uuid]=t;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}}}.prototype,{isAnimationObjectGroup:!0,add:function(){for(var e=this._objects,t=this._indicesByUUID,n=this._paths,r=this._parsedPaths,i=this._bindings,o=i.length,a=void 0,s=e.length,u=this.nCachedObjects_,c=0,l=arguments.length;c!==l;++c){var f=arguments[c],h=f.uuid,p=t[h];if(void 0===p){p=s++,t[h]=p,e.push(f);for(var d=0,m=o;d!==m;++d)i[d].push(new xb(f,n[d],r[d]))}else if(p<u){a=e[p];var v=--u,g=e[v];t[g.uuid]=p,e[p]=g,t[h]=v,e[v]=f;for(var y=0,b=o;y!==b;++y){var x=i[y],_=x[v],w=x[p];x[p]=_,void 0===w&&(w=new xb(f,n[y],r[y])),x[v]=w}}else e[p]!==a&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=u},remove:function(){for(var e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length,i=this.nCachedObjects_,o=0,a=arguments.length;o!==a;++o){var s=arguments[o],u=s.uuid,c=t[u];if(void 0!==c&&c>=i){var l=i++,f=e[l];t[f.uuid]=c,e[c]=f,t[u]=l,e[l]=s;for(var h=0,p=r;h!==p;++h){var d=n[h],m=d[l],v=d[c];d[c]=m,d[l]=v}}}this.nCachedObjects_=i},uncache:function(){for(var e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length,i=this.nCachedObjects_,o=e.length,a=0,s=arguments.length;a!==s;++a){var u=arguments[a].uuid,c=t[u];if(void 0!==c)if(delete t[u],c<i){var l=--i,f=e[l],h=--o,p=e[h];t[f.uuid]=c,e[c]=f,t[p.uuid]=l,e[l]=p,e.pop();for(var d=0,m=r;d!==m;++d){var v=n[d],g=v[l],y=v[h];v[c]=g,v[l]=y,v.pop()}}else{var b=--o,x=e[b];t[x.uuid]=c,e[c]=x,e.pop();for(var _=0,w=r;_!==w;++_){var E=n[_];E[c]=E[b],E.pop()}}}this.nCachedObjects_=i},subscribe_:function(e,t){var n=this._bindingsIndicesByPath,r=n[e],i=this._bindings;if(void 0!==r)return i[r];var o=this._paths,a=this._parsedPaths,s=this._objects,u=s.length,c=this.nCachedObjects_,l=new Array(u);r=i.length,n[e]=r,o.push(e),a.push(t),i.push(l);for(var f=c,h=s.length;f!==h;++f){var p=s[f];l[f]=new xb(p,e,t)}return l},unsubscribe_:function(e){var t=this._bindingsIndicesByPath,n=t[e];if(void 0!==n){var r=this._paths,i=this._parsedPaths,o=this._bindings,a=o.length-1,s=o[a];t[e[a]]=n,o[n]=s,o.pop(),i[n]=i[a],i.pop(),r[n]=r[a],r.pop()}}});var _b=function(){function e(t,n,r,i){Object(cn.a)(this,e),this._mixer=t,this._clip=n,this._localRoot=r||null,this.blendMode=i||n.blendMode;for(var o=n.tracks,a=o.length,s=new Array(a),u={endingStart:xc,endingEnd:xc},c=0;c!==a;++c){var l=o[c].createInterpolant(null);s[c]=l,l.settings=u}this._interpolantSettings=u,this._interpolants=s,this._propertyBindings=new Array(a),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=bc,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}return Object(ln.a)(e,[{key:"play",value:function(){return this._mixer._activateAction(this),this}},{key:"stop",value:function(){return this._mixer._deactivateAction(this),this.reset()}},{key:"reset",value:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}},{key:"isRunning",value:function(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}},{key:"isScheduled",value:function(){return this._mixer._isActiveAction(this)}},{key:"startAt",value:function(e){return this._startTime=e,this}},{key:"setLoop",value:function(e,t){return this.loop=e,this.repetitions=t,this}},{key:"setEffectiveWeight",value:function(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}},{key:"getEffectiveWeight",value:function(){return this._effectiveWeight}},{key:"fadeIn",value:function(e){return this._scheduleFading(e,0,1)}},{key:"fadeOut",value:function(e){return this._scheduleFading(e,1,0)}},{key:"crossFadeFrom",value:function(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){var r=this._clip.duration,i=e._clip.duration,o=i/r,a=r/i;e.warp(1,o,t),this.warp(a,1,t)}return this}},{key:"crossFadeTo",value:function(e,t,n){return e.crossFadeFrom(this,t,n)}},{key:"stopFading",value:function(){var e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}},{key:"setEffectiveTimeScale",value:function(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}},{key:"getEffectiveTimeScale",value:function(){return this._effectiveTimeScale}},{key:"setDuration",value:function(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}},{key:"syncWith",value:function(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}},{key:"halt",value:function(e){return this.warp(this._effectiveTimeScale,0,e)}},{key:"warp",value:function(e,t,n){var r=this._mixer,i=r.time,o=this.timeScale,a=this._timeScaleInterpolant;null===a&&(a=r._lendControlInterpolant(),this._timeScaleInterpolant=a);var s=a.parameterPositions,u=a.sampleValues;return s[0]=i,s[1]=i+n,u[0]=e/o,u[1]=t/o,this}},{key:"stopWarping",value:function(){var e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}},{key:"getMixer",value:function(){return this._mixer}},{key:"getClip",value:function(){return this._clip}},{key:"getRoot",value:function(){return this._localRoot||this._mixer._root}},{key:"_update",value:function(e,t,n,r){if(this.enabled){var i=this._startTime;if(null!==i){var o=(e-i)*n;if(o<0||0===n)return;this._startTime=null,t=n*o}t*=this._updateTimeScale(e);var a=this._updateTime(t),s=this._updateWeight(e);if(s>0){var u=this._interpolants,c=this._propertyBindings;switch(this.blendMode){case 2501:for(var l=0,f=u.length;l!==f;++l)u[l].evaluate(a),c[l].accumulateAdditive(s);break;case _c:default:for(var h=0,p=u.length;h!==p;++h)u[h].evaluate(a),c[h].accumulate(r,s)}}}else this._updateWeight(e)}},{key:"_updateWeight",value:function(e){var t=0;if(this.enabled){t=this.weight;var n=this._weightInterpolant;if(null!==n){var r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=t,t}},{key:"_updateTimeScale",value:function(e){var t=0;if(!this.paused){t=this.timeScale;var n=this._timeScaleInterpolant;if(null!==n)t*=n.evaluate(e)[0],e>n.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t)}return this._effectiveTimeScale=t,t}},{key:"_updateTime",value:function(e){var t=this._clip.duration,n=this.loop,r=this.time+e,i=this._loopCount,o=2202===n;if(0===e)return-1===i?r:o&&1==(1&i)?t-r:r;if(2200===n){-1===i&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(r>=t)r=t;else{if(!(r<0)){this.time=r;break e}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===i&&(e>=0?(i=0,this._setEndings(!0,0===this.repetitions,o)):this._setEndings(0===this.repetitions,!0,o)),r>=t||r<0){var a=Math.floor(r/t);r-=t*a,i+=Math.abs(a);var s=this.repetitions-i;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=e>0?t:0,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===s){var u=e<0;this._setEndings(u,!u,o)}else this._setEndings(!1,!1,o);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:a})}}else this.time=r;if(o&&1==(1&i))return t-r}return r}},{key:"_setEndings",value:function(e,t,n){var r=this._interpolantSettings;n?(r.endingStart=2401,r.endingEnd=2401):(r.endingStart=e?this.zeroSlopeAtStart?2401:xc:2402,r.endingEnd=t?this.zeroSlopeAtEnd?2401:xc:2402)}},{key:"_scheduleFading",value:function(e,t,n){var r=this._mixer,i=r.time,o=this._weightInterpolant;null===o&&(o=r._lendControlInterpolant(),this._weightInterpolant=o);var a=o.parameterPositions,s=o.sampleValues;return a[0]=i,s[0]=t,a[1]=i+e,s[1]=n,this}}]),e}();function wb(e){this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}wb.prototype=Object.assign(Object.create(Fc.prototype),{constructor:wb,_bindAction:function(e,t){var n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,o=e._propertyBindings,a=e._interpolants,s=n.uuid,u=this._bindingsByRootAndName,c=u[s];void 0===c&&(c={},u[s]=c);for(var l=0;l!==i;++l){var f=r[l],h=f.name,p=c[h];if(void 0!==p)o[l]=p;else{if(void 0!==(p=o[l])){null===p._cacheIndex&&(++p.referenceCount,this._addInactiveBinding(p,s,h));continue}var d=t&&t._propertyBindings[l].binding.parsedPath;++(p=new lb(xb.create(n,h,d),f.ValueTypeName,f.getValueSize())).referenceCount,this._addInactiveBinding(p,s,h),o[l]=p}a[l].resultBuffer=p.buffer}},_activateAction:function(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){var t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}for(var i=e._propertyBindings,o=0,a=i.length;o!==a;++o){var s=i[o];0==s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(e)}},_deactivateAction:function(e){if(this._isActiveAction(e)){for(var t=e._propertyBindings,n=0,r=t.length;n!==r;++n){var i=t[n];0==--i.useCount&&(i.restoreOriginalState(),this._takeBackBinding(i))}this._takeBackAction(e)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}},_isActiveAction:function(e){var t=e._cacheIndex;return null!==t&&t<this._nActiveActions},_addInactiveAction:function(e,t,n){var r=this._actions,i=this._actionsByClip,o=i[t];if(void 0===o)o={knownActions:[e],actionByRoot:{}},e._byClipCacheIndex=0,i[t]=o;else{var a=o.knownActions;e._byClipCacheIndex=a.length,a.push(e)}e._cacheIndex=r.length,r.push(e),o.actionByRoot[n]=e},_removeInactiveAction:function(e){var t=this._actions,n=t[t.length-1],r=e._cacheIndex;n._cacheIndex=r,t[r]=n,t.pop(),e._cacheIndex=null;var i=e._clip.uuid,o=this._actionsByClip,a=o[i],s=a.knownActions,u=s[s.length-1],c=e._byClipCacheIndex;u._byClipCacheIndex=c,s[c]=u,s.pop(),e._byClipCacheIndex=null,delete a.actionByRoot[(e._localRoot||this._root).uuid],0===s.length&&delete o[i],this._removeInactiveBindingsForAction(e)},_removeInactiveBindingsForAction:function(e){for(var t=e._propertyBindings,n=0,r=t.length;n!==r;++n){var i=t[n];0==--i.referenceCount&&this._removeInactiveBinding(i)}},_lendAction:function(e){var t=this._actions,n=e._cacheIndex,r=this._nActiveActions++,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i},_takeBackAction:function(e){var t=this._actions,n=e._cacheIndex,r=--this._nActiveActions,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i},_addInactiveBinding:function(e,t,n){var r=this._bindingsByRootAndName,i=this._bindings,o=r[t];void 0===o&&(o={},r[t]=o),o[n]=e,e._cacheIndex=i.length,i.push(e)},_removeInactiveBinding:function(e){var t=this._bindings,n=e.binding,r=n.rootNode.uuid,i=n.path,o=this._bindingsByRootAndName,a=o[r],s=t[t.length-1],u=e._cacheIndex;s._cacheIndex=u,t[u]=s,t.pop(),delete a[i],0===Object.keys(a).length&&delete o[r]},_lendBinding:function(e){var t=this._bindings,n=e._cacheIndex,r=this._nActiveBindings++,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i},_takeBackBinding:function(e){var t=this._bindings,n=e._cacheIndex,r=--this._nActiveBindings,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i},_lendControlInterpolant:function(){var e=this._controlInterpolants,t=this._nActiveControlInterpolants++,n=e[t];return void 0===n&&((n=new Rg(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer)).__cacheIndex=t,e[t]=n),n},_takeBackControlInterpolant:function(e){var t=this._controlInterpolants,n=e.__cacheIndex,r=--this._nActiveControlInterpolants,i=t[r];e.__cacheIndex=r,t[r]=e,i.__cacheIndex=n,t[n]=i},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(e,t,n){var r=t||this._root,i=r.uuid,o="string"==typeof e?Gg.findByName(r,e):e,a=null!==o?o.uuid:e,s=this._actionsByClip[a],u=null;if(void 0===n&&(n=null!==o?o.blendMode:_c),void 0!==s){var c=s.actionByRoot[i];if(void 0!==c&&c.blendMode===n)return c;u=s.knownActions[0],null===o&&(o=u._clip)}if(null===o)return null;var l=new _b(this,o,t,n);return this._bindAction(l,u),this._addInactiveAction(l,a,i),l},existingAction:function(e,t){var n=t||this._root,r=n.uuid,i="string"==typeof e?Gg.findByName(n,e):e,o=i?i.uuid:e,a=this._actionsByClip[o];return void 0!==a&&a.actionByRoot[r]||null},stopAllAction:function(){for(var e=this._actions,t=this._nActiveActions-1;t>=0;--t)e[t].stop();return this},update:function(e){e*=this.timeScale;for(var t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),o=this._accuIndex^=1,a=0;a!==n;++a){t[a]._update(r,e,i,o)}for(var s=this._bindings,u=this._nActiveBindings,c=0;c!==u;++c)s[c].apply(o);return this},setTime:function(e){this.time=0;for(var t=0;t<this._actions.length;t++)this._actions[t].time=0;return this.update(e)},getRoot:function(){return this._root},uncacheClip:function(e){var t=this._actions,n=e.uuid,r=this._actionsByClip,i=r[n];if(void 0!==i){for(var o=i.knownActions,a=0,s=o.length;a!==s;++a){var u=o[a];this._deactivateAction(u);var c=u._cacheIndex,l=t[t.length-1];u._cacheIndex=null,u._byClipCacheIndex=null,l._cacheIndex=c,t[c]=l,t.pop(),this._removeInactiveBindingsForAction(u)}delete r[n]}},uncacheRoot:function(e){var t=e.uuid,n=this._actionsByClip;for(var r in n){var i=n[r].actionByRoot[t];void 0!==i&&(this._deactivateAction(i),this._removeInactiveAction(i))}var o=this._bindingsByRootAndName[t];if(void 0!==o)for(var a in o){var s=o[a];s.restoreOriginalState(),this._removeInactiveBinding(s)}},uncacheAction:function(e,t){var n=this.existingAction(e,t);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}});var Eb=function(){function e(t){Object(cn.a)(this,e),"string"==typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=arguments[1]),this.value=t}return Object(ln.a)(e,[{key:"clone",value:function(){return new e(void 0===this.value.clone?this.value:this.value.clone())}}]),e}();function Sb(e,t,n){Kd.call(this,e,t),this.meshPerAttribute=n||1}function Tb(e,t,n,r,i){this.buffer=e,this.type=t,this.itemSize=n,this.elementSize=r,this.count=i,this.version=0}function Mb(e,t,n,r){this.ray=new Ol(e,t),this.near=n||0,this.far=r||1/0,this.camera=null,this.layers=new Fl,this.params={Mesh:{},Line:{threshold:1},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}}})}function Ob(e,t){return e.distance-t.distance}function Ab(e,t,n,r){if(e.layers.test(t.layers)&&e.raycast(t,n),!0===r)for(var i=e.children,o=0,a=i.length;o<a;o++)Ab(i[o],t,n,!0)}Sb.prototype=Object.assign(Object.create(Kd.prototype),{constructor:Sb,isInstancedInterleavedBuffer:!0,copy:function(e){return Kd.prototype.copy.call(this,e),this.meshPerAttribute=e.meshPerAttribute,this},clone:function(e){var t=Kd.prototype.clone.call(this,e);return t.meshPerAttribute=this.meshPerAttribute,t},toJSON:function(e){var t=Kd.prototype.toJSON.call(this,e);return t.isInstancedInterleavedBuffer=!0,t.meshPerAttribute=this.meshPerAttribute,t}}),Object.defineProperty(Tb.prototype,"needsUpdate",{set:function(e){!0===e&&this.version++}}),Object.assign(Tb.prototype,{isGLBufferAttribute:!0,setBuffer:function(e){return this.buffer=e,this},setType:function(e,t){return this.type=e,this.elementSize=t,this},setItemSize:function(e){return this.itemSize=e,this},setCount:function(e){return this.count=e,this}}),Object.assign(Mb.prototype,{set:function(e,t){this.ray.set(e,t)},setFromCamera:function(e,t){t&&t.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(t).sub(this.ray.origin).normalize(),this.camera=t):t&&t.isOrthographicCamera?(this.ray.origin.set(e.x,e.y,(t.near+t.far)/(t.near-t.far)).unproject(t),this.ray.direction.set(0,0,-1).transformDirection(t.matrixWorld),this.camera=t):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(e,t,n){var r=n||[];return Ab(e,this,r,t),r.sort(Ob),r},intersectObjects:function(e,t,n){var r=n||[];if(!1===Array.isArray(e))return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),r;for(var i=0,o=e.length;i<o;i++)Ab(e[i],this,r,t);return r.sort(Ob),r}});var kb=new Vc,Cb=function(){function e(t,n){Object(cn.a)(this,e),Object.defineProperty(this,"isBox2",{value:!0}),this.min=void 0!==t?t:new Vc(1/0,1/0),this.max=void 0!==n?n:new Vc(-1/0,-1/0)}return Object(ln.a)(e,[{key:"set",value:function(e,t){return this.min.copy(e),this.max.copy(t),this}},{key:"setFromPoints",value:function(e){this.makeEmpty();for(var t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}},{key:"setFromCenterAndSize",value:function(e,t){var n=kb.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.min.copy(e.min),this.max.copy(e.max),this}},{key:"makeEmpty",value:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}},{key:"isEmpty",value:function(){return this.max.x<this.min.x||this.max.y<this.min.y}},{key:"getCenter",value:function(e){return void 0===e&&(console.warn("THREE.Box2: .getCenter() target is now required"),e=new Vc),this.isEmpty()?e.set(0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}},{key:"getSize",value:function(e){return void 0===e&&(console.warn("THREE.Box2: .getSize() target is now required"),e=new Vc),this.isEmpty()?e.set(0,0):e.subVectors(this.max,this.min)}},{key:"expandByPoint",value:function(e){return this.min.min(e),this.max.max(e),this}},{key:"expandByVector",value:function(e){return this.min.sub(e),this.max.add(e),this}},{key:"expandByScalar",value:function(e){return this.min.addScalar(-e),this.max.addScalar(e),this}},{key:"containsPoint",value:function(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y)}},{key:"containsBox",value:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}},{key:"getParameter",value:function(e,t){return void 0===t&&(console.warn("THREE.Box2: .getParameter() target is now required"),t=new Vc),t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}},{key:"intersectsBox",value:function(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y)}},{key:"clampPoint",value:function(e,t){return void 0===t&&(console.warn("THREE.Box2: .clampPoint() target is now required"),t=new Vc),t.copy(e).clamp(this.min,this.max)}},{key:"distanceToPoint",value:function(e){return kb.copy(e).clamp(this.min,this.max).sub(e).length()}},{key:"intersect",value:function(e){return this.min.max(e.min),this.max.min(e.max),this}},{key:"union",value:function(e){return this.min.min(e.min),this.max.max(e.max),this}},{key:"translate",value:function(e){return this.min.add(e),this.max.add(e),this}},{key:"equals",value:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}]),e}(),Pb=new el,Lb=new el,Rb=function(){function e(t,n){Object(cn.a)(this,e),this.start=void 0!==t?t:new el,this.end=void 0!==n?n:new el}return Object(ln.a)(e,[{key:"set",value:function(e,t){return this.start.copy(e),this.end.copy(t),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.start.copy(e.start),this.end.copy(e.end),this}},{key:"getCenter",value:function(e){return void 0===e&&(console.warn("THREE.Line3: .getCenter() target is now required"),e=new el),e.addVectors(this.start,this.end).multiplyScalar(.5)}},{key:"delta",value:function(e){return void 0===e&&(console.warn("THREE.Line3: .delta() target is now required"),e=new el),e.subVectors(this.end,this.start)}},{key:"distanceSq",value:function(){return this.start.distanceToSquared(this.end)}},{key:"distance",value:function(){return this.start.distanceTo(this.end)}},{key:"at",value:function(e,t){return void 0===t&&(console.warn("THREE.Line3: .at() target is now required"),t=new el),this.delta(t).multiplyScalar(e).add(this.start)}},{key:"closestPointToPointParameter",value:function(e,t){Pb.subVectors(e,this.start),Lb.subVectors(this.end,this.start);var n=Lb.dot(Lb),r=Lb.dot(Pb)/n;return t&&(r=Wc.clamp(r,0,1)),r}},{key:"closestPointToPoint",value:function(e,t,n){var r=this.closestPointToPointParameter(e,t);return void 0===n&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),n=new el),this.delta(n).multiplyScalar(r).add(this.start)}},{key:"applyMatrix4",value:function(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}},{key:"equals",value:function(e){return e.start.equals(this.start)&&e.end.equals(this.end)}}]),e}();function jb(e){$l.call(this),this.material=e,this.render=function(){},this.hasPositions=!1,this.hasNormals=!1,this.hasColors=!1,this.hasUvs=!1,this.positionArray=null,this.normalArray=null,this.colorArray=null,this.uvArray=null,this.count=0}jb.prototype=Object.create($l.prototype),jb.prototype.constructor=jb,jb.prototype.isImmediateRenderObject=!0;new el;var Nb=new el,Ib=new Al,Db=new Al,Bb=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e){var r;Object(cn.a)(this,n);for(var i=function e(t){var n=[];t&&t.isBone&&n.push(t);for(var r=0;r<t.children.length;r++)n.push.apply(n,e(t.children[r]));return n}(e),o=new Xf,a=[],s=[],u=new wf(0,0,1),c=new wf(0,1,0),l=0;l<i.length;l++){var f=i[l];f.parent&&f.parent.isBone&&(a.push(0,0,0),a.push(0,0,0),s.push(u.r,u.g,u.b),s.push(c.r,c.g,c.b))}o.setAttribute("position",new Df(a,3)),o.setAttribute("color",new Df(s,3));var h=new Nm({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0});return(r=t.call(this,o,h)).type="SkeletonHelper",r.isSkeletonHelper=!0,r.root=e,r.bones=i,r.matrix=e.matrixWorld,r.matrixAutoUpdate=!1,r}return Object(ln.a)(n,[{key:"updateMatrixWorld",value:function(e){var t=this.bones,r=this.geometry,i=r.getAttribute("position");Db.getInverse(this.root.matrixWorld);for(var o=0,a=0;o<t.length;o++){var s=t[o];s.parent&&s.parent.isBone&&(Ib.multiplyMatrices(Db,s.matrixWorld),Nb.setFromMatrixPosition(Ib),i.setXYZ(a,Nb.x,Nb.y,Nb.z),Ib.multiplyMatrices(Db,s.parent.matrixWorld),Nb.setFromMatrixPosition(Ib),i.setXYZ(a+1,Nb.x,Nb.y,Nb.z),a+=2)}r.getAttribute("position").needsUpdate=!0,Ja(Object(Za.a)(n.prototype),"updateMatrixWorld",this).call(this,e)}}]),n}(Wm);new el,new wf,new wf;var Fb=function(e){Object(fn.a)(n,e);var t=Object(hn.a)(n);function n(e,r,i,o){var a;Object(cn.a)(this,n),e=e||10,r=r||10,i=new wf(void 0!==i?i:4473924),o=new wf(void 0!==o?o:8947848);for(var s=r/2,u=e/r,c=e/2,l=[],f=[],h=0,p=0,d=-c;h<=r;h++,d+=u){l.push(-c,0,d,c,0,d),l.push(d,0,-c,d,0,c);var m=h===s?i:o;m.toArray(f,p),p+=3,m.toArray(f,p),p+=3,m.toArray(f,p),p+=3,m.toArray(f,p),p+=3}var v=new Xf;v.setAttribute("position",new Df(l,3)),v.setAttribute("color",new Df(f,3));var g=new Nm({vertexColors:!0,toneMapped:!1});return(a=t.call(this,v,g)).type="GridHelper",a}return n}(Wm);new el,new el,new el,new el,new Ah;new rl,new el;var Ub=4,zb=8,Hb=(Math.pow(2,zb),[.125,.215,.35,.446,.526,.582]),Gb=zb-Ub+1+Hb.length,Wb=(Qa={},Object(L.a)(Qa,wc,0),Object(L.a)(Qa,Ec,1),Object(L.a)(Qa,Tc,2),Object(L.a)(Qa,Oc,3),Object(L.a)(Qa,Ac,4),Object(L.a)(Qa,kc,5),Object(L.a)(Qa,Sc,6),new Ry,function(){for(var e=[],t=[],n=[],r=zb,i=0;i<Gb;i++){var o=Math.pow(2,r);t.push(o);var a=1/o;i>zb-Ub?a=Hb[i-zb+Ub-1]:0==i&&(a=0),n.push(a);for(var s=1/(o-1),u=-s/2,c=1+s/2,l=[u,u,c,u,c,c,u,u,c,c,u,c],f=new Float32Array(108),h=new Float32Array(72),p=new Float32Array(36),d=0;d<6;d++){var m=d%3*2/3-1,v=d>2?0:-1,g=[m,v,0,m+2/3,v,0,m+2/3,v+1,0,m,v,0,m+2/3,v+1,0,m,v+1,0];f.set(g,18*d),h.set(l,12*d);var y=[d,d,d,d,d,d];p.set(y,6*d)}var b=new Xf;b.setAttribute("position",new kf(f,3)),b.setAttribute("uv",new kf(h,2)),b.setAttribute("faceIndex",new kf(p,1)),e.push(b),r>Ub&&r--}return{_lodPlanes:e,_sizeLods:t,_sigmas:n}}()),Vb=(Wb._lodPlanes,Wb._sizeLods,Wb._sigmas,(1+Math.sqrt(5))/2),qb=1/Vb;new el(1,1,1),new el(-1,1,1),new el(1,1,-1),new el(-1,1,-1),new el(0,Vb,qb),new el(0,Vb,-qb),new el(qb,0,Vb),new el(-qb,0,Vb),new el(Vb,qb,0),new el(-Vb,qb,0);function Yb(e){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead."),fy.call(this,e),this.type="catmullrom"}ry.create=function(e,t){return console.log("THREE.Curve.create() has been deprecated"),e.prototype=Object.create(ry.prototype),e.prototype.constructor=e,e.prototype.getPoint=t,e},Object.assign(Ey.prototype,{createPointsGeometry:function(e){console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");var t=this.getPoints(e);return this.createGeometry(t)},createSpacedPointsGeometry:function(e){console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");var t=this.getSpacedPoints(e);return this.createGeometry(t)},createGeometry:function(e){console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");for(var t=new bh,n=0,r=e.length;n<r;n++){var i=e[n];t.vertices.push(new el(i.x,i.y,i.z||0))}return t}}),Object.assign(Sy.prototype,{fromPoints:function(e){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(e)}}),Object.create(fy.prototype),Object.create(fy.prototype),Yb.prototype=Object.create(fy.prototype),Object.assign(Yb.prototype,{initFromArray:function(){console.error("THREE.Spline: .initFromArray() has been removed.")},getControlPointsArray:function(){console.error("THREE.Spline: .getControlPointsArray() has been removed.")},reparametrizeByArcLength:function(){console.error("THREE.Spline: .reparametrizeByArcLength() has been removed.")}}),Fb.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},Bb.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Object.assign(Xg.prototype,{extractUrlBase:function(e){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),zy(e)}}),Xg.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},Object.assign(qy.prototype,{setTexturePath:function(e){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(e)}}),Object.assign(Cb.prototype,{center:function(e){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(e)},empty:function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(e){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},size:function(e){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(e)}}),Object.assign(rl.prototype,{center:function(e){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(e)},empty:function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(e){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},isIntersectionSphere:function(e){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)},size:function(e){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(e)}}),Object.assign(bl.prototype,{empty:function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()}}),Dh.prototype.setFromMatrix=function(e){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(e)},Rb.prototype.center=function(e){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(e)},Object.assign(Wc,{random16:function(){return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."),Math.random()},nearestPowerOfTwo:function(e){return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."),Wc.floorPowerOfTwo(e)},nextPowerOfTwo:function(e){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),Wc.ceilPowerOfTwo(e)}}),Object.assign(qc.prototype,{flattenToArrayOffset:function(e,t){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},multiplyVector3:function(e){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},multiplyVector3Array:function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},applyToBufferAttribute:function(e){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},applyToVector3Array:function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")}}),Object.assign(Al.prototype,{extractPosition:function(e){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(e)},flattenToArrayOffset:function(e,t){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},getPosition:function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),(new el).setFromMatrixColumn(this,3)},setRotationFromQuaternion:function(e){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(e)},multiplyToArray:function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},multiplyVector3:function(e){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},multiplyVector4:function(e){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},multiplyVector3Array:function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},rotateAxis:function(e){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),e.transformDirection(this)},crossVector:function(e){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},translate:function(){console.error("THREE.Matrix4: .translate() has been removed.")},rotateX:function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},rotateY:function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},rotateZ:function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},rotateByAxis:function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},applyToBufferAttribute:function(e){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},applyToVector3Array:function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},makeFrustum:function(e,t,n,r,i,o){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(e,t,r,n,i,o)}}),rf.prototype.isIntersectionLine=function(e){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(e)},$c.prototype.multiplyVector3=function(e){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),e.applyQuaternion(this)},Object.assign(Ol.prototype,{isIntersectionBox:function(e){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},isIntersectionPlane:function(e){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(e)},isIntersectionSphere:function(e){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)}}),Object.assign(mf.prototype,{area:function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},barycoordFromPoint:function(e,t){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(e,t)},midpoint:function(e){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(e)},normal:function(e){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(e)},plane:function(e){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(e)}}),Object.assign(mf,{barycoordFromPoint:function(e,t,n,r,i){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),mf.getBarycoord(e,t,n,r,i)},normal:function(e,t,n,r){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),mf.getNormal(e,t,n,r)}}),Object.assign(Ty.prototype,{extractAllPoints:function(e){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(e)},extrude:function(e){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Jv(this,e)},makeGeometry:function(e){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new ug(this,e)}}),Object.assign(Vc.prototype,{fromAttribute:function(e,t,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},distanceToManhattan:function(e){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},lengthManhattan:function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(el.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(e){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(e)},getScaleFromMatrix:function(e){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(e)},getColumnFromMatrix:function(e,t){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(t,e)},applyProjection:function(e){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(e)},fromAttribute:function(e,t,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},distanceToManhattan:function(e){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},lengthManhattan:function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(Jc.prototype,{fromAttribute:function(e,t,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},lengthManhattan:function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(bh.prototype,{computeTangents:function(){console.error("THREE.Geometry: .computeTangents() has been removed.")},computeLineDistances:function(){console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.")},applyMatrix:function(e){return console.warn("THREE.Geometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)}}),Object.assign($l.prototype,{getChildByName:function(e){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(e)},renderDepth:function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(e,t){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(t,e)},getWorldRotation:function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},applyMatrix:function(e){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)}}),Object.defineProperties($l.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(e){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=e}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),Object.assign(hh.prototype,{setDrawMode:function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}),Object.defineProperties(hh.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),0},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),Object.defineProperties(Sm.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}}),Object.defineProperty(Am.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}}),Tm.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Object.defineProperty(ry.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(e){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions=e}}),kh.prototype.setLens=function(e,t){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==t&&(this.filmGauge=t),this.setFocalLength(e)},Object.defineProperties(My.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(e){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=e}},shadowCameraLeft:{set:function(e){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=e}},shadowCameraRight:{set:function(e){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=e}},shadowCameraTop:{set:function(e){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=e}},shadowCameraBottom:{set:function(e){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=e}},shadowCameraNear:{set:function(e){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=e}},shadowCameraFar:{set:function(e){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=e}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(e){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=e}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(e){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=e}},shadowMapHeight:{set:function(e){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=e}}}),Object.defineProperties(kf.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===Dc},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(Dc)}}}),Object.assign(kf.prototype,{setDynamic:function(e){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?Dc:Ic),this},copyIndicesArray:function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},setArray:function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")}}),Object.assign(Xf.prototype,{addIndex:function(e){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(e)},addAttribute:function(e,t){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),t&&t.isBufferAttribute||t&&t.isInterleavedBufferAttribute?"index"===e?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(t),this):this.setAttribute(e,t):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(e,new kf(arguments[1],arguments[2])))},addDrawCall:function(e,t,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(e,t)},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.")},removeAttribute:function(e){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(e)},applyMatrix:function(e){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)}}),Object.defineProperties(Xf.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(Hy.prototype,{maxInstancedCount:{get:function(){return console.warn("THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount."),this.instanceCount},set:function(e){console.warn("THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount."),this.instanceCount=e}}}),Object.defineProperties(Mb.prototype,{linePrecision:{get:function(){return console.warn("THREE.Raycaster: .linePrecision has been deprecated. Use .params.Line.threshold instead."),this.params.Line.threshold},set:function(e){console.warn("THREE.Raycaster: .linePrecision has been deprecated. Use .params.Line.threshold instead."),this.params.Line.threshold=e}}}),Object.defineProperties(Kd.prototype,{dynamic:{get:function(){return console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."),this.usage===Dc},set:function(e){console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."),this.setUsage(e)}}}),Object.assign(Kd.prototype,{setDynamic:function(e){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?Dc:Ic),this},setArray:function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")}}),Object.assign(Qv.prototype,{getArrays:function(){console.error("THREE.ExtrudeBufferGeometry: .getArrays() has been removed.")},addShapeList:function(){console.error("THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.")},addShape:function(){console.error("THREE.ExtrudeBufferGeometry: .addShape() has been removed.")}}),Object.assign(Qd.prototype,{dispose:function(){console.error("THREE.Scene: .dispose() has been removed.")}}),Object.defineProperties(Eb.prototype,{dynamic:{set:function(){console.warn("THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.")}},onUpdate:{value:function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this}}}),Object.defineProperties(Tf.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new wf}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===e}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(e){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=e}}}),Object.defineProperties(Eg.prototype,{metal:{get:function(){return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."),!1},set:function(){console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead")}}}),Object.defineProperties(wg.prototype,{transparency:{get:function(){return console.warn("THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission."),this.transmission},set:function(e){console.warn("THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission."),this.transmission=e}}}),Object.defineProperties(Oh.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(e){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=e}}}),Object.assign(Yd.prototype,{clearTarget:function(e,t,n,r){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(e),this.clear(t,n,r)},animate:function(e){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(e)},getCurrentRenderTarget:function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},getMaxAnisotropy:function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},getPrecision:function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},resetGLState:function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},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 console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),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(e){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(e)},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.")},setFaceCulling:function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},allocTextureUnit:function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},setTexture:function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},setTexture2D:function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},setTextureCube:function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},getActiveMipMapLevel:function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()}}),Object.defineProperties(Yd.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=e}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=e}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(e){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=!0===e?Ec:wc}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}}}),Object.defineProperties(Bd.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(Qc.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=e}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=e}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=e}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=e}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(e){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=e}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(e){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=e}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(e){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=e}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(e){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=e}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(e){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=e}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(e){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=e}}}),Object.defineProperties(ub.prototype,{load:{value:function(e){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var t=this;return(new rb).load(e,function(e){t.setBuffer(e)}),this}},startTime:{set:function(){console.warn("THREE.Audio: .startTime is now .play( delay ).")}}}),cb.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},Lh.prototype.updateCubeMap=function(e,t){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(e,t)};Yc.crossOrigin=void 0,Yc.loadTexture=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var i=new ny;i.setCrossOrigin(this.crossOrigin);var o=i.load(e,n,void 0,r);return t&&(o.mapping=t),o},Yc.loadTextureCube=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var i=new ey;i.setCrossOrigin(this.crossOrigin);var o=i.load(e,n,void 0,r);return t&&(o.mapping=t),o},Yc.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},Yc.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:"120"}}));var Xb=function(e,t){return e*-t},Zb=function(){function e(t){var n=this,r=t.container,i=t.cylinderTextureImageUrl,o=t.height;Object(cn.a)(this,e),this.animate=function(){n.rotateCylinder(),n.camera.lookAt(n.scene.position),n.renderer.render(n.scene,n.camera),requestAnimationFrame(n.animate)},this.rotateCylinder=function(){if(n.cylinder.rotation.y=Xb(n.cylinderRotatingPosition,n.FRICTION_COEFF),n.cylinderDragging)n.cylinderRotatingPreviousPosition=n.cylinderRotatingPosition,n.cylinderRotatingPosition=n.mousePositionAtDragging,n.cylinderRotatingVelocity=n.cylinderRotatingPosition-n.cylinderRotatingPreviousPosition;else if(n.cylinderRotatingPosition+=n.cylinderRotatingVelocity,n.cylinderRotatingVelocity*=n.INERTIA_COEFF,n.cylinderRotatingVelocity>=-1&&n.cylinderRotatingVelocity<=1){if(n.cylinderRotatingVelocity<.5)return void(n.cylinderRotatingVelocity+=n.VELOCITY_BOOST_AFTER_STOPPING);n.cylinderRotatingVelocity=n.DEFAULT_SPEED}},this.height=o,this.container=r,this.cylinderTextureImageUrl=i,this.lightColor=16777215,this.cameraFov=45,this.cameraPositionX=300,this.cameraAspect=this.container.clientWidth/this.height,this.cylinderRotation=1.57,this.cylinderRadiusTop=113,this.cylinderRadiusBottom=113,this.cylinderHeight=190,this.cylinderRadiusSegments=35,this.cylinderHeightSegments=35,this.DEFAULT_SPEED=.8,this.FRICTION_COEFF=.0085,this.INERTIA_COEFF=.95,this.VELOCITY_BOOST_AFTER_STOPPING=.035,this.cylinderDragging=!1,this.cylinderRotatingPosition=0,this.cylinderRotatingPreviousPosition=this.cylinderRotatingPosition,this.cylinderRotatingCurrentPositionAtDragging=0,this.cylinderRotatingVelocity=this.DEFAULT_SPEED,this.mousePositionAtDragging=0,this.mouseStartPositionAtDragging=0}return Object(ln.a)(e,[{key:"init",value:function(){this.initScene(),this.initCamera(),this.initCylinder(),this.initRenderer(),this.initControls(),this.initResize()}},{key:"render",value:function(){this.scene.add(this.camera),this.scene.add(this.cylinder),this.container.appendChild(this.renderer.domElement),this.animate()}},{key:"reset",value:function(){this.container.removeChild(this.renderer.domElement)}},{key:"initScene",value:function(){this.scene=new Qd}},{key:"initCamera",value:function(){this.camera=new kh(this.cameraFov,this.cameraAspect),this.camera.position.x=this.cameraPositionX,this.camera.add(new Iy(this.lightColor))}},{key:"initCylinder",value:function(){var e=new Eg({map:(new ny).load(this.cylinderTextureImageUrl)}),t=new hg(this.cylinderRadiusTop,this.cylinderRadiusBottom,this.cylinderHeight,this.cylinderRadiusSegments,this.cylinderHeightSegments),n=(new Xf).fromGeometry(t);this.cylinder=new hh(n,e),this.cylinder.rotation.x=this.cylinderRotation}},{key:"initRenderer",value:function(){this.renderer=new Yd,this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setSize(this.container.clientWidth,this.height)}},{key:"initControls",value:function(){var e=this;this.renderer.domElement.style.cursor="grab",this.renderer.domElement.addEventListener("mousedown",function(t){e.renderer.domElement.style.cursor="grabbing",document.body.style.userSelect="none",e.cylinderDragging=!0,e.mouseStartPositionAtDragging=t.y,e.cylinderRotatingCurrentPositionAtDragging=e.cylinderRotatingPosition,e.mousePositionAtDragging=e.cylinderRotatingCurrentPositionAtDragging}),this.renderer.domElement.addEventListener("mousemove",function(t){if(e.cylinderDragging){var n=t.y-e.mouseStartPositionAtDragging;e.mousePositionAtDragging=n+e.cylinderRotatingCurrentPositionAtDragging}}),this.renderer.domElement.addEventListener("mouseup",function(){e.renderer.domElement.style.cursor="grab",document.body.style.userSelect="auto",e.cylinderDragging=!1}),this.renderer.domElement.addEventListener("mouseout",function(){e.renderer.domElement.style.cursor="grab",document.body.style.userSelect="auto",e.cylinderDragging=!1})}},{key:"initResize",value:function(){var e=this;window.addEventListener("resize",function(){e.renderer.setSize(e.container.clientWidth,e.height)},!1)}}]),e}(),Jb=n(368),Qb=n.n(Jb),Kb=function(e){var t=e.className,n=Object(O.useMatchMediaListener)(),r=Object(p.useRef)(null),i=w.a.SectionCylinder.texturesImageUrls[Xo(n)?"mobile":"desktop"],o=function(e,t){if(e)return 565/t;var n=document.documentElement.clientHeight-80,r=w.a.SectionCylinder.minHeight,i=w.a.SectionCylinder.maxHeight;return n>i?i/t:n<r?r/t:n/t}(Xo(n),i.length);return Object(p.useEffect)(function(){var e,t;e=document.createElement("canvas"),(t=e.getContext("webgl")||e.getContext("experimental-webgl"))&&t instanceof WebGLRenderingContext&&(r.current&&(r.current.innerHTML=""),i.forEach(function(e){if(r.current){var t=new Zb({height:o,container:r.current,cylinderTextureImageUrl:e});t.init(),t.render()}}))},[o,i]),d.a.createElement("section",{className:mn()(Qb.a.wrapper,t),ref:r,style:{minHeight:"".concat(w.a.SectionCylinder.minHeight,"px"),maxHeight:"".concat(w.a.SectionCylinder.maxHeight,"px")}})},$b=n(121),ex=n.n($b),tx=function(e,t){return(Array.isArray(e)?e:[e]).map(function(e){return d.a.createElement(Ia,{key:e,mod:"p1",className:ex.a.text},t?function(e,t){var n=e.split("%link%"),r=Object(J.a)(n,2),i=r[0],o=r[1];return d.a.createElement(d.a.Fragment,null,i,d.a.createElement(Wa,{href:t.href,mod:"link-underline"},t.text),o)}(e,t):e)})},nx=function(e){return d.a.createElement("li",{className:ex.a.listItem,key:e.title},d.a.createElement("div",{className:ex.a.iconColumn},d.a.createElement("img",{src:e.icon,alt:"",className:ex.a.icon})),d.a.createElement("div",null,d.a.createElement(Ia,{tag:"h3",mod:"h3",weight:"700",color:"magenta",className:ex.a.title},e.title),tx(e.description,e.linkForDescription)))},rx=function(e){var t=e.list,n=e.className;return Array.isArray(t)&&0!==t.length?d.a.createElement("ul",{className:n},t.map(nx)):null},ix=w.a.Analytics.actionsConfigs;function ox(e,t){try{var n=ix[e],r=n.specActionName,i=n.trackingStateName;return i&&t?window.tracking.extend(Object(L.a)({},i,t)).event(r):window.tracking.event(r)}catch(e){console.error(e)}}var ax,sx=n(98),ux=n.n(sx),cx=n(369),lx=n.n(cx),fx=function(e){var t=e.mod,n=void 0===t?"button_lemon":t,r=e.title,i=e.className,o=e.onClick,a=e.children,s=e.isDisabled,u=e.type,c=void 0===u?"button":u;return d.a.createElement("button",{className:mn()(lx.a["root_".concat(n)],i),onClick:o,type:c,disabled:s,title:r,"aria-label":r},a)},hx=function(){var e=w.a.SSO.authUri,t=e.local,n=e.prod,r=e.stage;return W?n:G?r:t},px=function(e){var t=e.formEnabled,n=e.className,r=Cn(ui).userState,i=ko(),o=w.a.MainPage.sections.rules;if(Qn()(o))return null;return d.a.createElement("section",{id:"rules",className:n},d.a.createElement(Ia,{tag:"h2",mod:"h2",weight:"700",color:"lemon",align:"center",className:ux.a.title},o.heading),d.a.createElement(rx,{list:o.list||[],className:ux.a.list}),d.a.createElement("div",{className:ux.a.buttonsWrapper},d.a.createElement(fx,{onClick:function(){ox("rulesParticipateClick"),r.get().isLoggedIn?i.push(X.clientAuthPage):setTimeout(function(){return window.location.href=hx()},200)},mod:"button_lemon",className:ux.a.button},o.participateButtonText),t&&d.a.createElement(Wa,{href:o.applicationButtonHref,onClick:function(){ox("rulesApplicationClick")},mod:"button_white",className:mn()(ux.a.button,ux.a.button_application)},o.applicationButtonText)))},dx=function(e){var t=e.type,n=e.value,r=e.href;switch(t){case"text":return d.a.createElement(d.a.Fragment,null,n," ");default:return r?d.a.createElement(Wa,{href:r,mod:"link-underline"},n):null}},mx=n(122),vx=n.n(mx),gx=function(e){var t=e.className,n=w.a.MainPage.sections.prizes;if(Qn()(n))return null;return d.a.createElement("section",{className:t},d.a.createElement(Ia,{tag:"h2",mod:"h2",color:"lemon",align:"center",weight:"700",className:vx.a.title},n.heading),d.a.createElement(Ia,{mod:"p1",align:"center",className:vx.a.description},n.description),n.prizes.map(function(e){var t=e.icon,n=e.text;return d.a.createElement("div",{key:n,className:vx.a.iconWrapper},d.a.createElement("img",{src:t,alt:n,className:vx.a.icon}),d.a.createElement(Ia,{mod:"p1",align:"center"},n))}),d.a.createElement(Ia,{mod:"p2",color:"lemon",className:vx.a.socials},n.socials.map(function(e,t){return d.a.createElement(dx,Object.assign({key:t},e))})))},yx=n(99),bx=n.n(yx),xx=function(e){return d.a.createElement("li",{className:bx.a.advantageListItem,key:e},d.a.createElement(Ia,{mod:"p1"},e))},_x=function(e){var t=e.className,n=w.a.MainPage.sections.card;return Qn()(n)?null:d.a.createElement("section",{className:t,id:"card"},d.a.createElement(Ia,{tag:"h2",mod:"h2",color:"lemon",weight:"700",align:"center",className:bx.a.title},n.heading),d.a.createElement(Ia,{mod:"p1",className:bx.a.description},n.description),d.a.createElement("div",{className:bx.a.advantagesWrapper},d.a.createElement("ul",{className:bx.a.advantagesList},Array.isArray(n.advantages)&&n.advantages.map(xx)),d.a.createElement("img",{src:n.cardIcon,alt:n.cardAlt,className:bx.a.cardIcon})))},wx=function(){var e=l(u.a.mark(function e(){return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pi();case 2:window.location.href!==X.mainPage&&(window.location.href=X.mainPage);case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),Ex=n(370),Sx=n.n(Ex),Tx=function(e){var t=e.children,n=e.className,r=e.role;return d.a.createElement("div",{className:mn()(Sx.a.container,n),role:r||void 0},t)},Mx=n(187),Ox=n.n(Mx),Ax=function(e){var t=e.className;return d.a.createElement("section",{className:mn()(Ox.a.root,t)},d.a.createElement(Wa,{href:w.a.Logo.href,title:w.a.Logo.title,className:Ox.a.tinkoff},d.a.createElement("img",{src:w.a.Logo.imageSrc,alt:w.a.Logo.title,className:Ox.a.logo})))},kx=function(e){var t=e.className;return d.a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t},d.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.4126 17.4082C18.6331 20.1706 15.5301 22 11.9998 22C8.46947 22 5.36643 20.1706 3.58691 17.4082C4.55403 15.3921 6.61433 14 8.99977 14H14.9998C17.3852 14 19.4455 15.3921 20.4126 17.4082ZM11.9998 2C9.23834 2 6.99977 4.23858 6.99977 7C6.99977 9.76142 9.23834 12 11.9998 12C14.7612 12 16.9998 9.76142 16.9998 7C16.9998 4.23858 14.7612 2 11.9998 2Z",fill:"currentColor"}))},Cx=function(e){var t=e.className;return d.a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t},d.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7071 7.29289C16.3166 6.90237 15.6834 6.90237 15.2929 7.29289C14.9024 7.68342 14.9024 8.31658 15.2929 8.70711L17.5858 11H9.85714C9.38376 11 9 11.4477 9 12C9 12.5523 9.38376 13 9.85714 13H17.5858L15.2929 15.2929C14.9024 15.6834 14.9024 16.3166 15.2929 16.7071C15.6834 17.0976 16.3166 17.0976 16.7071 16.7071L20.5107 12.9035C20.7993 12.7432 20.999 12.4004 21 12.003C21 12.002 21 12.001 21 12C21 11.999 21 11.998 21 11.997C20.999 11.5996 20.7993 11.2568 20.5107 11.0965L16.7071 7.29289Z",fill:"currentColor"}),d.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 5C3.89543 5 3 5.89543 3 7V17C3 18.1046 3.89543 19 5 19H10C11.1046 19 12 18.1046 12 17V15H9C7.89543 15 7 14.1046 7 13V11C7 9.89543 7.89543 9 9 9H12V7C12 5.89543 11.1046 5 10 5H5Z",fill:"currentColor"}))},Px=n(150),Lx=n.n(Px),Rx=function(e){var t=e.noControlButtons,n=Cn(ui),r=function(){setTimeout(function(){return window.location.href=hx()},200)};return d.a.createElement("header",{className:Lx.a.root},d.a.createElement(Tx,{className:Lx.a.content},d.a.createElement(Ax,null),function(){if(!t)return n.get().userState.isLoggedIn?d.a.createElement("a",{onClick:wx,title:w.a.Header.logoutTitle,className:Lx.a.control},d.a.createElement(Cx,null)):d.a.createElement("a",{onClick:r,title:w.a.Header.loginTitle,className:Lx.a.control},d.a.createElement(kx,null))}()))},jx=n(67),Nx=n.n(jx),Ix=function(e){var t=e.colorTheme,n=void 0===t?"primary":t;return d.a.createElement("footer",{className:mn()(Nx.a.footer,Nx.a["footer_".concat(n)])},d.a.createElement(Tx,null,d.a.createElement("div",{className:mn()(Nx.a.wrapper,Object(L.a)({},Nx.a.wrapper_hasBorder,"secondary"===n))},d.a.createElement("p",{className:mn()(Nx.a.copyright,Nx.a["copyright_".concat(n)])},w.a.template(w.a.Footer.copyright,{currentYear:"".concat((new Date).getFullYear())})),d.a.createElement("ul",{className:Nx.a.links},w.a.Footer.links.map(function(e){var t=e.href,r=e.text,i="primary"===n?"link":"link-faded";return d.a.createElement("li",{key:r,className:Nx.a.itemLink},d.a.createElement(Wa,{href:t,mod:i},r))})))))},Dx=n(371),Bx=n(372),Fx=n.n(Bx),Ux=V?w.a.iframeOriginTest:w.a.iframeOrigin,zx=function(e){var t=e.path;return d.a.createElement(Dx.Iframe,{defaultHeight:1e3,title:"Tinkoff",srcOrigin:Ux,srcPath:t||w.a.iframePath,className:Fx.a.iframe,useScrolling:!1})},Hx=n(68),Gx=n.n(Hx),Wx=function(){var e=!Cn(ui).get().hasBlack;return d.a.createElement("div",null,d.a.createElement(Rx,null),d.a.createElement(Tx,{className:Gx.a.container},d.a.createElement(Ya,{className:Gx.a.sectionTitle}),d.a.createElement("div",{className:Gx.a.cylindersWrapper},d.a.createElement(Kb,{className:Gx.a.sectionCylinder})),d.a.createElement(px,{formEnabled:e,className:Gx.a.sectionRules}),d.a.createElement(gx,{className:Gx.a.sectionPrizes}),e&&d.a.createElement(_x,{className:Gx.a.sectionCard})),e&&d.a.createElement("div",{className:Gx.a.formWrapper,id:"form"},d.a.createElement(zx,null)),d.a.createElement(Ix,{colorTheme:e?"secondary":"primary"}))},Vx=n(100),qx=n.n(Vx),Yx=function(){return d.a.createElement("div",{className:qx.a.wrapper},d.a.createElement("div",{className:qx.a.root},d.a.createElement(Ia,{tag:"h1",mod:"h2",weight:"700",align:"center",className:qx.a.title},w.a.Error.title),d.a.createElement(Ia,{mod:"p1",align:"center",className:qx.a.description},w.a.Error.description),d.a.createElement("img",{src:w.a.Auth.errorImageSrc,alt:w.a.NotClient.title,className:qx.a.image}),d.a.createElement(fx,{onClick:function(){return document.location.reload()},mod:"button_lemon",className:qx.a.button},w.a.Error.button.text)))},Xx=n(373),Zx=n.n(Xx),Jx=function(e){var t,n,r,i,o;if(ui.get().userState.isLoggedIn)return n=(t=e).onOpenPopup,r=t.investboxMBDeeplink,i=t.layout,o=t.push,Zr.addUserToChallenge().then(function(){_i()?Mn.requestAccess().then(function(){alert("отправлен запрос в integration-api, ачивке инвесткопили поставлен прогресс 100"),o(X.achievementsPage)}).catch(function(e){alert("запрос к integration-api не удался, что-то пошло не так :( В консоли есть ошибка"),console.error(e)}):Xo(i)?window.location.href=r:n()}).catch(function(){fi()})},Qx=n(83),Kx=n.n(Qx),$x=function(e){var t=e.children,n=e.checked,r=e.onChange,i=e.className,o=e.isLabel,a=e.isHover,s=e.disabled,u=void 0!==s&&s,c=o?"label":"div";return d.a.createElement(c,{className:mn()(Kx.a.root,Kx.a["root_".concat(c)],i,Object(L.a)({},Kx.a.root_disabled,u))},d.a.createElement("input",{className:Kx.a.input,onChange:r,checked:n,type:"checkbox",hidden:!0,disabled:u}),d.a.createElement("span",{className:mn()(Kx.a.icon,Object(L.a)({},Kx.a.icon_hover,a))}),t&&d.a.createElement("span",{className:Kx.a.text},t))},e_=n(101),t_=n.n(e_),n_=function(e){var t=e.onOpenPopup,n=e.layout,r=Object(p.useState)(!0),i=Object(J.a)(r,2),o=i[0],a=i[1],s=Object(p.useState)(!1),u=Object(J.a)(s,2),c=u[0],l=u[1],f=ko().push,h=w.a.RulesPage;if(Qn()(h))return null;var m=Zx()(h.list,Math.round(h.list.length/2)),v=Object(J.a)(m,2),g=v[0],y=v[1];return d.a.createElement("section",null,d.a.createElement(Ia,{tag:"h1",mod:"h1",weight:"700",align:"center",className:t_.a.title},h.heading),d.a.createElement("div",{className:t_.a.listWrapper},d.a.createElement(rx,{list:g||[],className:t_.a.list}),d.a.createElement(rx,{list:y||[],className:t_.a.list})),d.a.createElement("div",{className:t_.a.buttonsWrapper},d.a.createElement(fx,{onClick:function(){l(!0),ox("rulesPageButtonClick"),Jx({investboxMBDeeplink:h.investboxMBDeeplink,push:f,layout:n,onOpenPopup:t})},className:t_.a.agreementButton,isDisabled:!o||c},h.agreementForRulesButtonText),d.a.createElement($x,{checked:o,onChange:function(e){a(e.target.checked)},isLabel:!0},d.a.createElement(Ia,{mod:"p4",fontFamily:"haas"},h.agreementForNotificationsButtonText))))},r_=function(e){var t=e.className;return d.a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:t},d.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM13.7027 8.7115C14.0956 8.32342 14.0996 7.69027 13.7115 7.29732C13.3234 6.90436 12.6903 6.90042 12.2973 7.2885L8.98269 10.562C8.19504 11.3399 8.18809 12.6023 8.96905 13.3833L12.2929 16.7071C12.6834 17.0976 13.3166 17.0976 13.7071 16.7071C14.0976 16.3166 14.0976 15.6834 13.7071 15.2929L10.3937 11.9795L13.7027 8.7115Z"}))},i_=n(243),o_=n.n(i_),a_=function(e){var t=e.className,n=e.title,r=e.onClick;return d.a.createElement(Wa,{className:mn()(o_.a.root,t),href:"/",onClick:r,title:n||"Вернуться на главную страницу"},d.a.createElement(d.a.Fragment,null,d.a.createElement(r_,{className:o_.a.arrow}),w.a.BackButton))},s_=n(61),u_=n.n(s_),c_=function(e){var t=e.open,n=w.a.QrCode,r=function(e){switch(e){case"add":document.body.classList.add("overflowHidden");break;case"remove":document.body.classList.remove("overflowHidden")}};return Object(p.useEffect)(function(){r(t?"add":"remove")},[t]),d.a.createElement("div",{className:mn()(u_.a.root,Object(L.a)({},u_.a.root_open,t))},d.a.createElement(Tx,{className:u_.a.container},d.a.createElement("div",{className:u_.a.content},d.a.createElement("div",{className:u_.a.info},d.a.createElement(Ia,{tag:"h2",mod:"h2",weight:"700",color:"lemon",className:u_.a.title},n.heading),d.a.createElement("ol",{className:u_.a.list},n.list.map(function(e,t){return d.a.createElement("li",{className:u_.a.listItem,key:"".concat(e,"-").concat(t)},e)}))),d.a.createElement("img",{src:n.qrImageScr,alt:n.heading,className:u_.a.qrImage})),d.a.createElement(a_,{onClick:function(){return r("remove")}})))},l_=n(244),f_=n.n(l_),h_=function(){var e=Cn(ui),t=Cn(!1),n=Object(O.useMatchMediaListener)(),r=function(){Xo(n)||t.set(!0)};return d.a.createElement("div",{className:f_.a.root},d.a.createElement(Rx,null),e.get().isFailed?d.a.createElement(Yx,null):d.a.createElement(d.a.Fragment,null,d.a.createElement(Tx,{className:f_.a.container},d.a.createElement(n_,{onOpenPopup:r,layout:n})),d.a.createElement(Ix,null)),!Xo(n)&&d.a.createElement(c_,{open:t.get()}))},p_=n(62),d_=n.n(p_);!function(e){e.VK="vk",e.FB="fb",e.TW="tw",e.OK="ok"}(ax||(ax={}));var m_=function(e){return function(){e&&e()}},v_=function(e,t){return t?function(e,t){return e===ax.VK?t.vkImageUrl:t.fbImageUrl}(e,t):e===ax.VK?w.a.meta.vkImageUrl:w.a.meta.fbImageUrl},g_=function(e){var t=e.className,n=e.isOkEnabled,r=e.isTwEnabled,i=e.customShareImage,o=e.onSocialLinkClick;return d.a.createElement("section",{className:mn()(d_.a.root,t)},d.a.createElement(M.SocialLink,{socialId:M.FB,label:"Поделиться в Facebook",hoverTitle:"Поделиться в Facebook",iconSize:27,classNames:{link:d_.a.link,fill:d_.a.svg},onShareClick:m_(o),image:v_(ax.FB,i)}),d.a.createElement(M.SocialLink,{socialId:M.VK,label:"Поделиться во ВКонтакте",hoverTitle:"Поделиться во ВКонтакте",iconSize:29,classNames:{link:d_.a.link,fill:d_.a.svg},onShareClick:m_(o),image:v_(ax.VK,i)}),r&&d.a.createElement(M.SocialLink,{socialId:M.TW,label:"Поделиться в Twitter",hoverTitle:"Поделиться в Twitter",iconSize:30,classNames:{link:d_.a.link,fill:d_.a.svg},onShareClick:m_(o),image:v_(ax.FB,i)}),n&&d.a.createElement(M.SocialLink,{socialId:M.OK,label:"Поделиться в Одноклассниках",hoverTitle:"Поделиться в Одноклассниках",iconSize:45,classNames:{link:d_.a.link,fill:d_.a.svg},onShareClick:m_(o),image:v_(ax.FB,i)}))},y_=n(102),b_=n.n(y_),x_=w.a.AchievementPage.sharingImages,__=function(e){var t=e.achievementId,n=e.heading,r=e.icon,i=e.description;return d.a.createElement("div",{className:b_.a.root},d.a.createElement(Ia,{tag:"h1",mod:"h1",weight:"700",align:"center",className:b_.a.heading},n),d.a.createElement("img",{src:r,alt:n,className:b_.a.icon}),d.a.createElement("div",{className:b_.a.sharingsWrapper},d.a.createElement(Ia,{mod:"p2",align:"center",color:"lemon",className:b_.a.sharingsText},w.a.CardAchievementInfo.sharingsText),d.a.createElement(g_,{isOkEnabled:!0,isTwEnabled:!0,onSocialLinkClick:function(){!function(e){ox("socialLinkClick",e)}(t)},customShareImage:function(){var e=x_[t];if(e)return e;"sp_invest_open_investbox"!==t&&a.captureException({message:"achievementId not found in resources sharingImages",achievementId:t})}()})),d.a.createElement(Ia,{mod:"p1",align:"center",className:b_.a.description},i))},w_=function(e){var t=e.featuredAchievement,n=e.className;return d.a.createElement("section",{className:n},d.a.createElement(__,{achievementId:t.achievementId,heading:t.title,icon:t.imageUrl,description:t.description}))},E_=n(374),S_=n.n(E_),T_=n(48),M_=n.n(T_),O_=function(e){var t=e.imageUrl,n=e.description,r=e.title,i=e.achievementId,o=e.progress,a=100!==(null==o?void 0:o.progress);return d.a.createElement("li",{key:r,className:mn()(M_.a.listItem,Object(L.a)({},M_.a.disablesListItem,a))},d.a.createElement(Wa,{href:Uo(i),onClick:function(){return function(e){ox("achievementClick",e)}(i)},className:mn()(M_.a.achievementCard,Object(L.a)({},M_.a.achievementCard_disabled,a))},d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:M_.a.achievementCardIconWrapper},d.a.createElement("img",{src:t,alt:r,className:mn()(M_.a.achievementCardIcon,Object(L.a)({},M_.a.disablesAchievementCardIcon,a))})),d.a.createElement("div",{className:mn()(M_.a.achievementCardDescriptionWrapper,Object(L.a)({},M_.a.achievementCardDescriptionWrapper_disabled,a))},d.a.createElement(Ia,{mod:"p2",align:"center",className:M_.a.achievementCardDescription},n)))))},A_=function(e){var t=e.achievementList,n=e.className;return d.a.createElement("div",{className:mn()(M_.a.root,n)},d.a.createElement("ul",{className:M_.a.list},t.map(O_)))},k_=function(e){var t=e.className;return d.a.createElement("svg",{width:"22",height:"18",viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t},d.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.4375 3.375H5.75V2.25C5.75 1.6289 6.33763 1.125 7.0625 1.125C7.78737 1.125 8.375 1.6289 8.375 2.25V3.375H13.625V2.25C13.625 1.6289 14.2126 1.125 14.9375 1.125C15.6624 1.125 16.25 1.6289 16.25 2.25V3.375H17.5625C19.0129 3.375 20.1875 4.38246 20.1875 5.625V14.625C20.1875 15.8675 19.0129 16.875 17.5625 16.875H4.4375C2.98706 16.875 1.8125 15.8675 1.8125 14.625V5.625C1.8125 4.38246 2.98706 3.375 4.4375 3.375ZM4.4375 14.625H17.5625V6.75H4.4375V14.625ZM9.6875 7.875V10.125H7.0625V7.875H9.6875ZM14.9375 10.125V7.875H12.3125V10.125H14.9375ZM14.9375 11.25V13.5H12.3125V11.25H14.9375ZM9.6875 11.25H7.0625V13.5H9.6875V11.25Z",fill:"currentColor"}))},C_=n(188),P_=n.n(C_),L_=function(e){if(!e||e<0)return"";var t=S_()(e,"%d дней","%d день","%d дня","%d дней");return"у тебя ".concat(t)},R_=function(e){var t=e.achievements,n=e.daysLeft,r=e.className,i=L_(n);return d.a.createElement("section",{className:r},d.a.createElement(Ia,{tag:"h2",mod:"h3",weight:"700",color:"magenta",align:"center",className:P_.a.title},w.a.SectionAchievementList.title),i&&d.a.createElement(Ia,{mod:"p2",color:"lemon",className:P_.a.daysLeft},d.a.createElement(k_,{className:P_.a.calendarIcon}),L_(n)),d.a.createElement(A_,{achievementList:t}))},j_=function(e){var t=e.className;return d.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t},d.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 8.29289C13.0976 8.68342 13.0976 9.31658 12.7071 9.70711C12.3166 10.0976 11.6834 10.0976 11.2929 9.70711L8 6.41421L4.70711 9.70711C4.31658 10.0976 3.68342 10.0976 3.29289 9.70711C2.90237 9.31658 2.90237 8.68342 3.29289 8.29289L6.58579 5C7.36684 4.21895 8.63317 4.21895 9.41421 5L12.7071 8.29289Z",fill:"currentColor"}))},N_=n(63),I_=n.n(N_),D_=function(e){var t=e.className,n=Object(O.useMatchMediaListener)(),r=Object(p.useState)(!1),i=Object(J.a)(r,2),o=i[0],a=i[1];return d.a.createElement("section",{className:mn()(I_.a.root,t)},d.a.createElement(fx,{onClick:function(){a(function(e){return!e})},mod:"link-lemon",className:I_.a.buttonToggle,isDisabled:!Xo(n)},d.a.createElement(Ia,{tag:"h2",mod:"p3",color:"lemon",align:"center",className:I_.a.title},w.a.SectionRules.title,d.a.createElement(j_,{className:mn()(I_.a.arrow,Object(L.a)({},I_.a.arrow_open,o))}))),d.a.createElement("ul",{className:mn()(I_.a.ruleList,Object(L.a)({},I_.a.ruleList_open,o))},w.a.SectionRules.list.map(function(e,t){var n=e.title,r=e.description;return d.a.createElement("li",{key:n,className:I_.a.ruleItem},d.a.createElement(Ia,{mod:"p3",color:"lemon",className:I_.a.titleRule},"".concat(t+1,". ").concat(n)),d.a.createElement(Ia,{mod:"p3"},r.map(function(e,t){return d.a.createElement(dx,Object.assign({key:t},e))})))})))},B_=n(84),F_=n.n(B_),U_=function(e){var t=e.className;return d.a.createElement("section",{className:mn()(F_.a.root,t)},d.a.createElement("div",{className:F_.a.imageWrapper},d.a.createElement("img",{src:w.a.SectionHowInvest.imageSrc,alt:w.a.SectionHowInvest.title,className:F_.a.image})),d.a.createElement("div",{className:F_.a.info},d.a.createElement(Ia,{tag:"h2",mod:"h3",weight:"700",color:"lemon",className:F_.a.title},w.a.SectionHowInvest.title),d.a.createElement(Ia,{mod:"p2",className:F_.a.description},w.a.SectionHowInvest.description),d.a.createElement(Wa,{href:w.a.SectionHowInvest.button.href,mod:"button_small",className:F_.a.button},w.a.SectionHowInvest.button.text)))},z_=n(151),H_=n.n(z_),G_=function(e){var t=e.color,n=void 0===t?"yellow":t;return d.a.createElement("svg",{version:"1.1",x:"0",y:"0",className:H_.a.svg,viewBox:"0 0 100 100"},d.a.createElement("circle",{className:mn()(H_.a.circle,H_.a["circle_color_".concat(n)]),cx:"50",cy:"50",r:"44"}))},W_=function(e){var t=e.color,n=void 0===t?"yellow":t,r=e.centered;return void 0!==r&&r?d.a.createElement("div",{className:H_.a.wrapper},d.a.createElement(G_,{color:n})):d.a.createElement(G_,{color:n})},V_=n(152),q_=n.n(V_),Y_=function(){var e=Cn(ui),t=Cn(!0);Object(p.useEffect)(function(){!0===t.get()&&mi().finally(function(){return t.set(!1)})},[t]);var n,r,i=((n=Ao(uo).match)?n.params:{}).achievementId,o=(r=i,di().find(function(e){var t;return e.achievementId===r&&100===(null===(t=e.progress)||void 0===t?void 0:t.progress)}));if(t.get())return d.a.createElement(W_,{centered:!0});if(i&&!o)return d.a.createElement(vo,{to:X.achievementsPage});var a=di(),s=o||function(){var e,t,n=di(),r=n[n.length-1];return 100===(null===(e=r.progress)||void 0===e?void 0:e.progress)?r:100===(null===(t=n[1].progress)||void 0===t?void 0:t.progress)?n[1]:n[0]}(),u="sp_invest_end"===(null==s?void 0:s.achievementId);return e.get().isFailed||!s||Qn()(a)?d.a.createElement(Yx,null):d.a.createElement("div",null,d.a.createElement(Rx,null),e.get().isFailed||!s||Qn()(a)?d.a.createElement(Yx,null):d.a.createElement(d.a.Fragment,null,d.a.createElement(Tx,{className:q_.a.container},d.a.createElement(w_,{featuredAchievement:s,className:q_.a.sectionFocusedAchievement}),u&&d.a.createElement(U_,{className:q_.a.sectionHowInvest}),d.a.createElement(R_,{achievements:a,daysLeft:e.get().daysLeft,className:q_.a.sectionAchievementList}),d.a.createElement(D_,null)),d.a.createElement(Ix,{colorTheme:"primary"})))},X_=n(241),Z_=n.n(X_),J_=n(245),Q_=n.n(J_),K_=function(e){var t=e.className,n=Z_()(window,"history.state.state.prevPath");return d.a.createElement(Wa,{href:n||X.mainPage,title:w.a.BackButtonArrow.title,className:mn()(Q_.a.root,t)},d.a.createElement("img",{src:w.a.BackButtonArrow.iconSrc,alt:w.a.BackButtonArrow.title,className:Q_.a.arrowIcon}))},$_=n(80),ew=n.n($_),tw=function(){return"stories"===ew.a.parse(window.location.search,{ignoreQueryPrefix:!0}).utm_source},nw=n(64),rw=n.n(nw),iw=function(){var e=!tw();return d.a.createElement("div",{className:rw.a.root},d.a.createElement("main",{className:rw.a.main},d.a.createElement(Tx,{className:rw.a.container},e&&d.a.createElement(K_,{className:rw.a.backButton}),d.a.createElement("div",{className:rw.a.content},d.a.createElement(Ia,{tag:"h1",mod:"h2",align:"center",weight:"700",className:rw.a.title},w.a.MerchantsPage.title),d.a.createElement("img",{src:w.a.MerchantsPage.imageUrl,alt:w.a.MerchantsPage.title,className:rw.a.image}),d.a.createElement("ul",{className:rw.a.list},w.a.MerchantsPage.merchantsList.map(function(e){return d.a.createElement("li",{key:e,className:rw.a.listItem},d.a.createElement(Ia,{mod:"p5"},e))}))))),d.a.createElement(Ix,{colorTheme:"primary"}))},ow=n(103),aw=n.n(ow),sw=function(){var e=!tw();return d.a.createElement("div",{className:aw.a.root},e&&d.a.createElement(Rx,{noControlButtons:!0}),d.a.createElement("main",{className:aw.a.main},d.a.createElement(Tx,{className:aw.a.container},d.a.createElement(Ia,{tag:"h1",mod:"h1",weight:"700",align:"center",className:aw.a.title},w.a.AchievementsListPage.title),d.a.createElement(Ia,{mod:"p1",align:"center",className:aw.a.subtitle},w.a.AchievementsListPage.subtitle),d.a.createElement(A_,{achievementList:w.a.AchievementsListPage.achievements,className:aw.a.list}),d.a.createElement(D_,null))),d.a.createElement(Ix,null))},uw=function(e){var t=e.component,n=e.exact,r=e.path,i=Cn(ui).get(),o=i.postAuthState,a=!i.userState.isLoggedIn||o===$n.NOT_SET,s=r.startsWith(X.achievementsPage)&&o!==$n.TO_ACHIEVEMENTS,u=r===X.rulesPage&&o!==$n.TO_RULES;return a||u||s?d.a.createElement(vo,{to:X.mainPage}):d.a.createElement(_o,{exact:n,path:r,component:t})},cw=n(246),lw=n.n(cw),fw=n(375),hw=n.n(fw),pw=function(e){var t=e.children,n=Cn(ui).userState.get(),r=n.isLoading,i=n.isLoggedIn,o=ko(),a=Object(p.useState)(!0),s=Object(J.a)(a,2),u=s[0],c=s[1],l=function(){var e=Co(),t=lw.a.parse(e.search),n="true"===t[w.a.general.hasBlackParamsName],r=hw()(t,[w.a.general.hasBlackParamsName]);return{hasTinkoffBlack:n,redirectUrl:"".concat(e.pathname,"?").concat(lw.a.stringify(r))}}(),f=l.hasTinkoffBlack,h=l.redirectUrl;return Object(p.useEffect)(function(){r||(i?hi().finally(function(){return c(!1)}):c(!1))},[i,r]),Object(p.useEffect)(function(){var e;f&&(e=!0,ui.merge({hasBlack:e}),o.replace(h))},[f,o,o.location.pathname,h]),u&&o.location.pathname!==X.mainPage?d.a.createElement(W_,{centered:!0}):d.a.createElement(d.a.Fragment,null,t)},dw=function(){return ew.a.parse(window.location.search.slice(1)).fromLinkAuth},mw=n(123),vw=n.n(mw),gw=function(){return d.a.createElement("div",{className:vw.a.root},d.a.createElement(Ia,{tag:"h1",mod:"h2",weight:"700",align:"center",className:vw.a.title},w.a.NotClient.title),d.a.createElement("img",{src:w.a.Auth.errorImageSrc,alt:w.a.NotClient.title,className:vw.a.image}),d.a.createElement(Ia,{align:"center",className:vw.a.description},w.a.NotClient.description),d.a.createElement(Wa,{href:w.a.NotClient.button.href,mod:"button_lemon",className:vw.a.button},w.a.NotClient.button.text))},yw=n(104),bw=n.n(yw),xw=function(){return d.a.createElement("div",{className:bw.a.wrapper},d.a.createElement("div",{className:bw.a.root},d.a.createElement(Ia,{tag:"h1",mod:"h2",weight:"700",align:"center",className:bw.a.title},w.a.HasInvestbox.title),d.a.createElement(Ia,{mod:"p1",align:"center",className:bw.a.description},w.a.HasInvestbox.description),d.a.createElement("img",{src:w.a.Auth.errorImageSrc,alt:w.a.HasInvestbox.title,className:bw.a.image}),d.a.createElement(Wa,{href:w.a.HasInvestbox.button.href,mod:"button_lemon",className:bw.a.button},w.a.HasInvestbox.button.text)))},_w=n(124),ww=n.n(_w),Ew=function(){var e=Cn(!1),t=Object(O.useMatchMediaListener)();return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:ww.a.root},d.a.createElement(Ia,{tag:"h1",mod:"h2",weight:"700",align:"center",className:ww.a.title},w.a.ClientDroppedPage.title),d.a.createElement(Ia,{mod:"p1",align:"center",className:ww.a.description},w.a.ClientDroppedPage.description),d.a.createElement("img",{src:w.a.Auth.errorImageSrc,alt:w.a.ClientDroppedPage.title,className:ww.a.image}),d.a.createElement(fx,{onClick:function(){Xo(t)?window.location.href=w.a.RulesPage.investboxMBDeeplink:e.set(!0)},mod:"button_lemon",className:ww.a.button},w.a.ClientDroppedPage.button.text)),!Xo(t)&&d.a.createElement(c_,{open:e.get()}))},Sw=n(55),Tw=n.n(Sw),Mw=function(){var e=Object(O.useMatchMediaListener)();return d.a.createElement("div",{className:Tw.a.root},d.a.createElement(Tx,{className:Tw.a.container},d.a.createElement(K_,{className:Tw.a.backButton}),d.a.createElement(Ia,{tag:"h1",mod:"h2",weight:"700",align:"center",className:Tw.a.title},w.a.RegistrationOver.title),d.a.createElement("img",{src:w.a.RegistrationOver.imageSrc,alt:w.a.RegistrationOver.title,className:Tw.a.image}),d.a.createElement(Ia,{mod:"p1",className:Tw.a.description},w.a.RegistrationOver.description),Xo(e)?d.a.createElement(Wa,{href:w.a.RegistrationOver.button.href,mod:"button_white",className:Tw.a.button},w.a.RegistrationOver.button.text):d.a.createElement("div",{className:Tw.a.qrWrapper},d.a.createElement(Ia,{mod:"p2",align:"center",color:"lemon",className:Tw.a.qrText},w.a.RegistrationOver.qrCode.text),d.a.createElement("img",{src:w.a.RegistrationOver.qrCode.image,alt:w.a.RegistrationOver.qrCode.text,className:Tw.a.qrImage}))))},Ow=n(105),Aw=n.n(Ow),kw=function(){var e=ko().push;return d.a.createElement("div",{className:Aw.a.wrapper},d.a.createElement("div",{className:Aw.a.root},d.a.createElement(Ia,{tag:"h1",mod:"h2",weight:"700",align:"center",className:Aw.a.title},w.a.InvestboxPending.title),d.a.createElement(Ia,{mod:"p1",align:"center",className:Aw.a.description},w.a.InvestboxPending.description),d.a.createElement("img",{src:w.a.Auth.errorImageSrc,alt:w.a.NotClient.title,className:Aw.a.image}),d.a.createElement(fx,{onClick:function(){return e(X.mainPage)},mod:"button_lemon",className:Aw.a.button},w.a.InvestboxPending.button.text)))},Cw=n(106),Pw=n.n(Cw),Lw=function(){var e=ko().push;return d.a.createElement("div",{className:Pw.a.wrapper},d.a.createElement("div",{className:Pw.a.root},d.a.createElement(Ia,{tag:"h1",mod:"h2",weight:"700",align:"center",className:Pw.a.title},w.a.InvalidAge.title),d.a.createElement(Ia,{mod:"p1",align:"center",className:Pw.a.description},w.a.InvalidAge.description),d.a.createElement("img",{src:w.a.Auth.errorImageSrc,alt:w.a.NotClient.title,className:Pw.a.image}),d.a.createElement(fx,{onClick:function(){return e(X.mainPage)},mod:"button_lemon",className:Pw.a.button},w.a.InvalidAge.button.text)))},Rw=n(107),jw=n.n(Rw),Nw=function(){var e=ko().push;return d.a.createElement("div",{className:jw.a.wrapper},d.a.createElement("div",{className:jw.a.root},d.a.createElement(Ia,{tag:"h1",mod:"h2",weight:"700",align:"center",className:jw.a.title},w.a.UnreadableReceipts.title),d.a.createElement(Ia,{mod:"p1",align:"center",className:jw.a.description},w.a.UnreadableReceipts.description),d.a.createElement("img",{src:w.a.Auth.errorImageSrc,alt:w.a.NotClient.title,className:jw.a.image}),d.a.createElement(fx,{onClick:function(){return e(X.mainPage)},mod:"button_lemon",className:jw.a.button},w.a.UnreadableReceipts.button.text)))};var Iw=function(e){var t=function(e){switch(e){case $n.NOT_CLIENT_LOYALITY:return"NOT_CLIENT_LOYALITY";case $n.TO_RULES:return"VALID_USER_RULES";case $n.TO_ACHIEVEMENTS:return"VALID_USER_ACHIEVEMENTS";case $n.INVESTBOX_PENDING:return"INVESTBOX_PENDING";case $n.DROPPED:return"DROPPED";case $n.HAS_INVESTBOX:return"HAS_INVESTBOX";case $n.INVALID_AGE:return"INVALID_AGE";case $n.CANT_READ_RECEIPTS:return"CANT_READ_RECEIPTS";case $n.ERROR:return"ERROR";case $n.REGISTRATION_OVER:return"REGISTRATION_OVER";default:return null}}(e);t&&ox("authRequestFinished",t)},Dw=n(125),Bw=n.n(Dw),Fw=function(){var e=Cn(ui),t=ko();if(Object(p.useEffect)(function(){hi().then(function(e){Iw(e)})}),Object(p.useEffect)(function(){function n(){return(n=l(u.a.mark(function n(){return u.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!dw()){n.next=5;break}if(!e.get().isFailed&&e.get().postAuthState!==$n.ERROR){n.next=4;break}return n.next=4,pi();case 4:t.push(X.mainPage);case 5:case"end":return n.stop()}},n)}))).apply(this,arguments)}!function(){n.apply(this,arguments)}()}),!e.get().userState.isLoading&&!e.get().userState.isLoggedIn&&e.get().postAuthState===$n.NOT_SET)return d.a.createElement(vo,{to:X.mainPage});if(e.get().userState.isLoading||e.get().userState.isLoggedIn&&e.get().postAuthState===$n.NOT_SET)return d.a.createElement(W_,{centered:!0});var n=e.get().postAuthState!==$n.REGISTRATION_OVER;return d.a.createElement("div",{className:Bw.a.root},n&&d.a.createElement(Rx,{noControlButtons:!0}),d.a.createElement("main",{className:Bw.a.main},function(){var t=e.get(),n=t.userState;if(t.isFailed)return d.a.createElement(Yx,null);if(n.isLoggedIn&&e.get().postAuthState&&!dw())switch(e.get().postAuthState){case $n.ERROR:return d.a.createElement(Yx,null);case $n.TO_RULES:return d.a.createElement(vo,{to:X.rulesPage});case $n.TO_ACHIEVEMENTS:return d.a.createElement(vo,{to:X.achievementsPage});case $n.INVESTBOX_PENDING:return d.a.createElement(kw,null);case $n.HAS_INVESTBOX:return d.a.createElement("div",{className:Bw.a.errorContainer},d.a.createElement(xw,null));case $n.NOT_CLIENT_LOYALITY:return d.a.createElement("div",{className:Bw.a.errorContainer},d.a.createElement(gw,null));case $n.INVALID_AGE:return d.a.createElement(Lw,null);case $n.CANT_READ_RECEIPTS:return d.a.createElement(Nw,null);case $n.DROPPED:return d.a.createElement("div",{className:Bw.a.errorContainer},d.a.createElement(Ew,null));case $n.REGISTRATION_OVER:return d.a.createElement(Mw,null)}return d.a.createElement(W_,{centered:!0})}()))},Uw=function(){return Object(p.useEffect)(function(){ci.auth()},[]),d.a.createElement(Po,null,d.a.createElement(pw,null,d.a.createElement(Yo,null,d.a.createElement(Oo,null,d.a.createElement(_o,{exact:!0,path:X.mainPage,component:Wx}),d.a.createElement(_o,{exact:!0,path:X.clientAuthPage,component:Fw}),d.a.createElement(_o,{exact:!0,path:X.merchantsPage,component:iw}),d.a.createElement(_o,{exact:!0,path:X.achievementsListPage,component:sw}),d.a.createElement(uw,{exact:!0,path:X.rulesPage,component:h_}),d.a.createElement(uw,{exact:!0,path:Uo(":achievementId?"),component:Y_}),d.a.createElement(vo,{to:X.mainPage})))))},zw=n(376);n.n(zw).a.polyfill();n(866),n(867);var Hw=document.getElementById("root");x.a.setAppElement("#root"),Object(O.initMatchMediaListener)({mobile:Object(O.matchMedia)("(max-width: ".concat(A-1,"px)")),tablet:Object(O.matchMedia)("(min-width: ".concat(A,"px) and (max-width: ").concat(k-1,"px)")),tabletLarge:Object(O.matchMedia)("(min-width: ".concat(k,"px) and (max-width: ").concat(C-1,"px)")),desktop:Object(O.matchMedia)("(min-width: ".concat(C,"px)"))});var Gw={info:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.log(t)}};y.a.then(l(u.a.mark(function e(){return u.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:T()({disableJsonp:!0,pageLoadParams:["url","layout","utmMarkers","userType","wuid"],logger:V?Gw:null}),window.addEventListener("keydown",P),Object(M.init)(Y),t=Uw,v.a.render(d.a.createElement(E.AppContainer,null,d.a.createElement(pn,null,d.a.createElement(t,null),w.a.dontShare&&w.a.dontShare.modal&&d.a.createElement(un,null),d.a.createElement(Ti,null))),Hw);case 5:case"end":return e.stop()}var t},e)})))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return ee}),n.d(t,"iconBadgeHOC",function(){return ve}),n.d(t,"SVGIcon",function(){return z}),n.d(t,"SVGExternalUse",function(){return F});var r=n(4),i=n(8),o=n(6),a=n(7),s=n(30),u=n.n(s),c=n(0),l=n.n(c),f=n(119),h=n(365),p=n.n(h),d=n(364),m=n.n(d),v={},g=Object.create(null),y=function(e){return["http://","https://","//"].some(function(t){return m()(t,e)})},b=function(e,t){v[e]=t},x=function(e){return v[e]},_=function(e){return e.replace(/[\t\n\r]+/g,"")},w=function(e){var t=e.match(/[\w-]+\.svg/),n=t?t[0]:void 0;return y(e),n},E=function(e){var t=w(e);return t&&v[t]?Promise.resolve(v[t]):(g[e]=g[e]||p()(e),g[e].then(function(e){var n=_(e);return b(t,n),n}))},S=function(e){return g[e]},T=["iconPath"],M=function(e,t){return b(e,t),t},O=function(e,t){if("undefined"!=typeof window&&"document"in window){var n=document.querySelector('[data-svg-id="'.concat(e,'"]'));if(!n)return!1;var r=n.innerHTML;return void 0===r&&(r=_((new XMLSerializer).serializeToString(n))),M(e,r)}},A=function(e,t){return x(e)?x(e):O(e)},k=n(17),C=function(){for(var e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;t--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e},P=function(e){return e&&e.constructor&&e.constructor.name||"TCSid"};function L(e){var t=P(e),n=C(10);return"".concat(t,"_").concat(n)}var R=L;var j,N={};function I(e,t){var n=e.split("#"),r=Object(k.a)(n,2),i=r[0],o=r[1];(function(e){var t=new XMLHttpRequest;return new Promise(function(n){t.onreadystatechange=function(){if(4===t.readyState){var e=t.responseText,r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var i=r.body.firstChild;n(i)}},t.open("get",e),t.send()})})(i).then(function(e){var n=e.getElementById(o).cloneNode(!0),r=j||(j=document.createElement("svg"),document.body.appendChild(j),j);n.id=t,r.appendChild(n)})}var D,B=function(e){return!function(e){return!e.startsWith("#")}(e)||function(){if("undefined"==typeof window)return!0;var e=window.navigator.userAgent;if(e.match(/Trident\//))return!1;var t=e.match(/Edge\/(\d+)/);return!t||+t[1]>12}()?e:"#".concat(function(e){if(N[e])return N[e];var t=R();return N[e]=t,I(e,t),t}(e))},F=function(e){return l.a.createElement("use",Object.assign({},e,{href:B(e.href)}))},U=["icon"],z=function(e){var t=e.icon,n=u()(e,U);if("object"==typeof t){var r=t.url||"#".concat(t.id);return l.a.createElement("svg",n,l.a.createElement(F,{href:r}))}return l.a.createElement(t,n)},H=n(46),G=n.n(H),W={gray:{color:G.a["textfield-placeholder"],background:G.a["card-secondary"]},red:{color:G.a["status-error"],background:"#fbe4e3"},green:{color:G.a["status-success"],background:"#dff3e2"},blue:{color:G.a.link,background:G.a.secondary},blueFilled:{color:"#fff",background:G.a.link},yellow:{color:G.a["text-primary"],background:G.a.primary},white:{color:G.a["textfield-placeholder"],background:G.a["blank-white"]},attention:{color:G.a["primary-active"],background:"#fff1ab"}},V=n(148),q=n.n(V),Y=["dataQaType","dataQaData","iconSize","withContainer","containerSize","dataSvgId","svgCode","rotate","reverse","backgroundSize","verticalAlign","theme","cursor","children"],X=["icon","iconPath"],Z=[16,24,32,48,64,96,128],J={horizontal:"scaleX(-1)",vertical:"scaleY(-1)"},Q=function(e,t){for(var n,r=1/0,i=0;i<t.length;i++){var o=Math.abs(e-t[i]);if(!(o<r))return n;r=o,n=t[i]}return n},K=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props,t=e.dataQaType,n=e.dataQaData,r=e.iconSize,i=e.withContainer,o=e.containerSize,a=e.dataSvgId,s=e.svgCode,c=e.rotate,h=e.reverse,p=e.backgroundSize,d=e.verticalAlign,m=e.theme,v=e.cursor,g=e.children,y=u()(e,Y),b=W[m]||("object"==typeof m?m:{}),x=b.color,_=b.background,w=function(e,t){var n=e?"rotate(".concat(e,"deg)"):"",r=t?J[t]:void 0;return r&&(n+=" ".concat(r)),n.length?n:"none"}(c||0,h),E=o&&Q(+o,Z),S=null!==r&&Q(+(r||64),Z),T={className:q.a.icon,"data-svg-id":a,style:{width:S,height:S,WebkitTransform:w,transform:w},role:"presentation"};return g?T.children=g:T.dangerouslySetInnerHTML={__html:s},l.a.createElement("span",Object.assign({},y,Object(f.a)({dataQaType:t,dataQaData:n}),{className:q.a.container,style:{color:x,cursor:v,width:E,height:E,verticalAlign:d||"top"}}),i&&l.a.createElement("span",{className:q.a.background,style:{background:_,width:p,height:p}}),l.a.createElement("span",T))}}]),n}(c.PureComponent),$=(D=K,function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e){var i;Object(r.a)(this,n),(i=t.call(this,e)).id=void 0,i.iconPath=void 0,i.mounting=void 0,i.id=w(e.iconPath),i.iconPath=e.iconPath,i.mounting=!0;var o=S(i.iconPath);return o&&o.then(function(e){return e!==i.state.icon&&i.setState({icon:e})}),i.state={icon:A(i.id,i.iconPath),notLoaded:!1},i}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this;!1===this.state.icon&&this.iconPath&&E(this.iconPath).then(function(t){e.mounting&&e.setState({icon:t})}).catch(function(){return e.setState({notLoaded:!0})})}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this,n=e.iconPath;n!==this.iconPath&&(this.id=w(n),this.iconPath=n,this.iconPath&&E(this.iconPath).then(function(e){t.mounting&&t.setState({icon:e})}).catch(function(){return t.setState({notLoaded:!0})}))}},{key:"componentWillUnmount",value:function(){this.mounting=!1}},{key:"render",value:function(){var e=this.state,t=e.icon,n=e.notLoaded,r=this.props,i=u()(r,T);return n&&i.fallbackBlock?i.fallbackBlock:t?l.a.createElement(D,Object.assign({},i,{svgCode:t,dataSvgId:this.id})):l.a.createElement("div",{style:{width:i.width||i.size||i.containerSize||i.iconSize,height:i.height||i.size||i.containerSize||i.iconSize}})}}]),n}(c.PureComponent)),ee=function(e){var t=e.icon,n=e.iconPath,r=u()(e,X);return t?"string"==typeof t?l.a.createElement($,Object.assign({},r,{iconPath:t})):l.a.createElement(K,r,l.a.createElement(z,{icon:t,className:q.a.svgIcon})):n?l.a.createElement($,Object.assign({iconPath:n},r)):l.a.createElement(K,r)},te=n(5),ne=n(66),re=n.n(ne),ie=n(120),oe=n.n(ie),ae=n(184),se=n.n(ae),ue=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e){var i;Object(r.a)(this,n),(i=t.call(this,e)).updateStatus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.state.transitionClass,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.state.children;i.setState({transitionClass:e,children:t})},i.handleTransitionEnd=function(){var e=i.props.transitionName,t=e.enter,n=e.leave,r=e.hide,o=e.show,a=i.state.transitionClass;a===t&&i.updateStatus(o),a===n&&i.updateStatus(r,null)};var o=i.props.children;return i.state={transitionClass:null,children:o},i}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.transitionName,n=t.enter,r=t.show,i=e.animateFirstRender,o=e.children;this.updateStatus(i?n:r,o)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.children,r=t.transitionName,i=r.leave,o=r.show,a=r.enter,s=t.animateFirstRender,u=this.state.children,c=n&&n.props.children,l=u&&u.props.children;null!==c&&!1!==c||this.updateStatus(i),!c&&void 0!==c||l||this.updateStatus(s?a:o,n),c&&l&&this.updateStatus(void 0,n)}},{key:"render",value:function(){var e=this.state,t=e.children,n=e.transitionClass;if(!t)return null;var r=t.props,i=r.className,o=r.style,a=r.children,s=t.type;return Object(c.createElement)(s,{className:oe()(i,n),style:o,children:a,onTransitionEnd:this.handleTransitionEnd})}}]),n}(c.PureComponent);ue.defaultProps={children:null,transitionName:{},animateFirstRender:!0};var ce=ue,le=n(36),fe=n.n(le),he=["topBadge","bottomBadge","withNotification","iconSize","verticalAlign"],pe={128:"xxl",96:"xl",64:"l",48:"m",32:"s",24:"xs"},de={xxxl:"3",xxl:"3",xl:"3",l:"2",m:"2",s:"2",xs:"2"},me="warning",ve=function(e){var t,n=function(t){Object(o.a)(s,t);var n=Object(a.a)(s);function s(e){var t;return Object(r.a)(this,s),(t=n.call(this,e)).timeoutId=void 0,t.state={mounted:!1},t}return Object(i.a)(s,[{key:"componentDidMount",value:function(){var e=this;this.timeoutId=window.setTimeout(function(){e.setState({mounted:!0})},400)}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.timeoutId)}},{key:"renderNotification",value:function(e){var t,n=this.props,r=n.square,i=n.badgeBorderColor,o=n.badgeBackgroundColor,a=n.topBadgeBorderColor,s=n.topBadgeBackgroundColor,u=n.withNotification,c=n.animateNotification,f=n.animateNotificationFirstRender,h=n.notificationType;if(this.state.mounted||!f){if(u)if("boolean"==typeof u){var p;t=l.a.createElement("span",{className:oe()((p={},Object(te.a)(p,fe.a.notification,!0),Object(te.a)(p,fe.a.notification_square,r),Object(te.a)(p,fe.a["notification_type_".concat(h)],h),p)),style:{boxShadow:"0 0 0 ".concat(de[e],"px ").concat(a||i),backgroundColor:s||o}})}else t=this.renderBadge(u>99?"99+":u,"top",e);else t=null;return c?l.a.createElement(ce,{animateFirstRender:f,transitionName:{show:fe.a.transition_show,hide:fe.a.transition_hide,enter:fe.a.transition_enter,leave:fe.a.transition_leave}},t):t}}},{key:"renderBadge",value:function(e,t,n){var r;if(!e)return null;var i,o,a,s=this.props,u=s.badgeBorderColor,c=s.badgeBackgroundColor,f=s.topBadgeBorderColor,h=s.topBadgeBackgroundColor,p=s.bottomBadgeBackgroundColor,d=s.bottomBadgeBorderColor,m=s.square;switch(typeof e){case"string":case"number":i=!0,a=e.toString().length>1,o=e;break;case"function":o=e({size:n})}return l.a.createElement("span",{className:oe()((r={},Object(te.a)(r,fe.a.badgeWrapper,!0),Object(te.a)(r,fe.a["badgeWrapper_position_".concat(t)],!0),Object(te.a)(r,fe.a.badgeWrapper_text,i),Object(te.a)(r,fe.a.badgeWrapper_longText,a),Object(te.a)(r,fe.a.badgeWrapper_square,m),r)),style:{boxShadow:"top"===t?"0 0 0 ".concat(de[n],"px ").concat(f||u):"0 0 0 ".concat(de[n],"px ").concat(d||u),backgroundColor:"top"===t?h||c:p||c}},o)}},{key:"render",value:function(){var t,n=this.props,r=n.topBadge,i=n.bottomBadge,o=n.withNotification,a=n.iconSize,s=n.verticalAlign,c=u()(n,he),f=pe[Q(a,Z)]||a||"l";return l.a.createElement("span",{className:oe()((t={},Object(te.a)(t,fe.a.root,!0),Object(te.a)(t,fe.a["root_size_".concat(f)],!0),t)),style:{verticalAlign:s}},l.a.createElement(e,Object.assign({},c,{iconSize:a})),this.renderNotification(f),o?void 0:this.renderBadge(r,"top",f),this.renderBadge(i,"bottom",f))}}]),s}(c.PureComponent);return n.displayName=(t=e).displayName||t.name||"Component(!)",n.defaultProps=re()({},e.defaultProps,{badgeBorderColor:"#FFFFFF",topBadgeBorderColor:null,topBadgeBackgroundColor:null,bottomBadgeBackgroundColor:null,bottomBadgeBorderColor:null,bottomBadge:null,topBadge:null,withNotification:!1,animateNotification:!0,animateNotificationFirstRender:!1,square:!1,verticalAlign:"top",notificationType:me}),se()(n,e),n}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return u}),n.d(t,"b",function(){return f}),n.d(t,"c",function(){return p});var r=n(3),i=n(20),o=n(96),a=n(186),s=3,u=function(){function e(e,t,n){void 0===t&&(t=new a.a),void 0===n&&(n=s),this._version=n,this._stack=[],this._stack.push({client:e,scope:t})}return e.prototype._invokeClient=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this.getStackTop();o&&o.client&&o.client[e]&&(t=o.client)[e].apply(t,r.d(n,[o.scope]))},e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e},e.prototype.pushScope=function(){var e=this.getStack(),t=e.length>0?e[e.length-1].scope:void 0,n=a.a.clone(t);return this.getStack().push({client:this.getClient(),scope:n}),n},e.prototype.popScope=function(){return void 0!==this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=Object(i.n)(),o=t;if(!t){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(e){a=e}o={originalException:e,syntheticException:a}}return this._invokeClient("captureException",e,r.a({},o,{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var o=this._lastEventId=Object(i.n)(),a=n;if(!n){var s=void 0;try{throw new Error(e)}catch(e){s=e}a={originalException:e,syntheticException:s}}return this._invokeClient("captureMessage",e,t,r.a({},a,{event_id:o})),o},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(i.n)();return this._invokeClient("captureEvent",e,r.a({},t,{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop();if(n.scope&&n.client){var o=n.client.getOptions&&n.client.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,u=o.maxBreadcrumbs,c=void 0===u?100:u;if(!(c<=0)){var l=Object(i.m)(),f=r.a({timestamp:l},e),h=s?Object(i.c)(function(){return s(f,t)}):f;null!==h&&n.scope.addBreadcrumb(h,Math.min(c,100))}}},e.prototype.setUser=function(e){var t=this.getStackTop();t.scope&&t.scope.setUser(e)},e.prototype.setTags=function(e){var t=this.getStackTop();t.scope&&t.scope.setTags(e)},e.prototype.setExtras=function(e){var t=this.getStackTop();t.scope&&t.scope.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop();t.scope&&t.client&&e(t.scope)},e.prototype.run=function(e){var t=l(this);try{e(this)}finally{l(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return o.a.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e,t){return void 0===t&&(t=!1),this._callExtensionMethod("startSpan",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=c().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);o.a.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function c(){var e=Object(i.g)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function l(e){var t=c(),n=p(t);return d(t,e),n}function f(){var t=c();return h(t)&&!p(t).isOlderThan(s)||d(t,new u),Object(i.j)()?function(t){try{var n=Object(i.d)(e,"domain"),r=n.active;if(!r)return p(t);if(!h(r)||p(r).isOlderThan(s)){var o=p(t).getStackTop();d(r,new u(o.client,a.a.clone(o.scope)))}return p(r)}catch(e){return p(t)}}(t):p(t)}function h(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function p(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub?e.__SENTRY__.hub:(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new u,e.__SENTRY__.hub)}function d(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}}).call(this,n(712)(e))}]);