PageSourceSearch

https://pcmap-dublin.netlify.app/static/js/2.7db46737.chunk.js

js pcmap-dublin.netlify.app collected 2026-10-03 11:14:58 UTC 1,896,528 bytes, 2 lines download raw bytes

1/*! For license information please see 2.7db46737.chunk.js.LICENSE.txt */
2(this.webpackJsonptemplate=this.webpackJsonptemplate||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(227)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ke})),n.d(t,"b",(function(){return ye})),n.d(t,"d",(function(){return De}));var r=n(80),i=n(0),o=n.n(i),a=n(126),s=n.n(a),l=n(127),c=n(128),u=n(81),d=n(39),h=n.n(d);function p(){return(p=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)}var f=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},g=Object.freeze([]),v=Object.freeze({});function y(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function x(e){return e&&"string"==typeof e.styledComponentId}var w="undefined"!=typeof e&&(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_ATTR||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_ATTR)||"data-styled",_="undefined"!=typeof window&&"HTMLElement"in window,E=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof e&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_DISABLE_SPEEDY&&""!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_DISABLE_SPEEDY?"false"!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_DISABLE_SPEEDY&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof e&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_DISABLE_SPEEDY&&""!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_DISABLE_SPEEDY&&("false"!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_DISABLE_SPEEDY&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).SC_DISABLE_SPEEDY)),S={};function M(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var T=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&M(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),A=new Map,O=new Map,C=1,R=function(e){if(A.has(e))return A.get(e);for(;O.has(C);)C++;var t=C++;
vendor: 14,636 bytes, line 2
2return A.set(e,t),O.set(t,e),t},P=function(e){return O.get(e)},I=function(e,t){t>=C&&(C=t+1),A.set(e,t),O.set(t,e)},L="style["+w+'][data-styled-version="5.3.5"]',k=new RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),D=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},N=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var s=a.match(k);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(I(c,l),D(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},U=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},j=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(w))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(w,"active"),r.setAttribute("data-styled-version","5.3.5");var a=U();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},F=function(){function e(e){var t=this.element=j(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}M(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),B=function(){function e(e){var t=this.element=j(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),z=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),H=_,V={isServer:!_,useCSSOMInjection:!E},W=function(){function e(e,t,n){void 0===e&&(e=v),void 0===t&&(t={}),this.options=p({},V,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&_&&H&&(H=!1,function(e){for(var t=document.querySelectorAll(L),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(w)&&(N(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return R(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(p({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new z(i):r?new F(i):new B(i),new T(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(R(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(R(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(R(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=P(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var l=w+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),G=/(a)(d)/gi,q=function(e){return String.fromCharCode(e+(e>25?39:97))};function X(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=q(t%52)+n;return(q(t%52)+n).replace(G,"$1-$2")}var Y=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Z=function(e){return Y(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(y(n)&&!x(n))return!1}return!0}var $=Z("5.3.5"),J=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&K(e),this.componentId=t,this.baseHash=Y($,t),this.baseStyle=n,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=ge(this.rules,e,t,n).join(""),a=X(Y(this.baseHash,o)>>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=Y(this.baseHash,n.hash),u="",d=0;d<l;d++){var h=this.rules[d];if("string"==typeof h)u+=h;else if(h){var p=ge(h,e,t,n),f=Array.isArray(p)?p.join(""):p;c=Y(c,f+d),u+=f}}if(u){var m=X(c>>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}i.push(m)}}return i.join(" ")},e}(),Q=/^\s*\/\/.*$/gm,ee=[":","[",".","#"];function te(e){var t,n,r,i,o=void 0===e?v:e,a=o.options,s=void 0===a?v:a,c=o.plugins,u=void 0===c?g:c,d=new l.a(s),h=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,c,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){h.push(e)})),f=function(e,r,o){return 0===r&&-1!==ee.indexOf(o[n.length])||o.match(i)?e:"."+t};function m(e,o,a,s){void 0===s&&(s="&");var l=e.replace(Q,""),c=o&&a?a+" "+o+" { "+l+" }":l;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),d(a||!o?"":o,c)}return d.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,f))},p,function(e){if(-2===e){var t=h;return h=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||M(15),Y(e,t.name)}),5381).toString():"",m}var ne=o.a.createContext(),re=(ne.Consumer,o.a.createContext()),ie=(re.Consumer,new W),oe=te();function ae(){return Object(i.useContext)(ne)||ie}function se(){return Object(i.useContext)(re)||oe}function le(e){var t=Object(i.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ae(),l=Object(i.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=Object(i.useMemo)((function(){return te({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(i.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.a.createElement(ne.Provider,{value:l},o.a.createElement(re.Provider,{value:c},e.children))}var ce=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=oe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return M(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),ue=/([A-Z])/,de=/([A-Z])/g,he=/^ms-/,pe=function(e){return"-"+e.toLowerCase()};function fe(e){return ue.test(e)?e.replace(de,pe).replace(he,"-ms-"):e}var me=function(e){return null==e||!1===e||""===e};function ge(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=ge(e[a],t,n,r))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return me(e)?"":x(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ge(e(t),t,n,r):e instanceof ce?n?(e.inject(n,r),e.getName(r)):e:m(e)?function e(t,n){var r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!me(t[a])&&(Array.isArray(t[a])&&t[a].isCss||y(t[a])?o.push(fe(a)+":",t[a],";"):m(t[a])?o.push.apply(o,e(t[a],a)):o.push(fe(a)+": "+(r=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in c.a?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString();var l}var ve=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ye(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return y(e)||m(e)?ve(ge(f(g,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ve(ge(f(e,n)))}new Set;var be=function(e,t,n){return void 0===n&&(n=v),e.theme!==n.theme&&e.theme||t||n.theme},xe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function _e(e){return e.replace(xe,"-").replace(we,"")}var Ee=function(e){return X(Z(e)>>>0)};function Se(e){return"string"==typeof e&&!0}var Me=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Te=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ae(e,t,n){var r=e[n];Me(t)&&Me(r)?Oe(r,t):e[n]=t}function Oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(Me(a))for(var s in a)Te(s)&&Ae(e,a[s],s)}return e}var Ce=o.a.createContext();Ce.Consumer;var Re={};function Pe(e,t,n){var r=x(e),a=!Se(e),s=t.attrs,l=void 0===s?g:s,c=t.componentId,d=void 0===c?function(e,t){var n="string"!=typeof e?"sc":_e(e);Re[n]=(Re[n]||0)+1;var r=n+"-"+Ee("5.3.5"+n+Re[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):c,f=t.displayName,m=void 0===f?function(e){return Se(e)?"styled."+e:"Styled("+b(e)+")"}(e):f,w=t.displayName&&t.componentId?_e(t.displayName)+"-"+t.componentId:t.componentId||d,_=r&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,E=t.shouldForwardProp;r&&e.shouldForwardProp&&(E=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var S,M=new J(n,w,r?e.componentStyle:void 0),T=M.isStatic&&0===l.length,A=function(e,t){return function(e,t,n,r){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,d=e.styledComponentId,h=e.target,f=function(e,t,n){void 0===e&&(e=v);var r=p({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in y(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(be(t,Object(i.useContext)(Ce),s)||v,t,o),m=f[0],g=f[1],b=function(e,t,n,r){var i=ae(),o=se();return t?e.generateAndInjectStyles(v,i,o):e.generateAndInjectStyles(n,i,o)}(a,r,m),x=n,w=g.$as||t.$as||g.as||t.as||h,_=Se(w),E=g!==t?p({},t,{},g):t,S={};for(var M in E)"$"!==M[0]&&"as"!==M&&("forwardedAs"===M?S.as=E[M]:(c?c(M,u.a,w):!_||Object(u.a)(M))&&(S[M]=E[M]));return t.style&&g.style!==t.style&&(S.style=p({},t.style,{},g.style)),S.className=Array.prototype.concat(l,d,b!==d?b:null,t.className,g.className).filter(Boolean).join(" "),S.ref=x,Object(i.createElement)(w,S)}(S,e,t,T)};return A.displayName=m,(S=o.a.forwardRef(A)).attrs=_,S.componentStyle=M,S.displayName=m,S.shouldForwardProp=E,S.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):g,S.styledComponentId=w,S.target=r?e.target:e,S.withComponent=function(e){var r=t.componentId,i=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}(t,["componentId"]),o=r&&r+"-"+(Se(e)?e:_e(b(e)));return Pe(e,p({},i,{attrs:_,componentId:o}),n)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Oe({},e.defaultProps,t):t}}),S.toString=function(){return"."+S.styledComponentId},a&&h()(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var Ie=function(e){return function e(t,n,i){if(void 0===i&&(i=v),!Object(r.isValidElementType)(n))return M(1,String(n));var o=function(){return t(n,i,ye.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,p({},i,{},r))},o.attrs=function(r){return e(t,n,p({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},o}(Pe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ie[e]=Ie(e)}));var Le=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(ge(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function ke(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=ye.apply(void 0,[e].concat(n)),s="sc-global-"+Ee(JSON.stringify(a)),l=new Le(a,s);function c(e){var t=ae(),n=se(),r=Object(i.useContext)(Ce),o=Object(i.useRef)(t.allocateGSInstance(s)).current;return t.server&&u(o,e,t,r,n),Object(i.useLayoutEffect)((function(){if(!t.server)return u(o,e,t,r,n),function(){return l.removeStyles(o,t)}}),[o,e,t,r,n]),null}function u(e,t,n,r,i){if(l.isStatic)l.renderStyles(e,S,n,i);else{var o=p({},t,{theme:be(t,r,c.defaultProps)});
2l.renderStyles(e,o,n,i)}}return o.a.memo(c)}function De(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=ye.apply(void 0,[e].concat(n)).join(""),o=Ee(i);return new ce(o,i)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=U();return"<style "+[n&&'nonce="'+n+'"',w+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?M(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return M(2);var n=((t={})[w]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=U();return r&&(n.nonce=r),[o.a.createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?M(2):o.a.createElement(le,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return M(3)}}();t.c=Ie}).call(this,n(231))},function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return ey})),n.d(t,"b",(function(){return Vb})),n.d(t,"c",(function(){return iy})),n.d(t,"d",(function(){return Of})),n.d(t,"e",(function(){return Lf})),n.d(t,"f",(function(){return Cf})),n.d(t,"g",(function(){return Pf})),n.d(t,"h",(function(){return If})),n.d(t,"i",(function(){return Rf})),n.d(t,"j",(function(){return yb})),n.d(t,"k",(function(){return sx})),n.d(t,"l",(function(){return Ef})),n.d(t,"m",(function(){return xm})),n.d(t,"n",(function(){return Qf})),n.d(t,"o",(function(){return vm}));var i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x,w,_,E,S,M,T,A,O,C,R,P,I,L,k,D,N,U,j,F,B,z,H,V,W,G,q,X,Y,Z,K,$,J,Q,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,he,pe,fe,me,ge=n(2),ve=n(0),ye=n.n(ve),be=n(1),xe=n(82),we=n.n(xe),_e=function(){return _e=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},_e.apply(this,arguments)};function Ee(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}function Se(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function Me(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}const Te=50;function Ae(e,t,n,r){var i,o,a,s,l,c,u,d,h,p,f,m,g;if(Array.isArray(t)){const l=t.length?t.join(";;")+";;":"",c=null!==(o=null===(i=e[l])||void 0===i?void 0:i[n])&&void 0!==o?o:null===(a=e[l])||void 0===a?void 0:a.en,u=c?c.split(";;"):t.map((t=>Ae(e,t,n)));return null!==(s=null!==u&&void 0!==u?u:r)&&void 0!==s?s:t}const v=String(t),y=v&&"".concat(v.slice(0,Te)).concat(v.length>Te?"...":"");return null!==(g=null!==(m=null!==(p=null!==(d=null!==(c=null===(l=e[y])||void 0===l?void 0:l[n])&&void 0!==c?c:null===(u=e[y])||void 0===u?void 0:u.en)&&void 0!==d?d:null===(h=e[t])||void 0===h?void 0:h[n])&&void 0!==p?p:null===(f=e[t])||void 0===f?void 0:f.en)&&void 0!==m?m:r)&&void 0!==g?g:t}const Oe="en";function Ce(){var e;const t=window.location.pathname.split("/"),n=null===t||void 0===t?void 0:t[1],r=new URLSearchParams(window.location.search),i=null!==(e=r.get("pcm_lang"))&&void 0!==e?e:r.get("language");return n||i||Oe}const Re=ye.a.createContext({sendMessage:()=>{}});function Pe(e){const t=ye.a.useMemo((()=>{const e=function(e){var t,n,r;null===(r=null===(n=null===(t=null===window||void 0===window?void 0:window.webkit)||void 0===t?void 0:t.messageHandlers)||void 0===n?void 0:n.mainMessageHandler)||void 0===r||r.postMessage(e)},t=function(e){var t;null===(t=null===window||void 0===window?void 0:window.android)||void 0===t||t.postMessage(e)};return{sendMessage:function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=Object.assign({messageType:n},r);e&&e(JSON.stringify(i)),t&&t(JSON.stringify(i))}}}),[]);return ye.a.createElement(Re.Provider,Object.assign({value:t},e))}var Ie="object"==typeof e&&e&&e.Object===Object&&e,Le="object"==typeof self&&self&&self.Object===Object&&self,ke=Ie||Le||Function("return this")(),De=ke.Symbol,Ne=Object.prototype,Ue=Ne.hasOwnProperty,je=Ne.toString,Fe=De?De.toStringTag:void 0;var Be=Object.prototype.toString;
vendor: 69,766 bytes, line 2
2var ze="[object Null]",He="[object Undefined]",Ve=De?De.toStringTag:void 0;function We(e){return null==e?void 0===e?He:ze:Ve&&Ve in Object(e)?function(e){var t=Ue.call(e,Fe),n=e[Fe];try{e[Fe]=void 0;var r=!0}catch(Cg){}var i=je.call(e);return r&&(t?e[Fe]=n:delete e[Fe]),i}(e):function(e){return Be.call(e)}(e)}function Ge(e){return null!=e&&"object"==typeof e}var qe="[object Symbol]";function Xe(e){return"symbol"==typeof e||Ge(e)&&We(e)==qe}var Ye=NaN;function Ze(e){return"number"==typeof e?e:Xe(e)?Ye:+e}function Ke(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}var $e=Array.isArray,Je=1/0,Qe=De?De.prototype:void 0,et=Qe?Qe.toString:void 0;function tt(e){if("string"==typeof e)return e;if($e(e))return Ke(e,tt)+"";if(Xe(e))return et?et.call(e):"";var t=e+"";return"0"==t&&1/e==-Je?"-0":t}function nt(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=tt(n),r=tt(r)):(n=Ze(n),r=Ze(r)),i=e(n,r)}return i}}var rt=nt((function(e,t){return e+t}),0),it=/\s/;function ot(e){for(var t=e.length;t--&&it.test(e.charAt(t)););return t}var at=/^\s+/;function st(e){return e?e.slice(0,ot(e)+1).replace(at,""):e}function lt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var ct=NaN,ut=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ht=/^0o[0-7]+$/i,pt=parseInt;function ft(e){if("number"==typeof e)return e;if(Xe(e))return ct;if(lt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=lt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=st(e);var n=dt.test(e);return n||ht.test(e)?pt(e.slice(2),n?2:8):ut.test(e)?ct:+e}var mt=1/0,gt=17976931348623157e292;function vt(e){return e?(e=ft(e))===mt||e===-mt?(e<0?-1:1)*gt:e===e?e:0:0===e?e:0}function yt(e){var t=vt(e),n=t%1;return t===t?n?t-n:t:0}function bt(e){return e}var xt="[object AsyncFunction]",wt="[object Function]",_t="[object GeneratorFunction]",Et="[object Proxy]";function St(e){if(!lt(e))return!1;var t=We(e);return t==wt||t==_t||t==xt||t==Et}var Mt=ke["__core-js_shared__"],Tt=function(){var e=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var At=Function.prototype.toString;function Ot(e){if(null!=e){try{return At.call(e)}catch(Cg){}try{return e+""}catch(Cg){}}return""}var Ct=/^\[object .+?Constructor\]$/,Rt=Function.prototype,Pt=Object.prototype,It=Rt.toString,Lt=Pt.hasOwnProperty,kt=RegExp("^"+It.call(Lt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dt(e){return!(!lt(e)||function(e){return!!Tt&&Tt in e}(e))&&(St(e)?kt:Ct).test(Ot(e))}function Nt(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Dt(n)?n:void 0}var Ut=Nt(ke,"WeakMap"),jt=Ut&&new Ut,Ft=jt?function(e,t){return jt.set(e,t),e}:bt,Bt=Object.create,zt=function(){function e(){}return function(t){if(!lt(t))return{};if(Bt)return Bt(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ht(e){return function(){var t=arguments;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]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zt(e.prototype),r=e.apply(n,t);return lt(r)?r:n}}var Vt=1;function Wt(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)}var Gt=Math.max;function qt(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,l=t.length,c=Gt(o-a,0),u=Array(l+c),d=!r;++s<l;)u[s]=t[s];for(;++i<a;)(d||i<o)&&(u[n[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u}var Xt=Math.max;function Yt(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,l=-1,c=t.length,u=Xt(o-s,0),d=Array(u+c),h=!r;++i<u;)d[i]=e[i];for(var p=i;++l<c;)d[p+l]=t[l];for(;++a<s;)(h||i<o)&&(d[p+n[a]]=e[i++]);return d}function Zt(){}var Kt=4294967295;function $t(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Kt,this.__views__=[]}function Jt(){}$t.prototype=zt(Zt.prototype),$t.prototype.constructor=$t;var Qt=jt?function(e){return jt.get(e)}:Jt,en={},tn=Object.prototype.hasOwnProperty;function nn(e){for(var t=e.name+"",n=en[t],r=tn.call(en,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function rn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function on(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function an(e){if(e instanceof $t)return e.clone();var t=new rn(e.__wrapped__,e.__chain__);return t.__actions__=on(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}rn.prototype=zt(Zt.prototype),rn.prototype.constructor=rn;var sn=Object.prototype.hasOwnProperty;function ln(e){if(Ge(e)&&!$e(e)&&!(e instanceof $t)){if(e instanceof rn)return e;if(sn.call(e,"__wrapped__"))return an(e)}return new rn(e)}function cn(e){var t=nn(e),n=ln[t];if("function"!=typeof n||!(t in $t.prototype))return!1;if(e===n)return!0;var r=Qt(n);return!!r&&e===r[0]}ln.prototype=Zt.prototype,ln.prototype.constructor=ln;var un=Date.now;function dn(e){var t=0,n=0;return function(){var r=un(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var hn=dn(Ft),pn=/\{\n\/\* \[wrapped with (.+)\] \*/,fn=/,? & /;var mn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function gn(e){return function(){return e}}var vn=function(){try{var e=Nt(Object,"defineProperty");return e({},"",{}),e}catch(Cg){}}(),yn=vn?function(e,t){return vn(e,"toString",{configurable:!0,enumerable:!1,value:gn(t),writable:!0})}:bt,bn=dn(yn);function xn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wn(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function _n(e){return e!==e}function En(e,t,n){return t===t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):wn(e,_n,n)}function Sn(e,t){return!!(null==e?0:e.length)&&En(e,t,0)>-1}var Mn=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function Tn(e,t,n){var r=t+"";return bn(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(mn,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return xn(Mn,(function(n){var r="_."+n[0];t&n[1]&&!Sn(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(pn);return t?t[1].split(fn):[]}(r),n)))}var An=1,On=2,Cn=4,Rn=8,Pn=32,In=64;function Ln(e,t,n,r,i,o,a,s,l,c){var u=t&Rn;t|=u?Pn:In,(t&=~(u?In:Pn))&Cn||(t&=~(An|On));var d=[e,t,i,u?o:void 0,u?a:void 0,u?void 0:o,u?void 0:a,s,l,c],h=n.apply(void 0,d);return cn(e)&&hn(h,d),h.placeholder=r,Tn(h,e,t)}function kn(e){return e.placeholder}var Dn=9007199254740991,Nn=/^(?:0|[1-9]\d*)$/;function Un(e,t){var n=typeof e;return!!(t=null==t?Dn:t)&&("number"==n||"symbol"!=n&&Nn.test(e))&&e>-1&&e%1==0&&e<t}var jn=Math.min;var Fn="__lodash_placeholder__";function Bn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==Fn||(e[n]=Fn,o[i++]=n)}return o}var zn=1,Hn=2,Vn=8,Wn=16,Gn=128,qn=512;function Xn(e,t,n,r,i,o,a,s,l,c){var u=t&Gn,d=t&zn,h=t&Hn,p=t&(Vn|Wn),f=t&qn,m=h?void 0:Ht(e);return function g(){for(var v=arguments.length,y=Array(v),b=v;b--;)y[b]=arguments[b];if(p)var x=kn(g),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,x);if(r&&(y=qt(y,r,i,p)),o&&(y=Yt(y,o,a,p)),v-=w,p&&v<c){var _=Bn(y,x);return Ln(e,t,Xn,g.placeholder,n,y,_,s,l,c-v)}var E=d?n:this,S=h?E[e]:e;return v=y.length,s?y=function(e,t){for(var n=e.length,r=jn(t.length,n),i=on(e);r--;){var o=t[r];e[r]=Un(o,n)?i[o]:void 0}return e}(y,s):f&&v>1&&y.reverse(),u&&l<v&&(y.length=l),this&&this!==ke&&this instanceof g&&(S=m||Ht(S)),S.apply(E,y)}}var Yn=1;var Zn="__lodash_placeholder__",Kn=1,$n=2,Jn=4,Qn=8,er=128,tr=256,nr=Math.min;var rr="Expected a function",ir=1,or=2,ar=8,sr=16,lr=32,cr=64,ur=Math.max;function dr(e,t,n,r,i,o,a,s){var l=t&or;if(!l&&"function"!=typeof e)throw new TypeError(rr);var c=r?r.length:0;if(c||(t&=~(lr|cr),r=i=void 0),a=void 0===a?a:ur(yt(a),0),s=void 0===s?s:yt(s),c-=i?i.length:0,t&cr){var u=r,d=i;r=i=void 0}var h=l?void 0:Qt(e),p=[e,t,n,r,i,u,d,o,a,s];if(h&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<(Kn|$n|er),a=r==er&&n==Qn||r==er&&n==tr&&e[7].length<=t[8]||r==(er|tr)&&t[7].length<=t[8]&&n==Qn;if(!o&&!a)return e;r&Kn&&(e[2]=t[2],i|=n&Kn?0:Jn);var s=t[3];if(s){var l=e[3];e[3]=l?qt(l,s,t[4]):s,e[4]=l?Bn(e[3],Zn):t[4]}(s=t[5])&&(l=e[5],e[5]=l?Yt(l,s,t[6]):s,e[6]=l?Bn(e[5],Zn):t[6]),(s=t[7])&&(e[7]=s),r&er&&(e[8]=null==e[8]?t[8]:nr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(p,h),e=p[0],t=p[1],n=p[2],r=p[3],i=p[4],!(s=p[9]=void 0===p[9]?l?0:e.length:ur(p[9]-c,0))&&t&(ar|sr)&&(t&=~(ar|sr)),t&&t!=ir)f=t==ar||t==sr?function(e,t,n){var r=Ht(e);return function i(){for(var o=arguments.length,a=Array(o),s=o,l=kn(i);s--;)a[s]=arguments[s];var c=o<3&&a[0]!==l&&a[o-1]!==l?[]:Bn(a,l);return(o-=c.length)<n?Ln(e,t,Xn,i.placeholder,void 0,a,c,void 0,void 0,n-o):Wt(this&&this!==ke&&this instanceof i?r:e,this,a)}}(e,t,s):t!=lr&&t!=(ir|lr)||i.length?Xn.apply(void 0,p):function(e,t,n,r){var i=t&Yn,o=Ht(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=r.length,u=Array(c+s),d=this&&this!==ke&&this instanceof t?o:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++a];return Wt(d,i?n:this,u)}}(e,t,n,r);else var f=function(e,t,n){var r=t&Vt,i=Ht(e);return function t(){return(this&&this!==ke&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Tn((h?Ft:hn)(f,p),e,t)}var hr=128;function pr(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,dr(e,hr,void 0,void 0,void 0,void 0,t)}function fr(e,t,n){"__proto__"==t&&vn?vn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function mr(e,t){return e===t||e!==e&&t!==t}var gr=Object.prototype.hasOwnProperty;function vr(e,t,n){var r=e[t];gr.call(e,t)&&mr(r,n)&&(void 0!==n||t in e)||fr(e,t,n)}function yr(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?fr(n,s,l):vr(n,s,l)}return n}var br=Math.max;function xr(e,t,n){return t=br(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=br(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),Wt(e,this,s)}}function wr(e,t){return bn(xr(e,t,bt),e+"")}var _r=9007199254740991;function Er(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=_r}function Sr(e){return null!=e&&Er(e.length)&&!St(e)}function Mr(e,t,n){if(!lt(n))return!1;var r=typeof t;return!!("number"==r?Sr(n)&&Un(t,n.length):"string"==r&&t in n)&&mr(n[t],e)}function Tr(e){return wr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&Mr(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}var Ar=Object.prototype;function Or(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ar)}function Cr(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Rr(e){return Ge(e)&&"[object Arguments]"==We(e)}var Pr=Object.prototype,Ir=Pr.hasOwnProperty,Lr=Pr.propertyIsEnumerable,kr=Rr(function(){return arguments}())?Rr:function(e){return Ge(e)&&Ir.call(e,"callee")&&!Lr.call(e,"callee")};function Dr(){return!1}var Nr="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ur=Nr&&"object"==typeof r&&r&&!r.nodeType&&r,jr=Ur&&Ur.exports===Nr?ke.Buffer:void 0,Fr=(jr?jr.isBuffer:void 0)||Dr,Br={};function zr(e){return function(t){return e(t)}}Br["[object Float32Array]"]=Br["[object Float64Array]"]=Br["[object Int8Array]"]=Br["[object Int16Array]"]=Br["[object Int32Array]"]=Br["[object Uint8Array]"]=Br["[object Uint8ClampedArray]"]=Br["[object Uint16Array]"]=Br["[object Uint32Array]"]=!0,Br["[object Arguments]"]=Br["[object Array]"]=Br["[object ArrayBuffer]"]=Br["[object Boolean]"]=Br["[object DataView]"]=Br["[object Date]"]=Br["[object Error]"]=Br["[object Function]"]=Br["[object Map]"]=Br["[object Number]"]=Br["[object Object]"]=Br["[object RegExp]"]=Br["[object Set]"]=Br["[object String]"]=Br["[object WeakMap]"]=!1;var Hr="object"==typeof exports&&exports&&!exports.nodeType&&exports,Vr=Hr&&"object"==typeof r&&r&&!r.nodeType&&r,Wr=Vr&&Vr.exports===Hr&&Ie.process,Gr=function(){try{var e=Vr&&Vr.require&&Vr.require("util").types;return e||Wr&&Wr.binding&&Wr.binding("util")}catch(Cg){}}(),qr=Gr&&Gr.isTypedArray,Xr=qr?zr(qr):function(e){return Ge(e)&&Er(e.length)&&!!Br[We(e)]},Yr=Object.prototype.hasOwnProperty;function Zr(e,t){var n=$e(e),r=!n&&kr(e),i=!n&&!r&&Fr(e),o=!n&&!r&&!i&&Xr(e),a=n||r||i||o,s=a?Cr(e.length,String):[],l=s.length;for(var c in e)!t&&!Yr.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Un(c,l))||s.push(c);return s}function Kr(e,t){return function(n){return e(t(n))}}var $r=Kr(Object.keys,Object),Jr=Object.prototype.hasOwnProperty;function Qr(e){if(!Or(e))return $r(e);var t=[];for(var n in Object(e))Jr.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ei(e){return Sr(e)?Zr(e):Qr(e)}var ti=Object.prototype.hasOwnProperty,ni=Tr((function(e,t){if(Or(t)||Sr(t))yr(t,ei(t),e);else for(var n in t)ti.call(t,n)&&vr(e,n,t[n])}));var ri=Object.prototype.hasOwnProperty;function ii(e){if(!lt(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Or(e),n=[];for(var r in e)("constructor"!=r||!t&&ri.call(e,r))&&n.push(r);return n}function oi(e){return Sr(e)?Zr(e,!0):ii(e)}var ai=Tr((function(e,t){yr(t,oi(t),e)})),si=Tr((function(e,t,n,r){yr(t,oi(t),e,r)})),li=Tr((function(e,t,n,r){yr(t,ei(t),e,r)})),ci=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ui=/^\w*$/;function di(e,t){if($e(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Xe(e))||(ui.test(e)||!ci.test(e)||null!=t&&e in Object(t))}var hi=Nt(Object,"create");var pi=Object.prototype.hasOwnProperty;var fi=Object.prototype.hasOwnProperty;function mi(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])}}function gi(e,t){for(var n=e.length;n--;)if(mr(e[n][0],t))return n;return-1}mi.prototype.clear=function(){this.__data__=hi?hi(null):{},this.size=0},mi.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},mi.prototype.get=function(e){var t=this.__data__;if(hi){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return pi.call(t,e)?t[e]:void 0},mi.prototype.has=function(e){var t=this.__data__;return hi?void 0!==t[e]:fi.call(t,e)},mi.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=hi&&void 0===t?"__lodash_hash_undefined__":t,this};var vi=Array.prototype.splice;function yi(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])}}yi.prototype.clear=function(){this.__data__=[],this.size=0},yi.prototype.delete=function(e){var t=this.__data__,n=gi(t,e);return!(n<0)&&(n==t.length-1?t.pop():vi.call(t,n,1),--this.size,!0)},yi.prototype.get=function(e){var t=this.__data__,n=gi(t,e);return n<0?void 0:t[n][1]},yi.prototype.has=function(e){return gi(this.__data__,e)>-1},yi.prototype.set=function(e,t){var n=this.__data__,r=gi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var bi=Nt(ke,"Map");function xi(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function wi(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])}}wi.prototype.clear=function(){this.size=0,this.__data__={hash:new mi,map:new(bi||yi),string:new mi}},wi.prototype.delete=function(e){var t=xi(this,e).delete(e);return this.size-=t?1:0,t},wi.prototype.get=function(e){return xi(this,e).get(e)},wi.prototype.has=function(e){return xi(this,e).has(e)},wi.prototype.set=function(e,t){var n=xi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var _i="Expected a function";function Ei(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(_i);var n=function(){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(Ei.Cache||wi),n}Ei.Cache=wi;var Si=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mi=/\\(\\)?/g,Ti=function(e){var t=Ei(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Si,(function(e,n,r,i){t.push(r?i.replace(Mi,"$1"):n||e)})),t}));function Ai(e){return null==e?"":tt(e)}function Oi(e,t){return $e(e)?e:di(e,t)?[e]:Ti(Ai(e))}var Ci=1/0;function Ri(e){if("string"==typeof e||Xe(e))return e;var t=e+"";return"0"==t&&1/e==-Ci?"-0":t}function Pi(e,t){for(var n=0,r=(t=Oi(t,e)).length;null!=e&&n<r;)e=e[Ri(t[n++])];return n&&n==r?e:void 0}function Ii(e,t,n){var r=null==e?void 0:Pi(e,t);return void 0===r?n:r}function Li(e,t){for(var n=-1,r=t.length,i=Array(r),o=null==e;++n<r;)i[n]=o?void 0:Ii(e,t[n]);return i}function ki(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Di=De?De.isConcatSpreadable:void 0;function Ni(e){return $e(e)||kr(e)||!!(Di&&e&&e[Di])}function Ui(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Ni),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?Ui(s,t-1,n,r,i):ki(i,s):r||(i[i.length]=s)}return i}function ji(e){return(null==e?0:e.length)?Ui(e,1):[]}function Fi(e){return bn(xr(e,void 0,ji),e+"")}var Bi=Fi(Li),zi=Kr(Object.getPrototypeOf,Object),Hi="[object Object]",Vi=Function.prototype,Wi=Object.prototype,Gi=Vi.toString,qi=Wi.hasOwnProperty,Xi=Gi.call(Object);function Yi(e){if(!Ge(e)||We(e)!=Hi)return!1;var t=zi(e);if(null===t)return!0;var n=qi.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Gi.call(n)==Xi}var Zi="[object DOMException]",Ki="[object Error]";function $i(e){if(!Ge(e))return!1;var t=We(e);return t==Ki||t==Zi||"string"==typeof e.message&&"string"==typeof e.name&&!Yi(e)}var Ji=wr((function(e,t){try{return Wt(e,void 0,t)}catch(Cg){return $i(Cg)?Cg:new Error(Cg)}})),Qi="Expected a function";function eo(e,t){var n;if("function"!=typeof t)throw new TypeError(Qi);return e=yt(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var to=wr((function(e,t,n){var r=1;if(n.length){var i=Bn(n,kn(to));r|=32}return dr(e,r,t,n,i)}));to.placeholder={};var no=Fi((function(e,t){return xn(t,(function(t){t=Ri(t),fr(e,t,to(e[t],e))})),e})),ro=wr((function(e,t,n){var r=3;if(n.length){var i=Bn(n,kn(ro));r|=32}return dr(t,r,e,n,i)}));function io(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 oo(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:io(e,t,n)}ro.placeholder={};var ao=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function so(e){return ao.test(e)}var lo="\\ud800-\\udfff",co="["+lo+"]",uo="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ho="\\ud83c[\\udffb-\\udfff]",po="[^"+lo+"]",fo="(?:\\ud83c[\\udde6-\\uddff]){2}",mo="[\\ud800-\\udbff][\\udc00-\\udfff]",go="(?:"+uo+"|"+ho+")"+"?",vo="[\\ufe0e\\ufe0f]?",yo=vo+go+("(?:\\u200d(?:"+[po,fo,mo].join("|")+")"+vo+go+")*"),bo="(?:"+[po+uo+"?",uo,fo,mo,co].join("|")+")",xo=RegExp(ho+"(?="+ho+")|"+bo+yo,"g");function wo(e){return so(e)?function(e){return e.match(xo)||[]}(e):function(e){return e.split("")}(e)}function _o(e){return function(t){var n=so(t=Ai(t))?wo(t):void 0,r=n?n[0]:t.charAt(0),i=n?oo(n,1).join(""):t.slice(1);return r[e]()+i}}var Eo=_o("toUpperCase");function So(e){return Eo(Ai(e).toLowerCase())}function Mo(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function To(e){return function(t){return null==e?void 0:e[t]}}var Ao=To({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Oo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Co=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function Ro(e){return(e=Ai(e))&&e.replace(Oo,Ao).replace(Co,"")}var Po=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Io=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Lo="\\ud800-\\udfff",ko="\\u2700-\\u27bf",Do="a-z\\xdf-\\xf6\\xf8-\\xff",No="A-Z\\xc0-\\xd6\\xd8-\\xde",Uo="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",jo="["+Uo+"]",Fo="\\d+",Bo="["+ko+"]",zo="["+Do+"]",Ho="[^"+Lo+Uo+Fo+ko+Do+No+"]",Vo="(?:\\ud83c[\\udde6-\\uddff]){2}",Wo="[\\ud800-\\udbff][\\udc00-\\udfff]",Go="["+No+"]",qo="(?:"+zo+"|"+Ho+")",Xo="(?:"+Go+"|"+Ho+")",Yo="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Zo="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ko="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",$o="[\\ufe0e\\ufe0f]?",Jo=$o+Ko+("(?:\\u200d(?:"+["[^"+Lo+"]",Vo,Wo].join("|")+")"+$o+Ko+")*"),Qo="(?:"+[Bo,Vo,Wo].join("|")+")"+Jo,ea=RegExp([Go+"?"+zo+"+"+Yo+"(?="+[jo,Go,"$"].join("|")+")",Xo+"+"+Zo+"(?="+[jo,Go+qo,"$"].join("|")+")",Go+"?"+qo+"+"+Yo,Go+"+"+Zo,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fo,Qo].join("|"),"g");function ta(e,t,n){return e=Ai(e),void 0===(t=n?void 0:t)?function(e){return Io.test(e)}(e)?function(e){return e.match(ea)||[]}(e):function(e){return e.match(Po)||[]}(e):e.match(t)||[]}var na=RegExp("['\u2019]","g");function ra(e){return function(t){return Mo(ta(Ro(t).replace(na,"")),e,"")}}var ia=ra((function(e,t,n){return t=t.toLowerCase(),e+(n?So(t):t)}));var oa=ke.isFinite,aa=Math.min;function sa(e){var t=Math[e];return function(e,n){if(e=ft(e),(n=null==n?0:aa(yt(n),292))&&oa(e)){var r=(Ai(e)+"e").split("e");return+((r=(Ai(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var la=sa("ceil");function ca(e){var t=ln(e);return t.__chain__=!0,t}var ua=Math.ceil,da=Math.max;function ha(e,t,n){return e===e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function pa(e){var t=this.__data__=new yi(e);this.size=t.size}function fa(e,t){return e&&yr(t,ei(t),e)}pa.prototype.clear=function(){this.__data__=new yi,this.size=0},pa.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},pa.prototype.get=function(e){return this.__data__.get(e)},pa.prototype.has=function(e){return this.__data__.has(e)},pa.prototype.set=function(e,t){var n=this.__data__;if(n instanceof yi){var r=n.__data__;if(!bi||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new wi(r)}return n.set(e,t),this.size=n.size,this};var ma="object"==typeof exports&&exports&&!exports.nodeType&&exports,ga=ma&&"object"==typeof r&&r&&!r.nodeType&&r,va=ga&&ga.exports===ma?ke.Buffer:void 0,ya=va?va.allocUnsafe:void 0;function ba(e,t){if(t)return e.slice();var n=e.length,r=ya?ya(n):new e.constructor(n);return e.copy(r),r}function xa(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 wa(){return[]}var _a=Object.prototype.propertyIsEnumerable,Ea=Object.getOwnPropertySymbols,Sa=Ea?function(e){return null==e?[]:(e=Object(e),xa(Ea(e),(function(t){return _a.call(e,t)})))}:wa;var Ma=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)ki(t,Sa(e)),e=zi(e);return t}:wa;function Ta(e,t,n){var r=t(e);return $e(e)?r:ki(r,n(e))}function Aa(e){return Ta(e,ei,Sa)}function Oa(e){return Ta(e,oi,Ma)}var Ca=Nt(ke,"DataView"),Ra=Nt(ke,"Promise"),Pa=Nt(ke,"Set"),Ia="[object Map]",La="[object Promise]",ka="[object Set]",Da="[object WeakMap]",Na="[object DataView]",Ua=Ot(Ca),ja=Ot(bi),Fa=Ot(Ra),Ba=Ot(Pa),za=Ot(Ut),Ha=We;(Ca&&Ha(new Ca(new ArrayBuffer(1)))!=Na||bi&&Ha(new bi)!=Ia||Ra&&Ha(Ra.resolve())!=La||Pa&&Ha(new Pa)!=ka||Ut&&Ha(new Ut)!=Da)&&(Ha=function(e){var t=We(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ot(n):"";if(r)switch(r){case Ua:return Na;case ja:return Ia;case Fa:return La;case Ba:return ka;case za:return Da}return t});var Va=Ha,Wa=Object.prototype.hasOwnProperty;var Ga=ke.Uint8Array;function qa(e){var t=new e.constructor(e.byteLength);return new Ga(t).set(new Ga(e)),t}var Xa=/\w*$/;var Ya=De?De.prototype:void 0,Za=Ya?Ya.valueOf:void 0;function Ka(e,t){var n=t?qa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var $a="[object Boolean]",Ja="[object Date]",Qa="[object Map]",es="[object Number]",ts="[object RegExp]",ns="[object Set]",rs="[object String]",is="[object Symbol]",os="[object ArrayBuffer]",as="[object DataView]",ss="[object Float32Array]",ls="[object Float64Array]",cs="[object Int8Array]",us="[object Int16Array]",ds="[object Int32Array]",hs="[object Uint8Array]",ps="[object Uint8ClampedArray]",fs="[object Uint16Array]",ms="[object Uint32Array]";function gs(e,t,n){var r,i=e.constructor;switch(t){case os:return qa(e);case $a:case Ja:return new i(+e);case as:return function(e,t){var n=t?qa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ss:case ls:case cs:case us:case ds:case hs:case ps:case fs:case ms:return Ka(e,n);case Qa:return new i;case es:case rs:return new i(e);case ts:return function(e){var t=new e.constructor(e.source,Xa.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ns:return new i;case is:return r=e,Za?Object(Za.call(r)):{}}}function vs(e){return"function"!=typeof e.constructor||Or(e)?{}:zt(zi(e))}var ys=Gr&&Gr.isMap,bs=ys?zr(ys):function(e){return Ge(e)&&"[object Map]"==Va(e)};var xs=Gr&&Gr.isSet,ws=xs?zr(xs):function(e){return Ge(e)&&"[object Set]"==Va(e)},_s=1,Es=2,Ss=4,Ms="[object Arguments]",Ts="[object Function]",As="[object GeneratorFunction]",Os="[object Object]",Cs={};function Rs(e,t,n,r,i,o){var a,s=t&_s,l=t&Es,c=t&Ss;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!lt(e))return e;var u=$e(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Wa.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return on(e,a)}else{var d=Va(e),h=d==Ts||d==As;if(Fr(e))return ba(e,s);if(d==Os||d==Ms||h&&!i){if(a=l||h?{}:vs(e),!s)return l?function(e,t){return yr(e,Ma(e),t)}(e,function(e,t){return e&&yr(t,oi(t),e)}(a,e)):function(e,t){return yr(e,Sa(e),t)}(e,fa(a,e))}else{if(!Cs[d])return i?e:{};a=gs(e,d,s)}}o||(o=new pa);var p=o.get(e);if(p)return p;o.set(e,a),ws(e)?e.forEach((function(r){a.add(Rs(r,t,n,r,e,o))})):bs(e)&&e.forEach((function(r,i){a.set(i,Rs(r,t,n,i,e,o))}));var f=u?void 0:(c?l?Oa:Aa:l?oi:ei)(e);return xn(f||e,(function(r,i){f&&(r=e[i=r]),vr(a,i,Rs(r,t,n,i,e,o))})),a}Cs[Ms]=Cs["[object Array]"]=Cs["[object ArrayBuffer]"]=Cs["[object DataView]"]=Cs["[object Boolean]"]=Cs["[object Date]"]=Cs["[object Float32Array]"]=Cs["[object Float64Array]"]=Cs["[object Int8Array]"]=Cs["[object Int16Array]"]=Cs["[object Int32Array]"]=Cs["[object Map]"]=Cs["[object Number]"]=Cs[Os]=Cs["[object RegExp]"]=Cs["[object Set]"]=Cs["[object String]"]=Cs["[object Symbol]"]=Cs["[object Uint8Array]"]=Cs["[object Uint8ClampedArray]"]=Cs["[object Uint16Array]"]=Cs["[object Uint32Array]"]=!0,Cs["[object Error]"]=Cs[Ts]=Cs["[object WeakMap]"]=!1;function Ps(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new wi;++t<n;)this.add(e[t])}function Is(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Ls(e,t){return e.has(t)}Ps.prototype.add=Ps.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ps.prototype.has=function(e){return this.__data__.has(e)};var ks=1,Ds=2;function Ns(e,t,n,r,i,o){var a=n&ks,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=n&Ds?new Ps:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var f=e[d],m=t[d];if(r)var g=a?r(m,f,d,t,e,o):r(f,m,d,e,t,o);if(void 0!==g){if(g)continue;h=!1;break}if(p){if(!Is(t,(function(e,t){if(!Ls(p,t)&&(f===e||i(f,e,n,r,o)))return p.push(t)}))){h=!1;break}}else if(f!==m&&!i(f,m,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function Us(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function js(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Fs=1,Bs=2,zs="[object Boolean]",Hs="[object Date]",Vs="[object Error]",Ws="[object Map]",Gs="[object Number]",qs="[object RegExp]",Xs="[object Set]",Ys="[object String]",Zs="[object Symbol]",Ks="[object ArrayBuffer]",$s="[object DataView]",Js=De?De.prototype:void 0,Qs=Js?Js.valueOf:void 0;var el=1,tl=Object.prototype.hasOwnProperty;var nl=1,rl="[object Arguments]",il="[object Array]",ol="[object Object]",al=Object.prototype.hasOwnProperty;function sl(e,t,n,r,i,o){var a=$e(e),s=$e(t),l=a?il:Va(e),c=s?il:Va(t),u=(l=l==rl?ol:l)==ol,d=(c=c==rl?ol:c)==ol,h=l==c;if(h&&Fr(e)){if(!Fr(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new pa),a||Xr(e)?Ns(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case $s:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ks:return!(e.byteLength!=t.byteLength||!o(new Ga(e),new Ga(t)));case zs:case Hs:case Gs:return mr(+e,+t);case Vs:return e.name==t.name&&e.message==t.message;case qs:case Ys:return e==t+"";case Ws:var s=Us;case Xs:var l=r&Fs;if(s||(s=js),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=Bs,a.set(e,t);var u=Ns(s(e),s(t),r,i,o,a);return a.delete(e),u;case Zs:if(Qs)return Qs.call(e)==Qs.call(t)}return!1}(e,t,l,n,r,i,o);if(!(n&nl)){var p=u&&al.call(e,"__wrapped__"),f=d&&al.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,g=f?t.value():t;return o||(o=new pa),i(m,g,n,r,o)}}return!!h&&(o||(o=new pa),function(e,t,n,r,i,o){var a=n&el,s=Aa(e),l=s.length;if(l!=Aa(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:tl.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var m=e[u=s[c]],g=t[u];if(r)var v=a?r(g,m,u,t,e,o):r(m,g,u,e,t,o);if(!(void 0===v?m===g||i(m,g,n,r,o):v)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o))}function ll(e,t,n,r,i){return e===t||(null==e||null==t||!Ge(e)&&!Ge(t)?e!==e&&t!==t:sl(e,t,n,r,ll,i))}var cl=1,ul=2;function dl(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new pa;if(r)var h=r(c,u,l,e,t,d);if(!(void 0===h?ll(u,c,cl|ul,r,d):h))return!1}}return!0}function hl(e){return e===e&&!lt(e)}function pl(e){for(var t=ei(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,hl(i)]}return t}function fl(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function ml(e){var t=pl(e);return 1==t.length&&t[0][2]?fl(t[0][0],t[0][1]):function(n){return n===e||dl(n,e,t)}}function gl(e,t){return null!=e&&t in Object(e)}function vl(e,t,n){for(var r=-1,i=(t=Oi(t,e)).length,o=!1;++r<i;){var a=Ri(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Er(i)&&Un(a,i)&&($e(e)||kr(e))}function yl(e,t){return null!=e&&vl(e,t,gl)}var bl=1,xl=2;function wl(e,t){return di(e)&&hl(t)?fl(Ri(e),t):function(n){var r=Ii(n,e);return void 0===r&&r===t?yl(n,e):ll(t,r,bl|xl)}}function _l(e){return function(t){return null==t?void 0:t[e]}}function El(e){return di(e)?_l(Ri(e)):function(e){return function(t){return Pi(t,e)}}(e)}function Sl(e){return"function"==typeof e?e:null==e?bt:"object"==typeof e?$e(e)?wl(e[0],e[1]):ml(e):El(e)}function Ml(e,t,n){var r=n.length;if(null==e)return!r;for(e=Object(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Tl(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Al(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}var Ol=Al();function Cl(e,t){return e&&Ol(e,t,ei)}function Rl(e,t){return function(n,r){if(null==n)return n;if(!Sr(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}var Pl=Rl(Cl);function Il(e,t,n,r){return Pl(e,(function(e,i,o){t(r,e,n(e),o)})),r}function Ll(e,t){return function(n,r){var i=$e(n)?Tl:Il,o=t?t():{};return i(n,e,Sl(r),o)}}var kl=Object.prototype.hasOwnProperty,Dl=Ll((function(e,t,n){kl.call(e,n)?++e[n]:fr(e,n,1)}));function Nl(e,t,n){var r=dr(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=Nl.placeholder,r}Nl.placeholder={};function Ul(e,t,n){var r=dr(e,16,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=Ul.placeholder,r}Ul.placeholder={};var jl=function(){return ke.Date.now()},Fl="Expected a function",Bl=Math.max,zl=Math.min;function Hl(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(Fl);function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function m(){var e=jl();if(f(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?zl(n,o-(e-c)):n}(e))}function g(e){return s=void 0,h&&r?p(e):(r=i=void 0,a)}function v(){var e=jl(),n=f(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=ft(t)||0,lt(n)&&(u=!!n.leading,o=(d="maxWait"in n)?Bl(ft(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:g(jl())},v}var Vl=Object.prototype,Wl=Vl.hasOwnProperty,Gl=wr((function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&Mr(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=oi(o),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(void 0===u||mr(u,Vl[c])&&!Wl.call(e,c))&&(e[c]=o[c])}return e}));function ql(e,t,n){(void 0!==n&&!mr(e[t],n)||void 0===n&&!(t in e))&&fr(e,t,n)}function Xl(e){return Ge(e)&&Sr(e)}function Yl(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}function Zl(e){return yr(e,oi(e))}function Kl(e,t,n,r,i){e!==t&&Ol(t,(function(o,a){if(i||(i=new pa),lt(o))!function(e,t,n,r,i,o,a){var s=Yl(e,n),l=Yl(t,n),c=a.get(l);if(c)ql(e,n,c);else{var u=o?o(s,l,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=$e(l),p=!h&&Fr(l),f=!h&&!p&&Xr(l);u=l,h||p||f?$e(s)?u=s:Xl(s)?u=on(s):p?(d=!1,u=ba(l,!0)):f?(d=!1,u=Ka(l,!0)):u=[]:Yi(l)||kr(l)?(u=s,kr(s)?u=Zl(s):lt(s)&&!St(s)||(u=vs(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),ql(e,n,u)}}(e,t,a,n,Kl,r,i);else{var s=r?r(Yl(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),ql(e,a,s)}}),oi)}function $l(e,t,n,r,i,o){return lt(e)&&lt(t)&&(o.set(t,e),Kl(e,t,void 0,$l,o),o.delete(t)),e}var Jl=Tr((function(e,t,n,r){Kl(e,t,n,r)})),Ql=wr((function(e){return e.push(void 0,$l),Wt(Jl,void 0,e)}));function ec(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout((function(){e.apply(void 0,n)}),t)}var tc=wr((function(e,t){return ec(e,1,t)})),nc=wr((function(e,t,n){return ec(e,ft(t)||0,n)}));function rc(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var ic=200;function oc(e,t,n,r){var i=-1,o=Sn,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Ke(t,zr(n))),r?(o=rc,a=!1):t.length>=ic&&(o=Ls,a=!1,t=new Ps(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d===d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}var ac=wr((function(e,t){return Xl(e)?oc(e,Ui(t,1,Xl,!0)):[]}));function sc(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var lc=wr((function(e,t){var n=sc(t);return Xl(n)&&(n=void 0),Xl(e)?oc(e,Ui(t,1,Xl,!0),Sl(n)):[]})),cc=wr((function(e,t){var n=sc(t);return Xl(n)&&(n=void 0),Xl(e)?oc(e,Ui(t,1,Xl,!0),void 0,n):[]})),uc=nt((function(e,t){return e/t}),1);function dc(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?io(e,r?0:o,r?o+1:i):io(e,r?o+1:0,r?i:o)}function hc(e){return"function"==typeof e?e:bt}function pc(e,t){return($e(e)?xn:Pl)(e,hc(t))}function fc(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}var mc=Al(!0);function gc(e,t){return e&&mc(e,t,ei)}var vc=Rl(gc,!0);function yc(e,t){return($e(e)?fc:vc)(e,hc(t))}function bc(e){return function(t){var n=Va(t);return"[object Map]"==n?Us(t):"[object Set]"==n?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return Ke(t,(function(t){return[t,e[t]]}))}(t,e(t))}}var xc=bc(ei),wc=bc(oi),_c=To({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),Ec=/[&<>"']/g,Sc=RegExp(Ec.source);function Mc(e){return(e=Ai(e))&&Sc.test(e)?e.replace(Ec,_c):e}var Tc=/[\\^$.*+?()[\]{}|]/g,Ac=RegExp(Tc.source);function Oc(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Cc(e,t){var n=!0;return Pl(e,(function(e,r,i){return n=!!t(e,r,i)})),n}var Rc=4294967295;function Pc(e){return e?ha(yt(e),0,Rc):0}function Ic(e,t){var n=[];return Pl(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Lc(e){return function(t,n,r){var i=Object(t);if(!Sr(t)){var o=Sl(n);t=ei(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}var kc=Math.max;function Dc(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:yt(n);return i<0&&(i=kc(r+i,0)),wn(e,Sl(t),i)}var Nc=Lc(Dc);function Uc(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}var jc=Math.max,Fc=Math.min;function Bc(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=yt(n),i=n<0?jc(r+i,0):Fc(i,r-1)),wn(e,Sl(t),i,!0)}var zc=Lc(Bc);function Hc(e){return e&&e.length?e[0]:void 0}function Vc(e,t){var n=-1,r=Sr(e)?Array(e.length):[];return Pl(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function Wc(e,t){return($e(e)?Ke:Vc)(e,Sl(t))}var Gc=1/0;var qc=1/0;var Xc=sa("floor");function Yc(e){return Fi((function(t){var n=t.length,r=n,i=rn.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new TypeError("Expected a function");if(i&&!a&&"wrapper"==nn(o))var a=new rn([],!0)}for(r=a?r:n;++r<n;){var s=nn(o=t[r]),l="wrapper"==s?Qt(o):void 0;a=l&&cn(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[nn(l[0])].apply(a,l[3]):1==o.length&&cn(o)?a[s]():a.thru(o)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&$e(r))return a.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}var Zc=Yc(),Kc=Yc(!0);function $c(e,t){return xa(t,(function(t){return St(e[t])}))}var Jc=Object.prototype.hasOwnProperty,Qc=Ll((function(e,t,n){Jc.call(e,n)?e[n].push(t):fr(e,n,[t])}));function eu(e,t){return e>t}function tu(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ft(t),n=ft(n)),e(t,n)}}var nu=tu(eu),ru=tu((function(e,t){return e>=t})),iu=Object.prototype.hasOwnProperty;function ou(e,t){return null!=e&&iu.call(e,t)}var au=Math.max,su=Math.min;var lu="[object String]";function cu(e){return"string"==typeof e||!$e(e)&&Ge(e)&&We(e)==lu}function uu(e,t){return Ke(t,(function(t){return e[t]}))}function du(e){return null==e?[]:uu(e,ei(e))}var hu=Math.max;var pu=Math.max;var fu=Math.min;function mu(e,t,n){for(var r=n?rc:Sn,i=e[0].length,o=e.length,a=o,s=Array(o),l=1/0,c=[];a--;){var u=e[a];a&&t&&(u=Ke(u,zr(t))),l=fu(u.length,l),s[a]=!n&&(t||i>=120&&u.length>=120)?new Ps(a&&u):void 0}u=e[0];var d=-1,h=s[0];e:for(;++d<i&&c.length<l;){var p=u[d],f=t?t(p):p;if(p=n||0!==p?p:0,!(h?Ls(h,f):r(c,f,n))){for(a=o;--a;){var m=s[a];if(!(m?Ls(m,f):r(e[a],f,n)))continue e}h&&h.push(f),c.push(p)}}return c}function gu(e){return Xl(e)?e:[]}var vu=wr((function(e){var t=Ke(e,gu);return t.length&&t[0]===e[0]?mu(t):[]})),yu=wr((function(e){var t=sc(e),n=Ke(e,gu);return t===sc(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?mu(n,Sl(t)):[]})),bu=wr((function(e){var t=sc(e),n=Ke(e,gu);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?mu(n,void 0,t):[]}));function xu(e,t){return function(n,r){return function(e,t,n,r){return Cl(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}var wu=Object.prototype.toString,_u=xu((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=wu.call(t)),e[t]=n}),gn(bt)),Eu=Object.prototype,Su=Eu.hasOwnProperty,Mu=Eu.toString,Tu=xu((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Mu.call(t)),Su.call(e,t)?e[t].push(n):e[t]=[n]}),Sl);function Au(e,t){return t.length<2?e:Pi(e,io(t,0,-1))}function Ou(e,t,n){var r=null==(e=Au(e,t=Oi(t,e)))?e:e[Ri(sc(t))];return null==r?void 0:Wt(r,e,n)}var Cu=wr(Ou),Ru=wr((function(e,t,n){var r=-1,i="function"==typeof t,o=Sr(e)?Array(e.length):[];return Pl(e,(function(e){o[++r]=i?Wt(t,e,n):Ou(e,t,n)})),o}));var Pu=Gr&&Gr.isArrayBuffer,Iu=Pu?zr(Pu):function(e){return Ge(e)&&"[object ArrayBuffer]"==We(e)};var Lu=Gr&&Gr.isDate,ku=Lu?zr(Lu):function(e){return Ge(e)&&"[object Date]"==We(e)};var Du=Object.prototype.hasOwnProperty;var Nu=ke.isFinite;function Uu(e){return"number"==typeof e&&e==yt(e)}var ju="[object Number]";function Fu(e){return"number"==typeof e||Ge(e)&&We(e)==ju}var Bu=Mt?St:Dr;function zu(e){return null==e}var Hu=Gr&&Gr.isRegExp,Vu=Hu?zr(Hu):function(e){return Ge(e)&&"[object RegExp]"==We(e)},Wu=9007199254740991;var Gu=Array.prototype.join;var qu=ra((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Xu=Ll((function(e,t,n){fr(e,n,t)}));var Yu=Math.max,Zu=Math.min;var Ku=ra((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),$u=_o("toLowerCase");function Ju(e,t){return e<t}var Qu=tu(Ju),ed=tu((function(e,t){return e<=t}));function td(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a===a&&!Xe(a):n(a,s)))var s=a,l=o}return l}function nd(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}var rd=NaN;function id(e,t){var n=null==e?0:e.length;return n?nd(e,t)/n:rd}var od=Tr((function(e,t,n){Kl(e,t,n)})),ad=wr((function(e,t){return function(n){return Ou(n,e,t)}})),sd=wr((function(e,t){return function(n){return Ou(e,n,t)}}));function ld(e,t,n){var r=ei(t),i=$c(t,r),o=!(lt(n)&&"chain"in n)||!!n.chain,a=St(e);return xn(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=on(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ki([this.value()],arguments))})})),e}var cd=nt((function(e,t){return e*t}),1),ud="Expected a function";function dd(e){if("function"!=typeof e)throw new TypeError(ud);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var hd="[object Map]",pd="[object Set]",fd=De?De.iterator:void 0;function md(e){if(!e)return[];if(Sr(e))return cu(e)?wo(e):on(e);if(fd&&e[fd])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[fd]());var t=Va(e);return(t==hd?Us:t==pd?js:du)(e)}function gd(e,t){var n=e.length;if(n)return Un(t+=t<0?n:0,n)?e[t]:void 0}function vd(e,t){return null==(e=Au(e,t=Oi(t,e)))||delete e[Ri(sc(t))]}function yd(e){return Yi(e)?void 0:e}var bd=Fi((function(e,t){var n={};if(null==e)return n;var r=!1;t=Ke(t,(function(t){return t=Oi(t,e),r||(r=t.length>1),t})),yr(e,Oa(e),n),r&&(n=Rs(n,7,yd));for(var i=t.length;i--;)vd(n,t[i]);return n}));function xd(e,t,n,r){if(!lt(e))return e;for(var i=-1,o=(t=Oi(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=Ri(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=lt(u)?u:Un(t[i+1])?[]:{})}vr(s,l,c),s=s[l]}return e}function wd(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Pi(e,a);n(s,a)&&xd(o,Oi(a,e),s)}return o}function _d(e,t){if(null==e)return{};var n=Ke(Oa(e),(function(e){return[e]}));return t=Sl(t),wd(e,n,(function(e,n){return t(e,n[0])}))}function Ed(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e===e,o=Xe(e),a=void 0!==t,s=null===t,l=t===t,c=Xe(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}function Sd(e,t,n){t=t.length?Ke(t,(function(e){return $e(e)?function(t){return Pi(t,1===e.length?e[0]:e)}:e})):[bt];var r=-1;t=Ke(t,zr(Sl));var i=Vc(e,(function(e,n,i){var o=Ke(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Ed(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Md(e){return Fi((function(t){return t=Ke(t,zr(Sl)),wr((function(n){var r=this;return e(t,(function(e){return Wt(e,r,n)}))}))}))}var Td=Md(Ke),Ad=wr,Od=Math.min,Cd=Ad((function(e,t){var n=(t=1==t.length&&$e(t[0])?Ke(t[0],zr(Sl)):Ke(Ui(t,1),zr(Sl))).length;return wr((function(r){for(var i=-1,o=Od(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Wt(e,this,r)}))})),Rd=Md(Oc),Pd=Md(Is),Id=9007199254740991,Ld=Math.floor;function kd(e,t){var n="";if(!e||t<1||t>Id)return n;do{t%2&&(n+=e),(t=Ld(t/2))&&(e+=e)}while(t);return n}var Dd=_l("length"),Nd="\\ud800-\\udfff",Ud="["+Nd+"]",jd="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Fd="\\ud83c[\\udffb-\\udfff]",Bd="[^"+Nd+"]",zd="(?:\\ud83c[\\udde6-\\uddff]){2}",Hd="[\\ud800-\\udbff][\\udc00-\\udfff]",Vd="(?:"+jd+"|"+Fd+")"+"?",Wd="[\\ufe0e\\ufe0f]?",Gd=Wd+Vd+("(?:\\u200d(?:"+[Bd,zd,Hd].join("|")+")"+Wd+Vd+")*"),qd="(?:"+[Bd+jd+"?",jd,zd,Hd,Ud].join("|")+")",Xd=RegExp(Fd+"(?="+Fd+")|"+qd+Gd,"g");function Yd(e){return so(e)?function(e){for(var t=Xd.lastIndex=0;Xd.test(e);)++t;return t}(e):Dd(e)}var Zd=Math.ceil;function Kd(e,t){var n=(t=void 0===t?" ":tt(t)).length;if(n<2)return n?kd(t,e):t;var r=kd(t,Zd(e/Yd(t)));return so(t)?oo(wo(r),0,e).join(""):r.slice(0,e)}var $d=Math.ceil,Jd=Math.floor;var Qd=/^\s+/,eh=ke.parseInt;var th=wr((function(e,t){return dr(e,32,void 0,t,Bn(t,kn(th)))}));th.placeholder={};var nh=wr((function(e,t){return dr(e,64,void 0,t,Bn(t,kn(nh)))}));nh.placeholder={};var rh=Ll((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ih=Fi((function(e,t){return null==e?{}:function(e,t){return wd(e,t,(function(t,n){return yl(e,n)}))}(e,t)}));function oh(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}var ah=Array.prototype.splice;function sh(e,t,n,r){var i=r?oh:En,o=-1,a=t.length,s=e;for(e===t&&(t=on(t)),n&&(s=Ke(e,zr(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&ah.call(s,l,1),ah.call(e,l,1);return e}function lh(e,t){return e&&e.length&&t&&t.length?sh(e,t):e}var ch=wr(lh);var uh=Array.prototype.splice;function dh(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Un(i)?uh.call(e,i,1):vd(e,i)}}return e}var hh=Fi((function(e,t){var n=null==e?0:e.length,r=Li(e,t);return dh(e,Ke(t,(function(e){return Un(e,n)?+e:e})).sort(Ed)),r})),ph=Math.floor,fh=Math.random;function mh(e,t){return e+ph(fh()*(t-e+1))}var gh=parseFloat,vh=Math.min,yh=Math.random;var bh=Math.ceil,xh=Math.max;function wh(e){return function(t,n,r){return r&&"number"!=typeof r&&Mr(t,n,r)&&(n=r=void 0),t=vt(t),void 0===n?(n=t,t=0):n=vt(n),function(e,t,n,r){for(var i=-1,o=xh(bh((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}(t,n,r=void 0===r?t<n?1:-1:vt(r),e)}}var _h=wh(),Eh=wh(!0),Sh=Fi((function(e,t){return dr(e,256,void 0,void 0,void 0,t)}));function Mh(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Th(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}var Ah=Array.prototype.reverse;function Oh(e){return null==e?e:Ah.call(e)}var Ch=sa("round");function Rh(e){var t=e.length;return t?e[mh(0,t-1)]:void 0}function Ph(e){return Rh(du(e))}function Ih(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=mh(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}function Lh(e,t){return Ih(on(e),ha(t,0,e.length))}function kh(e,t){var n=du(e);return Ih(n,ha(t,0,n.length))}function Dh(e){return Ih(on(e))}function Nh(e){return Ih(du(e))}var Uh=ra((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function jh(e,t){var n;return Pl(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}var Fh=wr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Mr(e,t[0],t[1])?t=[]:n>2&&Mr(t[0],t[1],t[2])&&(t=[t[0]]),Sd(e,Ui(t,1),[])})),Bh=4294967294,zh=Math.floor,Hh=Math.min;function Vh(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!==t,s=null===t,l=Xe(t),c=void 0===t;i<o;){var u=zh((i+o)/2),d=n(e[u]),h=void 0!==d,p=null===d,f=d===d,m=Xe(d);if(a)var g=r||f;else g=c?f&&(r||h):s?f&&h&&(r||!p):l?f&&h&&!p&&(r||!m):!p&&!m&&(r?d<=t:d<t);g?i=u+1:o=u}return Hh(o,Bh)}var Wh=2147483647;function Gh(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=Wh){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Xe(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Vh(e,t,bt,n)}function qh(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!mr(s,l)){var l=s;o[i++]=0===a?0:a}}return o}var Xh=Math.max;var Yh=ra((function(e,t,n){return e+(n?" ":"")+Eo(t)}));var Zh=nt((function(e,t){return e-t}),0);var Kh=Object.prototype,$h=Kh.hasOwnProperty;function Jh(e,t,n,r){return void 0===e||mr(e,Kh[n])&&!$h.call(r,n)?t:e}var Qh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function ep(e){return"\\"+Qh[e]}var tp=/<%=([\s\S]+?)%>/g,np={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:tp,variable:"",imports:{_:{escape:Mc}}},rp=/\b__p \+= '';/g,ip=/\b(__p \+=) '' \+/g,op=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ap=/[()=,{}\[\]\/\s]/,sp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lp=/($^)/,cp=/['\n\r\u2028\u2029\\]/g,up=Object.prototype.hasOwnProperty;var dp="Expected a function";function hp(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError(dp);return lt(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Hl(e,t,{leading:r,maxWait:t,trailing:i})}function pp(e,t){return t(e)}var fp=4294967295,mp=Math.min;function gp(e,t){var n=e;return n instanceof $t&&(n=n.value()),Mo(t,(function(e,t){return t.func.apply(t.thisArg,ki([e],t.args))}),n)}function vp(){return gp(this.__wrapped__,this.__actions__)}var yp=9007199254740991;function bp(e,t){for(var n=e.length;n--&&En(t,e[n],0)>-1;);return n}function xp(e,t){for(var n=-1,r=e.length;++n<r&&En(t,e[n],0)>-1;);return n}var wp=/^\s+/;var _p=/\w*$/;var Ep=To({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Sp=/&(?:amp|lt|gt|quot|#39);/g,Mp=RegExp(Sp.source);var Tp=Pa&&1/js(new Pa([,-0]))[1]==1/0?function(e){return new Pa(e)}:Jt,Ap=200;function Op(e,t,n){var r=-1,i=Sn,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=rc;else if(o>=Ap){var c=t?null:Tp(e);if(c)return js(c);a=!1,i=Ls,l=new Ps}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var Cp=wr((function(e){return Op(Ui(e,1,Xl,!0))})),Rp=wr((function(e){var t=sc(e);return Xl(t)&&(t=void 0),Op(Ui(e,1,Xl,!0),Sl(t))})),Pp=wr((function(e){var t=sc(e);return t="function"==typeof t?t:void 0,Op(Ui(e,1,Xl,!0),void 0,t)}));var Ip=0;var Lp=Math.max;function kp(e){if(!e||!e.length)return[];var t=0;return e=xa(e,(function(e){if(Xl(e))return t=Lp(e.length,t),!0})),Cr(t,(function(t){return Ke(e,_l(t))}))}function Dp(e,t){if(!e||!e.length)return[];var n=kp(e);return null==t?n:Ke(n,(function(e){return Wt(t,void 0,e)}))}function Np(e,t,n,r){return xd(e,t,n(Pi(e,t)),r)}var Up=ra((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}));var jp=wr((function(e,t){return Xl(e)?oc(e,t):[]}));var Fp=Fi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Li(t,e)};return!(t>1||this.__actions__.length)&&r instanceof $t&&Un(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pp,args:[i],thisArg:void 0}),new rn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));function Bp(e,t,n){var r=e.length;if(r<2)return r?Op(e[0]):[];for(var i=-1,o=Array(r);++i<r;)for(var a=e[i],s=-1;++s<r;)s!=i&&(o[i]=oc(o[i]||a,e[s],t,n));return Op(Ui(o,1),t,n)}var zp=wr((function(e){return Bp(xa(e,Xl))})),Hp=wr((function(e){var t=sc(e);return Xl(t)&&(t=void 0),Bp(xa(e,Xl),Sl(t))})),Vp=wr((function(e){var t=sc(e);return t="function"==typeof t?t:void 0,Bp(xa(e,Xl),void 0,t)})),Wp=wr(kp);function Gp(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}var qp=wr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Dp(e,n)})),Xp={chunk:function(e,t,n){t=(n?Mr(e,t,n):void 0===t)?1:da(yt(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,o=0,a=Array(ua(r/t));i<r;)a[o++]=io(e,i,i+=t);return a},compact:function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},concat:function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return ki($e(n)?on(n):[n],Ui(t,1))},difference:ac,differenceBy:lc,differenceWith:cc,drop:function(e,t,n){var r=null==e?0:e.length;return r?io(e,(t=n||void 0===t?1:yt(t))<0?0:t,r):[]},dropRight:function(e,t,n){var r=null==e?0:e.length;return r?io(e,0,(t=r-(t=n||void 0===t?1:yt(t)))<0?0:t):[]},dropRightWhile:function(e,t){return e&&e.length?dc(e,Sl(t),!0,!0):[]},dropWhile:function(e,t){return e&&e.length?dc(e,Sl(t),!0):[]},fill:function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Mr(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=yt(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:yt(r))<0&&(r+=i),r=n>r?0:Pc(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},findIndex:Dc,findLastIndex:Bc,first:Hc,flatten:ji,flattenDeep:function(e){return(null==e?0:e.length)?Ui(e,qc):[]},flattenDepth:function(e,t){return(null==e?0:e.length)?Ui(e,t=void 0===t?1:yt(t)):[]},fromPairs:function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},head:Hc,indexOf:function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:yt(n);return i<0&&(i=pu(r+i,0)),En(e,t,i)},initial:function(e){return(null==e?0:e.length)?io(e,0,-1):[]},intersection:vu,intersectionBy:yu,intersectionWith:bu,join:function(e,t){return null==e?"":Gu.call(e,t)},last:sc,lastIndexOf:function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=yt(n))<0?Yu(r+i,0):Zu(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):wn(e,_n,i,!0)},nth:function(e,t){return e&&e.length?gd(e,yt(t)):void 0},pull:ch,pullAll:lh,pullAllBy:function(e,t,n){return e&&e.length&&t&&t.length?sh(e,t,Sl(n)):e},pullAllWith:function(e,t,n){return e&&e.length&&t&&t.length?sh(e,t,void 0,n):e},pullAt:hh,remove:function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Sl(t);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return dh(e,i),n},reverse:Oh,slice:function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Mr(e,t,n)?(t=0,n=r):(t=null==t?0:yt(t),n=void 0===n?r:yt(n)),io(e,t,n)):[]},sortedIndex:function(e,t){return Gh(e,t)},sortedIndexBy:function(e,t,n){return Vh(e,t,Sl(n))},sortedIndexOf:function(e,t){var n=null==e?0:e.length;if(n){var r=Gh(e,t);if(r<n&&mr(e[r],t))return r}return-1},sortedLastIndex:function(e,t){return Gh(e,t,!0)},sortedLastIndexBy:function(e,t,n){return Vh(e,t,Sl(n),!0)},sortedLastIndexOf:function(e,t){if(null==e?0:e.length){var n=Gh(e,t,!0)-1;if(mr(e[n],t))return n}return-1},sortedUniq:function(e){return e&&e.length?qh(e):[]},sortedUniqBy:function(e,t){return e&&e.length?qh(e,Sl(t)):[]},tail:function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},take:function(e,t,n){return e&&e.length?io(e,0,(t=n||void 0===t?1:yt(t))<0?0:t):[]},takeRight:function(e,t,n){var r=null==e?0:e.length;return r?io(e,(t=r-(t=n||void 0===t?1:yt(t)))<0?0:t,r):[]},takeRightWhile:function(e,t){return e&&e.length?dc(e,Sl(t),!1,!0):[]},takeWhile:function(e,t){return e&&e.length?dc(e,Sl(t)):[]},union:Cp,unionBy:Rp,unionWith:Pp,uniq:function(e){return e&&e.length?Op(e):[]},uniqBy:function(e,t){return e&&e.length?Op(e,Sl(t)):[]},uniqWith:function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Op(e,void 0,t):[]},unzip:kp,unzipWith:Dp,without:jp,xor:zp,xorBy:Hp,xorWith:Vp,zip:Wp,zipObject:function(e,t){return Gp(e||[],t||[],vr)},zipObjectDeep:function(e,t){return Gp(e||[],t||[],xd)},zipWith:qp},Yp={countBy:Dl,each:pc,eachRight:yc,every:function(e,t,n){var r=$e(e)?Oc:Cc;return n&&Mr(e,t,n)&&(t=void 0),r(e,Sl(t))},filter:function(e,t){return($e(e)?xa:Ic)(e,Sl(t))},find:Nc,findLast:zc,flatMap:function(e,t){return Ui(Wc(e,t),1)},flatMapDeep:function(e,t){return Ui(Wc(e,t),Gc)},flatMapDepth:function(e,t,n){return n=void 0===n?1:yt(n),Ui(Wc(e,t),n)},forEach:pc,forEachRight:yc,groupBy:Qc,includes:function(e,t,n,r){e=Sr(e)?e:du(e),n=n&&!r?yt(n):0;var i=e.length;return n<0&&(n=hu(i+n,0)),cu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&En(e,t,n)>-1},invokeMap:Ru,keyBy:Xu,map:Wc,orderBy:function(e,t,n,r){return null==e?[]:($e(t)||(t=null==t?[]:[t]),$e(n=r?void 0:n)||(n=null==n?[]:[n]),Sd(e,t,n))},partition:rh,reduce:function(e,t,n){var r=$e(e)?Mo:Mh,i=arguments.length<3;return r(e,Sl(t),n,i,Pl)},reduceRight:function(e,t,n){var r=$e(e)?Th:Mh,i=arguments.length<3;return r(e,Sl(t),n,i,vc)},reject:function(e,t){return($e(e)?xa:Ic)(e,dd(Sl(t)))},sample:function(e){return($e(e)?Rh:Ph)(e)},sampleSize:function(e,t,n){return t=(n?Mr(e,t,n):void 0===t)?1:yt(t),($e(e)?Lh:kh)(e,t)},shuffle:function(e){return($e(e)?Dh:Nh)(e)},size:function(e){if(null==e)return 0;if(Sr(e))return cu(e)?Yd(e):e.length;var t=Va(e);return"[object Map]"==t||"[object Set]"==t?e.size:Qr(e).length},some:function(e,t,n){var r=$e(e)?Is:jh;return n&&Mr(e,t,n)&&(t=void 0),r(e,Sl(t))},sortBy:Fh},Zp=jl,Kp={after:function(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=yt(e),function(){if(--e<1)return t.apply(this,arguments)}},ary:pr,before:eo,bind:to,bindKey:ro,curry:Nl,curryRight:Ul,debounce:Hl,defer:tc,delay:nc,flip:function(e){return dr(e,512)},memoize:Ei,negate:dd,once:function(e){return eo(2,e)},overArgs:Cd,partial:th,partialRight:nh,rearg:Sh,rest:function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return wr(e,t=void 0===t?t:yt(t))},spread:function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:Xh(yt(t),0),wr((function(n){var r=n[t],i=oo(n,0,t);return r&&ki(i,r),Wt(e,this,i)}))},throttle:hp,unary:function(e){return pr(e,1)},wrap:function(e,t){return th(hc(t),e)}},$p={castArray:function(){if(!arguments.length)return[];var e=arguments[0];return $e(e)?e:[e]},clone:function(e){return Rs(e,4)},cloneDeep:function(e){return Rs(e,5)},cloneDeepWith:function(e,t){return Rs(e,5,t="function"==typeof t?t:void 0)},cloneWith:function(e,t){return Rs(e,4,t="function"==typeof t?t:void 0)},conformsTo:function(e,t){return null==t||Ml(e,t,ei(t))},eq:mr,gt:nu,gte:ru,isArguments:kr,isArray:$e,isArrayBuffer:Iu,isArrayLike:Sr,isArrayLikeObject:Xl,isBoolean:function(e){return!0===e||!1===e||Ge(e)&&"[object Boolean]"==We(e)},isBuffer:Fr,isDate:ku,isElement:function(e){return Ge(e)&&1===e.nodeType&&!Yi(e)},isEmpty:function(e){if(null==e)return!0;if(Sr(e)&&($e(e)||"string"==typeof e||"function"==typeof e.splice||Fr(e)||Xr(e)||kr(e)))return!e.length;var t=Va(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Or(e))return!Qr(e).length;for(var n in e)if(Du.call(e,n))return!1;return!0},isEqual:function(e,t){return ll(e,t)},isEqualWith:function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?ll(e,t,void 0,n):!!r},isError:$i,isFinite:function(e){return"number"==typeof e&&Nu(e)},isFunction:St,isInteger:Uu,isLength:Er,isMap:bs,isMatch:function(e,t){return e===t||dl(e,t,pl(t))},isMatchWith:function(e,t,n){return n="function"==typeof n?n:void 0,dl(e,t,pl(t),n)},isNaN:function(e){return Fu(e)&&e!=+e},isNative:function(e){if(Bu(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dt(e)},isNil:zu,isNull:function(e){return null===e},isNumber:Fu,isObject:lt,isObjectLike:Ge,isPlainObject:Yi,isRegExp:Vu,isSafeInteger:function(e){return Uu(e)&&e>=-9007199254740991&&e<=Wu},isSet:ws,isString:cu,isSymbol:Xe,isTypedArray:Xr,isUndefined:function(e){return void 0===e},isWeakMap:function(e){return Ge(e)&&"[object WeakMap]"==Va(e)},isWeakSet:function(e){return Ge(e)&&"[object WeakSet]"==We(e)},lt:Qu,lte:ed,toArray:md,toFinite:vt,toInteger:yt,toLength:Pc,toNumber:ft,toPlainObject:Zl,toSafeInteger:function(e){return e?ha(yt(e),-9007199254740991,yp):0===e?e:0},toString:Ai},Jp={add:rt,ceil:la,divide:uc,floor:Xc,max:function(e){return e&&e.length?td(e,bt,eu):void 0},maxBy:function(e,t){return e&&e.length?td(e,Sl(t),eu):void 0},mean:function(e){return id(e,bt)},meanBy:function(e,t){return id(e,Sl(t))},min:function(e){return e&&e.length?td(e,bt,Ju):void 0},minBy:function(e,t){return e&&e.length?td(e,Sl(t),Ju):void 0},multiply:cd,round:Ch,subtract:Zh,sum:function(e){return e&&e.length?nd(e,bt):0},sumBy:function(e,t){return e&&e.length?nd(e,Sl(t)):0}},Qp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=ft(n))===n?n:0),void 0!==t&&(t=(t=ft(t))===t?t:0),ha(ft(e),t,n)},ef=function(e,t,n){return t=vt(t),void 0===n?(n=t,t=0):n=vt(n),function(e,t,n){return e>=su(t,n)&&e<au(t,n)}(e=ft(e),t,n)},tf=function(e,t,n){if(n&&"boolean"!=typeof n&&Mr(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=vt(e),void 0===t?(t=e,e=0):t=vt(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=yh();return vh(e+i*(t-e+gh("1e-"+((i+"").length-1))),t)}return mh(e,t)},nf={assign:ni,assignIn:ai,assignInWith:si,assignWith:li,at:Bi,create:function(e,t){var n=zt(e);return null==t?n:fa(n,t)},defaults:Gl,defaultsDeep:Ql,entries:xc,entriesIn:wc,extend:ai,extendWith:si,findKey:function(e,t){return Uc(e,Sl(t),Cl)},findLastKey:function(e,t){return Uc(e,Sl(t),gc)},forIn:function(e,t){return null==e?e:Ol(e,hc(t),oi)},forInRight:function(e,t){return null==e?e:mc(e,hc(t),oi)},forOwn:function(e,t){return e&&Cl(e,hc(t))},forOwnRight:function(e,t){return e&&gc(e,hc(t))},functions:function(e){return null==e?[]:$c(e,ei(e))},functionsIn:function(e){return null==e?[]:$c(e,oi(e))},get:Ii,has:function(e,t){return null!=e&&vl(e,t,ou)},hasIn:yl,invert:_u,invertBy:Tu,invoke:Cu,keys:ei,keysIn:oi,mapKeys:function(e,t){var n={};return t=Sl(t),Cl(e,(function(e,r,i){fr(n,t(e,r,i),e)})),n},mapValues:function(e,t){var n={};return t=Sl(t),Cl(e,(function(e,r,i){fr(n,r,t(e,r,i))})),n},merge:od,mergeWith:Jl,omit:bd,omitBy:function(e,t){return _d(e,dd(Sl(t)))},pick:ih,pickBy:_d,result:function(e,t,n){var r=-1,i=(t=Oi(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[Ri(t[r])];void 0===o&&(r=i,o=n),e=St(o)?o.call(e):o}return e},set:function(e,t,n){return null==e?e:xd(e,t,n)},setWith:function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:xd(e,t,n,r)},toPairs:xc,toPairsIn:wc,transform:function(e,t,n){var r=$e(e),i=r||Fr(e)||Xr(e);if(t=Sl(t),null==n){var o=e&&e.constructor;n=i?r?new o:[]:lt(e)&&St(o)?zt(zi(e)):{}}return(i?xn:Cl)(e,(function(e,r,i){return t(n,e,r,i)})),n},unset:function(e,t){return null==e||vd(e,t)},update:function(e,t,n){return null==e?e:Np(e,t,hc(n))},updateWith:function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Np(e,t,hc(n),r)},values:du,valuesIn:function(e){return null==e?[]:uu(e,oi(e))}},rf={at:Fp,chain:ca,commit:function(){return new rn(this.value(),this.__chain__)},lodash:ln,next:function(){void 0===this.__values__&&(this.__values__=md(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},plant:function(e){for(var t,n=this;n instanceof Zt;){var r=an(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},reverse:function(){var e=this.__wrapped__;if(e instanceof $t){var t=e;return this.__actions__.length&&(t=new $t(this)),(t=t.reverse()).__actions__.push({func:pp,args:[Oh],thisArg:void 0}),new rn(t,this.__chain__)}return this.thru(Oh)},tap:function(e,t){return t(e),e},thru:pp,toIterator:function(){return this},toJSON:vp,value:vp,valueOf:vp,wrapperChain:function(){return ca(this)}},of={camelCase:ia,capitalize:So,deburr:Ro,endsWith:function(e,t,n){e=Ai(e),t=tt(t);var r=e.length,i=n=void 0===n?r:ha(yt(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},escape:Mc,escapeRegExp:function(e){return(e=Ai(e))&&Ac.test(e)?e.replace(Tc,"\\$&"):e},kebabCase:qu,lowerCase:Ku,lowerFirst:$u,pad:function(e,t,n){e=Ai(e);var r=(t=yt(t))?Yd(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Kd(Jd(i),n)+e+Kd($d(i),n)},padEnd:function(e,t,n){e=Ai(e);var r=(t=yt(t))?Yd(e):0;return t&&r<t?e+Kd(t-r,n):e},padStart:function(e,t,n){e=Ai(e);var r=(t=yt(t))?Yd(e):0;return t&&r<t?Kd(t-r,n)+e:e},parseInt:function(e,t,n){return n||null==t?t=0:t&&(t=+t),eh(Ai(e).replace(Qd,""),t||0)},repeat:function(e,t,n){return t=(n?Mr(e,t,n):void 0===t)?1:yt(t),kd(Ai(e),t)},replace:function(){var e=arguments,t=Ai(e[0]);return e.length<3?t:t.replace(e[1],e[2])},snakeCase:Uh,split:function(e,t,n){return n&&"number"!=typeof n&&Mr(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=Ai(e))&&("string"==typeof t||null!=t&&!Vu(t))&&!(t=tt(t))&&so(e)?oo(wo(e),0,n):e.split(t,n):[]},startCase:Yh,startsWith:function(e,t,n){return e=Ai(e),n=null==n?0:ha(yt(n),0,e.length),t=tt(t),e.slice(n,n+t.length)==t},template:function(e,t,n){var r=np.imports._.templateSettings||np;n&&Mr(e,t,n)&&(t=void 0),e=Ai(e),t=si({},t,r,Jh);var i,o,a=si({},t.imports,r.imports,Jh),s=ei(a),l=uu(a,s),c=0,u=t.interpolate||lp,d="__p += '",h=RegExp((t.escape||lp).source+"|"+u.source+"|"+(u===tp?sp:lp).source+"|"+(t.evaluate||lp).source+"|$","g"),p=up.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(h,(function(t,n,r,a,s,l){return r||(r=a),d+=e.slice(c,l).replace(cp,ep),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var f=up.call(t,"variable")&&t.variable;if(f){if(ap.test(f))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(rp,""):d).replace(ip,"$1").replace(op,"$1;"),d="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
2\n")+d+"return __p\n}";var m=Ji((function(){return Function(s,p+"return "+d).apply(void 0,l)}));if(m.source=d,$i(m))throw m;return m},templateSettings:np,toLower:function(e){return Ai(e).toLowerCase()},toUpper:function(e){return Ai(e).toUpperCase()},trim:function(e,t,n){if((e=Ai(e))&&(n||void 0===t))return st(e);if(!e||!(t=tt(t)))return e;var r=wo(e),i=wo(t);return oo(r,xp(r,i),bp(r,i)+1).join("")},trimEnd:function(e,t,n){if((e=Ai(e))&&(n||void 0===t))return e.slice(0,ot(e)+1);if(!e||!(t=tt(t)))return e;var r=wo(e);return oo(r,0,bp(r,wo(t))+1).join("")},trimStart:function(e,t,n){if((e=Ai(e))&&(n||void 0===t))return e.replace(wp,"");if(!e||!(t=tt(t)))return e;var r=wo(e);return oo(r,xp(r,wo(t))).join("")},truncate:function(e,t){var n=30,r="...";if(lt(t)){var i="separator"in t?t.separator:i;n="length"in t?yt(t.length):n,r="omission"in t?tt(t.omission):r}var o=(e=Ai(e)).length;if(so(e)){var a=wo(e);o=a.length}if(n>=o)return e;var s=n-Yd(r);if(s<1)return r;var l=a?oo(a,0,s).join(""):e.slice(0,s);if(void 0===i)return l+r;if(a&&(s+=l.length-s),Vu(i)){if(e.slice(s).search(i)){var c,u=l;for(i.global||(i=RegExp(i.source,Ai(_p.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var d=c.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(tt(i),s)!=s){var h=l.lastIndexOf(i);h>-1&&(l=l.slice(0,h))}return l+r},unescape:function(e){return(e=Ai(e))&&Mp.test(e)?e.replace(Sp,Ep):e},upperCase:Up,upperFirst:Eo,words:ta},af={attempt:Ji,bindAll:no,cond:function(e){var t=null==e?0:e.length,n=Sl;return e=t?Ke(e,(function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]})):[],wr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Wt(i[0],this,n))return Wt(i[1],this,n)}}))},conforms:function(e){return function(e){var t=ei(e);return function(n){return Ml(n,e,t)}}(Rs(e,1))},constant:gn,defaultTo:function(e,t){return null==e||e!==e?t:e},flow:Zc,flowRight:Kc,identity:bt,iteratee:function(e){return Sl("function"==typeof e?e:Rs(e,1))},matches:function(e){return ml(Rs(e,1))},matchesProperty:function(e,t){return wl(e,Rs(t,1))},method:ad,methodOf:sd,mixin:ld,noop:Jt,nthArg:function(e){return e=yt(e),wr((function(t){return gd(t,e)}))},over:Td,overEvery:Rd,overSome:Pd,property:El,propertyOf:function(e){return function(t){return null==e?void 0:Pi(e,t)}},range:_h,rangeRight:Eh,stubArray:wa,stubFalse:Dr,stubObject:function(){return{}},stubString:function(){return""},stubTrue:function(){return!0},times:function(e,t){if((e=yt(e))<1||e>9007199254740991)return[];var n=fp,r=mp(e,fp);t=hc(t),e-=fp;for(var i=Cr(r,t);++n<e;)t(n);return i},toPath:function(e){return $e(e)?Ke(e,Ri):Xe(e)?[e]:on(Ti(Ai(e)))},uniqueId:function(e){var t=++Ip;return Ai(e)+t}};var sf=Math.max,lf=Math.min;var cf=Math.min;var uf=4294967295,df=Array.prototype,hf=Object.prototype.hasOwnProperty,pf=De?De.iterator:void 0,ff=Math.max,mf=Math.min,gf=function(e){return function(t,n,r){if(null==r){var i=lt(n),o=i&&ei(n),a=o&&o.length&&$c(n,o);(a?a.length:i)||(r=n,n=t,t=this)}return e(t,n,r)}}(ld);function vf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Math.pow(10,t);return Math.round(e*n)/n}ln.after=Kp.after,ln.ary=Kp.ary,ln.assign=nf.assign,ln.assignIn=nf.assignIn,ln.assignInWith=nf.assignInWith,ln.assignWith=nf.assignWith,ln.at=nf.at,ln.before=Kp.before,ln.bind=Kp.bind,ln.bindAll=af.bindAll,ln.bindKey=Kp.bindKey,ln.castArray=$p.castArray,ln.chain=rf.chain,ln.chunk=Xp.chunk,ln.compact=Xp.compact,ln.concat=Xp.concat,ln.cond=af.cond,ln.conforms=af.conforms,ln.constant=af.constant,ln.countBy=Yp.countBy,ln.create=nf.create,ln.curry=Kp.curry,ln.curryRight=Kp.curryRight,ln.debounce=Kp.debounce,ln.defaults=nf.defaults,ln.defaultsDeep=nf.defaultsDeep,ln.defer=Kp.defer,ln.delay=Kp.delay,ln.difference=Xp.difference,ln.differenceBy=Xp.differenceBy,ln.differenceWith=Xp.differenceWith,ln.drop=Xp.drop,ln.dropRight=Xp.dropRight,ln.dropRightWhile=Xp.dropRightWhile,ln.dropWhile=Xp.dropWhile,ln.fill=Xp.fill,ln.filter=Yp.filter,ln.flatMap=Yp.flatMap,ln.flatMapDeep=Yp.flatMapDeep,ln.flatMapDepth=Yp.flatMapDepth,ln.flatten=Xp.flatten,ln.flattenDeep=Xp.flattenDeep,ln.flattenDepth=Xp.flattenDepth,ln.flip=Kp.flip,ln.flow=af.flow,ln.flowRight=af.flowRight,ln.fromPairs=Xp.fromPairs,ln.functions=nf.functions,ln.functionsIn=nf.functionsIn,ln.groupBy=Yp.groupBy,ln.initial=Xp.initial,ln.intersection=Xp.intersection,ln.intersectionBy=Xp.intersectionBy,ln.intersectionWith=Xp.intersectionWith,ln.invert=nf.invert,ln.invertBy=nf.invertBy,ln.invokeMap=Yp.invokeMap,ln.iteratee=af.iteratee,ln.keyBy=Yp.keyBy,ln.keys=ei,ln.keysIn=nf.keysIn,ln.map=Yp.map,ln.mapKeys=nf.mapKeys,ln.mapValues=nf.mapValues,ln.matches=af.matches,ln.matchesProperty=af.matchesProperty,ln.memoize=Kp.memoize,ln.merge=nf.merge,ln.mergeWith=nf.mergeWith,ln.method=af.method,ln.methodOf=af.methodOf,ln.mixin=gf,ln.negate=dd,ln.nthArg=af.nthArg,ln.omit=nf.omit,ln.omitBy=nf.omitBy,ln.once=Kp.once,ln.orderBy=Yp.orderBy,ln.over=af.over,ln.overArgs=Kp.overArgs,ln.overEvery=af.overEvery,ln.overSome=af.overSome,ln.partial=Kp.partial,ln.partialRight=Kp.partialRight,ln.partition=Yp.partition,ln.pick=nf.pick,ln.pickBy=nf.pickBy,ln.property=af.property,ln.propertyOf=af.propertyOf,ln.pull=Xp.pull,ln.pullAll=Xp.pullAll,ln.pullAllBy=Xp.pullAllBy,ln.pullAllWith=Xp.pullAllWith,ln.pullAt=Xp.pullAt,ln.range=af.range,ln.rangeRight=af.rangeRight,ln.rearg=Kp.rearg,ln.reject=Yp.reject,ln.remove=Xp.remove,ln.rest=Kp.rest,ln.reverse=Xp.reverse,ln.sampleSize=Yp.sampleSize,ln.set=nf.set,ln.setWith=nf.setWith,ln.shuffle=Yp.shuffle,ln.slice=Xp.slice,ln.sortBy=Yp.sortBy,ln.sortedUniq=Xp.sortedUniq,ln.sortedUniqBy=Xp.sortedUniqBy,ln.split=of.split,ln.spread=Kp.spread,ln.tail=Xp.tail,ln.take=Xp.take,ln.takeRight=Xp.takeRight,ln.takeRightWhile=Xp.takeRightWhile,ln.takeWhile=Xp.takeWhile,ln.tap=rf.tap,ln.throttle=Kp.throttle,ln.thru=pp,ln.toArray=$p.toArray,ln.toPairs=nf.toPairs,ln.toPairsIn=nf.toPairsIn,ln.toPath=af.toPath,ln.toPlainObject=$p.toPlainObject,ln.transform=nf.transform,ln.unary=Kp.unary,ln.union=Xp.union,ln.unionBy=Xp.unionBy,ln.unionWith=Xp.unionWith,ln.uniq=Xp.uniq,ln.uniqBy=Xp.uniqBy,ln.uniqWith=Xp.uniqWith,ln.unset=nf.unset,ln.unzip=Xp.unzip,ln.unzipWith=Xp.unzipWith,ln.update=nf.update,ln.updateWith=nf.updateWith,ln.values=nf.values,ln.valuesIn=nf.values
2In,ln.without=Xp.without,ln.words=of.words,ln.wrap=Kp.wrap,ln.xor=Xp.xor,ln.xorBy=Xp.xorBy,ln.xorWith=Xp.xorWith,ln.zip=Xp.zip,ln.zipObject=Xp.zipObject,ln.zipObjectDeep=Xp.zipObjectDeep,ln.zipWith=Xp.zipWith,ln.entries=nf.toPairs,ln.entriesIn=nf.toPairsIn,ln.extend=nf.assignIn,ln.extendWith=nf.assignInWith,gf(ln,ln),ln.add=Jp.add,ln.attempt=af.attempt,ln.camelCase=of.camelCase,ln.capitalize=of.capitalize,ln.ceil=Jp.ceil,ln.clamp=Qp,ln.clone=$p.clone,ln.cloneDeep=$p.cloneDeep,ln.cloneDeepWith=$p.cloneDeepWith,ln.cloneWith=$p.cloneWith,ln.conformsTo=$p.conformsTo,ln.deburr=of.deburr,ln.defaultTo=af.defaultTo,ln.divide=Jp.divide,ln.endsWith=of.endsWith,ln.eq=$p.eq,ln.escape=of.escape,ln.escapeRegExp=of.escapeRegExp,ln.every=Yp.every,ln.find=Yp.find,ln.findIndex=Xp.findIndex,ln.findKey=nf.findKey,ln.findLast=Yp.findLast,ln.findLastIndex=Xp.findLastIndex,ln.findLastKey=nf.findLastKey,ln.floor=Jp.floor,ln.forEach=Yp.forEach,ln.forEachRight=Yp.forEachRight,ln.forIn=nf.forIn,ln.forInRight=nf.forInRight,ln.forOwn=nf.forOwn,ln.forOwnRight=nf.forOwnRight,ln.get=nf.get,ln.gt=$p.gt,ln.gte=$p.gte,ln.has=nf.has,ln.hasIn=nf.hasIn,ln.head=Xp.head,ln.identity=bt,ln.includes=Yp.includes,ln.indexOf=Xp.indexOf,ln.inRange=ef,ln.invoke=nf.invoke,ln.isArguments=$p.isArguments,ln.isArray=$e,ln.isArrayBuffer=$p.isArrayBuffer,ln.isArrayLike=$p.isArrayLike,ln.isArrayLikeObject=$p.isArrayLikeObject,ln.isBoolean=$p.isBoolean,ln.isBuffer=$p.isBuffer,ln.isDate=$p.isDate,ln.isElement=$p.isElement,ln.isEmpty=$p.isEmpty,ln.isEqual=$p.isEqual,ln.isEqualWith=$p.isEqualWith,ln.isError=$p.isError,ln.isFinite=$p.isFinite,ln.isFunction=$p.isFunction,ln.isInteger=$p.isInteger,ln.isLength=$p.isLength,ln.isMap=$p.isMap,ln.isMatch=$p.isMatch,ln.isMatchWith=$p.isMatchWith,ln.isNaN=$p.isNaN,ln.isNative=$p.isNative,ln.isNil=$p.isNil,ln.isNull=$p.isNull,ln.isNumber=$p.isNumber,ln.isObject=lt,ln.isObjectLike=$p.isObjectLike,ln.isPlainObject=$p.isPlainObject,ln.isRegExp=$p.isRegExp,ln.isSafeInteger=$p.isSafeInteger,ln.isSet=$p.isSet,ln.isString=$p.isString,ln.isSymbol=$p.isSymbol,ln.isTypedArray=$p.isTypedArray,ln.isUndefined=$p.isUndefined,ln.isWeakMap=$p.isWeakMap,ln.isWeakSet=$p.isWeakSet,ln.join=Xp.join,ln.kebabCase=of.kebabCase,ln.last=sc,ln.lastIndexOf=Xp.lastIndexOf,ln.lowerCase=of.lowerCase,ln.lowerFirst=of.lowerFirst,ln.lt=$p.lt,ln.lte=$p.lte,ln.max=Jp.max,ln.maxBy=Jp.maxBy,ln.mean=Jp.mean,ln.meanBy=Jp.meanBy,ln.min=Jp.min,ln.minBy=Jp.minBy,ln.stubArray=af.stubArray,ln.stubFalse=af.stubFalse,ln.stubObject=af.stubObject,ln.stubString=af.stubString,ln.stubTrue=af.stubTrue,ln.multiply=Jp.multiply,ln.nth=Xp.nth,ln.noop=af.noop,ln.now=Zp,ln.pad=of.pad,ln.padEnd=of.padEnd,ln.padStart=of.padStart,ln.parseInt=of.parseInt,ln.random=tf,ln.reduce=Yp.reduce,ln.reduceRight=Yp.reduceRight,ln.repeat=of.repeat,ln.replace=of.replace,ln.result=nf.result,ln.round=Jp.round,ln.sample=Yp.sample,ln.size=Yp.size,ln.snakeCase=of.snakeCase,ln.some=Yp.some,ln.sortedIndex=Xp.sortedIndex,ln.sortedIndexBy=Xp.sortedIndexBy,ln.sortedIndexOf=Xp.sortedIndexOf,ln.sortedLastIndex=Xp.sortedLastIndex,ln.sortedLastIndexBy=Xp.sortedLastIndexBy,ln.sortedLastIndexOf=Xp.sortedLastIndexOf,ln.startCase=of.startCase,ln.startsWith=of.startsWith,ln.subtract=Jp.subtract,ln.sum=Jp.sum,ln.sumBy=Jp.sumBy,ln.template=of.template,ln.times=af.times,ln.toFinite=$p.toFinite,ln.toInteger=yt,ln.toLength=$p.toLength,ln.toLower=of.toLower,ln.toNumber=$p.toNumber,ln.toSafeInteger=$p.toSafeInteger,ln.toString=$p.toString,ln.toUpper=of.toUpper,ln.trim=of.trim,ln.trimEnd=of.trimEnd,ln.trimStart=of.trimStart,ln.truncate=of.truncate,ln.unescape=of.unescape,ln.uniqueId=af.uniqueId,ln.upperCase=of.upperCase,ln.upperFirst=of.upperFirst,ln.each=Yp.forEach,ln.eachRight=Yp.forEachRight,ln.first=Xp.head,gf(ln,function(){var e={};return Cl(ln,(function(t,n){hf.call(ln.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),ln.VERSION="4.17.21",(ln.templateSettings=of.templateSettings).imports._=ln,xn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){ln[e].placeholder=ln})),xn(["drop","take"],(function(e,t){$t.prototype[e]=function(n){n=void 0===n?1:ff(yt(n),0);var r=this.__filtered__&&!t?new $t(this):this.clone();return r.__filtered__?r.__takeCount__=mf(n,r.__takeCount__):r.__views__.push({size:mf(n,uf),type:e+(r.__dir__<0?"Right":"")}),r},$t.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;$t.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Sl(e),type:n}),t.__filtered__=t.__filtered__||r,t}})),xn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");
2$t.prototype[e]=function(){return this[n](1).value()[0]}})),xn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");$t.prototype[e]=function(){return this.__filtered__?new $t(this):this[n](1)}})),$t.prototype.compact=function(){return this.filter(bt)},$t.prototype.find=function(e){return this.filter(e).head()},$t.prototype.findLast=function(e){return this.reverse().find(e)},$t.prototype.invokeMap=wr((function(e,t){return"function"==typeof e?new $t(this):this.map((function(n){return Ou(n,e,t)}))})),$t.prototype.reject=function(e){return this.filter(dd(Sl(e)))},$t.prototype.slice=function(e,t){e=yt(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $t(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=yt(t))<0?n.dropRight(-t):n.take(t-e)),n)},$t.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$t.prototype.toArray=function(){return this.take(uf)},Cl($t.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=ln[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(ln.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof $t,l=a[0],c=s||$e(t),u=function(e){var t=i.apply(ln,ki([e],a));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,h=!!this.__actions__.length,p=o&&!d,f=s&&!h;if(!o&&c){t=f?t:new $t(this);var m=e.apply(t,a);return m.__actions__.push({func:pp,args:[u],thisArg:void 0}),new rn(m,d)}return p&&f?e.apply(this,a):(m=this.thru(u),p?r?m.value()[0]:m.value():m)})})),xn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=df[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);ln.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply($e(i)?i:[],e)}return this[n]((function(n){return t.apply($e(n)?n:[],e)}))}})),Cl($t.prototype,(function(e,t){var n=ln[t];if(n){var r=n.name+"";hf.call(en,r)||(en[r]=[]),en[r].push({name:t,func:n})}})),en[Xn(void 0,2).name]=[{name:"wrapper",func:void 0}],$t.prototype.clone=function(){var e=new $t(this.__wrapped__);return e.__actions__=on(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=on(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=on(this.__views__),e},$t.prototype.reverse=function(){if(this.__filtered__){var e=new $t(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$t.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$e(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=lf(t,e+a);break;case"takeRight":e=sf(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,h=0,p=cf(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return gp(e,this.__actions__);var f=[];e:for(;l--&&h<p;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,x=y(g);if(2==b)g=x;else if(!x){if(1==b)continue e;break e}}f[h++]=g}return f},ln.prototype.at=rf.at,ln.prototype.chain=rf.wrapperChain,ln.prototype.commit=rf.commit,ln.prototype.next=rf.next,ln.prototype.plant=rf.plant,ln.prototype.reverse=rf.reverse,ln.prototype.toJSON=ln.prototype.valueOf=ln.prototype.value=rf.value,ln.prototype.first=ln.prototype.head,pf&&(ln.prototype[pf]=rf.toIterator);const yf=",";class bf{constructor(e,t){this._map=e,this._selectOccupant=t,this._handleMapChanges()}_handleMapChanges(){this._map.on("Map#ViewChange",Hl((e=>{let{center:t}=e;this._latitude=vf(t[0],7),this._longitude=vf(t[1],7),this.setStateToQuery()}),300)),this._map.on("Map#RotationChange",Hl((e=>{let{rotation:t}=e;this._rotation=vf(t),this.setStateToQuery()}),300)),this._map.on("Map#TiltChange",Hl((e=>{let{tilt:t}=e;this._tilt=vf(t),this.setStateToQuery()}),300)),this._map.on("Map#ZoomChange",Hl((e=>{let{zoom:t}=e;this._zoom=vf(t),this.setStateToQuery()}),300)),this._map.on("Map#OrdinalChanged",(e=>{let{ordinal:t}=e;this._ordinal=t,this.setStateToQuery()})),this._map.on("SearchBox#CategorySelected",(e=>{this._selectedCategory=null===e||void 0===e?void 0:e.id,this.setStateToQuery()})),this._map.on("SearchBox#CategoryUnselected",(()=>{this._selectedCategory=null,this.setStateToQuery()}));const e=e=>{this._selectedOccupant=this._selectedOccupant===e.id?null:e.id,this.setStateToQuery()},t=e=>{(null===e||void 0===e?void 0:e.isClickOnMarker)||(this._selectedOccupant=null,this.setStateToQuery())};this._map.on("SearchBox#OccupantSelected",e),this._map.on("Marker#Click",e),this._map.on("SearchBox#OccupantUnselected",t),this._map.on("Map#Click",t),this._map.on("Directions#Change",(e=>{let{stops:t,avoidStairs:n}=e;this._directions=t.map((e=>{var t;return null!==(t=e.occupantId)&&void 0!==t?t:null})),this._avoidStairs=n,this.setStateToQuery()})),this._map.on("Directions#Open",(()=>{this.setStateToQuery()})),this._map.on("Directions#Close",(()=>{this._directions=null,this._avoidStairs=null,this.setStateToQuery()})),this._map.on("Route#Open",(e=>{let{stops:t,avoidStairs:n}=e;this._directions=null,this._routes=t.map((e=>{var t;return null!==(t=e.occupantId)&&void 0!==t?t:null})),this._avoidStairs=n,this.setStateToQuery()})),this._map.on("Route#Close",(e=>{let{stops:t,avoidStairs:n}=e;this._routes=null,this._directions=t.map((e=>{var t;return null!==(t=e.occupantId)&&void 0!==t?t:null})),this._avoidStairs=n,this.setStateToQuery()})),this._map.on("Map#LanguageChanged",(e=>{let{language:t}=e;this._lang=t,this.setStateToQuery()}))}setStateToQuery(){const e=new URLSearchParams(window.location.search),t=[this._latitude,this._longitude,this._rotation,this._tilt,this._zoom,this._ordinal].join(yf);e.set("pcm_view",t),this._directions?e.set("pcm_dir",this._directions.join(yf)):e.delete("pcm_dir"),this._routes?e.set("pcm_route",this._routes.join(yf)):e.delete("pcm_route"),null!==this._avoidStairs&&void 0!==this._avoidStairs?e.set("pcm_as",this._avoidStairs?"1":"0"):e.delete("pcm_as"),this._selectedOccupant?e.set("pcm_so",this._selectedOccupant):e.delete("pcm_so"),this._selectedCategory?e.set("pcm_sc",this._selectedCategory):e.delete("pcm_sc"),this._lang?e.set("pcm_lang",this._lang):e.delete("pcm_lang"),e.sort(),history.replaceState(null,"","?"+e.toString())}restoreStateFromQuery(){var e,t,n;
2const r=new URLSearchParams(window.location.search),i=null===(e=r.get("pcm_view"))||void 0===e?void 0:e.split(yf),[o,a,s,l,c,u]=null!==i&&void 0!==i?i:[];this._latitude=o?parseFloat(o):null,this._longitude=a?parseFloat(a):null,this._rotation=s?parseFloat(s):null,this._tilt=l?parseFloat(l):null,this._zoom=c?parseFloat(c):null,this._ordinal=u?parseInt(u,10):null;const d=r.get("pcm_so");this._selectedOccupant=d||null;const h=r.get("pcm_sc");this._selectedCategory=h||null;const p=r.get("pcm_dir");this._directions=p?p.split(yf):null;const f=r.get("pcm_route");this._routes=f?f.split(yf):null;const m=r.get("pcm_as");this._avoidStairs="1"===m||null;const g=r.get("pcm_lang");this._lang=g||null,this._routes&&this._map.showRoute({stops:this._routes.map((e=>({id:e}))),avoidStairs:null!==(t=this._avoidStairs)&&void 0!==t&&t}),this._selectedOccupant&&this._map.selectMarkers([this._selectedOccupant],(e=>{if(0===e.length)return;const t=e[0];this._selectOccupant(t,{keepView:!0})})),this._selectedCategory&&this._map.setSearchBoxCategory(this._selectedCategory),this._directions&&!this._routes&&this._map.showDirections({stops:this._directions.map((e=>({id:e}))),avoidStairs:null!==(n=this._avoidStairs)&&void 0!==n&&n}),this._lang&&this._map.setLanguage(this._lang),Number.isFinite(this._ordinal)&&this._map.showOrdinal(this._ordinal),this._latitude&&this._longitude&&this._map.setVie
2w([this._latitude,this._longitude]),Number.isFinite(this._rotation)&&this._map.setRotation(this._rotation),Number.isFinite(this._tilt)&&this._map.setTilt(this._tilt),Number.isFinite(this._zoom)&&this._map.setZoom(this._zoom)}}function xf(e){var t,n,r,i,o;const a={paddingTop:0,paddingLeft:0,paddingRight:0,paddingBottom:0},s=window.matchMedia("(orientation: portrait), (max-width: 600px)").matches,l=!s,c=null!==(n=null!==(t=null===e||void 0===e?void 0:e.showDirections)&&void 0!==t?t:Boolean(document.querySelector(".pcmap-directions")))&&void 0!==n&&n,u=null!==(r=null===e||void 0===e?void 0:e.showCallout)&&void 0!==r?r:!c;return l?a.paddingLeft=u?360:0:s&&(a.paddingTop=c&&null!==(o=null===(i=document.querySelector(".pcmap-directions"))||void 0===i?void 0:i.clientHeight)&&void 0!==o?o:0,a.paddingBottom=u?160:0),a}const wf={showSearch:!0,showLevelChoice:!0,showCallout:!0,showZoomControl:!0,showAreaSelector:!0,showResetButton:!0,showLanguageSelector:!0,maxZoomLevel:22,animate:!0,duration:500,delay:0,easing:"linear"};class _f{constructor(e,t,n){this._map=e,this._selectOccupant=t,this._sendMessage=n,this._globalStyles=document.createElement("style"),document.head.appendChild(this._globalStyles),this._waitForMessages()}apply(e){const t=this._sendMessage;try{const t="string"===typeof e?JSON.parse(e):e;switch(t.scenarioType){case"onePOI":{const{poi:e}=t,n=Ee(t,["poi"]);this._applyConfig(Object.assign({select:{pois:[e]}},n));break}case"categories":{const{categories:e}=t,n=Ee(t,["categories"]);this._applyConfig(Object.assign({filter:{categories:e}},n));break}}}catch(n){t("error",{error:JSON.stringify(n,Object.getOwnPropertyNames(n))}),console.error(n)}}applyFromQuery(e){var t,n,r,i,o,a,s,l;const c=new URLSearchParams(e),u=null!==(t=c.get("pcs_sc"))&&void 0!==t?t:c.get("pc_sc");if(!u)return;const d=c.get("pcs_search"),h=c.get("pcs_levels"),p=c.get("pcs_callout"),f=c.get("pcs_zoom"),m=c.get("pcs_areas"),g=c.get("pcs_reset"),v=c.get("pcs_language"),y=c.get("pcs_maxz"),b=parseFloat(null!==(r=null!==(n=c.get("pcs_z"))&&void 0!==n?n:c.get("pc_z"))&&void 0!==r?r:""),x=parseInt(null!==(o=null!==(i=c.get("pcs_o"))&&void 0!==i?i:c.get("pc_o"))&&void 0!==o?o:"",10),w={showSearch:"false"!==d&&void 0,showLevelChoice:"false"!==h&&void 0,showCallout:"false"!==p&&void 0,showZoomControl:"false"!==f&&void 0,showAreaSelector:"false"!==m&&void 0,showResetButton:"false"!==g&&void 0,showLanguageSelector:"false"!==v&&void 0,maxZoomLevel:Number.isFinite(y)?b:void 0,zoomLevel:Number.isFinite(b)?b:void 0,ordinal:Number.isInteger(x)?x:void 0};switch(u){case"poi":case"onePOI":case"selectPOI":{const e=null!==(a=c.get("pcs_poi"))&&void 0!==a?a:c.get("pc_poi");if(!e)return void console.error("The query parameter 'pcs_poi' must be set");this.apply(Object.assign({scenarioType:"onePOI",poi:e},w));break}case"categories":{const e=null===(l=null!==(s=c.get("pcs_cats"))&&void 0!==s?s:c.get("pc_cats"))||void 0===l?void 0:l.split(",").filter(Boolean);if(!(null===e||void 0===e?void 0:e.length))return void console.error("The query parameter 'pcs_cats' must contain at least one category ID");this.apply(Object.assign({scenarioType:"categories",categories:e},w));break}default:return}}_applyConfig(e){const t=this._map,n=this._globalStyles,r=this._selectOccupant,{route:i,filter:o,select:a,ordinal:s,zoomLevel:l,showSearch:c=wf.showSearch,showLevelChoice:u=wf.showLevelChoice,showAreaSelector:d=wf.showAreaSelector,showZoomControl:h=wf.showZoomControl,showResetButton:p=wf.showResetButton,showLanguageSelector:f=wf.showLanguageSelector,showCallout:m=wf.showCallout,maxZoomLevel:g=wf.maxZoomLevel,animate:v=wf.animate,duration:y=wf.duration,delay:b=wf.delay,easing:x=wf.easing}=e;if(n.innerHTML="\n      .pcmap-search-box {\n\t\t\t\t".concat(c?"":"display: none !important;","\n      }\n\n      .pcmap-levels-button {\n\t\t\t\t").concat(u?"":"display: none !important;","\n      }\n\n      .pcmap-area-selector {\n\t\t\t\t").concat(d?"":"display: none !important;","\n      }\n\n      .pcmap-zoom-button {\n\t\t\t\t").concat(h?"":"display: none !important;","\n      }\n\n      .pcmap-home-button {\n\t\t\t\t").concat(p?"":"display: none !important;","\n      }\n\n      .pcmap-languages-control {\n\t\t\t\t").concat(f?"":"display: none !important;","\n      }\n\n      .pcmap-popup {\n\t\t\t\t").concat(m?"":"display: none !important;","\n      }\n    "),o&&(o.categories||o.pois||o.areas||o.zones||o.aroundPOIs||o.aroundRoute||o.aroundUserPosition)){const e=new Map,n={ordinal:0,count:0},r=o.pois?new Set(o.pois):null,i=o.categories?new Set(o.categories.map((e=>e.toLowerCase()))):null,a=o.areas?new Set(o.areas.map((e=>e.toLowerCase()))):null,l=o.zones?new Set(o.zones.map((e=>e.toLowerCase()))):null,c=o.aroundPOIs?new Set(o.aroundPOIs):null,u=o.aroundRoute?new Set([o.aroundRoute.sourceId,o.aroundRoute.destinationId]):null;t.filterMarkers((t=>{var d,h;let p=!0;if(r&&(p=p&&r.has(t.id)),i){const e=null===(d=t.category.fullPathIds)||void 0===d?void 0:d.some((e=>i.has(e))),n=null===(h=t.extraCategoryIds)||void 0===h?void 0:h.some((e=>i.has(e)));
2p=p&&(e||n)}if(a&&(p=p&&a.has(t.area.toLowerCase())),l&&(p=p&&l.has(t.zone.toLowerCase())),o.aroundPOIs&&o.radius){const e=o.radius;p=p&&Array.isArray(t.distanceToPOIs)&&t.distanceToPOIs.some((t=>t<=e))}if(o.aroundUserPosition&&o.radius){const e=o.radius;p=p&&Number.isFinite(t.distanceToUserPosition)&&t.distanceToUserPosition<=e}if(o.aroundRoute&&o.radius){const e=o.radius;p=p&&Number.isFinite(t.distanceToRoute)&&t.distanceToRoute<=e}if(c&&c.has(t.id)&&(p=!0),u&&u.has(t.id)&&(p=!0),p&&!u&&!Number.isFinite(s)){const{ordinal:r}=t.level,i=(e.get(r)||0)+1;e.set(r,i),n.count<i&&(n.ordinal=r,n.count=i)}return p}),{addDistanceToPOIs:o.aroundPOIs,addDistanceToRoute:o.aroundRoute,addDistanceToUserPosition:o.aroundUserPosition,maxZoom:g}),n.count>0&&t.showOrdinal(n.ordinal)}else t.filterMarkers(null);a&&a.pois&&t.selectMarkers(a.pois,(e=>{if(0===e.length)return;const t=e[0];r(t,{zoom:null!==l&&void 0!==l?l:void 0,paddings:xf({showCallout:m}),animate:v})})),Number.isFinite(s)&&t.showOrdinal(s),i&&t.showRoute(i),!a&&l&&t.setZoom(l,{animate:v,duration:y,delay:b,easing:x})}_waitForMessages(){window.addEventListener("message",(e=>{const t=e.data,{type:n,scenario:r,poi:i,categories:o}=t,a=Ee(t,["type","scenario","poi","categories"]);if("applyScenario"===n)switch(r){case"onePOI":if(!i)return;this.apply(Object.assign({scenarioType:r,poi:i},a));break;case"categories":if(!Array.isArray(o))return;this.apply(Object.assign({scenarioType:r,categories:o},a))}}))}}const Ef=function(e){return"".concat(e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:16),"em")};var Sf;function Mf(){return Mf=Object.assign?Object.assign.bind():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},Mf.apply(this,arguments)}const Tf=be.c.div(i||(i=Object(ge.a)(["\n  position: absolute;\n  top: 0;\n  left: 0;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 100%;\n  width: 100%;\n  background-color: #ffffff90;\n  z-index: 10000;\n"]))),Af=be.c.div(o||(o=Object(ge.a)(["\n  position: relative;\n  width: 90%;\n  max-width: ",";\n  padding: ",";\n  border-radius: 10px;\n  background-color: white;\n  box-shadow: 0px 6px 32px rgba(10, 10, 130, 0.08),\n    0px 4px 16px rgba(10, 10, 130, 0.08), 0px 1px 4px rgba(10, 10, 130, 0.24);\n"])),Ef(450),Ef(20));function Of(e){let{className:t,children:n}=e;return ve.createElement(Tf,{className:t},ve.createElement(Af,null,n))}const Cf=Object(be.c)((function(e){return ve.createElement("svg",Mf({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},e),Sf||(Sf=ve.createElement("path",{fill:"currentColor",d:"M311 361a32 32 0 1 1-46 46L160 301 55 407a32 32 0 0 1-46 0 32 32 0 0 1 0-46l106-105L9 151a32 32 0 1 1 46-46l105 106 105-106a32 32 0 1 1 46 46L205 256l106 105z"})))}))(a||(a=Object(ge.a)(["\n  position: absolute;\n  top: 3%;\n  right: 3%;\n  padding: 10px;\n  width: ",";\n  cursor: pointer;\n"])),Ef(32)),Rf=be.c.div(s||(s=Object(ge.a)(["\n  font-size: ",";\n  font-weight: bold;\n  margin-bottom: ",";\n"])),Ef(18),Ef(15)),Pf=be.c.div(l||(l=Object(ge.a)(["\n  font-style: normal;\n"]))),If=be.c.div(c||(c=Object(ge.a)(["\n  display: flex;\n  justify-content: flex-end;\n  margin-top: ",";\n"])),Ef(20)),Lf=be.c.button(u||(u=Object(ge.a)(["\n  height: ",";\n  padding: 0 ",";\n  border: 0;\n  border-radius: ",";\n  color: white;\n  background-color: #0a0a82;\n  cursor: pointer;\n"])),Ef(40),Ef(30),Ef(40));var kf;function Df(){return Df=Object.assign?Object.assign.bind():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},Df.apply(this,arguments)}var Nf,Uf=function(e){return ve.createElement("svg",Df({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400"},e),kf||(kf=ve.createElement("g",{fillRule:"evenodd"},ve.createElement("path",{fill:"#057cfc",d:"M193.1 5c.7.2 1.9.2 2.6 0h-2.6m11.2 0c.7.2 2 .2 2.8 0h-2.8m-59 118.8c-22.1 6.2-29 42.8-13.2 70l5 8.7c6.7 12 23.7 33 33.2 40.9 16.2 13.6 33 24.2 42.7 27.1 1.1.3 3.1 1 4.5 1.7a62.6 62.6 0 0 0 23.1 4.4h7.2l5.3-1.9c12.5-4.3 18.2-9.7 22-21 4-12.2 1.9-17.2-10.7-24.1-23.4-13-26.2-13-33.8-1.6-5 7.6-8.3 10.2-13 10.1-11.3-.1-36.9-20.8-50-40.3-6.2-9.2-6-14.6.3-22.1 7.
26-8.9 7.8-13 1.5-27.7a405 405 0 0 1-4.9-12c-4-10.8-10.3-14.7-19.2-12.2m249.2 60.4c0 1.1.1 1.5.2.9v-2c-.1-.5-.2 0-.2 1.1M5 194c0 1.4.1 2 .2 1.3v-2.6c-.1-.7-.2-.1-.2 1.3m0 12c0 1.4.1 2 .2 1.3v-2.6c-.1-.7-.2-.1-.2 1.3m389.6 10c0 1.2 0 1.7.2 1.1a8.9 8.9 0 0 0 0-2.2c-.1-.6-.2-.1-.2 1.1m-211 178.7a5.7 5.7 0 0 0 1.8 0c.5-.1 0-.2-.9-.2s-1.4 0-.9.2m31.6 0a5.7 5.7 0 0 0 1.8 0c.5-.1 0-.2-.9-.2s-1.4 0-.9.2"}),ve.createElement("path",{fill:"#F7F7FB",d:"M183.8 5.2c-13.7.3-16.3.6-19.9 2.2-1.5.7-3.5 1-6.7 1.4-5 .4-6.8.9-8.5 2-.7.6-2.6 1-4.9 1.4-4.2.7-4.7.8-6.6 2a16 16 0 0 1-4.3 1.6c-1.6.3-3.5 1-4.1 1.3-3 1.8-3.9 2.1-4.7 2.1-1.2 0-3.1.8-5 2.1-1 .6-2.3 1.3-3.3 1.5-.9.3-2.4 1-3.4 1.6-1 .7-2.6 1.5-3.6 1.8-1 .3-2.8 1.3-4 2.2-1.4.9-2.7 1.6-3 1.6s-1.3.7-2.3 1.6c-1 .8-2.4 1.6-3 1.8-.6.1-2 1-3.2 1.8-1.1.9-2.2 1.6-2.4 1.6-.2 0-1.2.7-2.1 1.5a20 20 0 0 1-2.8 2.1c-10.2 5.4-40.4 35.7-45.7 45.8l-1.9 2.6c-.7.8-1.6 2-1.9 2.6-.3.7-1.1 1.8-1.7 2.6-1.2 1.5-2.5 4.7-2.2 5.3.1.1 0 .2-.3 0-.6-.1-2.3 1.7-2.3 2.6l-1.8 3.3c-1 1.6-2 3.4-2 4-.2.5-1 2.2-1.9 3.6-.8 1.4-1.5 2.8-1.5 3.2 0 .4-.6 1.7-1.4 3-1.5 2.5-2.8 6.6-2.4 7.6 0 .3 0 .5-.3.5-1-.3-3 4.5-3.1 7.3a6 6 0 0 1-1.2 2.6c-1.3 1.9-1.9 3.7-2.2 7.6-.2 1.8-.6 3-1 3.6-1.2 1.3-2 4.4-2.6 9.7-.3 2.8-.8 5.6-1.1 6.3-1.7 3.2-2 5.5-2.3 20.9-.3 16.4.1 43.6.8 46.6.4 2.2 2 6 2.3 5.7.2 0 .3 1.6.4 3.7.1 5.4.8 8.3 2.6 11 .4.5.7 1.5.7 2.2 0 2.8 1 6.9 2.2 8.4.7 1.1 1.3 2.7 1.7 4.8.3 2 1 3.6 1.7 4.7.6 1 1.3 2.6 1.6 3.8.3 1.2 1 3.2 1.8 4.4a19 19 0 0 1 1.7 3.7c.2.8 1 2.5 1.9 3.8a12 12 0 0 1 1.4 3c0 .3.7 1.6 1.5 3 .8 1.2 1.8 3 2.2 3.9.8 1.6 3 4.5 3.5 4.3.1 0 .2.5.2 1.1a27 27 0 0 0 5.2 8.5c.8.8 1.6 2 2 2.7.7 1.4 2.7 4.2 4.7 6.6l1.9 2.4a209 209 0 0 1 8 9A197.7 197.7 0 0 0 96.9 367c.6.1 2 1 3 1.8 1 .9 2 1.6 2.3 1.6.2 0 1.3.6 2.4 1.4 1.2.7 3 1.7 4.3 2.1 1.1.5 2.8 1.3 3.6 1.9.9.5 2.5 1.3 3.7 1.7a19 19 0 0 1 3.6 1.8c.9.6 2.6 1.3 3.8 1.5 1.3.3 3.3 1.1 4.5 1.8a13.7 13.7 0 0 0 4.8 1.8c1.5.2 3.2.8 4 1.4 2.3 1.4 3.4 1.8 6.9 2.2 2 .2 3.7.7 4.9 1.4 2.4 1.3 4 1.7 9.2 2.1 3.3.3 5 .7 6.7 1.5 4.3 2 6 2 35.9 2 30.3 0 31 0 36.2-2.3 1.6-.7 3.1-1 4.6-1 3.7-.1 7.3-.9 9.8-2.1 1.6-.8 3.5-1.3 5.8-1.6 2.6-.4 4-.8 5.8-1.8 1.4-.7 3.8-1.6 5.4-2 1.7-.3 3.6-1 4.5-1.6.8-.6 2.6-1.4 4-1.7a15 15 0 0 0 4.1-1.7l3.2-1.6c.9-.3 2.6-1 3.8-1.8 1.2-.7 3-1.5 3.8-1.8.9-.3 2.3-1 3.2-1.6.9-.6 2.5-1.6 3.6-2.1 1.1-.6 2.3-1.3 2.6-1.7.3-.4 1.7-1.2 3-1.9 2.4-1.1 5.3-3 7.8-5l2.8-2c1.4-.7 6-4.1 7.8-5.7a8459.8 8459.8 0 0 0 6.8-6l4.6-4c4.9-4.2 8.9-8.4 8.6-9 0-.3 0-.5.3-.4.3 0 2.8-2.5 5.7-5.8l6.3-7.3c.7-.7 1.8-2.2 2.6-3.4.7-1.1 1.6-2.2 2-2.5.2-.3.5-.7.5-1 0-.2 1-1.6 2.2-3.1 1.2-1.5 2.2-3 2.2-3.3 0-.2.4-.8.8-1.2 1.2-1.1 2.1-3 1.9-3.8-.1-.5 0-.7.1-.6s.5 0 .7-.5c.1-.4.6-1 1-1.3.4-.3 1.2-1.3 1.7-2.4.4-1 1.4-2.7 2.1-3.8 1.4-2.2 2.3-4.8 1.9-5.5-.2-.2-.1-.3.1-.1.6.3 2.4-2.5 3-4.6.3-.8 1-2.4 1.8-3.6.7-1.3 1.5-3.4 1.9-4.7.3-1.4 1-3 1.5-3.7.6-.7 1.2-2.1 1.5-3.5.8-3.8 1.1-4.8 2-6 1.1-1.4 2-4.6 2-8 .2-1.6.4-2.8.6-2.8 1.3.2 3-6.2 3-11.1 0-1.9.3-3.1 1.2-5.1 2-4.4 2-5.6 2.3-31.4.2-26.6-.1-34.5-1.5-38.3-1-2.7-1.8-4.2-2-4-.1 0-.2-1.7-.2-4 0-5.3-2-11.5-3.2-10.3-.1.1-.1 0 0-.4.6-1.4-.6-7.3-2-9.7-.7-1.3-1.5-3.6-1.8-5-.5-2.7-1.3-4.5-2.3-5.7-.4-.4-.9-1.8-1.2-3-.2-1.4-1-3.2-1.5-4.2-.6-1-1.6-2.8-2-4-.6-1.4-1.4-3.1-2-3.9-.5-.8-1.1-2.1-1.4-3l-2-4c-.9-1.2-1.6-2.6-1.6-2.8a8 8 0 0 0-1.6-2.4 10 10 0 0 1-1.9-3 34 34 0 0 0-5-7.7l-2.3-3.3c-1.2-2-3.3-4.9-5.3-7.4a230 230 0 0 0-9-10.4 96 96 0 0 0-15.5-15.1c-8.1-7.3-9-8-15.2-12.3a554 554 0 0 1-6-4.2 36.8 36.8 0 0 0-4.8-3c-1.1-.5-2.6-1.4-3.2-2l-3-1.8-3-1.8A19 19 0 0 0 291 26c-1.4-.5-2.7-1.1-3-1.4-.2-.3-1.6-1-3.2-1.6-1.6-.6-3.4-1.5-4.1-2a9.8 9.8 0 0 0-4.8-1.8c-.4 0-1.8-.6-3-1.4-1.3-.8-3.2-1.5-4.8-1.8-1.4-.3-3.7-1.1-5-1.9-2-1-3.4-1.4-6.3-1.8-2.6-.4-4.3-.9-5.5-1.6-2-1.2-4.6-1.7-9.6-2.1a17 17 0 0 1-5.4-1.2A25 25 0 0 0 232 6a474 474 0 0 0-48.2-.8m-28 119c3.4 1.6 6.4 5.7 8.7 11.8l4.9 12c6.3 14.6 6 18.8-1.5 27.7-8.7 10.2-6.5 16.9 12.8 38 6.5 7 16.7 15.4 24.8 20 12.1 7.1 17.4 6 25-5.7 7.7-11.5 10.5-11.3 33.9 1.6 12.6 7 14.8 11.9 10.6 24.2-3.7 11.2-9.4 16.6-21.9 21l-5.3 1.8h-7.2c-7.8 0-16.5-1.7-23-4.4l-4.6-1.7c-9.7-2.9-26.5-13.5-42.7-27.1a197.1 197.1 0 0 1-33.2-40.9 997.2 997.2 0 0 0-5-8.6 69.7 69.7 0 0 1-8.3-41.2c3.4-19.7 19.8-34.3 32-28.5m238.9 60.9c-.1.6-.2.2-.2-.9s0-1.6.2
2-1.1v2m0 32c-.1.6-.2.1-.2-1.1 0-1.2.1-1.7.2-1.1a8.9 8.9 0 0 1 0 2.2M185.3 394.7a5.7 5.7 0 0 1-1.8 0c-.5-.1 0-.2.9-.2s1.4 0 .9.2m31.6 0a5.7 5.7 0 0 1-1.8 0c-.5-.1 0-.2.9-.2s1.4 0 .9.2"}))))};function jf(){return jf=Object.assign?Object.assign.bind():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},jf.apply(this,arguments)}var Ff,Bf=function(e){return ve.createElement("svg",jf({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400"},e),Nf||(Nf=ve.createElement("g",{fillRule:"evenodd"},ve.createElement("path",{fill:"#057cfc",d:"M193.1 5c.7.2 1.9.2 2.6 0h-2.6m11.2 0c.7.2 2 .2 2.8 0h-2.8m-9.1 89c-5 .7-17.7 3.3-20.1 4.2l-5.7 2a108 108 0 0 0-34.5 22 110 110 0 0 0-27.3 45.2 102.2 102.2 0 0 0 88 128.6c11.2 1.2 30-.7 39-4a281.3 281.3 0 0 1 5.9-2 93.4 93.4 0 0 0 28.1-16.4 100 100 0 0 0 27.7-34.4c29.1-59.9-6.5-130.8-72.1-143.6-9-1.8-22-2.5-29-1.6m19.6 18.4c2.5.3 6 1 8 1.5l6.3 1.8a85.4 85.4 0 0 1 45.5 33.9c5.7 9 8.6 16 12.5 30.6 1.1 4 1 26.6-.2 30.4l-1.9 6.6c-8.9 31.2-32.8 52.7-66.4 60-6.4 1.3-26 .7-30.7-1-1-.4-3.6-1.2-6-1.8a79.6 79.6 0 0 1-29.1-15.4 81.4 81.4 0 0 1-27.3-41.6l
2-2-7.2c-1-3.4-1.4-19.7-.8-25.7 1.6-13.4 9-30.6 18.3-41.7a83.1 83.1 0 0 1 40.6-27.2 252.2 252.2 0 0 0 6.2-1.7 85.5 85.5 0 0 1 27-1.5m-12.6 23.2c-2 .8-4.3 3-5.3 5.1-.9 1.9-1.3 52.6-.5 57.1a21.2 21.2 0 0 0 11.9 14.7l3.5 1.7H235c23 0 23.2 0 24.8-.9 6-3.2 7.2-10 2.5-14.4-3-2.8-2.3-2.7-21.3-3-19.6-.2-19.3-.2-22.6-3.4-3.9-3.6-3.7-2.5-4-28.1-.2-16.6-.3-22.5-.7-23.4-2.1-4.8-7.4-7.3-11.5-5.4M4.9 194c0 1.4.1 2 .2 1.3v-2.6c-.1-.7-.2-.1-.2 1.3m0 12c0 1.4.1 2 .2 1.3v-2.6c-.1-.7-.2-.1-.2 1.3"}),ve.createElement("path",{fill:"#F7F7FB",d:"M183.8 5.2c-13.7.3-16.3.6-19.9 2.2-1.5.7-3.5 1-6.7 1.4-5 .4-6.8.9-8.5 2-.7.6-2.6 1-4.9 1.4-4.2.7-4.7.8-6.6 2a16 16 0 0 1-4.3 1.6c-1.6.3-3.5 1-4.1 1.3-3 1.8-3.9 2.1-4.7 2.1-1.2 0-3.1.8-5 2.1-1 .6-2.3 1.3-3.3 1.5-.9.3-2.4 1-3.4 1.6-1 .7-2.6 1.5-3.6 1.8-1 .3-2.8 1.3-4 2.2-1.4.9-2.7 1.6-3 1.6s-1.3.7-2.3 1.6c-1 .8-2.4 1.6-3 1.8-.6.1-2 1-3.2 1.8-1.1.9-2.2 1.6-2.4 1.6-.2 0-1.2.7-2.1 1.5a20 20 0 0 1-2.8 2.1c-10.2 5.4-40.4 35.7-45.7 45.8l-1.9 2.6c-.7.8-1.6 2-1.9 2.6a21 21 0 0 1-1.7 2.6c-.6.8-1.3 2-1.6 2.8-.2.8-1 2.1-1.8 3-.8.8-1.4 1.7-1.4 2l-1.8 3.4c-1 1.6-2 3.4-2 4-.2.5-1 2.2-1.9 3.6-.8 1.4-1.5 2.8-1.5 3.2 0 .4-.6 1.7-1.4 3-.8 1.3-1.8 3.6-2.1 5-.4 1.4-1 3.1-1.6 3.7-1 1.2-1.6 3.1-2 6.3-.2 1-.8 2.5-1.4 3.2-1.2 1.6-1.8 3.6-2.1 7.4-.2 1.8-.6 3-1 3.6-1.2 1.3-2 4.4-2.6 9.7-.3 2.8-.8 5.6-1.1 6.3-2.2 4-2.9 20.9-2.2 50.7.3 15.5.5 17.5 2 20.9.7 1.4 1 3.2 1.3 5.6.4 5.7 1 8.2 2.7 10.7.4.5.7 1.5.7 2.2 0 2.8 1 6.9 2.2 8.4.7 1.1 1.3 2.7 1.7 4.8.3 2 1 3.6 1.7 4.7.6 1 1.3 2.6 1.6 3.8.3 1.2 1 3.2 1.8 4.4a19 19 0 0 1 1.7 3.7c.2.8 1 2.5 1.9 3.8a12 12 0 0 1 1.4 3c0 .3.7 1.6 1.5 3 .8 1.2 1.8 3 2.2 3.9.5.9 1.4 2.3 2.1 3.1.7.9 1.4 2 1.6 2.6.3 1.3 3.4 6 5.2 8.2.8.8 1.6 2 2 2.7.7 1.4 2.7 4.2 4.7 6.6l1.9 2.4a209 209 0 0 1 8 9A197.7 197.7 0 0 0 96.9 367c.6.1 2 1 3 1.8 1 .9 2 1.6 2.3 1.6.2 0 1.3.6 2.4 1.4 1.2.7 3 1.7 4.3 2.1 1.1.5 2.8 1.3 3.6 1.9.9.5 2.5 1.3 3.7 1.7a19 19 0 0 1 3.6 1.8c.9.6 2.6 1.3 3.8 1.5 1.3.3 3.3 1.1 4.5 1.8a13.7 13.7 0 0 0 4.8 1.8c1.5.2 3.2.8 4 1.4 2.3 1.4 3.4 1.8 6.9 2.2 2 .2 3.7.7 4.9 1.4 2.4 1.3 4 1.7 9.2 2.1 3.3.3 5 .7 6.7 1.5 4.3 2 6 2 35.9 2 30.3 0 31 0 36.2-2.3 1.6-.7 3.1-1 4.6-1 3.7-.1 7.3-.9 9.8-2.1 1.6-.8 3.5-1.3 5.8-1.6 2.6-.4 4-.8 5.8-1.8 1.4-.7 3.8-1.6 5.4-2 1.7-.3 3.6-1 4.5-1.6.8-.6 2.6-1.4 4-1.7a15 15 0 0 0 4.1-1.7l3.2-1.6c.9-.3 2.6-1 3.8-1.8 1.2-.7 3-1.5 3.8-1.8.9-.3 2.3-1 3.2-1.6.9-.6 2.5-1.6 3.6-2.1 1.1-.6 2.3-1.3 2.6-1.7.3-.4 1.7-1.2 3-1.9 2.4-1.1 5.3-3 7.8-5l2.8-2c1.4-.7 6-4.1 7.8-5.7a8459.8 8459.8 0 0 0 6.8-6l4.6-4a102.6 102.6 0 0 0 14.4-15 102 102 0 0 0 11.6-14.3c0-.3 1-1.7 2.2-3.2 1.2-1.5 2.2-3 2.2-3.3 0-.2.4-.9 1-1.4s1.1-1.4 1.4-2.1c.9-2.4 1.4-3.3 2.1-3.9.5-.3 1.2-1.3 1.7-2.4.4-1 1.4-2.7 2.1-3.8.7-1 1.5-2.7 1.7-3.5.2-.8 1-2.4 1.8-3.5.7-1.2 1.5-2.7 1.6-3.3.2-.6.9-2.2 1.6-3.4.8-1.3 1.6-3.4 2-4.8.3-1.4 1-3 1.5-3.7.6-.7 1.2-2.1 1.5-3.5.8-3.8 1.2-5.3 1.7-5.5.8-.6 2-3.9 2.4-7.3.2-2.3.6-3.8 1.1-4.4 1.2-1.6 2-4.8 2.3-9.3.2-3.4.4-4.6 1.4-6.7 1.9-4.2 2-5.6 2.2-31.2.2-30.8 0-35.2-2.6-41-.5-1.1-.9-3-1-5.9-.3-4.5-.8-6.6-2.2-8.8-.5-.9-1-2.7-1.3-5-.3-2.8-.8-4.2-1.8-6-.7-1.3-1.5-3.6-1.8-5-.5-2.7-1.3-4.5-2.3-5.7-.4-.4-.9-1.8-1.2-3-.2-1.4-1-3.2-1.5-4.2-.6-1-1.6-2.8-2-4-.6-1.4-1.4-3.1-2-3.9-.5-.8-1.1-2.1-1.4-3l-2-4c-.9-1.2-1.6-2.6-1.6-2.8a8 8 0 0 0-1.6-2.4 10 10 0 0 1-1.9-3 34 34 0 0 0-5-7.7c-.7-.9-1.8-2.3-2.3-3.3-1.2-2-3.3-4.9-5.3-7.4a230 230 0 0 0-9-10.4 96 96 0 0 0-15.5-15.1c-8.1-7.3-9-8-15.2-12.3a554 554 0 0 1-6-4.2 36.8 36.8 0 0 0-4.8-3c-1.1-.5-2.6-1.4-3.2-2l-3-1.8-3-1.8A19 19 0 0 0 291 26c-1.4-.5-2.7-1.1-3-1.4-.2-.3-1.6-1-3.2-1.6-1.6-.6-3.4-1.5-4.1-2a9.8 9.8 0 0 0-4.8-1.8c-.4 0-1.8-.6-3-1.4-1.3-.8-3.2-1.5-4.8-1.8-1.4-.3-3.7-1.1-5-1.9-2-1-3.4-1.4-6.3-1.8-2.6-.4-4.3-.9-5.5-1.6-2-1.2-4.6-1.7-9.6-2.1a17 17 0 0 1-5.4-1.2A25 25 0 0 0 232 6a474 474 0 0 0-48.2-.8m40.4 90.3a101.2 101.2 0 0 1 72 143.7 100 100 0 0 1-27.6 34.4 93.4 93.4 0 0 1-34 18.4 98.9 98.9 0 0 1-93.6-19 102.2 102.2 0 0 1-33.4-105.5 110 110 0 0 1 27.3-45.3 108 108 0 0 1 40.2-24c2.4-1 15-3.6 20.1-4.2 7-.9 20-.2 29 1.5m-29.2 17c-2 .1-5.2.8-7.2 1.4l-6.2 1.7a83.1 83.1 0 0 0-40.6 27.2 88.4 88.4 0 0 0-18.3 41.7c-.6 6-.2 22.3.8 25.7 2.7 9.9 3.4 12 4.7 15.4a92.2 92.2 0 0 0 19 28.7A84.5 84.5 0 0 0 188 276c4.8 1.8 24.3 2.4 30.7 1 33.6-7.2 57.5-28.7 66.4-59.9l2-6.6c1-3.8 1.2-26.4.1-30.4a95.7 95.7 0 0 0-12.5-30.6 85.4 85.4 0 0 0-45.5-34 273.4 273.4 0 0 1-6.3-1.7c-5.9-1.7-18-2.4-27.8-1.5m13.7 23.4c2.1 1 4 3.1 5 5.2.4 1 .5 6.8.7 23.4.3 25.6.1 24.5 4 28.1 3.3 3.2 3 3.2 22.6 3.5 19 .2 18.3.1 21.3 3 4.7 4.4 3.5 11.1-2.5 14.3-1.6.9-1.7.9-24.8.9h-23.2l-3.5-1.7c-6.2-3-10.7-8.5-11.9-14.7-.8-4.5-.4-55.2.5-57 2.5-5 7.5-7.1 11.8-5"}))))};function zf(){return zf=Object.assign?Object.assign.bind():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},zf.apply(this,arguments)}var Hf,Vf,Wf=function(e){return ve.createElement("svg",zf({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400"},e),Ff||(Ff=ve.createElement("g",{fillRule:"evenodd"},ve.createElement("path",{fill:"#057cfc",d:"M193.1 5c.7.2 1.9.2 2.6 0h-2.6m11.2 0c.7.2 2 .2 2.8 0h-2.8m-16.1 98.3c-3.6.4-15 3-17.6 3.9l-5.5 2a103.5 103.5 0 0 0-32.9 21.2c-33.3 31-39.1 87.4-12.8 124.2a96.1 96.1 0 0 0 94.4 42.1c14.2-2.6 24.2-6 35-12.2a107.4 107.4 0 0 0 35.7-35.8c6.2-10.7 9.6-20.6 12.2-34.9 1-5.7.9-23-.2-28.6a111.1 111.1 0 0 0-6.1-21.8c-4.9-15.4-24-37.4-41.3-47.5a101.7 101.7 0 0 0-60.9-12.6m56.4 53.2c.8 1.2.8 2.4-.2 6.8l-1.8 10-1.7 9.5c-.5 1.9-1.1 5.5-1.5 8-.4 2.5-1.1 6.7-1.7 9.2l-1.7 9.8c-2.5 16-2.3 15.8-17.4 19.6a1136 1136 0 0 0-28.4 7.3l-19.2 5c-17.6 5-17.4 5.2-12-14.5a795.2 795.2 0 0 0 6.8-26.2 186 186 0 0 0 2-7.8c.3-1.6 1.1-4.8 1.8-7s1.4-5.2 1.8-6.8c1.1-5 2.8-6.2 11.3-8.4a473.3 473.3 0 0 0 25.7-6.8c1.7-.3 4.4-1 6-1.6 1.7-.5 4.4-1.3 6-1.6 1.7-.4 4.2-1 5.6-1.5 10.4-3.3 17.5-4.5 18.6-3m150 27.7v.9c.2-.6.2-1.5 0-2v1.1m-198.1 1.2a15 15 0 0 0-7 25.3c7.3 7.4 19 5.4 24.1-4 5.9-10.8-5.2-24.6-17.1-21.3M4.9 194c0 1.4.1 2 .2 1.3v-2.6c-.1-.7-.2-.1-.2 1.3m0 12c0 1.4.1 2 .2 1.3v-2.6c-.1-.7-.2-.1-.2 1.3m389.6 10c0 1.2 0 1.7.2 1.1a8.9 8.9 0 0 0 0-2.2c-.1-.6-.2-.1-.2 1.1m-211 178.7a5.7 5.7 0 0 0 1.8 0c.5-.1 0-.2-.9-.2s-1.4 0-.9.2m31.6 0a5.7 5.7 0 0 0 1.8 0c.5-.1 0-.2-.9-.2s-1.4 0-.9.2"}),ve.createElement("path",{fill:"#F7F7FB",d:"M183.8 5.2c-13.7.3-16.3.6-19.9 2.2-1.5.7-3.5 1-6.7 1.4-5 .4-6.8.9-8.5 2-.7.6-2.6 1-4.9 1.4-4.2.7-4.7.8-6.6 2a16 16 0 0 1-4.3 1.6c-1.
26.3-3.5 1-4.1 1.3-3 1.8-3.9 2.1-4.7 2.1-1.2 0-3.1.8-5 2.1-1 .6-2.3 1.3-3.3 1.5-.9.3-2.4 1-3.4 1.6-1 .7-2.6 1.5-3.6 1.8-1 .3-2.8 1.3-4 2.2-1.4.9-2.7 1.6-3 1.6s-1.3.7-2.3 1.6c-1 .8-2.4 1.6-3 1.8-.6.1-2 1-3.2 1.8-1.1.9-2.2 1.6-2.4 1.6-.2 0-1.2.7-2.1 1.5a20 20 0 0 1-2.8 2.1c-10.2 5.4-40.4 35.7-45.7 45.8l-1.9 2.6c-.7.8-1.6 2-1.9 2.6-.3.7-1.1 1.8-1.7 2.6-1.2 1.5-2.5 4.7-2.2 5.3.1.1 0 .2-.3 0-.6-.1-2.3 1.7-2.3 2.6l-1.8 3.3c-1 1.6-2 3.4-2 4-.2.5-1 2.2-1.9 3.6-.8 1.4-1.5 2.8-1.5 3.2 0 .4-.6 1.7-1.4 3-1.5 2.5-2.8 6.6-2.4 7.6 0 .3 0 .5-.3.5-1-.3-3 4.5-3.1 7.3a6 6 0 0 1-1.2 2.6c-1.3 1.9-1.9 3.7-2.2 7.6-.2 1.8-.6 3-1 3.6-1.2 1.3-2 4.4-2.6 9.7-.3 2.8-.8 5.6-1.1 6.3-1.7 3.2-2 5.5-2.3 20.9-.3 16.4.1 43.6.8 46.6.4 2.2 2 6 2.3 5.7.2 0 .3 1.6.4 3.7.1 5.4.8 8.3 2.6 11 .4.5.7 1.5.7 2.2 0 2.8 1 6.9 2.2 8.4.7 1.1 1.3 2.7 1.7 4.8.3 2 1 3.6 1.7 4.7.6 1 1.3 2.6 1.6 3.8.3 1.2 1 3.2 1.8 4.4a19 19 0 0 1 1.7 3.7c.2.8 1 2.5 1.9 3.8a12 12 0 0 1 1.4 3c0 .3.7 1.6 1.5 3 .8 1.2 1.8 3 2.2 3.9.8 1.6 3 4.5 3.5 4.3.1 0 .2.5.2 1.1a27 27 0 0 0 5.2 8.5c.8.8 1.6 2 2 2.7.7 1.4 2.7 4.2 4.7 6.6l1.9 2.4a209 209 0 0 1 8 9A197.7 197.7 0 0 0 96.9 367c.6.1 2 1 3 1.8 1 .9 2 1.6 2.3 1.6.2 0 1.3.6 2.4 1.4 1.2.7 3 1.7 4.3 2.1 1.1.5 2.8 1.3 3.6 1.9.9.5 2.5 1.3 3.7 1.7a19 19 0 0 1 3.6 1.8c.9.6 2.6 1.3 3.8 1.5 1.3.3 3.3 1.1 4.5 1.8a13.7 13.7 0 0 0 4.8 1.8c1.5.2 3.2.8 4 1.4 2.3 1.4 3.4 1.8 6.9 2.2 2 .2 3.7.7 4.9 1.4 2.4 1.3 4 1.7 9.2 2.1 3.3.3 5 .7 6.7 1.5 4.3 2 6 2 35.9 2 30.3 0 31 0 36.2-2.3 1.6-.7 3.1-1 4.6-1 3.7-.1 7.3-.9 9.8-2.1 1.6-.8 3.5-1.3 5.8-1.6 2.6-.4 4-.8 5.8-1.8 1.4-.7 3.8-1.6 5.4-2 1.7-.3 3.6-1 4.5-1.6.8-.6 2.6-1.4 4-1.7a15 15 0 0 0 4.1-1.7l3.2-1.6c.9-.3 2.6-1 3.8-1.8 1.2-.7 3-1.5 3.8-1.8.9-.3 2.3-1 3.2-1.6.9-.6 2.5-1.6 3.6-2.1 1.1-.6 2.3-1.3 2.6-1.7.3-.4 1.7-1.2 3-1.9 2.4-1.1 5.3-3 7.8-5l2.8-2c1.4-.7 6-4.1 7.8-5.7a8459.8 8459.8 0 0 0 6.8-6l4.6-4c4.9-4.2 8.9-8.4 8.6-9 0-.3 0-.5.3-.4.3 0 2.8-2.5 5.7-5.8l6.3-7.3c.7-.7 1.8-2.2 2.6-3.4.7-1.1 1.6-2.2 2-2.5.2-.3.5-.7.5-1 0-.2 1-1.6 2.2-3.1 1.2-1.5 2.2-3 2.2-3.3 0-.2.4-.8.8-1.2 1.2-1.1 2.1-3 1.9-3.8-.1-.5 0-.7.1-.6s.5 0 .7-.5c.1-.4.6-1 1-1.3.4-.3 1.2-1.3 1.7-2.4.4-1 1.4-2.7 2.1-3.8 1.4-2.2 2.3-4.8 1.9-5.5-.2-.2-.1-.3.1-.1.6.3 2.4-2.5 3-4.6.3-.8 1-2.4 1.8-3.6.7-1.3 1.5-3.4 1.9-4.7.3-1.4 1-3 1.5-3.7.6-.7 1.2-2.1 1.5-3.5.8-3.8 1.1-4.8 2-6 1.1-1.4 2-4.6 2-8 .2-1.6.4-2.8.6-2.8 1.3.2 3-6.2 3-11.1 0-1.9.3-3.1 1.2-5.1 2-4.4 2-5.6 2.3-31.4.2-26.6-.1-34.5-1.5-38.3-1-2.7-1.8-4.2-2-4-.1 0-.2-1.7-.2-4 0-5.3-2-11.5-3.2-10.3-.1.1-.1 0 0-.4.6-1.4-.6-7.3-2-9.7-.7-1.3-1.5-3.6-1.8-5-.5-2.7-1.3-4.5-2.3-5.7-.4-.4-.9-1.8-1.2-3-.2-1.4-1-3.2-1.5-4.2-.6-1-1.6-2.8-2-4-.6-1.4-1.4-3.1-2-3.9-.5-.8-1.1-2.1-1.4-3l-2-4c-.9-1.2-1.6-2.6-1.6-2.8a8 8 0 0 0-1.6-2.4 10 10 0 0 1-1.9-3 34 34 0 0 0-5-7.7l-2.3-3.3c-1.2-2-3.3-4.9-5.3-7.4a230 230 0 0 0-9-10.4 96 96 0 0 0-15.5-15.1c-8.1-7.3-9-8-15.2-12.3a554 554 0 0 1-6-4.2 36.8 36.8 0 0 0-4.8-3c-1.1-.5-2.6-1.4-3.2-2l-3-1.8-3-1.8A19 19 0 0 0 291 26c-1.4-.5-2.7-1.1-3-1.4-.2-.3-1.6-1-3.2-1.6-1.6-.6-3.4-1.5-4.1-2a9.8 9.8 0 0 0-4.8-1.8c-.4 0-1.8-.6-3-1.4-1.3-.8-3.2-1.5-4.8-1.8-1.4-.3-3.7-1.1-5-1.9-2-1-3.4-1.4-6.3-1.8-2.6-.4-4.3-.9-5.5-1.6-2-1.2-4.6-1.7-9.6-2.1a17 17 0 0 1-5.4-1.2A25 25 0 0 0 232 6a474 474 0 0 0-48.2-.8m27.8 98c9.2 1.2 20.8 4.6 29.8 8.7 15.3 7 30.3 20.2 41 36a123 123 0 0 1 9.8 20.5c1.3 3.4 2.7 8.8 4.3 16.8 1.1 5.6 1.2 23 .2 28.6a98.2 98.2 0 0 1-82.9 82.9c-4.6.8-22 1-26.6.2a96.1 96.1 0 0 1-53.7-25.8 127 127 0 0 1-17.8-22.3 97.5 97.5 0 0 1-2.4-92.9c4-7.9 13-20 19-25.5a103.5 103.5 0 0 1 32.8-21.2l5.5-2a110 110 0 0 1 41-4m22.8 54c-3.2.8-7 1.8-8.4 2.3-1.4.5-4 1.1-5.6 1.5-1.6.3-4.3 1-6 1.6-1.6.5-4.3 1.3-6 1.6-1.6.3-4 1-5.4 1.4-2.2.7-7.6 2.2-20.3 5.4-8.5 2.2-10.2 3.4-11.3 8.4l-1.8 6.8c-.6 2.2-1.5 5.3-1.8 7a186 186 0 0 1-2 7.8l-2.1 8c-1.6 6.6-3.4 13.4-4.7 18.2-5.4 19.7-5.6 19.4 12 14.5a994.4 994.4 0 0 1 28.2-7.3l19.4-5c15.1-3.8 14.9-3.5 17.4-19.6.4-2.9 1.2-7.3 1.7-9.8.6-2.5 1.3-6.7 1.7-9.2.4-2.5 1-6.1 1.5-8 .4-1.9 1.2-6.2 1.7-9.6l1.8-9.9c1.8-8.4.9-9-10-6.1M394.7 185c-.1.6-.2.2-.2-.9s0-1.6.2-1.1v2m-188.4 1.3a15 15 0 0 1 4.5 24.4 15 15 0 0 1-24.4-4.4c-5.9-12.5 7.3-25.9 19.9-20M394.7 217c-.1.6-.2.1-.2-1.1 0-1.2.1-1.7.2-1.1a8.9 8.9 0 0 1 0 2.2M185.3 394.7a5.7 5.7 0 0 1-1.8 0c-.5-.1 0-.2.9-.2s1.4 0 .9.2m31.6 0a5.7 5.7 0 0 1-1.8 0c-.5-.1 0-.2.9-.2s1.4 0 .9.2"}))))};
2function Gf(){return Gf=Object.assign?Object.assign.bind():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},Gf.apply(this,arguments)}var qf=function(e){return ve.createElement("svg",Gf({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 400 400"},e),Hf||(Hf=ve.createElement("circle",{cx:200,cy:200,r:195,fill:"#F7F7FB"})),Vf||(Vf=ve.createElement("path",{fill:"#057CFC",d:"M279.72 127H121.28A18.28 18.28 0 0 0 103 145.28v109.69c0 10.1 8.19 18.28 18.28 18.28h158.44c10.1 0 18.28-8.19 18.28-18.28V145.28c0-10.1-8.19-18.28-18.28-18.28zm0 18.28v15.54c-8.54 6.96-22.16 17.77-51.26 40.56-6.41 5.05-19.12 17.17-27.96 17.03-8.84.14-21.55-11.99-27.96-17.03-29.1-22.79-42.72-33.6-51.26-40.56v-15.54h158.44zM121.28 254.97v-70.69c8.73 6.95 21.1 16.7 39.97 31.48 8.32 6.55 22.9 21.02 39.25 20.93 16.27.09 30.66-14.17 39.25-20.93a6539.19 6539.19 0 0 0 39.97-31.48v70.69H121.28z"})))},Xf=e=>{var t,n,r,i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x,w,_,E,S,M,T,A,O,C,R,P,I,L;return{components:{Modal:null!==(r=null===(n=null===(t=e.theme)||void 0===t?void 0:t.components)||void 0===n?void 0:n.Modal)&&void 0!==r?r:Of,ModalHeader:null!==(a=null===(o=null===(i=e.theme)||void 0===i?void 0:i.components)||void 0===o?void 0:o.ModalHeader)&&void 0!==a?a:Rf,ModalFooter:null!==(c=null===(l=null===(s=e.theme)||void 0===s?void 0:s.components)||void 0===l?void 0:l.ModalFooter)&&void 0!==c?c:If,ModalContent:null!==(h=null===(d=null===(u=e.theme)||void 0===u?void 0:u.components)||void 0===d?void 0:d.ModalContent)&&void 0!==h?h:Pf,ModalCloseIcon:null!==(m=null===(f=null===(p=e.theme)||void 0===p?void 0:p.components)||void 0===f?void 0:f.ModalCloseIcon)&&void 0!==m?m:Cf,ModalButton:null!==(y=null===(v=null===(g=e.theme)||void 0===g?void 0:g.components)||void 0===v?void 0:v.ModalButton)&&void 0!==y?y:Lf,OccupantPhoneIcon:null!==(w=null===(x=null===(b=e.theme)||void 0===b?void 0:b.components)||void 0===x?void 0:x.OccupantPhoneIcon)&&void 0!==w?w:Uf,OccupantEmailIcon:null!==(S=null===(E=null===(_=e.theme)||void 0===_?void 0:_.components)||void 0===E?void 0:E.OccupantEmailIcon)&&void 0!==S?S:qf,OccupantWebIcon:null!==(A=null===(T=null===(M=e.theme)||void 0===M?void 0:M.components)||void 0===T?void 0:T.OccupantWebIcon)&&void 0!==A?A:Wf,OccupantTimeIcon:null!==(R=null===(C=null===(O=e.theme)||void 0===O?void 0:O.components)||void 0===C?void 0:C.OccupantTimeIcon)&&void 0!==R?R:Bf,Router:null!==(L=null===(I=null===(P=e.theme)||void 0===P?void 0:P.components)||void 0===I?void 0:I.Router)&&void 0!==L?L:null}}};const Yf=e=>{const t=document.querySelector(".pcmap-search-box");window.matchMedia("(orientation: portrait), (max-width: 600px)").matches&&t&&(t.style.transform="translateY(".concat(e?0:80,"px)"))},Zf=(e,t)=>"set"===t.type?Object.assign(Object.assign({},e),t.values):e,Kf=e=>({map:null,mapLoaded:!1,mapScenarios:null,ordinals:null,categories:null,categoriesFlatten:null,selectedLanguage:"en",selectedOccupant:null,selectedCluster:null,isDirectionsOpen:!1,isRouteOpen:!1,directionsOpenedBy:null,theme:Xf(e)}
2),$f=ye.a.createContext(void 0);function Jf(e){var t,n,{pcmap:r,options:i={}}=e,o=Ee(e,["pcmap","options"]);const{sendMessage:a}=function(){const e=ye.a.useContext(Re);if(!e)throw new Error("useMessages must be used within a MessagesProvider");return e}(),[s,l]=ye.a.useReducer(Zf,Kf(i)),{map:c,mapLoaded:u,mapScenarios:d,ordinals:h,categories:p,categoriesFlatten:f,selectedLanguage:m,selectedOccupant:g,selectedCluster:v,isDirectionsOpen:y,isRouteOpen:b,directionsOpenedBy:x,theme:w}=s,_=null!==(t=i.getPaddings)&&void 0!==t?t:xf,E=null===(n=i.showOriginalDestination)||void 0===n||n,S=ye.a.useCallback((e=>{c.showDirections({stops:[null,{id:e.id}]}),l({type:"set",values:{directionsOpenedBy:e}})}),[c]),M=ye.a.useCallback((e=>{c.addDestination({stop:{id:e.id}}),c.hideRoute()}),[c]),T=ye.a.useCallback((()=>{l({type:"set",values:{selectedCluster:null}}),Yf(!0)}),[]),A=ye.a.useCallback((()=>{c.selectMarkers(null),l({type:"set",values:{selectedOccupant:null}}),Yf(!0)}),[c]),O=ye.a.useCallback(((e,t)=>{T(),"__your-location__"!==e.id&&(Yf(!1),l({type:"set",values:{selectedOccupant:e}})),(null===t||void 0===t?void 0:t.keepView)||(c.selectMarkers([e.id]),setTimeout((()=>{Number.isFinite(e.ordinalId)&&e.ordinalId!==c.state.ordinalId?c.setZoom(1,{animate:!0,easing:"easeOutCirc",duration:300,onAnimationEnd:()=>
2{c.showOrdinal(e.ordinalId),c.setView(e.coordinates,Object.assign({paddings:_(),animate:!0,easing:"easeInOutCubic",delay:750,duration:1e3},t))}}):c.setView(e.coordinates,Object.assign({paddings:_(),animate:!0,easing:"easeInOutCubic",duration:500},t))}),300))}),[c,T]),C=ye.a.useCallback((e=>{y||b||(A(),Yf(!1),setTimeout((()=>{l({type:"set",values:{selectedCluster:e}})}),350))}),[A,b,y]);ye.a.useEffect((()=>{if(!c)return;const e=e=>{let{ordinals:t,categories:n,categoriesFlatten:r}=e;if("1"===new URLSearchParams(window.location.search).get("pcm_ms")){new bf(c,O).restoreStateFromQuery()}const o=new _f(c,O,a),s={map:c,scenarios:o};l({type:"set",values:{mapLoaded:!0,mapScenarios:o,ordinals:t,categories:n,categoriesFlatten:r}}),setTimeout((()=>{i.onReady&&i.onReady(s),window.app=s,a("mapReady")}),300)};return c.on("PCMap#Initialized",e),()=>{c.off("PCMap#Initialized",e)}}),[c,i,a,O]);const R=ye.a.useCallback(((e,t)=>{const n={components:{Router:w.components.Router},getRouteSteps:i.getRouteSteps,getRoutePaddings:i.getRoutePaddings,getRouteTimeString:i.getRouteTimeString,makeRouteHandler:i.makeRouteHandler},o=function(e,t,n,r){const{basemap:i,venue:o,buildings:a,levels:s,fixtures:l,sections:c,units:u,openings:d,occupants:h,points:p,routes:f,categories:m,styles:g,dictionary:v,settings:y}=t,b=Ce(),x=Object.assign({},y||{}),w=new(null!==n&&void 0!==n?n:window.PCMap)(Object.assign(Object.assign(Object.assign({},x),{language:b||x.language||"en",container:e,dictionary:v,geoData:{basemap:i,venue:o,buildings:a,levels:s,fixtures:l,sections:c,units:u,routes:f,occupants:h,points:p,openings:d},categories:m,styles:g,getRoutePaddings:()=>window.matchMedia("(orientation: landscape) and (min-width: 600px)").matches?{paddingTop:50,paddingLeft:50,paddingRight:50,paddingBottom:50}:{paddingTop:150,paddingLeft:10,paddingRight:10,paddingBottom:10},getMapPaddings:()=>window.matchMedia("(orientation: landscape) and (min-width: 600px)").matches?{paddingTop:150,paddingLeft:150,paddingRight:150,paddingBottom:150}:{paddingTop:50,paddingLeft:50,paddingRight:50,paddingBottom:e.clientHeight/2+70}}),r));return e.classList.add("pcmap--ready"),w}(e,t,r,n);l({type:"set",values:{map:o}})}),[w]);ye.a.useEffect((()=>{if(!c)return;const e=e=>t=>{g&&g.id===t.id?A():setTimeout((()=>{O(t,Object.assign(Object.assign({},e),{paddings:_()}))}))},t=e({zoom:20}),n=e({zoom:20}),r=e();return c.on("SearchBox#OccupantSelected",t),c.on("Directions#OccupantSelected",n),c.on("Marker#Click",r),()=>{c.off("SearchBox#OccupantSelected",t),c.off("Directions#OccupantSelected",n),c.off("Marker#Click",r)}}),[c,g,O,A]),ye.a.useEffect((()=>{if(c)return c.on("Cluster#Click",(e=>{v&&v===e?T():(c.setView(e.coordinates,{paddings:_(),animate:!0,easing:"easeOutCirc"}),C(e))})),()=>{c.off("Cluster#Click")}}),[c,v,C,T]),ye.a.useEffect((()=>{if(!c)return;const e=()=>{A()};return c.on("SearchBox#OccupantUnselected",e),()=>{c.off("SearchBox#OccupantUnselected",e)}}),[c,A]),ye.a.useEffect((()=>{if(!c)return;const e=()=>{A(),T(),l({type:"set",values:{isDirectionsOpen:!0}})};return c.on("Directions#Open",e),()=>{c.off("Directions#Open",e)}}),[c,A,T]),ye.a.useEffect((()=>{if(!c)return;const e=()=>{x&&E&&O(x,{zoom:20}),l({type:"set",values:{isDirectionsOpen:!1,directionsOpenedBy:null}}),c.clearDirections()};return c.on("Directions#Close",e),()=>{c.off("Directions#Close",e)}}),[c,x,E]),ye.a.useEffect((()=>{if(!c)return;const e=()=>{A(),T(),l({type:"set",values:{isRouteOpen:!0}})};return c.on("Route#Open",e),()=>{c.off("Route#Open",e)}}),[c,A,T]),ye.a.useEffect((()=>{if(!c)return;const e=()=>{l({type:"set",values:{isRouteOpen:!1}})};return c.on("Route#Close",e),()=>{c.off("Route#Close",e)}}),[c,O]),ye.a.useEffect((()=>{if(!c)return;const e=e=>{e.isClickOnMarker||(A(),T())};return c.on("Map#Click",e),()=>{c.off("Map#Click",e)}}),[c,A,T]),ye.a.useEffect((()=>{if(!c)return;const e=e=>{let{language:t}=e;l({type:"set",values:{selectedLanguage:t}})};return c.on("Map#LanguageChanged",e),()=>{c.off("Map#LanguageChanged",e)}}),[c]),ye.a.useEffect((()=>{u&&d&&d.applyFromQuery(window.location.search)}),[u,d]);const P=ye.a.useMemo((()=>({options:i,theme:w,selectedLanguage:m,selectedOccupant:g,selectedCluster:v,isRouteOpen:b,isDirectionsOpen:y,openDirections:S,addToRoute:M,selectOccupant:O,unselectOccupants:A,unselectCluster:T,initMap:R,ordinals:h,categories:p,categoriesFlatten:f,mapLoaded:u,map:c})),[i,w,m,g,v,b,y,S,M,O,A,T,R,h,p,f,u,c]);return ye.a.createElement($f.Provider,Object.assign({value:P},o))}function Qf(){const e=ye.a.useContext($f);
2if(!e)throw new Error("useMap must be used within a MapProvider");return e}function em(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function tm(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=em(n);return(e,n)=>r.then((r=>n(r.transaction(t,e).objectStore(t))))}let nm;function rm(){return nm||(nm=tm("keyval-store","keyval")),nm}const im=window.location.protocol,om="map-versions",am="map-data",sm=["basemap","venue","buildings","levels","sections","fixtures","units","openings","occupants","points","routes","categories","styles","dictionary","settings"],lm=e=>({method:"GET",url:e.replace("https:",im),headers:{"Accept-Encoding":"deflate, gzip"}}),cm=async(e,t)=>{const n={};return await Promise.all(sm.map((async r=>{const{url:i,method:o,headers:a}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"published",n=arguments.length>2?arguments[2]:void 0;return{method:"GET",url:"".concat(im,"//cms.point-maps.com/api/v1/map/").concat(e,"/files/").concat(t,"/").concat(n),headers:{"Accept-Encoding":"deflate, gzip"}}}(e,t,r),s=await fetch(i,{method:o,headers:a}),l=await s.json();n[r]=l[r]}))),n},um=async e=>{const{url:t,method:n,headers:r}=(e=>({method:"GET",url:"".concat(im,"//cms.point-maps.com/api/v1/map/").concat(e,"/versions"),headers:{"Accept-Encoding":"deflate, gzip"}}))(e);return(await fetch(t,{method:n,headers:r})).json()},dm=async e=>{let{mapDataUrl:t}=e;const{url:n,method:r,headers:i}=lm(t);return(await fetch(n,{method:r,headers:i})).json()},hm=async e=>{const{url:t,method:n,headers:r}=lm(e);return(await fetch(t,{method:n,headers:r})).json()};class pm{constructor(e,t){this.setToCache=async(e,t)=>{this._store&&function(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:rm())("readwrite",(n=>(n.put(t,e),em(n.transaction))))}(e,JSON.stringify(t),this._store)},this.getFromCache=async e=>{if(this._store)try{const t=await function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:rm())("readonly",(t=>em(t.get(e))))}(e,this._store);return JSON.parse(t)}catch(ex){return null}},this.clearCache=async()=>{this._store&&await function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:rm())("readwrite",(e=>(e.clear(),em(e.transaction))))}(this._store)},this.getMapData=async e=>{if(e)return cm(this._mapId,e);if(!this._store){const e=await hm(this._releaseUrl);return dm(e)}await this.syncMapData(this._releaseUrl);const t=await this.getFromCache(am);return t||null},this.syncMapData=async e=>{e?await this.syncMapDataWithCDN():await this.syncMapDataWithAPI()},this.syncMapDataWithAPI=async()=>{var e,t;const n=await this.getFromCache(om),r=null===(e=null===n||void 0===n?void 0:n.published)||void 0===e?void 0:e.id,i=await um(this._mapId),o=null===(t=null===i||void 0===i?void 0:i.published)||void 0===t?void 0:t.id;if(!r||r!==o){const e=await cm(this._mapId);if(e)return await this.setToCache(am,e),await this.setToCache(om,i),!0}return!1},this.syncMapDataWithCDN=async()=>{var e;const t=await this.getFromCache(om),n=null===(e=null===t||void 0===t?void 0:t.published)||void 0===e?void 0:e.id,r=await hm(this._releaseUrl),i=null===r||void 0===r?void 0:r.id;if(!n||n!==i){const e=await dm(r);if(e)return await this.setToCache(am,e),await this.setToCache(om,{published:{id:i,version:null===r||void 0===r?void 0:r.version}}),!0}return!1},this._mapId=e,this._releaseUrl=t;try{const t=window.indexedDB.open("pcmap-".concat(e));t.onerror=()=>{this._store=null},t.onsuccess=()=>{this._store=tm("pcmap-".concat(e),"cache")}}catch(ex){}}}const fm=ye.a.createContext({mapData:null}),mm=()=>{const e=window.location.search.match(/(version=)([\d\w]+)/);return e?e[2]:null};function gm(e){var{mapId:t,releaseUrl:n,options:r}=e,i=Ee(e,["mapId","releaseUrl","options"]);const o=ye.a.useRef(new pm(t,n)),[a,s]=ye.a.useState(!0),[l,c]=ye.a.useState(null),u=ye.a.useMemo((()=>({mapData:l})),[l]);return ye.a.useEffect((()=>{if(!a)return;const e=mm();o.current.getMapData(e).then((e=>{c((null===r||void 0===r?void 0:r.onMapDataFetched)?r.onMapDataFetched(e):e),s(!1)}))}),[a,r]),ye.a.createElement(fm.Provider,Object.assign({value:u},i))}function vm(){const e=ye.a.useContext(fm);if(!e)throw new Error("useMapData must be used within a MapDataProvider");return e}const ym=ve.createContext({getText:e=>e});function bm(e){let{children:t}=e;var n;const[r,i]=ve.useState(Ce()),{map:o}=Qf(),{mapData:a}=vm(),s=null!==(n=null===a||void 0===a?void 0:a.dictionary)&&void 0!==n?n:{},l=ve.useMemo((()=>({getText:(e,t)=>
2Ae(s,e,r,t)})),[s,r]);return ve.useEffect((()=>{o&&o.on("Map#LanguageChanged",(e=>{const t=e.language||"en";i(t.toLowerCase())}))}),[o]),ve.createElement(ym.Provider,{value:l},t)}function xm(){const e=ve.useContext(ym);if(!e)throw new Error("useDictionary must be used within a DictionaryProvider");return e}function wm(e){return Array.isArray?Array.isArray(e):"[object Array]"===Rm(e)}const _m=1/0;function Em(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-_m?"-0":t}(e)}function Sm(e){return"string"===typeof e}function Mm(e){return"number"===typeof e}function Tm(e){return!0===e||!1===e||function(e){return Am(e)&&null!==e}(e)&&"[object Boolean]"==Rm(e)}function Am(e){return"object"===typeof e}function Om(e){return void 0!==e&&null!==e}function Cm(e){return!e.trim().length}function Rm(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Pm=e=>"Missing ".concat(e," property in key"),Im=e=>"Property 'weight' in key '".concat(e,"' must be a positive integer"),Lm=Object.prototype.hasOwnProperty;class km{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=Dm(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Dm(e){let t=null,n=null,r=null,i=1;if(Sm(e)||wm(e))r=e,t=Nm(e),n=Um(e);else{if(!Lm.call(e,"name"))throw new Error(Pm("name"));const o=e.name;if(r=o,Lm.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(Im(o));t=Nm(o),n=Um(o)}return{path:t,id:n,weight:i,src:r}}function Nm(e){return wm(e)?e:e.split(".")}function Um(e){return wm(e)?e.join("."):e}var jm={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...{useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const i=(e,t,o)=>{if(Om(e))if(t[o]){const a=e[t[o]];if(!Om(a))return;if(o===t.length-1&&(Sm(a)||Mm(a)||Tm(a)))n.push(Em(a));else if(wm(a)){r=!0;for(let e=0,n=a.length;e<n;e+=1)i(a[e],t,o+1)}else t.length&&i(a,t,o+1)}else n.push(e)};return i(e,Sm(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1}};const Fm=/[^ ]+/g;class Bm{constructor(){let{getFn:e=jm.getFn}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.norm=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;const t=new Map,n=Math.pow(10,e);return{get(e){const r=e.match(Fm).length;if(t.has(r))return t.get(r);const i=1/Math.sqrt(r),o=parseFloat(Math.round(i*n)/n);return t.set(r,o),o},clear(){t.clear()}}}(3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}setIndexRecords(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}setKeys(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,Sm(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();Sm(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!Om(e)||Cm(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,r)=>{let i=this.getFn(e,t.path);if(Om(i))if(wm(i)){let e=[];const t=[{nestedArrIndex:-1,value:i}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(Om(r))if(Sm(r)&&!Cm(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else wm(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(!Cm(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function zm(e,t){let{getFn:n=jm.getFn}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new Bm({getFn:n});return r.setKeys(e.map(Dm)),r.setSources(t),r.create(),r}function Hm(e){let{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=jm.distance,ignoreLocation:o=jm.ignoreLocation}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=t/e.length;if(o)return a;const s=Math.abs(r-n);return i?a+s/i:s?1:a}const Vm=32;function Wm(e,t,n){let{location:r=jm.location,distance:i=jm.distance,threshold:o=jm.threshold,findAllMatches:a=jm.findAllMatches,minMatchCharLength:s=jm.minMatchCharLength,includeMatches:l=jm.includeMatches,ignoreLocation:c=jm.ignoreLocation}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t.length>Vm)throw new Error((e=>"Pattern length exceeds max of ".concat(e,"."))(Vm));const u=t.length,d=e.length,h=Math.max(0,Math.min(r,d));let p=o,f=h;const m=s>
vendor: 4,236 bytes, line 2
21||l,g=m?Array(d):[];let v;for(;(v=e.indexOf(t,f))>-1;){let e=Hm(t,{currentLocation:v,expectedLocation:h,distance:i,ignoreLocation:c});if(p=Math.min(e,p),f=v+u,m){let e=0;for(;e<u;)g[v+e]=1,e+=1}}f=-1;let y=[],b=1,x=u+d;const w=1<<u-1;for(let E=0;E<u;E+=1){let r=0,o=x;for(;r<o;){Hm(t,{errors:E,currentLocation:h+o,expectedLocation:h,distance:i,ignoreLocation:c})<=p?r=o:x=o,o=Math.floor((x-r)/2+r)}x=o;let s=Math.max(1,h-o+1),l=a?d:Math.min(h+o,d)+u,v=Array(l+2);v[l+1]=(1<<E)-1;for(let a=l;a>=s;a-=1){let r=a-1,o=n[e.charAt(r)];if(m&&(g[r]=+!!o),v[a]=(v[a+1]<<1|1)&o,E&&(v[a]|=(y[a+1]|y[a])<<1|1|y[a+1]),v[a]&w&&(b=Hm(t,{errors:E,currentLocation:r,expectedLocation:h,distance:i,ignoreLocation:c}),b<=p)){if(p=b,f=r,f<=h)break;s=Math.max(1,2*h-f)}}if(Hm(t,{errors:E+1,currentLocation:h,expectedLocation:h,distance:i,ignoreLocation:c})>p)break;y=v}const _={isMatch:f>=0,score:Math.max(.001,b)};if(m){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jm.minMatchCharLength,n=[],r=-1,i=-1,o=0;for(let a=e.length;o<a;o+=1){let a=e[o];a&&-1===r?r=o:a||-1===r||(i=o-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(g,s);e.length?l&&(_.indices=e):_.isMatch=!1}return _}function Gm(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}class qm{constructor(e){let{location:t=jm.location,threshold:n=jm.threshold,distance:r=jm.distance,includeMatches:i=jm.includeMatches,findAllMatches:o=jm.findAllMatches,minMatchCharLength:a=jm.minMatchCharLength,isCaseSensitive:s=jm.isCaseSensitive,ignoreLocation:l=jm.ignoreLocation}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:Gm(e),startIndex:t})},u=this.pattern.length;if(u>Vm){let e=0;const t=u%Vm,n=u-t;for(;e<n;)c(this.pattern.substr(e,Vm),e),e+=Vm;if(t){const e=u-Vm;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:i,threshold:o,findAllMatches:a,minMatchCharLength:s,ignoreLocation:l}=this.options;let c=[],u=0,d=!1;this.chunks.forEach((t=>{let{pattern:h,alphabet:p,startIndex:f}=t;const{isMatch:m,score:g,indices:v}=Wm(e,h,p,{location:r+f,distance:i,threshold:o,findAllMatches:a,minMatchCharLength:s,includeMatches:n,ignoreLocation:l});m&&(d=!0),u+=g,m&&v&&(c=[...c,...v])}));let h={isMatch:d,score:d?u/this.chunks.length:1};return d&&n&&(h.indices=c),h}}class Xm{constructor(e){this.pattern=e}static isMultiMatch(e){return Ym(e,this.multiRegex)}static isSingleMatch(e){return Ym(e,this.singleRegex)}search(){}}function Ym(e,t){const n=e.match(t);return n?n[1]:null}class Zm extends Xm{constructor(e){let{location:t=jm.location,threshold:n=jm.threshold,distance:r=jm.distance,includeMatches:i=jm.includeMatches,findAllMatches:o=jm.findAllMatches,minMatchCharLength:a=jm.minMatchCharLength,isCaseSensitive:s=jm.isCaseSensitive,ignoreLocation:l=jm.ignoreLocation}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e),this._bitapSearch=new qm(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Km extends Xm{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const $m=[class extends Xm{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}
2search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Km,class extends Xm{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends Xm{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Xm{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Xm{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends Xm{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Zm],Jm=$m.length,Qm=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;const eg=new Set([Zm.type,Km.type]);class tg{constructor(e){let{isCaseSensitive:t=jm.isCaseSensitive,includeMatches:n=jm.includeMatches,minMatchCharLength:r=jm.minMatchCharLength,ignoreLocation:i=jm.ignoreLocation,findAllMatches:o=jm.findAllMatches,location:a=jm.location,threshold:s=jm.threshold,distance:l=jm.distance}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:o,ignoreLocation:i,location:a,threshold:s,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((e=>{let n=e.trim().split(Qm).filter((e=>e&&!!e.trim())),r=[];for(let i=0,o=n.length;i<o;i+=1){const e=n[i];let o=!1,a=-1;for(;!o&&++a<Jm;){const n=$m[a];let i=n.isMultiMatch(e);i&&(r.push(new n(i,t)),o=!0)}if(!o)for(a=-1;++a<Jm;){const n=$m[a];let i=n.isSingleMatch(e);if(i){r.push(new n(i,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let i=0,o=[],a=0;for(let s=0,l=t.length;s<l;s+=1){const r=t[s];o.length=0,i=0;for(let t=0,s=r.length;t<s;t+=1){const s=r[t],{isMatch:l,indices:c,score:u}=s.search(e);if(!l){a=0,i=0,o.length=0;break}if(i+=1,a+=u,n){const e=s.constructor.type;eg.has(e)?o=[...o,...c]:o.push(c)}}if(i){let e={isMatch:!0,score:a/i};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}}const ng=[];function rg(e,t){for(let n=0,r=ng.length;n<r;n+=1){let r=ng[n];if(r.condition(e,t))return new r(e,t)}return new qm(e,t)}const ig="$and",og="$or",ag="$path",sg="$val",lg=e=>!(!e[ig]&&!e[og]),cg=e=>({[ig]:Object.keys(e).map((t=>({[t]:e[t]})))});function ug(e,t){let{auto:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e=>{let i=Object.keys(e);const o=(e=>!!e[ag])(e);if(!o&&i.length>1&&!lg(e))return r(cg(e));if((e=>!wm(e)&&Am(e)&&!lg(e))(e)){const r=o?e[ag]:i[0],a=o?e[sg]:e[r];if(!Sm(a))throw new Error((e=>"Invalid value for key ".concat(e))(r));const s={keyId:Um(r),pattern:a};return n&&(s.searcher=rg(a,t)),s}let a={children:[],operator:i[0]};return i.forEach((t=>{const n=e[t];wm(n)&&n.forEach((e=>
2{a.children.push(r(e))}))})),a};return lg(e)||(e=cg(e)),r(e)}function dg(e,t){const n=e.matches;t.matches=[],Om(n)&&n.forEach((e=>{if(!Om(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)}))}function hg(e,t){t.score=e.score}class pg{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;this.options={...jm,...t},this.options.useExtendedSearch,this._keyStore=new km(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Bm))throw new Error("Incorrect 'index' type");this._myIndex=t||zm(this.options.keys,this._docs,{getFn:this.options.getFn})}add(e){Om(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>!1;const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,r-=1,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e){let{limit:t=-1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{includeMatches:n,includeScore:r,shouldSort:i,sortFn:o,ignoreFieldNorm:a}=this.options;let s=Sm(e)?Sm(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,t){let{ignoreFieldNorm:n=jm.ignoreFieldNorm}=t;e.forEach((e=>{let t=1;e.matches.forEach((e=>{let{key:r,norm:i,score:o}=e;const a=r?r.weight:null;t*=Math.pow(0===o&&a?Number.EPSILON:o,(a||1)*(n?1:i))})),e.score=t}))}(s,{ignoreFieldNorm:a}),i&&s.sort(o),Mm(t)&&t>-1&&(s=s.slice(0,t)),function(e,t){let{includeMatches:n=jm.includeMatches,includeScore:r=jm.includeScore}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=[];return n&&i.push(dg),r&&i.push(hg),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach((t=>{t(e,r)})),r}))}(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=rg(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((e=>{let{v:n,i:i,n:o}=e;if(!Om(n))return;const{isMatch:a,score:s,indices:l}=t.searchIn(n);a&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:l}]})})),r}_searchLogical(e){const t=ug(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:i}=e,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return o&&o.length?[{idx:r,item:t,matches:o}]:[]}switch(e.operator){case ig:{const i=[];for(let o=0,a=e.children.length;o<a;o+=1){const a=e.children[o],s=n(a,t,r);if(!s.length)return[];i.push(...s)}return i}case og:{const i=[];for(let o=0,a=e.children.length;o<a;o+=1){const a=e.children[o],s=n(a,t,r);if(s.length){i.push(...s);break}}return i}}},r=this._myIndex.records,i={},o=[];return r.forEach((e=>{let{$:r,i:a}=e;if(Om(r)){let e=n(t,r,a);e.length&&(i[a]||(i[a]={idx:a,item:r,matches:[]},o.push(i[a])),e.forEach((e=>{let{matches:t}=e;i[a].matches.push(...t)})))}})),o}_searchObjectList(e){const t=rg(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach((e=>{let{$:r,i:o}=e;if(!Om(r))return;let a=[];n.forEach(((e,n)=>{a.push(...this._findMatches({key:e,value:r[n],searcher:t}))})),a.length&&i.push({idx:o,item:r,matches:a})})),i}_findMatches(e){let{key:t,value:n,searcher:r}=e;if(!Om(n))return[];let i=[];if(wm(n))n.forEach((e=>{let{v:n,i:o,n:a}=e;if(!Om(n))return;const{isMatch:s,score:l,indices:c}=r.searchIn(n);s&&i.push({score:l,key:t,value:n,idx:o,norm:a,indices:c})}));else{const{v:e,n:o}=n,{isMatch:a,score:s,indices:l}=r.searchIn(e);a&&i.push({score:s,key:t,value:e,norm:o,indices:l})}return i}}pg.version="6.4.6",pg.createIndex=zm,pg.parseIndex=function(e){let{getFn:t=jm.getFn}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{keys:n,records:r}=e,i=new Bm({getFn:t});return i.setKeys(n),i.setIndexRecords(r),i},pg.config=jm,pg.parseQuery=ug,function(){ng.push(...arguments)}(tg);const fg=ve.createContext(void 0),mg=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function gg(e){let{children:t}=e;const{ordinals:n}=Qf(),{getText:r}=xm(),i=ve.useMemo((()=>
2{if(!n)return;const e=[...n.values()].flatMap((e=>e.occupants)).filter((e=>e.category.showInSearchResult)).map((e=>{var t,n;const i=e.id,o=Ro(r(e.name)),a=e.category.fullPath.map((e=>Ro(r(e)))),s=e.extraCategories.flatMap((e=>e.fullPath.map((e=>Ro(r(e)))))),l=Array.from(new Set(o.match(/[\p{L}\d]+/gu))).filter((e=>e.length>1)),c=e.keywords.map((e=>r(e))),u=null!==(n=null===(t=e.category.keywords)||void 0===t?void 0:t.map((e=>r(e))))&&void 0!==n?n:[],d=c.concat(u).flatMap((e=>e.match(/[\p{L}\d]+/gu)));return{id:i,name:o,nameParts:l,startWithNameParts:l,fuzzyNameParts:l,category:a,extraCategories:s,occupantKeywords:c,categoryKeywords:u,allKeywordsParts:d,occupant:e}})).sort(((e,t)=>mg.compare(e.name,t.name))),t={shouldSort:!0,includeScore:!0,includeMatches:!0,isCaseSensitive:!1,findAllMatches:!0,useExtendedSearch:!0,ignoreLocation:!0,ignoreFieldNorm:!1,fieldNormWeight:2,threshold:.2,maxPatternLength:36,minMatchCharLength:2,keys:[{name:"id",weight:1e4},{name:"name",weight:1e4},{name:"occupantKeywords",weight:5e3},{name:"nameParts",weight:1e3},{name:"fuzzyNameParts",weight:100},{name:"startWithNameParts",weight:100},{name:"category",weight:300},{name:"categoryKeywords",weight:300},{name:"extraCategories",weight:100},{name:"allKeywordsParts",weight:100}]};return new pg(e,t,pg.createIndex(t.keys,e))}),[n,r]),o=ve.useCallback((e=>{if(!e||!i)return[];e=Ro(e).trim();const t=Array.from(new Set(e.match(/[\p{L}\d|$]+/gu))),n=[{id:'="'.concat(e,'"')}],r=[{name:'="'.concat(e,'"')}],o=[{occupantKeywords:'="'.concat(e,'"')}],a=t.map((e=>({nameParts:'="'.concat(e,'"')}))),s=[{name:'^"'.concat(e,'"')}],l=t.map((e=>({startWithNameParts:'^"'.concat(e,'"')}))),c=t.map((e=>({category:'^"'.concat(e,'"')}))),u=[{categoryKeywords:'="'.concat(e,'"')}],d=t.map((e=>({extraCategories:'^"'.concat(e,'"')}))),h=t.map((e=>({allKeywordsParts:'^"'.concat(e,'"')}))),p=t.map((e=>({fuzzyNameParts:'"'.concat(e,'"')}))),f={$or:n.concat(r).concat(o).concat(s).concat(a).concat(c).concat(u).concat(d).concat(h).concat(l).concat(p)};return i.search(f,{limit:50}).map((e=>e.item.occupant)).sort(((e,t)=>e.order<t.order?-1:e.order>t.order?1:0))}),[i]),a=ve.useMemo((()=>({searchOccupants:o})),[o]);return ve.createElement(fg.Provider,{value:a},t)}function vg(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}function yg(){return yg=Object.assign?Object.assign.bind():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},yg.apply(this,arguments)}var bg={exports:{}};var xg,wg,_g,Eg;function Sg(){if(wg)return xg;wg=1;return xg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}bg.exports=function(){if(Eg)return _g;Eg=1;var e=Sg();function t(){}function n(){}return n.resetWarningCache=t,_g=function(){function r(t,n,r,i,o,a){if(a!==e){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 i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var Mg,Tg={exports:{}},Ag={};function Og(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Cg(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function Rg(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Cg(n.overflowY,t)||Cg(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function Pg(e,t,n,r,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0}!function(e){e.exports=function(){if(Mg)return Ag;Mg=1;var e=60103,t=60106,n=60107,r=60108,i=60114,o=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,h=60121,p=60122,f=60117,m=60129,g=60131;if("function"===typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),n=v("react.fragment"),r=v("react.strict_mode"),i=v("react.profiler"),o=v("react.provider"),a=v("react.context"),s=v("react.forward_ref"),l=v("react.suspense"),c=v("react.suspense_list"),u=v("react.memo"),d=v("react.lazy"),h=v("react.block"),p=v("react.server.block"),f=v("react.fundamental"),m=v("react.debug_trace_mode"),g=v("react.legacy_hidden")}function y(h){if("object"===typeof h&&null!==h){var p=h.$$typeof;switch(p){case e:switch(h=h.type){case n:case i:case r:case l:case c:return h;default:switch(h=h&&h.$$typeof){case a:case s:case d:case u:case o:return h;default:return p}}case t:return p}}}var b=o,x=e,w=s,_=n,E=d,S=u,M=t,T=i,A=r,O=l;return Ag.ContextConsumer=a,Ag.ContextProvider=b,Ag.Element=x,Ag.ForwardRef=w,Ag.Fragment=_,Ag.Lazy=E,Ag.Memo=S,Ag.Portal=M,Ag.Profiler=T,Ag.StrictMode=A,Ag.Suspense=O,Ag.isAsyncMode=function(){return!1},Ag.isConcurrentMode=function(){return!1},Ag.isContextConsumer=function(e){return y(e)===a},Ag.isContextProvider=function(e){return y(e)===o},Ag.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===e},Ag.isForwardRef=function(e){return y(e)===s},Ag.isFragment=function(e){return y(e)===n},Ag.isLazy=function(e){return y(e)===d},Ag.isMemo=function(e){return y(e)===u},Ag.isPortal=function(e){return y(e)===t},Ag.isProfiler=function(e){return y(e)===i},Ag.isStrictMode=function(e){return y(e)===r},Ag.isSuspense=function(e){return y(e)===l},Ag.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===n||e===i||e===m||e===r||e===l||e===c||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===f||e.$$typeof===h||e[0]===p)},Ag.typeOf=y,Ag}()}(Tg);var Ig=0;function Lg(){}function kg(e,t){if(e){var n=function(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!Og(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],d=e;Og(d)&&l(d);){if((d=d.parentElement)===c){u.push(d);break}null!=d&&d===document.body&&Rg(d)&&!Rg(document.documentElement)||null!=d&&Rg(d,s)&&u.push(d)}
2for(var h=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),v=g.height,y=g.width,b=g.top,x=g.right,w=g.bottom,_=g.left,E="start"===i||"nearest"===i?b:"end"===i?w:b+v/2,S="center"===o?_+y/2:"end"===o?x:_,M=[],T=0;T<u.length;T++){var A=u[T],O=A.getBoundingClientRect(),C=O.height,R=O.width,P=O.top,I=O.right,L=O.bottom,k=O.left;if("if-needed"===r&&b>=0&&_>=0&&w<=p&&x<=h&&b>=P&&w<=L&&_>=k&&x<=I)return M;var D=getComputedStyle(A),N=parseInt(D.borderLeftWidth,10),U=parseInt(D.borderTopWidth,10),j=parseInt(D.borderRightWidth,10),F=parseInt(D.borderBottomWidth,10),B=0,z=0,H="offsetWidth"in A?A.offsetWidth-A.clientWidth-N-j:0,V="offsetHeight"in A?A.offsetHeight-A.clientHeight-U-F:0;if(c===A)B="start"===i?E:"end"===i?E-p:"nearest"===i?Pg(m,m+p,p,U,F,m+E,m+E+v,v):E-p/2,z="start"===o?S:"center"===o?S-h/2:"end"===o?S-h:Pg(f,f+h,h,N,j,f+S,f+S+y,y),B=Math.max(0,B+m),z=Math.max(0,z+f);else{B="start"===i?E-P-U:"end"===i?E-L+F+V:"nearest"===i?Pg(P,L,C,U,F+V,E,E+v,v):E-(P+C/2)+V/2,z="start"===o?S-k-N:"center"===o?S-(k+R/2)+H/2:"end"===o?S-I+j+H:Pg(k,I,R,N,j+H,S,S+y,y);var W=A.scrollLeft,G=A.scrollTop;E+=G-(B=Math.max(0,Math.min(G+B,A.scrollHeight-C+V))),S+=W-(z=Math.max(0,Math.min(W+z,A.scrollWidth-R+H)))}M.push({el:A,top:B,left:z})}return M}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}}function Dg(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function Ng(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,o)}),t)}return i.cancel=r,i}function Ug(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function jg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"===typeof t?t(e):t&&(t.current=e)}))}}function Fg(){return String(Ig++)}function Bg(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function zg(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=Hg(t,r)?t[r]:e[r],n}),{})}function Hg(e,t){return void 0!==e[t]}function Vg(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function Wg(e,t,n,r,i){if(void 0===i&&(i=!0),0===n)return-1;var o=n-1;("number"!==typeof t||t<0||t>=n)&&(t=e>0?-1:o+1);var a=t+e;a<0?a=i?o:0:a>o&&(a=i?0:o);var s=Gg(e,a,n,r,i);return-1===s?t>=n?-1:t:s}function Gg(e,t,n,r,i){var o=r(t);if(!o||!o.hasAttribute("disabled"))return t;if(e>0){for(var a=t+1;a<n;a++)if(!r(a).hasAttribute("disabled"))return a}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?Gg(1,0,n,r,!1):Gg(-1,n-1,n,r,!1):-1}function qg(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(Dg(t,e,n)||r&&Dg(t,n.document.activeElement,n))}))}var Xg=Ng((function(e){Zg(e).textContent=""}),500);function Yg(e,t){var n=Zg(t);e&&(n.textContent=e,Xg(t))}function Zg(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var Kg=["isInitialMount","highlightedIndex","items","environment"],$g={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Jg(e,t,n){var r=e.props,i=e.type,o={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,o=t.type,a="on"+tv(e)+"Change";i[a]&&void 0!==r[e]&&r[e]!==n[e]&&i[a](yg({type:o},r))}(r,e,t,n),n[r]!==t[r]&&(o[r]=n[r])})),r.onStateChange&&Object.keys(o).length&&r.onStateChange(yg({type:i},o))}var Qg=Ng((function(e,t){Yg(e(),t)}),200),ev="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?ve.useLayoutEffect:ve.useEffect;function tv(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function nv(e){var t=Object(ve.useRef)(e);return t.current=e,t}var rv={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:kg,circularNavigation:!1,environment:"undefined"===typeof window?{}:window};function iv(e,t,n){void 0===n&&(n=$g);var r="default"+tv(t);return r in e?e[r]:n[t]}function ov(e,t,n){if(void 0===n&&(n=$g),t in e)return e[t];var r="initial"+tv(t);return r in e?e[r]:iv(e,t,n)}function av(e,t,n,r){var i=e.items,o=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,s=t.selectedItem,l=t.highlightedIndex;return 0===i.length?-1:void 0!==o&&l===o?o:void 0!==a?a:s?0===n?i.indexOf(s):Wg(n,i.indexOf(s),i.length,r,!1):0===n?-1:n<0?i.length-1:0}var sv=function(){return Lg};function lv(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,o=n.items,a=n.environment,s=vg(n,Kg);Object(ve.useEffect)((function(){r||Qg((function(){return e(yg({highlightedIndex:i,highlightedItem:o[i],resultCount:o.length},s))}),a.document)}),t)}var cv=Lg;bg.exports.array.isRequired,bg.exports.func,bg.exports.func,bg.exports.func,bg.exports.bool,bg.exports.number,bg.exports.number,bg.exports.number,bg.exports.bool,bg.exports.bool,bg.exports.bool,bg.exports.any,bg.exports.any,bg.exports.any,bg.exports.string,bg.exports.string,bg.exports.string,bg.exports.func,bg.exports.string,bg.exports.func,bg.exports.func,bg.exports.func,bg.exports.func,bg.exports.func,bg.exports.shape({addEventListener:bg.exports.func,removeEventListener:bg.exports.func,document:bg.exports.shape({getElementById:bg.exports.func,activeElement:bg.exports.any,body:bg.exp
2orts.any})}),_e(_e({},rv),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}});var uv=0,dv=1,hv=2,pv=3,fv=4,mv=5,gv=6,vv=7,yv=8,bv=9,xv=10,wv=11,_v=12,Ev=13,Sv=14,Mv=15,Tv=16,Av=17,Ov=18,Cv=19,Rv=Object.freeze({__proto__:null,InputKeyDownArrowDown:uv,InputKeyDownArrowUp:dv,InputKeyDownEscape:hv,InputKeyDownHome:pv,InputKeyDownEnd:fv,InputKeyDownEnter:mv,InputChange:gv,InputBlur:vv,MenuMouseLeave:yv,ItemMouseMove:bv,ItemClick:xv,ToggleButtonClick:wv,FunctionToggleMenu:_v,FunctionOpenMenu:Ev,FunctionCloseMenu:Sv,FunctionSetHighlightedIndex:Mv,FunctionSelectItem:Tv,FunctionSetInputValue:Av,FunctionReset:Ov,ControlledPropUpdatedSelectedItem:Cv});function Pv(e){var t=function(e){var t=ov(e,"selectedItem"),n=ov(e,"isOpen"),r=ov(e,"highlightedIndex"),i=ov(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}(e),n=t.selectedItem,r=t.inputValue;return""===r&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(r=e.itemToString(n)),yg({},t,{inputValue:r})}bg.exports.array.isRequired,bg.exports.func,bg.exports.func,bg.exports.func,bg.exports.bool,bg.exports.number,bg.exports.number,bg.exports.number,bg.exports.bool,bg.exports.bool,bg.exports.bool,bg.exports.any,bg.exports.any,bg.exports.any,bg.exports.string,bg.exports.string,bg.exports.string,bg.exports.string,bg.exports.string,bg.exports.string,bg.exports.func,bg.exports.string,bg.exports.string,bg.exports.func,bg.exports.func,bg.exports.func,bg.exports.func,bg.exports.func,bg.exports.func,bg.exports.shape({addEventListener:bg.exports.func,removeEventListener:bg.exports.func,document:bg.exports.shape({getElementById:bg.exports.func,activeElement:bg.exports.any,body:bg.exports.any})});function Iv(e,t,n){var r=Object(ve.useRef)(),i=function(e,t,n){var r=Object(ve.useRef)(),i=Object(ve.useRef)(),o=Object(ve.useCallback)((function(t,n){i.current=n,t=zg(t,n.props);var r=e(t,n);return n.props.stateReducer(t,yg({},n,{changes:r}))}),[e]),a=Object(ve.useReducer)(o,t),s=a[0],l=a[1],c=nv(n),u=Object(ve.useCallback)((function(e){return l(yg({props:c.current},e))}),[c]),d=i.current;return Object(ve.useEffect)((function(){d&&r.current&&r.current!==s&&Jg(d,zg(r.current,d.props),s),r.current=s}),[s,n,d]),[s,u]}(e,t,n),o=i[0],a=i[1];return Object(ve.useEffect)((function(){Hg(n,"selectedItem")&&(r.current!==n.selectedItem&&a({type:Cv,inputValue:n.itemToString(n.selectedItem)}),r.current=o.selectedItem===r.current?n.selectedItem:o.selectedItem)})),[zg(o,n),a]}var Lv=Lg;var kv=yg({},rv,{getA11yStatusMessage:Bg,circularNavigation:!0});function Dv(e,t){var n,r=t.type,i=t.props,o=t.shiftKey;switch(r){case xv:n={isOpen:iv(i,"isOpen"),highlightedIndex:iv(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case uv:n=e.isOpen?{highlightedIndex:Wg(o?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:{highlightedIndex:av(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case dv:n=e.isOpen?{highlightedIndex:Wg(o?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:{highlightedIndex:av(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case mv:n=yg({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex],isOpen:iv(i,"isOpen"),highlightedIndex:iv(i,"highlightedIndex"),inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case hv:n=yg({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case pv:n={highlightedIndex:Gg(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case fv:n={highlightedIndex:Gg(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case vv:n=yg({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case gv:n={isOpen:!0,highlightedIndex:iv(i,"highlightedIndex"),inputValue:t.inputValue};break;case Tv:n={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case Cv:n={inputValue:t.inputValue};break;default:return function(e,t,n){var r,i=t.type,o=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:av(o,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:av(o,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:iv(o,"highlightedIndex"),isOpen:iv(o,"isOpen"),selectedItem:iv(o,"selectedItem"),inputValue:iv(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return yg({},e,r)}(e,t,Rv)}return yg({},e,n)}var Nv,Uv=["onMouseLeave","refKey","ref"],jv=["item","index","refKey","ref","onMouseMove","onClick","onPress"],Fv=["onClick","onPress","refKey","ref"],Bv=["onKeyDown","onChange","onInput","onBlur","onChangeText","refKey","ref"],zv=["refKey","ref"];function Hv(e){void 0===e&&(e={}),Lv(e,Hv);var t=yg({},kv,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,o=t.scrollIntoView,a=t.environment,s=t.getA11yStatus
2Message,l=t.getA11ySelectionMessage,c=t.itemToString,u=Iv(Dv,Pv(t),t),d=u[0],h=u[1],p=d.isOpen,f=d.highlightedIndex,m=d.selectedItem,g=d.inputValue,v=Object(ve.useRef)(null),y=Object(ve.useRef)({}),b=Object(ve.useRef)(null),x=Object(ve.useRef)(null),w=Object(ve.useRef)(null),_=Object(ve.useRef)(!0),E=function(e){var t=e.id,n=void 0===t?"downshift-"+Fg():t,r=e.labelId,i=e.menuId,o=e.getItemId,a=e.toggleButtonId,s=e.inputId;return Object(ve.useRef)({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:o||function(e){return n+"-item-"+e},toggleButtonId:a||n+"-toggle-button",inputId:s||n+"-input"}).current}(t),S=Object(ve.useRef)(),M=nv({state:d,props:t}),T=Object(ve.useCallback)((function(e){return y.current[E.getItemId(e)]}),[E]);lv(s,[p,f,g,i],yg({isInitialMount:_.current,previousResultCount:S.current,items:i,environment:a,itemToString:c},d)),lv(l,[m],yg({isInitialMount:_.current,previousResultCount:S.current,items:i,environment:a,itemToString:c},d));var A=function(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,o=e.menuElement,a=e.scrollIntoView,s=Object(ve.useRef)(!0);return ev((function(){t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(i(t),o))}),[t]),s}({menuElement:v.current,highlightedIndex:f,isOpen:p,itemRefs:y,scrollIntoView:o,getItemNodeFromIndex:T});cv({isInitialMount:_.current,props:t,state:d}),Object(ve.useEffect)((function(){(n||r||p)&&b.current}),[]),Object(ve.useEffect)((function(){_.current||(S.current=i.length)}));var O=function(e,t,n,r){var i=Object(ve.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(ve.useEffect)((function(){var o=function(){i.current.isMouseDown=!0},a=function(o){i.current.isMouseDown=!1,e&&!qg(o.target,t.map((function(e){return e.current})),n)&&r()},s=function(){i.current.isTouchMove=!1},l=function(){i.current.isTouchMove=!0},c=function(o){!e||i.current.isTouchMove||qg(o.target,t.map((function(e){return e.current})),n,!1)||r()};return n.addEventListener("mousedown",o),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",o),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),i}(p,[w,v,x],a,(function(){h({type:vv,selectItem:!1})})),C=sv("getInputProps","getComboboxProps","getMenuProps");Object(ve.useEffect)((function(){_.current=!1}),[]),Object(ve.useEffect)((function(){p||(y.current={})}),[p]);var R=Object(ve.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),h({type:uv,shiftKey:e.shiftKey,getItemNodeFromIndex:T})},ArrowUp:function(e){e.preventDefault(),h({type:dv,shiftKey:e.shiftKey,getItemNodeFromIndex:T})},Home:function(e){M.current.state.isOpen&&(e.preventDefault(),h({type:pv,getItemNodeFromIndex:T}))},End:function(e){M.current.state.isOpen&&(e.preventDefault(),h({type:fv,getItemNodeFromIndex:T}))},Escape:function(){var e=M.current.state;(e.isOpen||e.inputValue||e.selectedItem||e.highlightedIndex>-1)&&h({type:hv})},Enter:function(e){var t=M.current.state;!t.isOpen||t.highlightedIndex<0||229===e.which||(e.preventDefault(),h({type:mv,getItemNodeFromIndex:T}))}}}),[h,M,T]),P=Object(ve.useCallback)((function(e){return yg({id:E.labelId,htmlFor:E.inputId},e)}),[E]),I=Object(ve.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,o=r.refKey,a=void 0===o?"ref":o,s=r.ref,l=vg(r,Uv),c=(void 0===t?{}:t).suppressRefError;return C("getMenuProps",void 0!==c&&c,a,v),yg(((n={})[a]=jg(s,(function(e){v.current=e})),n.id=E.menuId,n.role="listbox",n["aria-labelledby"]=E.labelId,n.onMouseLeave=Ug(i,(function(){h({type:yv})})),n),l)}),[h,C,E]),L=Object(ve.useCallback)((function(e){var t,n,r=void 0===e?{}:e,i=r.item,o=r.index,a=r.refKey,s=void 0===a?"ref":a,l=r.ref,c=r.onMouseMove,u=r.onClick;r.onPress;var d=vg(r,jv),p=M.current,f=p.props,m=p.state,g=function(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}(o,i,f.items);if(g<0)throw new Error("Pass either item or item index in getItemProps!");var v=u;return yg(((t={})[s]=jg(l,(function(e){e&&(y.current[E.getItemId(g)]=e)})),t.role="option",t["aria-selected"]=""+(g===m.highlightedIndex),t.id=E.getItemId(g),t),!d.disabled&&((n={onMouseMove:Ug(c,(function(){o!==m.highlightedIndex&&(A.current=!1,h({type:bv,index:o}))}))}).onClick=Ug(v,(function(){h({type:xv,index:o}),b.current})),n),d)}),[h,M,A,E]),k=Object(ve.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.onClick;n.onPress;var i=n.refKey,o=void 0===i?"ref":i,a=n.ref,s=vg(n,Fv);return yg(((t={})[o]=jg(a,(function(e){x.current=e})),t.id=E.toggleButtonId,t.tabIndex=-1,t),!s.disabled&&yg({},{onClick:Ug(r,(function(){h({type:wv}),!M.current.state.isOpen&&b.current}))}),s)}),[h,M,E]),D=Object(ve.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onKeyDown,o=r.onChange,a=r.onInput,s=r.onBlur;
2r.onChangeText;var l=r.refKey,c=void 0===l?"ref":l,u=r.ref,d=vg(r,Bv),p=(void 0===t?{}:t).suppressRefError;C("getInputProps",void 0!==p&&p,c,b);var f,m=M.current.state,g={};d.disabled||((f={}).onChange=Ug(o,a,(function(e){h({type:gv,inputValue:e.target.value})})),f.onKeyDown=Ug(i,(function(e){var t=Vg(e);t&&R[t]&&R[t](e)})),f.onBlur=Ug(s,(function(){m.isOpen&&!O.current.isMouseDown&&h({type:vv,selectItem:!0})})),g=f);return yg(((n={})[c]=jg(u,(function(e){b.current=e})),n.id=E.inputId,n["aria-autocomplete"]="list",n["aria-controls"]=E.menuId,n),m.isOpen&&m.highlightedIndex>-1&&{"aria-activedescendant":E.getItemId(m.highlightedIndex)},{"aria-labelledby":E.labelId,autoComplete:"off",value:m.inputValue},g,d)}),[h,R,M,O,C,E]),N=Object(ve.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.refKey,o=void 0===i?"ref":i,a=r.ref,s=vg(r,zv),l=(void 0===t?{}:t).suppressRefError;return C("getComboboxProps",void 0!==l&&l,o,w),yg(((n={})[o]=jg(a,(function(e){w.current=e})),n.role="combobox",n["aria-haspopup"]="listbox",n["aria-owns"]=E.menuId,n["aria-expanded"]=M.current.state.isOpen,n),s)}),[M,C,E]),U=Object(ve.useCallback)((function(){h({type:_v})}),[h]),j=Object(ve.useCallback)((function(){h({type:Sv})}),[h]),F=Object(ve.useCallback)((function(){h({type:Ev})}),[h]),B=Object(ve.useCallback)((function(e){h({type:Mv,highlightedIndex:e})}),[h]),z=Object(ve.useCallback)((function(e){h({type:Tv,selectedItem:e})}),[h]);return{getItemProps:L,getLabelProps:P,getMenuProps:I,getInputProps:D,getComboboxProps:N,getToggleButtonProps:k,toggleMenu:U,openMenu:F,closeMenu:j,setHighlightedIndex:B,setInputValue:Object(ve.useCallback)((function(e){h({type:Av,inputValue:e})}),[h]),selectItem:z,reset:Object(ve.useCallback)((function(){h({type:Ov})}),[h]),highlightedIndex:f,isOpen:p,selectedItem:m,inputValue:g}}function Vv(){return Vv=Object.assign?Object.assign.bind():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},Vv.apply(this,arguments)}Hv.stateChangeTypes=Rv,bg.exports.array,bg.exports.array,bg.exports.array,bg.exports.func,bg.exports.func,bg.exports.func,bg.exports.number,bg.exports.number,bg.exports.number,bg.exports.func,bg.exports.func,bg.exports.string,bg.exports.string,bg.exports.shape({addEventListener:bg.exports.func,removeEventListener:bg.exports.func,document:bg.exports.shape({getElementById:bg.exports.func,activeElement:bg.exports.any,body:bg.exports.any})});var Wv;function Gv(){return Gv=Object.assign?Object.assign.bind():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},Gv.apply(this,arguments)}const qv=Object(be.b)(d||(d=Object(ge.a)(["\n  box-shadow: 0px 4px 96px rgba(10, 10, 130, 0.09),\n    0px 2px 16px rgba(10, 10, 130, 0.08), 0px 1px 2px rgba(10, 10, 130, 0.24);\n  border-color: transparent;\n  border-radius: 6px;\n"]))),Xv=Object(be.b)(h||(h=Object(ge.a)(["\n  border-radius: calc(3em / 2);\n"])));be.c.div(p||(p=Object(ge.a)(["\n  font-size: 1em;\n  overflow: hidden;\n  border: 1px solid #d9dce7;\n  ","\n  transition: border-radius 150ms, box-shadow 150ms;\n"])),(e=>{let{$isOpen:t}=e;return t?qv:Xv})),be.c.div(f||(f=Object(ge.a)(["\n  display: flex;\n\n  input {\n    flex: auto 1 0;\n    font-size: 1em;\n    width: 100%;\n    height: 3em;\n    padding: 0 1em;\n    border: 0;\n    border-radius: 0;\n    appearance: none;\n    outline: none;\n\n    ::-ms-clear {\n      display: none;\n    }\n  }\n"]))),be.c.ul(m||(m=Object(ge.a)(["\n  max-height: 50vh;\n  padding: 0;\n  margin: 0;\n  font-size: 0.9em;\n  background-color: white;\n  list-style: none;\n  overflow-y: auto;\n  justify-content: ",";\n"])),(e=>{let{$shortList:t}=e;return t?"space-around":"flex-start"})),be.c.li(g||(g=Object(ge.a)(["\n  padding: 0 1.36666em;\n  font-weight: bold;\n  cursor: pointer;\n\n  &:last-child {\n    > div {\n      border: none;\n    }\n  }\n\n  :hover {\n    color: #1415fa;\n    background-color: #f7f7fb;\n  }\n"]))),Object(be.c)((function(e){return ve.createElement("svg",Vv({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 11"},e),Nv||(Nv=ve.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.3,d:"M10.2 10.2.7.8m9.5 0L.7 10.2 10.2.8z"})))}))(v||(v=Object(ge.a)(["\n  align-self: center;\n  flex-shrink: 0;\n  width: 0.6875em;\n  height: 0.6875em;\n  padding: 15px 20px 15px 10px;\n  transform: translateX(-100%);\n  box-sizing: content-box;\n  color: #657096;\n  cursor: pointer;
2\n"]))),Object(be.c)((function(e){return ve.createElement("svg",Gv({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 13"},e),Wv||(Wv=ve.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"m9 9.1 3.1 3m-1.6-6.4a4.9 4.9 0 1 1-9.8 0 4.9 4.9 0 0 1 9.8 0z"})))}))(y||(y=Object(ge.a)(["\n  align-self: center;\n  flex-shrink: 0;\n  width: 0.8125em;\n  height: 0.8125em;\n  padding-right: 20px;\n  transform: translateX(-100%);\n  box-sizing: content-box;\n  color: #657096;\n"])));var Yv;function Zv(){return Zv=Object.assign?Object.assign.bind():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},Zv.apply(this,arguments)}var Kv=function(e){return ve.createElement("svg",Zv({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 256 512"},e),Yv||(Yv=ve.createElement("path",{fill:"currentColor",d:"M24.7 38.1 5 57.9a12 12 0 0 0 0 17L185.6 256 5 437.1a12 12 0 0 0 0 17l19.8 19.8a12 12 0 0 0 17 0L251 264.5a12 12 0 0 0 0-17L41.7 38.1a12 12 0 0 0-17 0z"})))};be.c.div((()=>Object(be.b)(b||(b=Object(ge.a)(["\n    z-index: 999;\n    position: fixed;\n    left: 0;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    width: 100%;\n    height: 100%;\n    padding-top: ",";\n    padding-bottom: ",";\n    border-top-right-radius: ",";\n    border-top-left-radius: ",";\n    box-shadow: 0px 4px 96px rgba(10, 10, 130, 0.09),\n      0px 2px 16px rgba(10, 10, 130, 0.08), 0px 1px 2px rgba(10, 10, 130, 0.24);\n    background-color: white;\n    will-change: transform;\n    transition: ",";\n\n    * {\n      user-select: none;\n    }\n  "])),Ef(20),Ef(10),Ef(10),Ef(10),$v))),be.c.div(x||(x=Object(ge.a)(["\n  position: absolute;\n  top: -",";\n  left: 0;\n  width: 100%;\n  height: ",";\n  padding-top: ",";\n  z-index: 1;\n  box-sizing: content-box;\n\n  ::before {\n    content: '';\n    display: block;\n    width: 40px;\n    height: 7px;\n    background-color: #d0d0d0;\n    margin: 5px auto;\n    border-radius: 7px;\n  }\n"])),Ef(40),Ef(20),Ef(40)),be.c.div(w||(w=Object(ge.a)(["\n  height: 100%;\n  width: 100%;\n  border: none;\n  border-radius: 0;\n  box-shadow: none;\n\n  input {\n    height: 2.5em;\n    padding: 0 2.5em 0 1.25em;\n    border-radius: ",";\n    background-color: #f3f2f2;\n    user-select: auto;\n  }\n\n  .pcmap-selector__input {\n    width: 90%;\n    margin: 0 auto;\n  }\n\n  .pcmap-selector__list {\n    font-size: 0.75em;\n  }\n\n  .pcmap-selector__list--branches {\n    display: flex;\n\n    .pcmap-selector__item {\n      margin: 0 ","px;\n\n      :hover {\n        background-color: unset;\n      }\n\n      > div {\n        flex-direction: column;\n        border: 0;\n        text-align: center;\n        white-space: break-spaces;\n      }\n    }\n\n    .pcmap-selector__icon {\n      margin: 0 0 ",";\n    }\n  }\n\n  .pcmap-selector__list--leaves {\n    border-top: 1px solid #cccccc;\n    margin-top: ",";\n    padding-bottom: ",";\n  }\n"])),Ef(10),(e=>{let{$itemPadding:t}=e;return t}),Ef(5),Ef(10),Ef(50)),Object(be.c)(Kv)(_||(_=Object(ge.a)(["\n  position: absolute;\n  top: 90px;\n  right: 5px;\n  width: 10px;\n  color: gainsboro;\n"]))),Object(be.c)(Kv)(E||(E=Object(ge.a)(["\n  position: absolute;\n  top: 90px;\n  left: 5px;\n  width: 10px;\n  transform: rotate(180deg);\n  color: gainsboro;\n"])));const $v="transform 300ms ease";const Jv=be.c.button(S||(S=Object(ge.a)(["\n  position: relative;\n  width: ",";\n  height: ",";\n  line-height: 1;\n  border: 0;\n  background-color: transparent;\n  color: #0a0a82;\n  appearance: none;\n  cursor: pointer;\n  user-select: none;\n\n  ::before {\n    content: '';\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    border-radius: 1.5em;\n    background-color: #d9dce7;\n    opacity: 0.2;\n    transition: transform 150ms;\n    z-index: -1;\n  }\n\n  :hover {\n    ::before {\n      transform: scale(1.4);\n    }\n  }\n\n  :focus {\n    outline: none;\n  }\n"])),Ef(40),Ef(40)),Qv=be.c.div(M||(M=Object(ge.a)(["\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  width: 100%;\n  height: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  border-radius: 1.5em;\n  background-color: white;\n  box-shadow: 0px 6px 32px rgba(10, 10, 130, 0.08),\n    0px 4px 16px rgba(10, 10, 130, 0.08), 0px 1px 4px rgba(10, 10, 130, 0.24);\n"])));function ey(e){var{children:t}=e,n=Ee(e,["children"]);return ve.createElement(Jv,Object.assign({},n),ve.createElement(Qv,null,t))}const ty=be.c.div(T||(T=Object(ge.a)(["\n  position: absolute;\n  top: 0;\n  left: 0;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 100%;\n  width: 100%;\n  background-color: white;\n  z-index: 10000;\n"]))),ny=be.c.div(A||(A=Object(ge.a)(["\n  .sk-folding-cube {\n    margin: "," auto;\n    width: ",";\n    height: ",";\n    position: relative;\n    transform: rotateZ(45deg);\n  }\n\n  .sk-folding-cube .sk-cube {\n    float: left;\n    width: 50%;\n    height: 50%;\n    position: relative;\n    transform: scale(1.1);\n  }\n  .sk-folding-cube .sk-cube:before {\n    content: '';\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    background-color: ",";\n    animation: sk-foldCubeAngle 2.4s infinite linear both;\n    transform-origin: 100% 100%;\n  }\n  .sk-folding-cube .sk-cube2 {\n    transform: scale(1.1) rotateZ(90deg);\n  }\n  .sk-folding-cube .sk-cube3 {\n    transform: scale(1.1) rotateZ(180deg);\n  }\n  .sk-folding-cube .sk-cube4 {\n    transform: scale(1.1) rotateZ(270deg);\n  }\n  .sk-folding-cube .sk-cube2:before {\n    animation-delay: 0.3s;\n  }\n  .sk-folding-cube .sk-cube3:before {\n    animation-delay: 0.6s;\n  }\n  .sk-folding-cube .sk-cube4:before {\n    animation-delay: 0.9s;\n  }\n\n  @keyframes sk-foldCubeAngle {\n    0%,\n    10% {\n      transform: perspective(",") rotateX(-180deg);\n      opacity: 0;\n    }\n    25%,\n    75% {\n      transform: perspective(",") rotateX(0deg);\n      opacity: 1;\n    }\n    90%,\n    100% {\n      transform: perspective(",") rotateY(180deg);\n      opacity: 0;\n    }\n  }\n"])),Ef(20),Ef(40),Ef(40),(e=>{let{color:t}=e;return t}),Ef(140),Ef(140),Ef(140));function ry(e){return ve.createElement(ny,{color:e.color},ve.createElement("div",{className:"sk-folding-cube"},ve.createElement("div",{className:"sk-cube1 sk-cube"}),ve.createElement("div",{className:"sk-cube2 sk-cube"}),ve.createElement("div",{className:"sk-cube4 sk-cube"}),ve.createElement("div",{className:"sk-cube3 sk-cube"})))}function iy(e){return ve.createElement(ty,null,ve.createElement(ry,{color:e.color}))}ry.defaultProps={color:"#0b2534"};const oy="".concat(window.location.protocol,"//cms.point-maps.com/images/"),ay=window.navigator.userAgent,sy=/(iPad|iPhone|iPod)/gi.test(ay)&&!/CriOS/.test(ay)&&!/FxiOS/.test(ay)&&!/OPiOS/.test(ay)&&!/mercury/.test(ay);var ly=!1;
2if("undefined"!==typeof window){var cy={get passive(){ly=!0}};window.addEventListener("testPassive",null,cy),window.removeEventListener("testPassive",null,cy)}var uy,dy="undefined"!==typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),hy=[],py=!1,fy=-1,my=void 0,gy=void 0,vy=void 0,yy=function(e){return hy.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},by=function(e){var t=e||window.event;return!!yy(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},xy=function(e,t){if(e){if(!hy.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};hy=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(hy),[n]),dy?window.requestAnimationFrame((function(){if(void 0===gy){gy={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var e=window,t=e.scrollY,n=e.scrollX,r=e.innerHeight;document.body.style.position="fixed",document.body.style.top=-t,document.body.style.left=-n,setTimeout((function(){return window.requestAnimationFrame((function(){var e=r-window.innerHeight;e&&t>=r&&(document.body.style.top=-(t+e))}))}),300)}})):function(e){if(void 0===vy){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;if(t&&n>0){var r=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);vy=document.body.style.paddingRight,document.body.style.paddingRight=r+n+"px"}}void 0===my&&(my=document.body.style.overflow,document.body.style.overflow="hidden")}(t),dy&&(e.ontouchstart=function(e){1===e.targetTouches.length&&(fy=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-fy;!yy(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?by(e):e.stopPropagation())}(t,e)},py||(document.addEventListener("touchmove",by,ly?{passive:!1}:void 0),py=!0))}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},wy=function(){dy&&(hy.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),py&&(document.removeEventListener("touchmove",by,ly?{passive:!1}:void 0),py=!1),fy=-1),dy?function(){if(void 0!==gy){var e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.body.style.position=gy.position,document.body.style.top=gy.top,document.body.style.left=gy.left,window.scrollTo(t,e),gy=void 0}}():(void 0!==vy&&(document.body.style.paddingRight=vy,vy=void 0),void 0!==my&&(document.body.style.overflow=my,my=void 0)),hy=[]};function _y(){return _y=Object.assign?Object.assign.bind():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},_y.apply(this,arguments)}var Ey;function Sy(){return Sy=Object.assign?Object.assign.bind():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},Sy.apply(this,arguments)}const My="Rendering",Ty="Opening",Ay="Opened",Oy="Closing",Cy="Closed",Ry="Expanded",Py="Collapsed",Iy="Switching",Ly=[Py,Ry],ky=350,Dy={duration:ky,easing:"ease-out",fill:"forwards"},Ny="\n\tbox-shadow: 0px 4px 96px rgba(10, 10, 130, 0.09), 0px 2px 16px rgba(10, 10, 130, 0.08),\n\t\t0px 1px 2px rgba(10, 10, 130, 0.24);\n",Uy=be.c.div((e=>{let{device:t,invisible:n}=e;return Object(be.b)(O||(O=Object(ge.a)(["\n    position: absolute;\n    bottom: 0;\n    left: 0;\n    display: flex;\n    flex-direction: column;\n    width: 100%;\n    padding-top: ",";\n    background-color: white;\n    z-index: 1001;\n    will-change: transform;\n    visibility: ",";\n    ","\n\n    @media (orientation: landscape) and (min-width: 600px) {\n      top: 0;\n      width: ",";\n      z-index: 1000;\n    }\n  "])),"Mobile"===t?"".concat(Ef(42)):"0",n?"hidden":"unset",Ny,Ef(380))})),jy=Object(be.d)(C||(C=Object(ge.a)(["\n  0%, 100% {\n    transform: translateY(0);\n  }\n  50% {\n    transform: translateY(-5px);\n  }
2\n"]))),Fy=be.c.div(R||(R=Object(ge.a)(["\n  animation: "," 2s infinite;\n"])),jy),By=be.c.div((e=>{let{flip:t}=e;return Object(be.b)(I||(I=Object(ge.a)(["\n    position: absolute;\n    bottom: ",";\n    left: 50%;\n    animation: "," 500ms forwards;\n  "])),Ef(-7),(n=t?1:-1,r=t?-1:1,Object(be.d)(P||(P=Object(ge.a)(["\n  0% {\n    transform: scaleY(",");\n    opacity: 1;\n  }\n  25% {\n    transform: scaleY(",");\n    opacity: 0;\n  }\n  75% {\n    transform: scaleY(",");\n    opacity: 0;\n  }\n  100% {\n    transform: scaleY(",");\n    opacity: 1;\n  }\n"])),n,n,r,r)));var n,r})),zy=Object(be.c)((function(e){return ve.createElement("svg",Sy({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 445 228"},e),Ey||(Ey=ve.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M197.305 8.932c14.686-11.91 35.704-11.91 50.39 0l182.5 148c17.158 13.915 19.788 39.104 5.873 56.263-13.915 17.158-39.105 19.788-56.263 5.873L222.5 91.5 65.195 219.068c-17.159 13.915-42.348 11.285-56.263-5.873-13.915-17.159-11.285-42.348 5.873-56.263l182.5-148Z",clipRule:"evenodd"})))}))(L||(L=Object(ge.a)(["\n  width: ",";\n  color: #d0d0d0;\n  transform: translateX(-50%);\n"])),Ef(18)),Hy=be.c.div(k||(k=Object(ge.a)(["\n  position: absolute;\n  top: -",";\n  left: 0;\n  width: 100%;\n  height: ",";\n  padding-top: ",";\n  z-index: 1;\n  box-sizing: content-box;\n\n  ::after {\n    content: '';\n    display: block;\n    width: 80%;\n    height: ",";\n  }\n\n  ::before {\n    content: '';\n    display: block;\n    width: ",";\n    height: ",";\n    background-color: transparent;\n    margin: "," auto;\n    border-radius: ",";\n  }\n"])),Ef(40),Ef(20),Ef(40),Ef(40),Ef(40),Ef(7),Ef(5),Ef(7)),Vy=be.c.div(D||(D=Object(ge.a)(["\n  display: none;\n  position: absolute;\n  top: 0;\n  right: -",";\n  overflow: hidden;\n  padding: 0 "," "," 0;\n\n  div {\n    padding: "," ",";\n    border-radius: 0 "," "," 0;\n    background-color: white;\n    ","\n    cursor: pointer;\n    z-index: -1;\n  }\n\n  svg {\n    width: ",";\n  }\n"])),Ef(90),Ef(50),Ef(50),Ef(10),Ef(15),Ef(4),Ef(4),Ny,Ef(10)),Wy=be.c.div(N||(N=Object(ge.a)(["\n  position: absolute;\n  top: ",";\n  right: ",";\n  padding: ",";\n  cursor: pointer;\n  z-index: 2;\n"])),Ef(5),Ef(10),Ef(10)),Gy=Object(be.c)((function(e){return ve.createElement("svg",_y({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 11"},e),uy||(uy=ve.createElement("path",{stroke:"#636F99",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"M10.23 10.23.77.77m9.46 0L.77 10.23 10.23.77z"})))}))(U||(U=Object(ge.a)(["\n  width: ",";\n"])),Ef(10));function qy(e){const{selectedEntity:t,bottomElement:n,allowDragging:r=!0,scrollableElement:i,render:o,className:a,onClose:s}=e,[l,c]=ve.useState(Cy),[u,d]=ve.useState({[Ay]:0,[Py]:0,[Ry]:0}),[h,p]=ve.useState(null),[f,m]=ve.useState(null),[g,v]=ve.useState(null),y=ve.useRef(0),b=ve.useRef(null),[x,w]=ve.useState(0),[_,E]=ve.useState(0),[S,M]=ve.useState(0),T=window.matchMedia("(orientation: landscape) and (min-width: 600px)").matches,A=!T;if(ve.useEffect((()=>{if(!A||!h||!g||!g.parentElement||!n)return;const e=new ResizeObserver(hp((e=>{e.forEach((e=>{let{target:t}=e;if(t===g||t===g.parentElement||t===n){const e=n.getBoundingClientRect(),t=g.getBoundingClientRect(),r=parseInt(window.getComputedStyle(g).getPropertyValue("padding-top")),i=e.bottom-t.top,o=Math.round(t.height-i);if(w(Math.round(r)),E(Math.round(i)),d({[Ay]:o,[Py]:o,[Ry]:0}),g.parentElement){const e=g.parentElement.clientHeight;M(Math.round(e-i))}}}))}),100,{leading:!1,trailing:!0}));return e.observe(g),e.observe(g.parentElement),e.observe(n),()=>{e.disconnect()}}),[A,g,n,h]),ve.useEffect((()=>{if(g){if(T)switch(l){case Oy:b.current=g.animate([{transform:"translateX(0)"},{transform:"translateX(-100%)"}],Dy);break;case Ty:b.current=g.animate([{transform:"translateX(-100%)"},{transform:"translateX(0)"}],Dy)}if(A)switch(l){case Oy:b.current=g.animate([{transform:"translateY(100%)"}],Dy);break;case Ty:b.current=g.animate([{transform:"translateY(100%)"},{transform:"translateY(calc(100% - ".concat(_,"px))")}],Dy);break;case Iy:b.current=g.animate([{transform:"translateY(calc(100% - ".concat(_,"px))")}],Dy);break;case Py:if(y.current){b.current=g.animate([{transform:"translateY(".concat(y.current,"px)")},{transform:"translateY(calc(100% - ".concat(_,"px))")}],Dy),y.current=0;break}if(b.current){const e=b.current.effect.getKeyframes(),t=e[e.length-1],n={transform:"translateY(calc(100% - ".concat(_,"px))")};b.current=g.animate([t,n],Dy);break}break;case Ry:if(y.current){b.current=g.animate([{transform:"translateY(".concat(y.current,"px)")},{transform:"translateY(0)"}],Dy),y.current=0;break}b.current=g.animate([{transform:"translateY(0)"}],Dy)}}}),[A,l,g,_]),ve.useEffect((()=>{switch(l){case Oy:setTimeout((()=>{c(Cy),p(null)}),ky);break;case Cy:t&&(p(t),c(My),E(0));break;case My:(A&&_||T)&&c(Ty);break;case Ty:setTimeout((()=>{c(A?Py:Ay)}),ky);break;case Iy:setTimeout((()=>{p(t),c(Py)}),ky);break;case Ry:case Py:case Ay:if(!t){c(Oy);break}if(t&&t!==h){A?c(Iy):p(t);break}l===Ry&&i&&xy(i)}return()=>{wy()}}),[l,t,h,i,A,T,_]),ve.useEffect((()=>
2{if(!A||!g||!f)return;let e=0,t=0;const n=t=>{b.current&&b.current.cancel(),e=t.changedTouches[0].pageY;const n=u[l];g.style.transform="translateY(".concat(n,"px)")},r=n=>{n.preventDefault(),n.stopPropagation();const r=e-n.changedTouches[0].pageY;t=((e,t)=>{const n=e-t,r=Ly[0],i=Ly[Ly.length-1];return n>u[r]?u[r]:n<u[i]?u[i]:n})(u[l],r),g.style.transform="translateY(".concat(t,"px)")},i=()=>{const e=(e=>{const t=u[l],n=Math.abs(t-e),r=e<t,i=!r;if(n<50)return l;if(r){const t=Ly.indexOf(l);if(-1===t)return Ly[Ly.length-1];const n=Ly.slice(t+1);return 0===n.length?l:n.reduce(((t,n,r)=>{if(0===r)return t;const i=u[t];return e<i-50?n:t}),n[0])}if(i){const t=Ly.indexOf(l);if(-1===t)return Ly[Ly.length-1];const n=Ly.slice(0,t).reverse();return 0===n.length?l:n.reduce(((t,n,r)=>{if(0===r)return t;const i=u[t];return e>i+50?n:t}),n[0])}return l})(t);if(e===l){const e=u[l];g.style.transform="translateY(".concat(e,"px)")}else y.current=t,c(e)};return f.addEventListener("touchstart",n),f.addEventListener("touchmove",r),f.addEventListener("touchend",i),()=>{f.removeEventListener("touchstart",n),f.removeEventListener("touchmove",r),f.removeEventListener("touchend",i)}}),[A,g,f,l,u,_]),!h)return null;const O=l===Ry,C=l===My,R=l===Cy;return ve.createElement(Uy,{ref:e=>v(e),className:a,device:A?"Mobile":"Desktop",invisible:C||R},A&&ve.createElement(ve.Fragment,null,r&&ve.createElement(Hy,{ref:e=>m(e)},ve.createElement(By,{flip:O},ve.createElement(Fy,null,ve.createElement(zy,null)))),ve.createElement(Wy,{onClick:s},ve.createElement(Gy,null))),T&&ve.createElement(Vy,{className:"pcmap-sideclose-button"},ve.createElement("div",{onClick:s},ve.createElement(Gy,null))),o({entity:h,isExpanded:O,dragAreaHeight:x,headerHeight:_,contentHeight:S}))}const Xy=be.c.div((e=>{let{maxHeight:t,hideScroll:n}=e;return Object(be.b)(j||(j=Object(ge.a)(["\n    display: flex;\n    flex-direction: column;\n    max-height: ","px;\n    padding: 0 "," ",";\n    overflow-y: ",";\n\n    @media (orientation: landscape) and (min-width: 600px) {\n      max-height: 100%;\n      margin-top: ",";\n\n      .pcmap-occupant-gallery + & {\n        margin-top: 0;\n      }\n    }\n  "])),t,Ef(24),Ef(20),n?"hidden":"auto",Ef(110))})),Yy=be.c.h2.attrs({className:"pcmap-occupant-title"})(F||(F=Object(ge.a)(["\n  flex: 1 0 auto;\n  margin-top: 0;\n  margin-bottom: ",";\n  font-weight: bold;\n  line-height: 1.3;\n  ",";\n"])),Ef(3),(e=>{let{expanded:t}=e;return!t&&"\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t"})),Zy=be.c.div.attrs({className:"pcmap-occupant-category"})(B||(B=Object(ge.a)(["\n  color: gray;\n  font-size: ",";\n  margin-bottom: ",";\n"])),Ef(14),Ef(5,14)),Ky=be.c.div.attrs({className:"pcmap-occupant-tags"})(z||(z=Object(ge.a)(["\n  padding-bottom: ",";\n  margin-bottom: ",";\n  margin-top: ",";\n"])),Ef(13),Ef(13),Ef(6)),$y=be.c.span.attrs({className:"pcmap-occupant-tag"})(H||(H=Object(ge.a)(["\n  ","\n"])),(e=>{let{highlight:t}=e;return Object(be.b)(V||(V=Object(ge.a)(["\n    margin-right: ",";\n    padding: "," ",";\n    border: 1px solid ",";\n    border-radius: ",";\n    font-size: ",";\n    font-weight: 600;\n    background-color: ",";\n    color: ",";\n  "])),Ef(9,12),Ef(4,12),Ef(9,12),t?"#1415fa":"#d9dce7",Ef(4,12),Ef(12),t?"#1415fa":"inherit",t?"white":"inherit")})),Jy=be.c.div.attrs({className:"pcmap-occupant-gallery"})(W||(W=Object(ge.a)(["\n  ","\n"])),(e=>{let{isSingle:t}=e;return Object(be.b)(G||(G=Object(ge.a)(["\n    padding-bottom: ",";\n    margin-bottom: ",";\n    touch-action: ",";\n\n    & .image-gallery {\n      width: 100%;\n      height: 100%;\n    }\n\n    & .image-gallery-image {\n      height: ",";\n      max-height: "," !important;\n      object-fit: ",";\n    }\n\n    @media (orientation: landscape) and (min-width: 600px) {\n      max-height: ",";\n\n      & + header {\n        margin-top: 0;\n      }\n    }\n  "])),Ef(13),Ef(13),t?"unset":"none",Ef(268),Ef(268),t?"contain":"cover",Ef(268))})),Qy=be.c.div.attrs({className:"pcmap-occupant-button"})(q||(q=Object(ge.a)(["\n  padding-bottom: ",";\n  margin-bottom: ",";\n"])),Ef(5),Ef(5)),eb=be.c.button.attrs({className:"pcmap-occupant-directions-button"})(X||(X=Object(ge.a)(["\n  width: 100%;\n  height: ",";\n  border: 0;\n  border-radius: ",";\n  color: white;\n  background-color: #0a0a82;\n  box-shadow: 0px 2px 16px rgba(10, 10, 130, 0.08),\n    0px 1px 2px rgba(10, 10, 130, 0.16);\n  cursor: pointer;\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    margin-top: ",";\n  }\n"])),Ef(40),Ef(40),Ef(12)),tb=be.c.button.attrs({className:"pcmap-occupant-details-button"})(Y||(Y=Object(ge.a)(["\n  width: 100%;\n  height: ",";\n  border: 0;\n  border-radius: ",";\n  color: white;\n  background-color: #0a0a82;\n  box-shadow: 0px 2px 16px rgba(10, 10, 130, 0.08),\n    0px 1px 2px rgba(10, 10, 130, 0.16);\n  cursor: pointer;\n"])),Ef(40),Ef(40)),nb=be.c.div.attrs({className:"pcmap-occupant-description"})(Z||(Z=Object(ge.a)(["\n  flex: 1 0 auto;\n  overflow-y: auto;\n  max-height: ",";\n  margin-top: ",";\n  margin-bottom: ",";\n"])),Ef(300),Ef(25),Ef(24)),rb=be.c.div.attrs({className:"pcmap-occupant-additional-info"})(K||(K=Object(ge.a)(["\n  margin-top: ",";\n  margin-bottom: ",";\n\n  .pcmap-occupant-opening-status {\n    display: block;\n    font-size: ",";\n    margin-bottom: 0;\n  }\n"])),Ef(25),Ef(25),Ef(16)),ib=be.c.div($||($=Object(ge.a)(["\n  display: flex;\n  justify-content: flex-start;\n  align-items: flex-start;\n  min-height: ",";\n  font-size: ",";\n  color: #141432;\n"])),Ef(45,14),Ef(14)),ob=be.c.svg(J||(J=Object(ge.a)(["\n  flex-shrink: 0;\n  width: ",";\n  height: ",";\n  margin: "," "," 0 0;\n"])),Ef(34),Ef(34),Ef(6),Ef(10)),ab=be.c.a(Q||(Q=Object(ge.a)(["\n  display: flex;\n  align-items: center;\n  width: 100%;\n  height: 100%;\n  padding: "," 0;\n  border-bottom: 1px solid #d9dce7;\n  text-decoration: none;\n  color: #0b2534;\n  overflow: hidden;\n\n  :hover {\n    color: #2c46e9;\n  }\n"])),Ef(12)),sb=be.c.div.attrs({className:"pcmap-occupant-opening-table"})(ee||(ee=Object(ge.a)(["\n  width: 100%;\n  margin: 13px 0;\n"]))),lb=be.c.div.attrs({className:"pcmap-occupant-opening-header"})(te||(te=Object(ge.a)(["\n  display: flex;\n  justify-content: space-between;\n  margin-bottom: ",";\n"])),Ef(10)),cb=be.c.div.attrs({className:"pcmap-occupant-opening-status"})(ne||(ne=Object(ge.a)(["\n  display: none;\n  font-size: ",";\n  font-weight: bold;\n  margin-bottom: ",";\n"])),Ef(12),Ef(6,12)),ub=be.c.div.attrs({className:"pcmap-occupant-opening-toggle-all"})(re||(re=Object(ge.a)(["\n  text-align: right;\n  color: #0b2534;\n  cursor: pointer;
2\n"]))),db=be.c.div.attrs({className:"pcmap-occupant-opening-weekdays"})(ie||(ie=Object(ge.a)(["\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n"]))),hb=be.c.div(oe||(oe=Object(ge.a)(["\n  display: flex;\n  justify-content: space-between;\n  margin-bottom: ",";\n"])),Ef(10)),pb=be.c.div.attrs({className:"pcmap-occupant-opening-hours"})(ae||(ae=Object(ge.a)(["\n  display: flex;\n  flex-direction: column;\n"]))),fb=be.c.div(se||(se=Object(ge.a)([""]))),mb=be.c.p.attrs({className:"pcmap-occupant-opening-hours-string"})(le||(le=Object(ge.a)(["\n  margin-top: ",";\n\n  table {\n    margin-top: ",";\n  }\n\n  td:not(:last-of-type) {\n    padding-right: ",";\n  }\n"])),Ef(12),Ef(-5),Ef(16)),gb=be.c.div.attrs({className:"pcmap-occupant-keywords"})(ce||(ce=Object(ge.a)(["\n  display: flex;\n  flex-wrap: wrap;\n  gap: ",";\n  margin-top: ",";\n"])),Ef(4),Ef(25)),vb=be.c.button.attrs({className:"pcmap-occupant-keyword"})(ue||(ue=Object(ge.a)(["\n  padding: "," ",";\n  border-radius: 1em;\n  border: none;\n  font-size: ",";\n  font-weight: 600;\n  letter-spacing: 0.5px;\n  text-transform: capitalize;\n  background-color: #dfdfdf;\n  color: #111111;\n  cursor: pointer;\n"])),Ef(4,12),Ef(10,12),Ef(12));function yb(e){var t,n,r;const[i,o]=ve.useState(!1),{map:a,theme:s,selectedOccupant:l,unselectOccupants:c,openDirections:u,addToRoute:d,isRouteOpen:h,isDirectionsOpen:p}=Qf(),{mapData:f}=vm(),m=null!==(n=null===(t=null===f||void 0===f?void 0:f.settings)||void 0===t?void 0:t.showOpeningState)&&void 0!==n&&n,{getText:g}=xm(),{sanitizeDescription:v=!0,showDirectionsButton:y,showDetail
2sButton:b,initialBottomElement:x}=e,[w,_]=ve.useState(null),[E,S]=ve.useState(null),[M,T]=ve.useState(null),[A,O]=ve.useState(null),[C,R]=ve.useState(null),[P,I]=ve.useState(null),[L,k]=ve.useState(null),[D,N]=ve.useState(null),U=window.matchMedia("(orientation: landscape) and (min-width: 600px)").matches,j=!U;ve.useEffect((()=>{l&&w&&(w.scrollTop=0)}),[l,w]);const F=()=>{l&&u(l)},B=()=>{l&&d(l)};return l&&"__your-location__"===l.id||p&&!h?null:ve.createElement(qy,{key:"occupant-popup",className:"pcmap-popup pcmap-popup--occupant",selectedEntity:l,bottomElement:null!==(r="title"===x?E:"category"===x?M:"tags"===x?A:"gallery"===x?C:"directions-button"===x?P:"details-button"===x?L:"description"===x?D:null)&&void 0!==r?r:A,scrollableElement:w,onClose:c,render:e=>{let{entity:t,isExpanded:n,headerHeight:r,contentHeight:l,dragAreaHeight:u}=e;const d=t,{name:p,description:f,category:x,zone:w,area:E,phone:M,hours:A,hoursTable:C,website:P,email:L,url:D,keywords:z}=d.display,H=Array.from(new Set(z.concat(d.category.display.keywords))),V=d.rawProperties.website,W=d.getOpeningState?d.getOpeningState():null,G=d.images&&d.images.length?d.images.map((e=>({original:"".concat(e.startsWith("http")?"":oy).concat(e)}))):null,q=Boolean(G&&1===G.length),X=[];return w&&X.push({key:w,value:w}),E&&X.push({key:E,value:E}),ve.createElement(ve.Fragment,null,U&&G&&ve.createElement(Jy,{isSingle:q},ve.createElement(we.a,{items:G,showBullets:!q,showNav:!1,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,stopPropagation:!0,onImageLoad:e=>{q&&(e.currentTarget.style.height="auto")}})),ve.createElement(Xy,{ref:e=>_(e),maxHeight:r+l-u,hideScroll:j&&!n},ve.createElement(Yy,{ref:e=>S(e),expanded:n||U},p),ve.createElement(Zy,{ref:e=>T(e)},x),W&&ve.createElement(cb,{style:{color:W.state.toLowerCase().includes("soon")?"#f57c00":W.state.toLowerCase().includes("close")?"#ed3227":"#438428"}},W.stateName),ve.createElement(Ky,{ref:e=>O(e)},X.map((e=>{let{key:t,value:n}=e;return ve.createElement($y,{key:t,highlight:"area-aftersecurity"===t},n)}))),j&&G&&ve.createElement(Jy,{ref:e=>R(e),isSingle:q},ve.createElement(we.a,{items:G,showBullets:!q,showNav:!1,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,stopPropagation:!0,onImageLoad:e=>{q&&(e.currentTarget.style.height="auto")}})),y&&d.routable&&ve.createElement(Qy,{ref:e=>I(e)},ve.createElement(eb,{onClick:h?B:F},g(h?"Add to route":"Directions"))),b&&D&&ve.createElement(Qy,{ref:e=>k(e)},ve.createElement(tb,{onClick:()=>window.open(D)},g("Details"))),f&&(v?ve.createElement(nb,{ref:e=>N(e)},f):ve.createElement(nb,{ref:e=>N(e),dangerouslySetInnerHTML:{__html:f}})),ve.createElement(rb,null,M&&ve.createElement(ib,null,ve.createElement(ob,{as:s.components.OccupantPhoneIcon}),ve.createElement(ab,{target:sy?"_blank":"_self",href:"tel:".concat(M)},M)),L&&ve.createElement(ib,null,ve.createElement(ob,{as:s.components.OccupantEmailIcon}),ve.createElement(ab,{target:sy?"_blank":"_self",href:"mailto:".concat(L)},L)),P&&V&&ve.createElement(ib,null,ve.createElement(ob,{as:s.components.OccupantWebIcon}),ve.createElement(ab,{href:V.startsWith("http")?V:"https://".concat(V),target:"_blank",rel:"noopener"},P)),A&&ve.createElement(ib,null,ve.createElement(ob,{as:s.components.OccupantTimeIcon}),C&&m&&W?ve.createElement(sb,null,ve.createElement(lb,null,ve.createElement(cb,{style:{color:W.state.toLowerCase().includes("soon")?"#f57c00":W.state.toLowerCase().includes("close")?"#ed3227":"#438428"}},W.stateName),ve.createElement(ub,{onClick:()=>o(!i)},g(i?"show today":"show all"))),ve.createElement(db,null,(i?["mo","tu","we","th","fr","sa","su"]:[W.today.day]).map((e=>{const{dayName:t,times:n}=C[e];return ve.createElement(hb,{key:e,style:{fontWeight:i&&W.today.day===e?"bold":"normal"}},t,ve.createElement(pb,null,0===n.length?"Closed":n.map((e=>{const[t,n]=e.split("-");return ve.createElement(fb,{key:e},"".concat(t," - ").concat(n))}))))})))):ve.createElement(mb,null,A))),ve.createElement(gb,null,H.map((e=>ve.createElement(vb,{key:e,onClick:()=>(e=>{c(),a.setSearchBoxQuery(e)})(e)},e))))))}})}var bb=window&&window.__read||function(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(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},xb=function(e){return e.split(/ ?; ?/).reduce((function(e,t){var n=bb(t.split(/ ?: ?/),2),r=n[0],i=n[1];return r&&i&&(e[r.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))]=Number.isNaN(Number(i))?i:Number(i)),e}),{})};
2var wb=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],_b={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",
2nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode
2-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"},Eb=window&&window.__assign||function(){return Eb=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},Eb.apply(this,arguments)},Sb=window&&window.__read||function(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(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Mb=window&&window.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function Tb(e,t){var n;if(void 0===t&&(t={}),!e||!(e instanceof Node))return null;var r,i=t.actions,o=void 0===i?[]:i,a=t.index,s=void 0===a?0:a,l=t.level,c=void 0===l?0:l,u=t.randomKey,d=e,h="".concat(c,"-").concat(s),p=[];if(u&&0===c&&(h="".concat(function(e){void 0===e&&(e=6);for(var t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n="",r=e;r>0;--r)n+=t[Math.round(61*Math.random())];return n}(),"-").concat(h)),Array.isArray(o)&&o.forEach((function(t){t.condition(d,h,c)&&("function"===typeof t.pre&&((d=t.pre(d,h,c))instanceof Node||(d=e)),"function"===typeof t.post&&p.push(t.post(d,h,c)))})),p.length)return p;switch(d.nodeType){case 1:return ve.createElement((r=d.nodeName,/[a-z]+[A-Z]+[a-z]+/.test(r)?r:r.toLowerCase()),function(e,t){var n={key:t};if(e instanceof Element){var r=e.getAttribute("class");r&&(n.className=r),Mb([],Sb(e.attributes),!1).forEach((function(e){switch(e.name){case"class":break;case"style":n[e.name]=xb(e.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":n[_b[e.name]||e.name]=!0;break;default:n[_b[e.name]||e.name]=e.value}}))}return n}(d,h),function(e,t,n){var r=Mb([],Sb(e),!1).map((function(e,r){return Tb(e,Eb(Eb({},n),{index:r,level:t+1}))}
2)).filter(Boolean);return r.length?r:null}(d.childNodes,c,t));case 3:var f=(null===(n=d.nodeValue)||void 0===n?void 0:n.toString())||"";if(/^\s+$/.test(f)&&!/[\u00A0\u202F]/.test(f))return null;if(!d.parentNode)return f;var m=d.parentNode.nodeName.toLowerCase();return wb.includes(m)?(/\S/.test(f)&&console.warn("A textNode is not allowed inside '".concat(m,"'. Your text \"").concat(f,'" will be ignored')),null):f;default:return null}}function Ab(e,t){return void 0===t&&(t={}),"string"===typeof e?function(e,t){if(void 0===t&&(t={}),!e||"string"!==typeof e)return null;var n=t.nodeOnly,r=void 0!==n&&n,i=t.selector,o=void 0===i?"body > *":i,a=t.type,s=void 0===a?"text/html":a;try{var l=(new DOMParser).parseFromString(e,s).querySelector(o);if(!(l instanceof Node))throw new TypeError("Error parsing input");return r?l:Tb(l,t)}catch(c){}return null}(e,t):e instanceof Node?Tb(e,t):null}var Ob={exports:{}};!function(e){!function(){var t=!("undefined"===typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n}()}(Ob);var Cb={FAILED:"failed",LOADED:"loaded",LOADING:"loading",PENDING:"pending",READY:"ready",UNSUPPORTED:"unsupported"};function Rb(){return Ob.exports.canUseDOM}function Pb(){return function(){if(!document)return!1;var e=document.createElement("div");e.innerHTML="<svg />";var t=e.firstChild;return!!t&&"http://www.w3.org/2000/svg"===t.namespaceURI}()&&"undefined"!==typeof window&&null!==window}var Ib=window&&window.__extends||function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lb=window&&window.__assign||function(){return Lb=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},Lb.apply(this,arguments)},kb=window&&window.__read||function(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(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Db=window&&window.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},Nb=Object.create(null),Ub=function(e){function t(t){var n=e.call(this,t)||this;return Object.defineProperty(n,"isInitialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(n,"isActive",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(n,"hash",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(n,"handleLoad",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.isActive&&n.setState({content:e,status:Cb.LOADED},n.getElement)}}),Object.defineProperty(n,"handleError",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t=n.props.onError,r="Browser does not support SVG"===e.message?Cb.UNSUPPORTED:Cb.FAILED;n.isActive&&n.setState({status:r},(function(){"function"===typeof t&&t(e)}))}}),Object.defineProperty(n,"request",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.props,t=e.cacheRequests,r=e.fetchOptions,i=e.src;try{return t&&(Nb[i]={content:"",status:Cb.LOADING}),fetch(i,r).then((function(e){var t=e.headers.get("content-type"),n=kb((t||"").split(/ ?; ?/),1)[0];if(e.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some((function(e){return n.includes(e)})))throw new Error("Content type isn't valid: ".concat(n));return e.text()})).then((function(e){var r=n.props.src;if(i===r){if(n.handleLoad(e),t){var o=Nb[i];o&&(o.content=e,o.status=Cb.LOADED)}}else Nb[i].status===Cb.LOADING&&delete Nb[i]})).catch((function(e){(n.handleError(e),t)&&(Nb[i]&&delete Nb[i])}))}catch(o){return n.handleError(new Error(o.message))}}}),n.state={content:"",element:null,hasCache:!!t.cacheRequests&&!!Nb[t.src],status:Cb.PENDING},n.hash=t.uniqueHash||function(e){for(var t,n="abcdefghijklmnopqrstuvwxyz",r="".concat(n).concat(n.toUpperCase()).concat("1234567890"),i="",o=0;o<e;o++)i+=(t=r)[Math.floor(Math.random()*t.length)];return i}(8),n}return Ib(t,e),Object.defineProperty(t.prototype,"componentDidMount",{enumerable:!1,
2configurable:!0,writable:!0,value:function(){if(this.isActive=!0,Rb()&&!this.isInitialized){var e=this.state.status,t=this.props.src;try{if(e===Cb.PENDING){if(!Pb())throw new Error("Browser does not support SVG");if(!t)throw new Error("Missing src");this.load()}}catch(n){this.handleError(n)}this.isInitialized=!0}}}),Object.defineProperty(t.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(Rb()){var n=this.state,r=n.hasCache,i=n.status,o=this.props,a=o.onLoad,s=o.src;if(t.status!==Cb.READY&&i===Cb.READY&&a&&a(s,r),e.src!==s){if(!s)return void this.handleError(new Error("Missing src"));this.load()}}}}),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isActive=!1}}),Object.defineProperty(t.prototype,"getNode",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.description,n=e.title;try{var r=Ab(this.processSVG(),{nodeOnly:!0});if(!r||!(r instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");var i=this.updateSVGAttributes(r);if(t){var o=i.querySelector("desc");o&&o.parentNode&&o.parentNode.removeChild(o);var a=document.createElement("desc");a.innerHTML=t,i.prepend(a)}if(n){var s=i.querySelector("title");s&&s.parentNode&&s.parentNode.removeChild(s);var l=document.createElement("title");l.innerHTML=n,i.prepend(l)}return i}catch(c){return this.handleError(c)}}}),Object.defineProperty(t.prototype,"getElement",{enumerable:!1,configurable:!0,writable:!0,value:function(){try{var e=Ab(this.getNode());if(!e||!ve.isValidElement(e))throw new Error("Could not convert the src to a React element");this.setState({element:e,status:Cb.READY})}catch(t){this.handleError(new Error(t.message))}}}),Object.defineProperty(t.prototype,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;this.isActive&&this.setState({content:"",element:null,status:Cb.LOADING},(function(){var t=e.props,n=t.cacheRequests,r=t.src,i=n&&Nb[r];if(i&&i.status===Cb.LOADED)e.handleLoad(i.content);else{var o,a=r.match(/data:image\/svg[^,]*?(;base64)?,(.*)/);a?o=a[1]?window.atob(a[2]):decodeURIComponent(a[2]):r.includes("<svg")&&(o=r),o?e.handleLoad(o):e.request()}}))}}),Object.defineProperty(t.prototype,"updateSVGAttributes",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,n=this.props,r=n.baseURL,i=void 0===r?"":r,o=n.uniquifyIDs,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],s=["href","xlink:href"];return o?(Db([],kb(e.children),!1).map((function(e){if(e.attributes&&e.attributes.length){var n=Object.values(e.attributes).map((function(e){var n=e,r=e.value.match(/url\((.*?)\)/);return r&&r[1]&&(n.value=e.value.replace(r[0],"url(".concat(i).concat(r[1],"__").concat(t.hash,")"))),n}));a.forEach((function(e){var r,i,o=n.find((function(t){return t.name===e}));o&&(r=e,i=o.value,!s.includes(r)||!i||i.includes("#"))&&(o.value="".concat(o.value,"__").concat(t.hash))}))}return e.children.length?t.updateSVGAttributes(e):e})),e):e}}),Object.defineProperty(t.prototype,"processSVG",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.state.content,t=this.props.preProcessor;return t?t(e):e}}),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.state,t=e.element,n=e.status,r=this.props,i=r.children,o=void 0===i?null:i,a=r.innerRef,s=r.loader,l=void 0===s?null:s,c=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r={};for(var i in e)({}).hasOwnProperty.call(e,i)&&(t.includes(i)||(r[i]=e[i]));return r}(this.props,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return Rb()?t?ve.cloneElement(t,Lb({ref:a},c)):[Cb.UNSUPPORTED,Cb.FAILED].includes(n)?o:l:l}}),Object.defineProperty(t,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{cacheRequests:!0,uniquifyIDs:!1}}),t}(ve.PureComponent);const jb=be.c.ul((e=>{let{maxHeight:t,hideScroll:n}=e;return Object(be.b)(de||(de=Object(ge.a)(["\n    max-height: ",";\n    margin: 0;\n    padding: 5px 0;\n    list-style: none;\n    overflow-y: ",";\n  "])),"number"===typeof t?Ef(t):t,n?"hidden":"auto")})),Fb=be.c.li(he||(he=Object(ge.a)(["\n  display: flex;\n  align-items: center;\n  min-height: 3.5em;\n  border-bottom: 1px solid #d9dce7;\n  font-weight: bold;\n  cursor: pointer;\n  padding: "," ",";\n\n  &:last-child {\n    border: none;\n  }\n\n  :hover {\n    color: #1415fa;\n    background-color: #f7f7fb;\n  }\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    font-size: ",";\n  }\n"])),Ef(10),Ef(16),Ef(15)),Bb=be.c.div(pe||(pe=Object(ge.a)(["\n  position: relative;\n  flex-shrink: 0;\n  width: ",";\n  height: ",";\n  margin-right: ",";\n\n  &:before {\n    content: '';\n    position: absolute;\n    top: 0px;\n    left: 0px;\n    width: 100%;\n    height: 100%;\n    border-radius: 100%;\n    background-color: ",";\n    filter: blur(5px);\n    opacity: 0.5;\n    z-index: 1;\n  }\n\n  svg {\n    position: absolute;\n    top: 0;\n    left: 0;\n    flex-shrink: 0;\n    height: 100%;\n    color: ",";\n    z-index: 2;\n  }\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    width: ",";\n    height: ",";\n  }\n"])),Ef(25),Ef(25),Ef(16),(e=>{let{color:t}=e;return t}),(e=>{let{color:t}=e;return t}),Ef(32),Ef(32)),zb=be.c.div(fe||(fe=Object(ge.a)(["\n  margin-top: 0.3em;\n  font-size: 0.83333em;\n  font-weight: normal;\n  color: #636f99;\n"]))),Hb=ve.forwardRef(((e,t)=>{let{occupant:n,onClick:r}=e;var i,o,a,s,l,c;const u=null===(i=n.display)||void 0===i?void 0:i.name,d=null===(o=n.level.display)||void 0===o?void 0:o.name,h=null===(s=null===(a=n.level.building)||void 0===a?void 0:a.display)||void 0===s?void 0:s.name,p=null===(l=n.display)||void 0===l?void 0:l.zone,f=null===(c=n.display)||void 0===c?void 0:c.area,m=n.category.icon,g=n.category.color;let v=[];return h&&v.push(h),d&&v.push(d),(p||f)&&(v=[],p&&v.push(p),f&&v.push(f),d&&v.push(d)),ve.createElement(Fb,{ref:t,key:n.id,onClick:r},ve.createElement(Bb,{color:g},ve.createElement(Ub,{src:m})),ve.createElement("div",null,u,ve.createElement(zb,null,v.join(" - "))))}));function Vb(){var e,t;const[n,r]=ve.useState(null),[i,o]=ve.useState(null),{selectedCluster:a,selectOccupant:s,unselectCluster:l}=Qf();return ve.useEffect((()=>{a&&n&&(n.scrollTop=0)}),[a]),ve.createElement(qy,{key:"cluster-popup",className:"pcmap-popup pcmap-popup--cluster",selectedEntity:a,bottomElement:i,scrollableElement:n,allowDragging:(null!==(t=null===(e=null===a||void 0===a?void 0:a.occupants)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>3,onClose:l,render:e=>{let{entity:t,isExpanded:n,dragAreaHeight:i,headerHeight:a,contentHeight:l}=e;const{occupants:c}
2=t,u=!window.matchMedia("(orientation: landscape) and (min-width: 600px)").matches,d=c.length<=3?c.length-1:2;return ve.createElement(jb,{ref:e=>r(e),maxHeight:u?a+l-i:"unset",hideScroll:u&&!n},c.map(((e,t)=>ve.createElement(Hb,{ref:e=>t===d&&o(e),key:e.id,occupant:e,onClick:()=>s(e)}))),c.length<3&&ve.createElement(Fb,{key:"placeholder"}))}})}Object(be.c)(ey)(me||(me=Object(ge.a)(["\n  position: absolute;\n  top: ",";\n  right: ",";\n  z-index: 998;\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    top: auto;\n    bottom: ",";\n  }\n"])),Ef(130),Ef(24),Ef(176));var Wb,Gb,qb,Xb,Yb,Zb;const Kb=Math.PI/180,$b=1/Kb,Jb=window.hasOwnProperty("ondeviceorientationabsolute")?"deviceorientationabsolute":"deviceorientation";class Qb{constructor(e){Wb.add(this),Gb.set(this,null),qb.set(this,null),Xb.set(this,Se(this,Wb,"m",Yb).bind(this)),Me(this,Gb,e,"f"),window.addEventListener(Jb,Se(this,Xb,"f"),!0)}dispose(){window.removeEventListener(Jb,Se(this,Xb,"f"),!0)}}var ex;Gb=new WeakMap,qb=new WeakMap,Xb=new WeakMap,Wb=new WeakSet,Yb=function(e){const{absolute:t,alpha:n,beta:r,gamma:i,webkitCompassHeading:o}=e,a=e=>{Me(this,qb,e,"f"),Se(this,Wb,"m",Zb).call(this)};if(zu(o))if(!t||zu(n)||zu(r)||zu(i));else{const e=vf(function(e,t,n){const r=e*Kb,i=t*Kb,o=n*Kb,a=Math.cos(r),s=Math.sin(r),l=Math.sin(i),c=Math.cos(o),u=Math.sin(o),d=-a*u-s*l*c,h=-s*u+a*l*c;let p=Math.atan(d/h);return h<0?p+=Math.PI:d<0&&(p+=2*Math.PI),p*$b}(n,r,i),2);a(e)}else a(o)},Zb=function(){var e,t;const n=Se(this,qb,"f");(null===(e=Se(this,Gb,"f"))||void 0===e?void 0:e.onHeadingChange)&&!zu(n)&&(null===(t=Se(this,Gb,"f"))||void 0===t||t.onHeadingChange(n))};const tx=()=>new Promise((e=>{navigator.geolocation.getCurrentPosition((()=>e("granted")),(()=>e("denied")),{enableHighAccuracy:!1,maximumAge:1/0,timeout:1/0})})),nx=Boolean(null===(ex=window.DeviceOrientationEvent)||void 0===ex?void 0:ex.hasOwnProperty("requestPermission")),rx=()=>{const e=DeviceOrientationEvent,t=null===e||void 0===e?void 0:e.requestPermission;return t?t():Promise.resolve("denied")};function ix(e){const{mapLoaded:t,theme:n}=Qf(),{getText:r}=xm(),{Modal:i,ModalHeader:o,ModalFooter:a,ModalContent:s,ModalCloseIcon:l,ModalButton:c}=n.components;if(!localStorage)throw new Error('The "localStorage" must be available if you want to use the Geolocation.\nFor Android please check https://developer.android.com/reference/android/webkit/WebSettings#setDomStorageEnabled(boolean)');const u=localStorage.getItem("pcm_geolocation_permissions"),[d,h]=Object(ve.useState)(u),[p,f]=Object(ve.useState)("denied"===u),m=async()=>{const t=await tx();localStorage.setItem("pcm_geolocation_permissions",t),h(t),e.onPermissionsChange(t)};if(Object(ve.useEffect)((()=>{null!==d&&m()}),[d]),Object(ve.useEffect)((()=>{if(!t||"granted"===d)return;const e=document.querySelector(".pcmap-followme-button");if(!e)return;const n=()=>{f(!1)};return e.addEventListener("click",n),()=>{e.removeEventListener("click",n)}}),[t,d]),!t||p||"granted"===d)return null;return ye.a.createElement(i,null,ye.a.createElement(l,{onClick:()=>{f(!0)}}),ye.a.createElement(o,null,r("Geolocation_permissions_header")),ye.a.createElement(s,null,r("denied"===d?"Geolocation_permissions_denied":"Geolocation_permissions_request")),ye.a.createElement(a,null,ye.a.createElement(c,{onClick:async()=>{f(!0),await m()}},"Ok")))}function ox(){const{mapLoaded:e,map:t,theme:n}=Qf(),{getText:r}=xm(),{Modal:i,ModalHeader:o,ModalFooter:a,ModalContent:s,ModalCloseIcon:l,ModalButton:c}=n.components,[u,d]=Object(ve.useState)(!1),[h,p]=Object(ve.useState)(!1);if(!nx)return null;if(Object(ve.useEffect)((()=>{if(!t||u)return;const e=e=>{let{followMe:t}=e;!0===t&&p(!0)};return t.on("Map#ModeChange",e),()=>{t.off("Map#ModeChange",e)}}),[t,u]),!e||!h||u)return null;return ye.a.createElement(i,null,ye.a.createElement(l,{onClick:()=>{p(!1)}}),ye.a.createElement(o,null,r("Heading_permissions_header")),ye.a.createElement(s,null,r("Heading_permissions_request")),ye.a.createElement(a,null,ye.a.createElement(c,{onClick:async()=>{p(!1),d(!0),await rx()}},"Ok")))}function ax(){const{map:e,options:t}=Qf(),n=function(){const[e,t]=Object(ve.useState)(!0);return Object(ve.useEffect)((()=>{const e=()=>{t("visible"===document.visibilityState)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}),[]),e}(),[r,i]=Object(ve.useState)(null);return Object(ve.useEffect)((()=>
2{if(!e||"granted"!==r||!n)return;let i;const o=navigator.geolocation.watchPosition((n=>{var r;const{latitude:o,longitude:a,accuracy:s,floorLevel:l}=n.coords;if((null===t||void 0===t?void 0:t.geolocationMinAccuracy)&&t.geolocationMinAccuracy<s)return;const c=Number.isFinite(l)?l:null!==(r=t.geolocationFallbackOrdinal)&&void 0!==r?r:null;i=Object.assign(Object.assign({},i),{latitude:o,longitude:a,ordinal:c,accuracy:s}),e.setUserLocation(i)}),(e=>{console.error(e)}),{enableHighAccuracy:!0,maximumAge:1e4,timeout:1/0}),a=new Qb({onHeadingChange:t=>{i&&(i=Object.assign(Object.assign({},i),{heading:t}),e.setUserLocation(i))}});return()=>{navigator.geolocation.clearWatch(o),a.dispose()}}),[e,t,r,n]),ye.a.createElement(ye.a.Fragment,null,ye.a.createElement(ix,{onPermissionsChange:e=>i(e)}),ye.a.createElement(ox,null))}function sx(e){let{pcmap:t,mapId:n,releaseUrl:r,options:i,children:o}=e;return ve.createElement(Pe,null,ve.createElement(gm,{mapId:n,releaseUrl:r,options:i},ve.createElement(Jf,{pcmap:t,options:i},ve.createElement(bm,null,ve.createElement(gg,null,ve.createElement(ve.Fragment,null,(null===i||void 0===i?void 0:i.enableGeolocation)&&ve.createElement(ax,null),o))))))}}).call(this,n(28),n(122)(e))},function(e,t,n){"use strict";e.exports=n(235)},function(e,t,n){"use strict";(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)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n(28))},function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){"use strict";var r=n(48),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},function(e,t,n){"use strict";var r="object"==typeof document&&document.all;e.exports="undefined"==typeof r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},function(e,t,n){"use strict";var r=n(5),i=n(60),o=n(12),a=n(63),s=n(84),l=n(86),c=r.Symbol,u=i("wks"),d=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(u[e]=s&&o(c,e)?c[e]:d("Symbol."+e)),u[e]}},function(e,t,n){"use strict";var r=n(6);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";var r=n(48),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(e,t,n){"use strict";var r=n(7),i=n(17),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){"use strict";var r=n(13),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},function(e,t,n){"use strict";var r=n(10),i=n(87),o=n(88),a=n(14),s=n(64),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=u(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},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(t){console.error(t)}}(),e.exports=n(228)},function(e,t,n){"use strict";var r=n(40),i=Object;e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict";var r,i,o,a=n(142),s=n(5),l=n(13),c=n(22),u=n(12),d=n(61),h=n(70),p=n(68),f="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new m
vendor: 4,525 bytes, line 2
2(f);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var y=h("state");p[y]=!0,r=function(e,t){if(u(e,y))throw new m(f);return t.facade=e,c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},o=function(e){return u(e,y)}}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(!l(t)||(n=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var r=n(5),i=n(53).f,o=n(22),a=n(20),s=n(62),l=n(100),c=n(144);e.exports=function(e,t){var n,u,d,h,p,f=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[f]||s(f,{}):r[f]&&r[f].prototype)for(u in t){if(h=t[u],d=e.dontCallGetSet?(p=i(n,u))&&p.value:n[u],!c(m?u:f+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),a(n,u,h,e)}}},function(e,t,n){"use strict";var r=n(8),i=n(15),o=n(98),a=n(62);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&o(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},function(e,t,n){"use strict";var r=n(19),i=n(5),o=n(11),a=n(10),s=n(77),l=n(24),c=n(174),u=n(56),d=n(33),h=n(22),p=n(179),f=n(43),m=n(110),g=n(113),v=n(181),y=n(64),b=n(12),x=n(23),w=n(13),_=n(65),E=n(35),S=n(50),M=n(45),T=n(101).f,A=n(114),O=n(183).forEach,C=n(187),R=n(27),P=n(15),I=n(53),L=n(188),k=n(18),D=n(112),N=k.get,U=k.set,j=k.enforce,F=P.f,B=I.f,z=i.RangeError,H=c.ArrayBuffer,V=H.prototype,W=c.DataView,G=l.NATIVE_ARRAY_BUFFER_VIEWS,q=l.TYPED_ARRAY_TAG,X=l.TypedArray,Y=l.TypedArrayPrototype,Z=l.isTypedArray,K="BYTES_PER_ELEMENT",$="Wrong length",J=function(e,t){R(e,t,{configurable:!0,get:function(){return N(this)[t]}})},Q=function(e){var t;return S(V,e)||"ArrayBuffer"===(t=x(e))||"SharedArrayBuffer"===t},ee=function(e,t){return Z(e)&&!_(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=y(t),ee(e,t)?d(2,e[t]):B(e,t)},ne=function(e,t,n){return t=y(t),!(ee(e,t)&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?F(e,t,n):(e[t]=n.value,e)};a?(G||(I.f=te,P.f=ne,J(Y,"buffer"),J(Y,"byteOffset"),J(Y,"byteLength"),J(Y,"length")),r({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+/)[0]/8,l=e+(n?"Clamped":"")+"Array",c="get"+e,d="set"+e,p=i[l],y=p,b=y&&y.prototype,x={},_=function(e,t){F(e,t,{get:function(){return function(e,t){var n=N(e);return n.view[c](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=N(e);i.view[d](t*a+i.byteOffset,n?v(r):r,!0)}(this,t,e)},enumerable:!0})};G?s&&(y=t((function(e,t,n,r){return u(e,b),D(w(t)?Q(t)?void 0!==r?new p(t,g(n,a),r):void 0!==n?new p(t,g(n,a)):new p(t):Z(t)?L(y,t):o(A,y,t):new p(m(t)),e,y)})),M&&M(y,X),O(T(p),(function(e){e in y||h(y,e,p[e])})),y.prototype=b):(y=t((function(e,t,n,r){u(e,b);var i,s,l,c=0,d=0;if(w(t)){if(!Q(t))return Z(t)?L(y,t):o(A,y,t);i=t,d=g(n,a);var h=t.byteLength;if(void 0===r){if(h%a)throw new z($);if((s=h-d)<0)throw new z($)}else if((s=f(r)*a)+d>h)throw new z($);l=s/a}else l=m(t),i=new H(s=l*a);for(U(e,{buffer:i,byteOffset:d,byteLength:s,length:l,view:new W(i)});c<l;)_(e,c++)})),M&&M(y,X),b=y.prototype=E(Y)),b.constructor!==y&&h(b,"constructor",y),j(b).TypedArrayConstructor=y,q&&h(b,q,l);var S=y!==p;x[l]=y,r({global:!0,constructor:!0,forced:S,sham:!G},x),K in y||h(y,K,a),K in b||h(b,K,a),C(l)}):e.exports=function(){}},function(e,t,n){"use strict";var r=n(10),i=n(15),o=n(33);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){"use strict";var r=n(159),i=n(8),o=n(34),a=n(9)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}());e.exports=r?o: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(n){}}(t=s(e),a))?n:l?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},function(e,t,n){"use strict";var r,i,o,a=n(108),s=n(10),l=n(5),c=n(8),u=n(13),d=n(12),h=n(23),p=n(52),f=n(22),m=n(20),g=n(27),v=n(50),y=n(54),b=n(45),x=n(9),w=n(63),_=n(18),E=_.enforce,S=_.get,M=l.Int8Array,T=M&&M.prototype,A=l.Uint8ClampedArray,O=A&&A.prototype,C=M&&y(M),R=T&&y(T),P=Object.prototype,I=l.TypeError,L=x("toStringTag"),k=w("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",N=a&&
2!!b&&"Opera"!==h(l.opera),U=!1,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},B=function(e){var t=y(e);if(u(t)){var n=S(t);return n&&d(n,D)?n[D]:B(t)}},z=function(e){if(!u(e))return!1;var t=h(e);return d(j,t)||d(F,t)};for(r in j)(o=(i=l[r])&&i.prototype)?E(o)[D]=i:N=!1;for(r in F)(o=(i=l[r])&&i.prototype)&&(E(o)[D]=i);if((!N||!c(C)||C===Function.prototype)&&(C=function(){throw new I("Incorrect invocation")},N))for(r in j)l[r]&&b(l[r],C);if((!N||!R||R===P)&&(R=C.prototype,N))for(r in j)l[r]&&b(l[r].prototype,R);if(N&&y(O)!==R&&b(O,R),s&&!d(R,L))for(r in U=!0,g(R,L,{configurable:!0,get:function(){return u(this)?this[k]:void 0}}),j)l[r]&&f(l[r],k,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:U&&k,aTypedArray:function(e){if(z(e))return e;throw new I("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||v(C,e)))return e;throw new I(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(s){if(n)for(var i in j){var o=l[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(a){try{o.prototype[e]=t}catch(c){}}}R[e]&&!n||m(R,e,n?t:N&&T[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(s){if(b){if(n)for(r in j)if((i=l[r])&&d(i,e))try{delete i[e]}catch(o){}if(C[e]&&!n)return;try{return m(C,e,n?t:N&&C[e]||t)}catch(o){}}for(r in j)!(i=l[r])||i[e]&&!n||m(i,e,t)}},getTypedArrayConstructor:B,isView:function(e){if(!u(e))return!1;var t=h(e);return"DataView"===t||d(j,t)||d(F,t)},isTypedArray:z,TypedArray:C,TypedArrayPrototype:R}},function(e,t,n){"use strict";var r=n(141);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},function(e,t,n){"use strict";var r=n(43);e.exports=function(e){return r(e.length)}},function(e,t,n){"use strict";var r=n(98),i=n(15);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(e,t,n){"use strict";var r=n(5),i=n(8);e.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},function(e,t,n){"use strict";var r=n(8),i=n(52),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(7),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},function(e,t,n){"use strict";var r,i=n(14),o=n(139),a=n(69),s=n(68),l=n(96),c=n(49),u=n(70),d="prototype",h="script",p=u("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}v="undefined"!=typeof document?document.domain&&r?g(r):function(){var e,t=c("iframe"),n="java"+h+":";return t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F}():g(r);for(var e=a.length;e--;)delete v[d][a[e]];return v()};s[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[d]=i(e),n=new f,f[d]=null,n[p]=e):n=v(),void 0===t?n:o.f(n,t)}},function(e,t,n){"use strict";var r=n(15).f,i=n(12),o=n(9)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(23),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},function(e,t,n){"use strict";var r=n(115),i=n(32),o=n(48),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(233),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 l(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,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(f){var i=p(n);i&&i!==f&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!o[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=h(n,v);try{c(t,v,y)}catch(b){}}}}return t}},function(e,t,n){"use strict";var r=n(41),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e}},function(e,t,n){"use strict";var r=n(66),i=n(40);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";var r=n(25),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r=n(146),i=n(13),o=n(40),a=n(147);
2e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(s){}return function(n,r){return o(n),a(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},function(e,t,n){"use strict";var r=n(7);e.exports=r([].slice)},function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(6);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t,n){"use strict";var r=n(5),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){"use strict";var r=n(7);e.exports=r({}.isPrototypeOf)},function(e,t,n){"use strict";var r=n(32),i=n(41);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},function(e,t,n){"use strict";var r=n(10),i=n(11),o=n(90),a=n(33),s=n(42),l=n(64),c=n(12),u=n(87),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(n){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},function(e,t,n){"use strict";var r=n(12),i=n(8),o=n(17),a=n(70),s=n(145),l=a("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},function(e,t,n){"use strict";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(i){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in n=Object(arguments[l]))i.call(n,c)&&(s[c]=n[c]);if(r){a=r(n);for(var u=0;u<a.length;u++)o.call(n,a[u])&&(s[a[u]]=n[a[u]])}}return s}},function(e,t,n){"use strict";var r=n(50),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},function(e,t,n){"use strict";var r=n(23),i=n(51),o=n(41),a=n(44),s=n(9)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[r(e)]}},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},function(e,t,n){"use strict";var r=n(132),i=n(12),o=n(133),a=n(15).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){"use strict";var r=n(61);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},function(e,t,n){"use strict";var r=n(29),i=n(5),o=n(62),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.37.0",mode:r?"pure":"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){"use strict";var r=n(5),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},function(e,t,n){"use strict";var r=n(7),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},function(e,t,n){"use strict";var r=n(89),i=n(65);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},function(e,t,n){"use strict";var r=n(31),i=n(8),o=n(50),a=n(86),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},function(e,t,n){"use strict";var r=n(7),i=n(6),o=n(34),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},function(e,t,n){"use strict";var r=n(9),i=n(35),o=n(15).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
2ing","toString","valueOf"]},function(e,t,n){"use strict";var r=n(60),i=n(63),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){"use strict";var r=n(10),i=n(12),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},function(e,t,n){"use strict";var r=n(7),i=n(6),o=n(8),a=n(23),s=n(31),l=n(99),c=function(){},u=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=r(d.exec),p=!d.test(c),f=function(e){if(!o(e))return!1;try{return u(c,[],e),!0}catch(t){return!1}},m=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(d,l(e))}catch(t){return!0}};m.sham=!0,e.exports=!u||i((function(){var e;return f(f.call)||!f(Object)||!f((function(){e=!0}))||e}))?m:f},function(e,t,n){"use strict";var r=n(48),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},function(e,t,n){"use strict";var r=n(11),i=n(7),o=n(37),a=n(107),s=n(166),l=n(60),c=n(35),u=n(18).get,d=n(167),h=n(168),p=l("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,m=f,g=i("".charAt),v=i("".indexOf),y=i("".replace),b=i("".slice),x=function(){var e=/a/,t=/b*/g;return r(f,e,"a"),r(f,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),w=s.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(x||_||w||d||h)&&(m=function(e){var t,n,i,s,l,d,h,E=this,S=u(E),M=o(e),T=S.raw;if(T)return T.lastIndex=E.lastIndex,t=r(m,T,M),E.lastIndex=T.lastIndex,t;var A=S.groups,O=w&&E.sticky,C=r(a,E),R=E.source,P=0,I=M;if(O&&(C=y(C,"y",""),-1===v(C,"g")&&(C+="g"),I=b(M,E.lastIndex),E.lastIndex>0&&(!E.multiline||E.multiline&&"\n"!==g(M,E.lastIndex-1))&&(R="(?: "+R+")",I=" "+I,P++),n=new RegExp("^(?:"+R+")",C)),_&&(n=new RegExp("^"+R+"$(?!\\s)",C)),x&&(i=E.lastIndex),s=r(f,O?n:E,I),O?s?(s.input=b(s.input,P),s[0]=b(s[0],P),s.index=E.lastIndex,E.lastIndex+=s[0].length):E.lastIndex=0:x&&s&&(E.lastIndex=E.global?s.index+s[0].length:i),_&&s&&s.length>1&&r(p,s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&A)for(s.groups=d=c(null),l=0;l<A.length;l++)d[(h=A[l])[0]]=s[h[1]];return s}),e.exports=m},function(e,t,n){"use strict";var r=n(7),i=n(25),o=n(37),a=n(40),s=r("".charAt),l=r("".charCodeAt),c=r("".slice),u=function(e){return function(t,n){var r,u,d=o(a(t)),h=i(n),p=d.length;return h<0||h>=p?e?"":void 0:(r=l(d,h))<55296||r>56319||h+1===p||(u=l(d,h+1))<56320||u>57343?e?s(d,h):r:e?c(d,h,h+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},function(e,t,n){"use strict";var r=n(5),i=n(6),o=n(173),a=n(24).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,l=r.Int8Array;e.exports=!a||!i((function(){l(1)}))||!i((function(){new l(-1)}))||!o((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||i((function(){return 1!==new l(new s(2),1,void 0).length}))},function(e,t,n){"use strict";var r=n(11),i=n(32),o=n(14),a=n(52),s=n(57),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw new l(a(e)+" is not iterable")}},function(e,t){function n(t){return e.exports=n="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.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=n(232)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(47),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
2ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=Object(r.a)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},function(e,t,n){(function(t){var r;e.exports=(r=n(0),(()=>{var e={703:(e,t,n)=>{"use strict";var r=n(414);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}
2;return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(!o(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],a[c[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},37:function(e,t,n){!function(e,t){function n(){return(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}).apply(this,arguments)}var r="Left",i="Right",o="Down",a={delta:10,preventDefaultTouchmoveEvent:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0},s={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},l="mousemove",c="mouseup";function u(e,t){if(0===t)return e;var n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function d(e,t){var a=function(t){t&&"touches"in t&&t.touches.length>1||e((function(e,r){r.trackMouse&&(document.addEventListener(l,d),document.addEventListener(c,p));var i="touches"in t?t.touches[0]:t,o=u([i.clientX,i.clientY],r.rotationAngle);return n({},e,s,{initial:[].concat(o),xy:o,start:t.timeStamp||0})}))},d=function(t){e((function(e,a){if("touches"in t&&t.touches.length>1)return e;var s="touches"in t?t.touches[0]:t,l=u([s.clientX,s.clientY],a.rotationAngle),c=l[0],d=l[1],h=c-e.xy[0],p=d-e.xy[1],f=Math.abs(h),m=Math.abs(p),g=(t.timeStamp||0)-e.start,v=Math.sqrt(f*f+m*m)/(g||1),y=[h/(g||1),p/(g||1)];if(f<a.delta&&m<a.delta&&!e.swiping)return e;var b=function(e,t,n,a){return e>t?n>0?i:r:a>0?o:"Up"}(f,m,h,p),x={absX:f,absY:m,deltaX:h,deltaY:p,dir:b,event:t,first:e.first,initial:e.initial,velocity:v,vxvy:y};a.onSwiping&&a.onSwiping(x);var w=!1;return(a.onSwiping||a.onSwiped||"onSwiped"+b in a)&&(w=!0),w&&a.preventDefaultTouchmoveEvent&&a.trackTouch&&t.cancelable&&t.preventDefault(),n({},e,{first:!1,eventData:x,swiping:!0})}))},h=function(t){e((function(e,r){var i;if(e.swiping&&e.eventData){i=n({},e.eventData,{event:t}),r.onSwiped&&r.onSwiped(i);var o="onSwiped"+i.dir;o in r&&r[o](i)}else r.onTap&&r.onTap({event:t});return n({},e,s,{eventData:i})}))},p=function(e){document.removeEventListener(l,d),document.removeEventListener(c,p),h(e)},f=function(e,t){var n=function(){};if(e&&e.addEventListener){var r=[["touchstart",a],["touchmove",d],["touchend",h]];r.forEach((function(n){var r=n[0],i=n[1];return e.addEventListener(r,i,{passive:t})})),n=function(){return r.forEach((function(t){var n=t[0],r=t[1];return e.removeEventListener(n,r)}))}}return n},m={ref:function(t){null!==t&&e((function(e,r){if(e.el===t)return e;var i={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),i.cleanUpTouch=void 0),r.trackTouch&&t&&(i.cleanUpTouch=f(t,!r.preventDefaultTouchmoveEvent)),n({},e,{el:t},i)}))}};return t.trackMouse&&(m.onMouseDown=a),[m,f]}e.DOWN=o,e.LEFT=r,e.RIGHT=i,e.UP="Up",e.useSwipeable=function(e){var r=e.trackMouse,i=t.useRef(n({},s)),o=t.useRef(n({},a));o.current=n({},a,e);var l=t.useMemo((function(){return d((function(e){return i.current=e(i.current,o.current)}),{trackMouse:r})}),[r]),c=l[0],u=l[1];return i.current=function(e,t,r){var i={};return!t.trackTouch&&e.cleanUpTouch?(e.cleanUpTouch(),i.cleanUpTouch=void 0):t.trackTouch&&!e.cleanUpTouch&&e.el&&(i.cleanUpTouch=r(e.el,!t.preventDefaultTouchmoveEvent)),n({},e,i)}(i.current,o.current,u),c}}(t,n(888))},888:e=>{"use strict";e.exports=r}},n={};function i(t){var r=n[t];
vendor: 5,745 bytes, line 2
2if(void 0!==r)return r.exports;var o=n[t]={exports:{}};return e[t].call(o.exports,o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(r){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function n(){for(var t,n,r=0,i="";r<arguments.length;)(t=arguments[r++])&&(n=e(t))&&(i&&(i+=" "),i+=n);return i}i.r(o),i.d(o,{default:()=>Ie});var r=i(888),a=i.n(r);const s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},l="object"==typeof t&&t&&t.Object===Object&&t;var c="object"==typeof self&&self&&self.Object===Object&&self;const u=l||c||Function("return this")(),d=function(){return u.Date.now()};var h=/\s/,p=/^\s+/;const f=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&h.test(e.charAt(t)););return t}(e)+1).replace(p,""):e},m=u.Symbol;var g=Object.prototype,v=g.hasOwnProperty,y=g.toString,b=m?m.toStringTag:void 0,x=Object.prototype.toString,w=m?m.toStringTag:void 0;const _=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":w&&w in Object(e)?function(e){var t=v.call(e,b),n=e[b];try{e[b]=void 0;var r=!0}catch(e){}var i=y.call(e);return r&&(t?e[b]=n:delete e[b]),i}(e):function(e){return x.call(e)}(e)};var E=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,M=/^0o[0-7]+$/i,T=parseInt;const A=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==_(e)}(e))return NaN;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=f(e);var n=S.test(e);return n||M.test(e)?T(e.slice(2),n?2:8):E.test(e)?NaN:+e};var O=Math.max,C=Math.min;const R=function(e,t,n){var r,i,o,a,l,c,u=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function g(e){return u=e,l=setTimeout(y,t),h?m(e):a}function v(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-u>=o}function y(){var e=d();if(v(e))return b(e);l=setTimeout(y,function(e){var n=t-(e-c);return p?C(n,o-(e-u)):n}(e))}function b(e){return l=void 0,f&&r?m(e):(r=i=void 0,a)}function x(){var e=d(),n=v(e);if(r=arguments,i=this,c=e,n){if(void 0===l)return g(c);if(p)return clearTimeout(l),l=setTimeout(y,t),m(c)}return void 0===l&&(l=setTimeout(y,t)),a}return t=A(t)||0,s(n)&&(h=!!n.leading,o=(p="maxWait"in n)?O(A(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),x.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=c=i=l=void 0},x.flush=function(){return void 0===l?a:b(d())},x},P=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return s(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),R(e,t,{leading:r,maxWait:t,trailing:i})};var I=i(590),L=i.n(I),k=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),D="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,N=void 0!==i.g&&i.g.Math===Math?i.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),U="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(N):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},j=["top","right","bottom","left","width","height","size","weight"],F="undefined"!=typeof MutationObserver,B=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){U(o)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,20);i=e}return s}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}
vendor: 4,659 bytes, line 2
2));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){D&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),F?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){D&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;j.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),z=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},H=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||N},V=Y(0,0,0,0);function W(e){return parseFloat(e)||0}function G(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+W(e["border-"+n+"-width"])}),0)}var q="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof H(e).SVGGraphicsElement}:function(e){return e instanceof H(e).SVGElement&&"function"==typeof e.getBBox};function X(e){return D?q(e)?function(e){var t=e.getBBox();return Y(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return V;var r=H(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=W(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=W(r.width),l=W(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=G(r,"left","right")+o),Math.round(l+a)!==n&&(l-=G(r,"top","bottom")+a)),!function(e){return e===H(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return Y(i.left,i.top,s,l)}(e):V}function Y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Z=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=X(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),K=function(e,t){var n,r,i,o,a,s,l,c=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),z(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);z(this,{target:e,contentRect:c})},$=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new k,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof H(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Z(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof H(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new K(e.target,e.broadcastRect())}
2));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),J="undefined"!=typeof WeakMap?new WeakMap:new k,Q=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=B.getInstance(),r=new $(t,n,this);J.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Q.prototype[e]=function(){var t;return(t=J.get(this))[e].apply(t,arguments)}}));const ee=void 0!==N.ResizeObserver?N.ResizeObserver:Q;var te=i(37),ne=i(697),re=a().memo((function(e){var t=e.description,n=e.fullscreen,r=e.handleImageLoaded,i=e.isFullscreen,o=e.onImageError,s=e.original,l=e.originalAlt,c=e.originalHeight,u=e.originalWidth,d=e.originalTitle,h=e.sizes,p=e.srcSet,f=e.loading,m=i&&n||s;return a().createElement(a().Fragment,null,a().createElement("img",{className:"image-gallery-image",src:m,alt:l,srcSet:p,height:c,width:u,sizes:h,title:d,onLoad:function(e){return r(e,s)},onError:o,loading:f}),t&&a().createElement("span",{className:"image-gallery-description"},t))}));re.displayName="Item",re.propTypes={description:ne.string,fullscreen:ne.string,handleImageLoaded:ne.func.isRequired,isFullscreen:ne.bool,onImageError:ne.func.isRequired,original:ne.string.isRequired,originalAlt:ne.string,originalHeight:ne.string,originalWidth:ne.string,originalTitle:ne.string,sizes:ne.string,srcSet:ne.string,loading:ne.string},re.defaultProps={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"};const ie=re;var oe={left:a().createElement("polyline",{points:"15 18 9 12 15 6"}),right:a().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:a().createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}),minimize:a().createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"}),play:a().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:a().createElement(a().Fragment,null,a().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),a().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},ae=function(e){var t=e.strokeWidth,n=e.viewBox,r=e.icon;return a().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:n,fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"},oe[r])};ae.propTypes={strokeWidth:ne.number,viewBox:ne.string,icon:(0,ne.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired},ae.defaultProps={strokeWidth:1,viewBox:"0 0 24 24"};const se=ae;var le=a().memo((function(e){var t=e.isFullscreen,n=e.onClick;return a().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:n,"aria-label":"Open Fullscreen"},a().createElement(se,{strokeWidth:2,icon:t?"minimize":"maximize"}))}));le.displayName="Fullscreen",le.propTypes={isFullscreen:ne.bool.isRequired,onClick:ne.func.isRequired};const ce=le;var ue=a().memo((function(e){var t=e.disabled,n=e.onClick;return a().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:t,onClick:n,"aria-label":"Previous Slide"},a().createElement(se,{icon:"left",viewBox:"6 0 12 24"}))}));ue.displayName="LeftNav",ue.propTypes={disabled:ne.bool.isRequired,onClick:ne.func.isRequired};const de=ue;var he=a().memo((function(e){var t=e.disabled,n=e.onClick;return a().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:t,onClick:n,"aria-label":"Next Slide"},a().createElement(se,{icon:"right",viewBox:"6 0 12 24"}))}));he.displayName="RightNav",he.propTypes={disabled:ne.bool.isRequired,onClick:ne.func.isRequired};const pe=he;var fe=a().memo((function(e){var t=e.isPlaying,n=e.onClick;return a().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:n,"aria-label":"Play or Pause Slideshow"},a().createElement(se,{strokeWidth:2,icon:t?"pause":"play"}))}));fe.displayName="PlayPause",fe.propTypes={isPlaying:ne.bool.isRequired,onClick:ne.func.isRequired};const me=fe;function ge(){return(ge=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)}var ve=function(e){var t=e.children,n=e.className,r=e.delta,i=e.onSwiping,o=e.onSwiped,s=(0,te.useSwipeable)({delta:r,onSwiping:i,onSwiped:o});return a().createElement("div",ge({},s,{className:n}),t)};
2ve.propTypes={children:ne.node.isRequired,className:ne.string,delta:ne.number,onSwiped:ne.func,onSwiping:ne.func},ve.defaultProps={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}};const ye=ve;function be(e){return(be="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)}function xe(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 we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){_e(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(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 Se(e,t){return(Se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Me(e,t){return!t||"object"!==be(t)&&"function"!=typeof t?Te(e):t}function Te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Oe=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],Ce=(0,ne.arrayOf)((0,ne.shape)({srcSet:ne.string,media:ne.string}));function Re(e){var t=parseInt(e.keyCode||e.which||0,10);return 66===t||62===t}var Pe=function(e){!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&&Se(e,t)}(s,e);var t,r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ae(r);if(i){var n=Ae(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Me(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.call(this,e)).state={currentIndex:e.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(e.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},t.loadedImages={},t.imageGallery=a().createRef(),t.thumbnailsWrapper=a().createRef(),t.thumbnails=a().createRef(),t.imageGallerySlideWrapper=a().createRef(),t.handleImageLoaded=t.handleImageLoaded.bind(Te(t)),t.handleKeyDown=t.handleKeyDown.bind(Te(t)),t.handleMouseDown=t.handleMouseDown.bind(Te(t)),t.handleTouchMove=t.handleTouchMove.bind(Te(t)),t.handleOnSwiped=t.handleOnSwiped.bind(Te(t)),t.handleScreenChange=t.handleScreenChange.bind(Te(t)),t.handleSwiping=t.handleSwiping.bind(Te(t)),t.handleThumbnailSwiping=t.handleThumbnailSwiping.bind(Te(t)),t.handleOnThumbnailSwiped=t.handleOnThumbnailSwiped.bind(Te(t)),t.onThumbnailMouseLeave=t.onThumbnailMouseLeave.bind(Te(t)),t.handleImageError=t.handleImageError.bind(Te(t)),t.pauseOrPlay=t.pauseOrPlay.bind(Te(t)),t.renderThumbInner=t.renderThumbInner.bind(Te(t)),t.renderItem=t.renderItem.bind(Te(t)),t.slideLeft=t.slideLeft.bind(Te(t)),t.slideRight=t.slideRight.bind(Te(t)),t.toggleFullScreen=t.toggleFullScreen.bind(Te(t)),t.togglePlay=t.togglePlay.bind(Te(t)),t.unthrottledSlideToIndex=t.slideToIndex,t.slideToIndex=P(t.unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(t.lazyLoaded=[]),t}return(t=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoPlay,n=e.useWindowKeyDown;t&&this.play(),n?window.addEventListener("keydown",this.handleKeyDown):this.imageGallery.current.addEventListener("keydown",this.handleKeyDown),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.initResizeObserver(this.imageGallerySlideWrapper),this.addScreenChangeEvent()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.items,i=n.lazyLoad,o=n.slideDuration,a=n.slideInterval,s=n.startIndex,l=n.thumbnailPosition,c=n.showThumbnails,u=n.useWindowKeyDown,d=this.state,h=d.currentIndex,p=d.isPlaying,f=e.items.length!==r.length,m=!L()(e.items,r),g=e.startIndex!==s,v=e.thumbnailPosition!==l,y=e.showThumbnails!==c;a===e.slideInterval&&o===e.slideDuration||p&&(this.pause(),this.play()),v&&(this.removeResizeObserver(),this.initResizeObserver(this.imageGallerySlideWrapper)),(f||y)&&this.handleResize(),t.currentIndex!==h&&this.slideThumbnailBar(),e.slideDuration!==o&&(this.slideToIndex=P(this.unthrottledSlideToIndex,o,{trailing:!1}
vendor: 4,796 bytes, line 2
2)),!i||e.lazyLoad&&!m||(this.lazyLoaded=[]),u!==e.useWindowKeyDown&&(u?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(g||m)&&this.setState({currentIndex:s})}},{key:"componentWillUnmount",value:function(){var e=this.props.useWindowKeyDown;window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("touchmove",this.handleTouchMove),this.removeScreenChangeEvent(),this.removeResizeObserver(),this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null),this.transitionTimer&&window.clearTimeout(this.transitionTimer),e?window.removeEventListener("keydown",this.handleKeyDown):this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown)}},{key:"onSliding",value:function(){var e=this,t=this.state,n=t.currentIndex,r=t.isTransitioning,i=this.props,o=i.onSlide,a=i.slideDuration;this.transitionTimer=window.setTimeout((function(){r&&(e.setState({isTransitioning:!r,isSwipingThumbnail:!1}),o&&o(n))}),a+50)}},{key:"onThumbnailClick",value:function(e,t){var n=this.props.onThumbnailClick;e.target.parentNode.parentNode.blur(),this.slideToIndex(t,e),n&&n(e,t)}},{key:"onThumbnailMouseOver",value:function(e,t){var n=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout((function(){n.slideToIndex(t),n.pause()}),300)}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var e=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,e&&this.play()}}},{key:"setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"setModalFullscreen",value:function(e){var t=this.props.onScreenChange;this.setState({modalFullscreen:e}),t&&t(e)}},{key:"getThumbsTranslate",value:function(e){var t,n=this.props,r=n.disableThumbnailScroll,i=n.items,o=this.state,a=o.thumbnailsWrapperWidth,s=o.thumbnailsWrapperHeight,l=this.thumbnails&&this.thumbnails.current;if(r)return 0;if(l){if(this.isThumbnailVertical()){if(l.scrollHeight<=s)return 0;t=l.scrollHeight-s}else{if(l.scrollWidth<=a||a<=0)return 0;t=l.scrollWidth-a}return e*(t/(i.length-1))}return 0}},{key:"getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n=this.props,r=n.infinite,i=n.items,o="",a="left",s="right";switch(e){case t-1:o=" ".concat(a);break;case t:o=" ".concat("center");break;case t+1:o=" ".concat(s)}return i.length>=3&&r&&(0===e&&t===i.length-1?o=" ".concat(s):e===i.length-1&&0===t&&(o=" ".concat(a))),o}},{key:"getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.currentSlideOffset,i=t.previousIndex,o=n!==i,a=0===e&&0===i,s=1===e&&1===i,l=0===e&&1===n,c=1===e&&0===n,u=0===r,d=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),c&&r>0&&(d=-100+r),l&&r<0&&(d=100+r),o?a&&u&&"left"===this.direction?d=100:s&&u&&"right"===this.direction&&(d=-100):(c&&u&&"left"===this.direction&&(d=-100),l&&u&&"right"===this.direction&&(d=100)),d}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.currentSlideOffset,i=t.slideStyle,o=this.props,a=o.infinite,s=o.items,l=o.useTranslate3D,c=o.isRTL,u=-100*n,d=s.length-1,h=(u+100*e)*(c?-1:1)+r;a&&s.length>2&&(0===n&&e===d?h=-100*(c?-1:1)+r:n===d&&0===e&&(h=100*(c?-1:1)+r)),a&&2===s.length&&(h=this.getTranslateXForTwoSlide(e));var p="translate(".concat(h,"%, 0)");return l&&(p="translate3d(".concat(h,"%, 0, 0)")),we({display:this.isSlideVisible(e)?"inherit":"none",WebkitTransform:p,MozTransform:p,msTransform:p,OTransform:p,transform:p},i)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var e,t=this.props,n=t.useTranslate3D,r=t.isRTL,i=this.state,o=i.thumbsTranslate,a=i.thumbsStyle,s=r?-1*o:o;return this.isThumbnailVertical()?(e="translate(0, ".concat(o,"px)"),n&&(e="translate3d(0, ".concat(o,"px, 0)"))):(e="translate(".concat(s,"px, 0)"),n&&(e="translate3d(".concat(s,"px, 0, 0)"))),we({WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e},a)}},{key:"getSlideItems",value:function(){var e=this,t=this.state.currentIndex,r=this.props,i=r.items,o=r.slideOnThumbnailOver,s=r.onClick,l=r.lazyLoad,c=r.onTouchMove,u=r.onTouchEnd,d=r.onTouchStart,h=r.onMouseOver,p=r.onMouseLeave,f=r.renderItem,m=r.renderThumbInner,g=r.showThumbnails,v=r.showBullets,y=[],b=[],x=[];
2return i.forEach((function(r,i){var w=e.getAlignmentClassName(i),_=r.originalClass?" ".concat(r.originalClass):"",E=r.thumbnailClass?" ".concat(r.thumbnailClass):"",S=r.renderItem||f||e.renderItem,M=r.renderThumbInner||m||e.renderThumbInner,T=!l||w||e.lazyLoaded[i];T&&l&&!e.lazyLoaded[i]&&(e.lazyLoaded[i]=!0);var A=e.getSlideStyle(i),O=a().createElement("div",{"aria-label":"Go to Slide ".concat(i+1),key:"slide-".concat(i),tabIndex:"-1",className:"image-gallery-slide ".concat(w," ").concat(_),style:A,onClick:s,onKeyUp:e.handleSlideKeyUp,onTouchMove:c,onTouchEnd:u,onTouchStart:d,onMouseOver:h,onFocus:h,onMouseLeave:p,role:"button"},T?S(r):a().createElement("div",{style:{height:"100%"}}));if(y.push(O),g&&r.thumbnail){var C=n("image-gallery-thumbnail",E,{active:t===i});b.push(a().createElement("button",{key:"thumbnail-".concat(i),type:"button",tabIndex:"0","aria-pressed":t===i?"true":"false","aria-label":"Go to Slide ".concat(i+1),className:C,onMouseLeave:o?e.onThumbnailMouseLeave:null,onMouseOver:function(t){return e.handleThumbnailMouseOver(t,i)},onFocus:function(t){return e.handleThumbnailMouseOver(t,i)},onKeyUp:function(t){return e.handleThumbnailKeyUp(t,i)},onClick:function(t){return e.onThumbnailClick(t,i)}},M(r)))}if(v){var R=n("image-gallery-bullet",r.bulletClass,{active:t===i});x.push(a().createElement("button",{type:"button",key:"bullet-".concat(i),className:R,onClick:function(n){return r.bulletOnClick&&r.bulletOnClick({item:r,itemIndex:i,currentIndex:t}),n.target.blur(),e.slideToIndex.call(e,i,n)},"aria-pressed":t===i?"true":"false","aria-label":"Go to Slide ".concat(i+1)}))}})),{slides:y,thumbnails:b,bullets:x}}},{key:"ignoreIsTransitioning",value:function(){var e=this.props.items,t=this.state,n=t.previousIndex,r=t.currentIndex,i=e.length-1;return Math.abs(n-r)>1&&!(0===n&&r===i)&&!(n===i&&0===r)}},{key:"isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,i=t.currentIndex;return n&&!(e===r||e===i)}},{key:"isSlideVisible",value:function(e){return!this.slideIsTransitioning(e)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(e)}},{key:"slideThumbnailBar",value:function(){var e=this.state,t=e.currentIndex,n=e.isSwipingThumbnail,r=-this.getThumbsTranslate(t);n||(0===t?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:r,thumbsSwipedTranslate:r}))}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){var e=this.props,t=e.infinite,n=e.isRTL;return t||(n?this.canSlideNext():this.canSlidePrevious())}},{key:"canSlideRight",value:function(){var e=this.props,t=e.infinite,n=e.isRTL;return t||(n?this.canSlidePrevious():this.canSlideNext())}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex<this.props.items.length-1}},{key:"handleSwiping",value:function(e){var t=e.event,n=e.absX,r=e.dir,i=this.props,o=i.disableSwipe,a=i.stopPropagation,s=this.state,l=s.galleryWidth,c=s.isTransitioning,u=s.swipingUpDown,d=s.swipingLeftRight;if(r!==te.UP&&r!==te.DOWN&&!u||d){if(r!==te.LEFT&&r!==te.RIGHT||d||this.setState({swipingLeftRight:!0}),!o){var h=this.props.swipingTransitionDuration;if(a&&t.preventDefault(),c)this.setState({currentSlideOffset:0});else{var p=r===te.RIGHT?1:-1,f=n/l*100;Math.abs(f)>=100&&(f=100);var m={transition:"transform ".concat(h,"ms ease-out")};this.setState({currentSlideOffset:p*f,slideStyle:m})}}}else u||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(e){var t=e.event,n=e.absX,r=e.absY,i=e.dir,o=this.props,a=o.stopPropagation,s=o.swipingThumbnailTransitionDuration,l=this.state,c=l.thumbsSwipedTranslate,u=l.thumbnailsWrapperHeight,d=l.thumbnailsWrapperWidth,h=l.swipingUpDown,p=l.swipingLeftRight;if(this.isThumbnailVertical()){if((i===te.LEFT||i===te.RIGHT||p)&&!h)return void(p||this.setState({swipingLeftRight:!0}));i!==te.UP&&i!==te.DOWN||h||this.setState({swipingUpDown:!0})}else{if((i===te.UP||i===te.DOWN||h)&&!p)return void(h||this.setState({swipingUpDown:!0}));i!==te.LEFT&&i!==te.RIGHT||p||this.setState({swipingLeftRight:!0})}var f,m,g,v,y,b=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(f=c+(i===te.DOWN?r:-r),m=b.scrollHeight-u+20,g=Math.abs(f)>m,v=f>20,y=b.scrollHeight<=u):(f=c+(i===te.RIGHT?n:-n),m=b.scrollWidth-d+20,g=Math.abs(f)>m,v=f>20,y=b.scrollWidth<=d),!y&&(i!==te.LEFT&&i!==te.UP||!g)&&(i!==te.RIGHT&&i!==te.DOWN||!v)){a&&t.stopPropagation();var x={transition:"transform ".concat(s,"ms ease-out")};this.setState({thumbsTranslate:f,thumbsStyle:x})}}},{key:"handleOnThumbnailSwiped",value:function(){var e=this.state.thumbsTranslate,t=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:e,thumbsStyle:{transition:"all ".concat(t,"ms ease-out")}})}},{key:"sufficientSwipe",value:function(){var e=this.state.currentSlideOffset,t=this.props.swipeThreshold;return Math.abs(e)>t}},{key:"resetSwipingDirection",value:function(){var e=this.state,t=e.swipingUpDown,n=e.swipingLeftRight;t&&this.setState({swipingUpDown:!1}),n&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(e){var t=e.event,n=e.dir,r=e.velocity,i=this.props,o=i.disableSwipe,a=i.stopPropagation,s=i.flickThreshold;if(!o){var l=this.props.isRTL;a&&t.stopPropagation(),this.resetSwipingDirection();var c=(n===te.LEFT?1:-1)*(l?-1:1),u=n===te.UP||n===te.DOWN,d=r>s&&!u;this.handleOnSwipedTo(c,d)}}},{key:"handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,i=n.isTransitioning,o=r;!this.sufficientSwipe()&&!t||i||(o+=e),(-1===e&&!this.canSlideLeft()||1===e&&!this.canSlideRight())&&
2(o=r),this.unthrottledSlideToIndex(o)}},{key:"handleTouchMove",value:function(e){this.state.swipingLeftRight&&e.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(e){var t=this.props,n=t.disableKeyDown,r=t.useBrowserFullscreen,i=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!n)switch(parseInt(e.keyCode||e.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(e);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(e);break;case 27:i&&!r&&this.exitFullScreen()}}},{key:"handleImageError",value:function(e){var t=this.props.onErrorImageURL;t&&-1===e.target.src.indexOf(t)&&(e.target.src=t)}},{key:"removeResizeObserver",value:function(){this.resizeObserver&&this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&(this.resizeObserver.unobserve(this.imageGallerySlideWrapper.current),this.resizeObserver=null)}},{key:"handleResize",value:function(){var e=this.state.currentIndex;this.resizeObserver&&(this.imageGallery&&this.imageGallery.current&&this.setState({galleryWidth:this.imageGallery.current.offsetWidth}),this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.setState({gallerySlideWrapperHeight:this.imageGallerySlideWrapper.current.offsetHeight}),this.thumbnailsWrapper&&this.thumbnailsWrapper.current&&(this.isThumbnailVertical()?this.setState({thumbnailsWrapperHeight:this.thumbnailsWrapper.current.offsetHeight}):this.setState({thumbnailsWrapperWidth:this.thumbnailsWrapper.current.offsetWidth})),this.setThumbsTranslate(-this.getThumbsTranslate(e)))}},{key:"initResizeObserver",value:function(e){var t=this;this.resizeObserver=new ee(R((function(e){e&&e.forEach((function(){t.handleResize()}))}),300)),this.resizeObserver.observe(e.current)}},{key:"toggleFullScreen",value:function(){this.state.isFullscreen?this.exitFullScreen():this.fullScreen()}},{key:"togglePlay",value:function(){this.playPauseIntervalId?this.pause():this.play()}},{key:"handleScreenChange",value:function(){var e=this.props,t=e.onScreenChange,n=e.useBrowserFullscreen,r=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,i=this.imageGallery.current===r;t&&t(i),n&&this.setState({isFullscreen:i})}},{key:"slideToIndex",value:function(e,t){var n=this.state,r=n.currentIndex,i=n.isTransitioning,o=this.props,a=o.items,s=o.slideDuration,l=o.onBeforeSlide;if(!i){t&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var c=a.length-1,u=e;e<0?u=c:e>c&&(u=0),l&&u!==r&&l(u),this.setState({previousIndex:r,currentIndex:u,isTransitioning:u!==r,currentSlideOffset:0,slideStyle:{transition:"all ".concat(s,"ms ease-out")}},this.onSliding)}}},{key:"slideLeft",value:function(e){var t=this.props.isRTL;this.slideTo(e,t?"right":"left")}},{key:"slideRight",value:function(e){var t=this.props.isRTL;this.slideTo(e,t?"left":"right")}},{key:"slideTo",value:function(e,t){var n=this,r=this.state,i=r.currentIndex,o=r.currentSlideOffset,a=r.isTransitioning,s=this.props.items,l=i+("left"===t?-1:1);a||(2===s.length?this.setState({currentSlideOffset:o+("left"===t?.001:-.001),slideStyle:{transition:"none"}},(function(){window.setTimeout((function(){return n.slideToIndex(l,e)}),25)})):this.slideToIndex(l,e))}},{key:"handleThumbnailMouseOver",value:function(e,t){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(e,t)}},{key:"handleThumbnailKeyUp",value:function(e,t){Re(e)&&this.onThumbnailClick(e,t)}},{key:"handleSlideKeyUp",value:function(e){Re(e)&&(0,this.props.onClick)(e)}},{key:"isThumbnailVertical",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"addScreenChangeEvent",value:function(){var e=this;Oe.forEach((function(t){document.addEventListener(t,e.handleScreenChange)}))}},{key:"removeScreenChangeEvent",value:function(){var e=this;Oe.forEach((function(t){document.removeEventListener(t,e.handleScreenChange)}))}},{key:"fullScreen",value:function(){var e=this.props.useBrowserFullscreen,t=this.imageGallery.current;e?t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var e=this.state.isFullscreen,t=this.props.useBrowserFullscreen;e&&(t?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}))}},{key:"pauseOrPlay",value:function(){var e=this.props.infinite,t=this.state.currentIndex;e||this.canSlideRight()?this.slideToIndex(t+1):this.pause()}},{key:"play",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props,n=t.onPlay,r=t.slideInterval,i=t.slideDuration,o=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(r,
vendor: 6,105 bytes, line 2
2i)),n&&e&&n(o))}},{key:"pause",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props.onPause,n=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),t&&e&&t(n))}},{key:"isImageLoaded",value:function(e){return!!this.loadedImages[e.original]||(this.loadedImages[e.original]=!0,!1)}},{key:"handleImageLoaded",value:function(e,t){var n=this.props.onImageLoad;!this.loadedImages[t]&&n&&(this.loadedImages[t]=!0,n(e))}},{key:"renderItem",value:function(e){var t=this.state.isFullscreen,n=this.props.onImageError||this.handleImageError;return a().createElement(ie,{description:e.description,fullscreen:e.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:t,onImageError:n,original:e.original,originalAlt:e.originalAlt,originalHeight:e.originalHeight,originalWidth:e.originalWidth,originalTitle:e.originalTitle,sizes:e.sizes,loading:e.loading,srcSet:e.srcSet})}},{key:"renderThumbInner",value:function(e){var t=this.props.onThumbnailError||this.handleImageError;return a().createElement("span",{className:"image-gallery-thumbnail-inner"},a().createElement("img",{className:"image-gallery-thumbnail-image",src:e.thumbnail,height:e.thumbnailHeight,width:e.thumbnailWidth,alt:e.thumbnailAlt,title:e.thumbnailTitle,loading:e.thumbnailLoading,onError:t}),e.thumbnailLabel&&a().createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))}},{key:"render",value:function(){var e=this.state,t=e.currentIndex,r=e.isFullscreen,i=e.modalFullscreen,o=e.isPlaying,s=this.props,l=s.additionalClass,c=s.disableThumbnailSwipe,u=s.indexSeparator,d=s.isRTL,h=s.items,p=s.thumbnailPosition,f=s.renderFullscreenButton,m=s.renderCustomControls,g=s.renderLeftNav,v=s.renderRightNav,y=s.showBullets,b=s.showFullscreenButton,x=s.showIndex,w=s.showThumbnails,_=s.showNav,E=s.showPlayButton,S=s.renderPlayPauseButton,M=this.getThumbnailStyle(),T=this.getSlideItems(),A=T.slides,O=T.thumbnails,C=T.bullets,R=n("image-gallery-slide-wrapper",p,{"image-gallery-rtl":d}),P=a().createElement("div",{ref:this.imageGallerySlideWrapper,className:R},m&&m(),this.canSlide()?a().createElement(a().Fragment,null,_&&a().createElement(a().Fragment,null,g(this.slideLeft,!this.canSlideLeft()),v(this.slideRight,!this.canSlideRight())),a().createElement(ye,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},a().createElement("div",{className:"image-gallery-slides"},A))):a().createElement("div",{className:"image-gallery-slides"},A),E&&S(this.togglePlay,o),y&&a().createElement("div",{className:"image-gallery-bullets"},a().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},C)),b&&f(this.toggleFullScreen,r),x&&a().createElement("div",{className:"image-gallery-index"},a().createElement("span",{className:"image-gallery-index-current"},t+1),a().createElement("span",{className:"image-gallery-index-separator"},u),a().createElement("span",{className:"image-gallery-index-total"},h.length))),I=n("image-gallery",l,{"fullscreen-modal":i}),L=n("image-gallery-content",p,{fullscreen:r}),k=n("image-gallery-thumbnails-wrapper",p,{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&d},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!c},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!c});return a().createElement("div",{ref:this.imageGallery,className:I,"aria-live":"polite"},a().createElement("div",{className:L},("bottom"===p||"right"===p)&&P,w&&O.length>0?a().createElement(ye,{className:k,delta:0,onSwiping:!c&&this.handleThumbnailSwiping,onSwiped:!c&&this.handleOnThumbnailSwiped},a().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},a().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:M,"aria-label":"Thumbnail Navigation"},O))):null,("top"===p||"left"===p)&&P))}}])&&Ee(s.prototype,t),s}(a().Component);Pe.propTypes={flickThreshold:ne.number,items:(0,ne.arrayOf)((0,ne.shape)({bulletClass:ne.string,bulletOnClick:ne.func,description:ne.string,original:ne.string,originalHeight:ne.number,originalWidth:ne.number,loading:ne.string,thumbnailHeight:ne.number,thumbnailWidth:ne.number,thumbnailLoading:ne.string,fullscreen:ne.string,originalAlt:ne.string,originalTitle:ne.string,thumbnail:ne.string,thumbnailAlt:ne.string,thumbnailLabel:ne.string,thumbnailTitle:ne.string,originalClass:ne.string,thumbnailClass:ne.string,renderItem:ne.func,renderThumbInner:ne.func,imageSet:Ce,srcSet:ne.string,sizes:ne.string})).isRequired,showNav:ne.bool,autoPlay:ne.bool,lazyLoad:ne.bool,infinite:ne.bool,showIndex:ne.bool,showBullets:ne.bool,showThumbnails:ne.bool,showPlayButton:ne.bool,showFullscreenButton:ne.bool,disableThumbnailScroll:ne.bool,disableKeyDown:ne.bool,disableSwipe:ne.bool,disableThumbnailSwipe:ne.bool,useBrowserFullscreen:ne.bool,onErrorImageURL:ne.string,indexSeparator:ne.string,thumbnailPosition:(0,ne.oneOf)(["top","bottom","left","right"]),startIndex:ne.number,slideDuration:ne.number,slideInterval:ne.number,slideOnThumbnailOver:ne.bool,swipeThreshold:ne.number,swipingTransitionDuration:ne.number,swipingThumbnailTransitionDuration:ne.number,onSlide:ne.func,onBeforeSlide:ne.func,onScreenChange:ne.func,onPause:ne.func,onPlay:ne.func,onClick:ne.func,onImageLoad:ne.func,onImageError:ne.func,onTouchMove:ne.func,onTouchEnd:ne.func,onTouchStart:ne.func,onMouseOver:ne.func,onMouseLeave:ne.func,onThumbnailError:ne.func,onThumbnailClick:ne.func,renderCustomControls:ne.func,renderLeftNav:ne.func,renderRightNav:ne.func,renderPlayPauseButton:ne.func,renderFullscreenButton:ne.func,renderItem:ne.func,renderThumbInner:ne.func,stopPropagation:ne.bool,additionalClass:ne.string,useTranslate3D:ne.bool,isRTL:ne.bool,useWindowKeyDown:ne.bool},Pe.defaultProps={onErrorImageURL:"",additionalClass:"",showNav:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showPlayButton:!0,show
vendor: 4,245 bytes, line 2
2FullscreenButton:!0,disableThumbnailScroll:!1,disableKeyDown:!1,disableSwipe:!1,disableThumbnailSwipe:!1,useTranslate3D:!0,isRTL:!1,useBrowserFullscreen:!0,flickThreshold:.4,stopPropagation:!1,indexSeparator:" / ",thumbnailPosition:"bottom",startIndex:0,slideDuration:450,swipingTransitionDuration:0,swipingThumbnailTransitionDuration:0,onSlide:null,onBeforeSlide:null,onScreenChange:null,onPause:null,onPlay:null,onClick:null,onImageLoad:null,onImageError:null,onTouchMove:null,onTouchEnd:null,onTouchStart:null,onMouseOver:null,onMouseLeave:null,onThumbnailError:null,onThumbnailClick:null,renderCustomControls:null,renderThumbInner:null,renderItem:null,slideInterval:3e3,slideOnThumbnailOver:!1,swipeThreshold:30,renderLeftNav:function(e,t){return a().createElement(de,{onClick:e,disabled:t})},renderRightNav:function(e,t){return a().createElement(pe,{onClick:e,disabled:t})},renderPlayPauseButton:function(e,t){return a().createElement(me,{onClick:e,isPlaying:t})},renderFullscreenButton:function(e,t){return a().createElement(ce,{onClick:e,isFullscreen:t})},useWindowKeyDown:!0};const Ie=Pe})(),o})())}).call(this,n(28))},function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function i(e){return!!e&&!!e[G]}function o(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(e)||Array.isArray(e)||!!e[W]||!!e.constructor[W]||h(e)||p(e))}function a(e,t,n){void 0===n&&(n=!1),0===s(e)?(n?Object.keys:q)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function s(e){var t=e[G];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:h(e)?2:p(e)?3:0}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===s(e)?e.get(t):e[t]}function u(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e){return B&&e instanceof Map}function p(e){return z&&e instanceof Set}function f(e){return e.o||e.t}function m(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=X(e);delete t[G];for(var n=q(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function g(e,t){return void 0===t&&(t=!1),y(e)||i(e)||!o(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=v),Object.freeze(e),t&&a(e,(function(e,t){return g(t,!0)}),!0)),e}function v(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=Y[e];return t||r(18,e),t}function x(){return j}function w(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function _(e){E(e),e.p.forEach(M),e.p=null}function E(e){e===j&&(j=e.l)}function S(e){return j={p:[],l:j,h:e,m:!0,_:0}}function M(e){var t=e[G];0===t.i||1===t.i?t.j():t.g=!0}function T(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.O||b("ES5").S(t,e,i),i?(n[G].P&&(_(t),r(4)),o(e)&&(e=A(t,e),t.l||C(t,e)),t.u&&b("Patches").M(n[G],e,t.u,t.s)):e=A(t,n,[]),_(t),t.u&&t.v(t.u,t.s),e!==V?e:void 0}function A(e,t,n){if(y(t))return t;var r=t[G];if(!r)return a(t,(function(i,o){return O(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return C(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=m(r.k):r.o;a(3===r.i?new Set(i):i,(function(t,o){return O(e,r,i,t,o,n)})),C(e,i,!1),n&&e.u&&b("Patches").R(r,n,e.u,e.s)}return r.o}function O(e,t,n,r,a,s){if(i(a)){var c=A(e,a,s&&t&&3!==t.i&&!l(t.D,r)?s.concat(r):void 0);if(u(n,r,c),!i(c))return;e.m=!1}if(o(a)&&!y(a)){if(!e.h.N&&e._<1)return;A(e,a),t&&t.A.l||C(e,a)}}function C(e,t,n){void 0===n&&(n=!1),e.h.N&&e.m&&g(t,n)}function R(e,t){var n=e[G];return(n?f(n):e)[t]}function P(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function I(e){e.P||(e.P=!0,e.l&&I(e.l))}function L(e){e.o||(e.o=m(e.t))}
2function k(e,t,n){var r=h(t)?b("MapSet").T(t,n):p(t)?b("MapSet").F(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:x(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=Z;n&&(i=[r],o=K);var a=Proxy.revocable(i,o),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):b("ES5").J(t,n);return(n?n.A:x()).p.push(r),r}function D(e){return i(e)||r(22,e),function e(t){if(!o(t))return t;var n,r=t[G],i=s(t);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=N(t,i),r.I=!1}else n=N(t,i);return a(n,(function(t,i){r&&c(r.t,t)===i||u(n,t,e(i))})),3===i?new Set(n):n}(e)}function N(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return m(e)}var U,j,F="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),B="undefined"!=typeof Map,z="undefined"!=typeof Set,H="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,V=F?Symbol.for("immer-nothing"):((U={})["immer-nothing"]=!0,U),W=F?Symbol.for("immer-draftable"):"__$immer_draftable",G=F?Symbol.for("immer-state"):"__$immer_state",q=("undefined"!=typeof Symbol&&Symbol.iterator,"undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames),X=Object.getOwnPropertyDescriptors||function(e){var t={};return q(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Y={},Z={get:function(e,t){if(t===G)return e;var n=f(e);if(!l(n,t))return function(e,t,n){var r,i=P(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!o(r)?r:r===R(e.t,t)?(L(e),e.o[t]=k(e.A.h,r,e)):r},has:function(e,t){return t in f(e)},ownKeys:function(e){return Reflect.ownKeys(f(e))},set:function(e,t,n){var r=P(f(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=R(f(e),t),o=null==i?void 0:i[G];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(d(n,i)&&(void 0!==n||l(e.t,t)))return!0;L(e),I(e)}return e.o[t]=n,e.D[t]=!0,!0},deleteProperty:function(e,t){return void 0!==R(e.t,t)||t in e.t?(e.D[t]=!1,L(e),I(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=f(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},K={};a(Z,(function(e,t){K[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),K.deleteProperty=function(e,t){return Z.deleteProperty.call(this,e[0],t)},K.set=function(e,t,n){return Z.set.call(this,e[0],t,n,e[0])};var $=function(){function e(e){this.O=H,this.N=!0,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var t=e.prototype;return t.produce=function(e,t,n){if("function"==typeof e&&"function"!=typeof t){var i=t;t=e;var a=this;return function(e){var n=this;void 0===e&&(e=i);for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return a.produce(e,(function(e){var r;return(r=t).call.apply(r,[n,e].concat(o))}))}}var s;if("function"!=typeof t&&r(6),void 0!==n&&"function"!=typeof n&&r(7),o(e)){var l=S(this),c=k(this,e,void 0),u=!0;try{s=t(c),u=!1}finally{u?_(l):E(l)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(e){return w(l,n),T(e,l)}),(function(e){throw _(l),e})):(w(l,n),T(s,l))}if(!e||"object"!=typeof e){if((s=t(e))===V)return;return void 0===s&&(s=e),this.N&&g(s,!0),s}r(21,e)},t.produceWithPatches=function(e,t){var n,r,i=this;return"function"==typeof e?function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return i.produceWithPatches(t,(function(t){return e.apply(void 0,[t].concat(r))}))}:[this.produce(e,t,(function(e,t){n=e,r=t})),n,r]},t.createDraft=function(e){o(e)||r(8),i(e)&&(e=D(e));var t=S(this),n=k(this,e,void 0);return n[G].C=!0,E(t),n},t.finishDraft=function(e,t){var n=(e&&e[G]).A;return w(n,t),T(void 0,n)},t.setAutoFreeze=function(e){this.N=e},t.setUseProxies=function(e){e&&!H&&r(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=b("Patches").$;return i(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(n+1))}))},e}(),J=new $,Q=J.produce;J.produceWithPatches.bind(J),J.setAutoFreeze.bind(J),J.setUseProxies.bind(J),J.applyPatches.bind(J),J.createDraft.bind(J),J.finishDraft.bind(J);t.a=Q},function(e,t,n){"use strict";var r=n(85),i=n(6),o=n(5).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t,n){"use strict";var r,i,o=n(5),a=n(30),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=(r=u.split("."))[0]>
20&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},function(e,t,n){"use strict";var r=n(84);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var r=n(10),i=n(6),o=n(49);e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(10),i=n(6);e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,n){"use strict";var r=n(11),i=n(13),o=n(65),a=n(51),s=n(134),l=n(9),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,l=a(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},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){"use strict";var r=n(5),i=n(137),o=n(138),a=n(92),s=n(22),l=n(36),c=n(9)("iterator"),u=a.values,d=function(e,t){if(e){if(e[c]!==u)try{s(e,c,u)}catch(r){e[c]=u}if(l(e,t,!0),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(r){e[n]=a[n]}}};for(var h in i)d(r[h]&&r[h].prototype,h);d(o,"DOMTokenList")},function(e,t,n){"use strict";var r=n(42),i=n(67),o=n(44),a=n(18),s=n(15).f,l=n(97),c=n(72),u=n(29),d=n(10),h="Array Iterator",p=a.set,f=a.getterFor(h);e.exports=l(Array,"Array",(function(e,t){p(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var m=o.Arguments=o.Array;
2if(i("keys"),i("values"),i("entries"),!u&&d&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(g){}},function(e,t,n){"use strict";var r=n(94),i=n(69);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(7),i=n(12),o=n(42),a=n(140).indexOf,s=n(68),l=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&l(u,n);for(;t.length>c;)i(r,n=t[c++])&&(~a(u,n)||l(u,n));return u}},function(e,t,n){"use strict";var r=n(25),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){"use strict";var r=n(31);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(19),i=n(11),o=n(29),a=n(71),s=n(8),l=n(103),c=n(54),u=n(45),d=n(36),h=n(22),p=n(20),f=n(9),m=n(44),g=n(104),v=a.PROPER,y=a.CONFIGURABLE,b=g.IteratorPrototype,x=g.BUGGY_SAFARI_ITERATORS,w=f("iterator"),_="keys",E="values",S="entries",M=function(){return this};e.exports=function(e,t,n,a,f,g,T){l(n,t,a);var A,O,C,R=function(e){if(e===f&&D)return D;if(!x&&e&&e in L)return L[e];switch(e){case _:case E:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},P=t+" Iterator",I=!1,L=e.prototype,k=L[w]||L["@@iterator"]||f&&L[f],D=!x&&k||R(f),N="Array"===t&&L.entries||k;if(N&&(A=c(N.call(new e)))!==Object.prototype&&A.next&&(o||c(A)===b||(u?u(A,b):s(A[w])||p(A,w,M)),d(A,P,!0,!0),o&&(m[P]=M)),v&&f===E&&k&&k.name!==E&&(!o&&y?h(L,"name",E):(I=!0,D=function(){return i(k,this)})),f)if(O={values:R(E),keys:g?D:R(_),entries:R(S)},T)for(C in O)(x||I||!(C in L))&&p(L,C,O[C]);else r({target:t,proto:!0,forced:x||I},O);return o&&!T||L[w]===D||p(L,w,D,{name:f}),m[t]=D,O}},function(e,t,n){"use strict";var r=n(7),i=n(6),o=n(8),a=n(12),s=n(10),l=n(71).CONFIGURABLE,c=n(99),u=n(18),d=u.enforce,h=u.get,p=String,f=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),y=s&&!i((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),x=e.exports=function(e,t,n){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=d(e);return a(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return o(this)&&h(this).source||c(this)}),"toString")},function(e,t,n){"use strict";var r=n(7),i=n(8),o=n(61),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},function(e,t,n){"use strict";var r=n(12),i=n(143),o=n(53),a=n(15);e.exports=function(e,t,n){for(var s=i(t),l=a.f,c=o.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||l(e,d,c(t,d))}}},function(e,t,n){"use strict";var r=n(94),i=n(69).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(104).IteratorPrototype,i=n(35),o=n(33),a=n(36),s=n(44),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=i(r,{next:o(+!c,n)}),a(e,u,!1,!0),s[u]=l,e}},function(e,t,n){"use strict";var r,i,o,a=n(6),s=n(8),l=n(13),c=n(35),u=n(54),d=n(20),h=n(9),p=n(29),f=h("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(r=i):m=!0),!l(r)||a((function(){var e={};return r[f].call(e)!==e}))?r={}:p&&(r=c(r)),s(r[f])||d(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},function(e,t,n){"use strict";var r=n(150);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._x=0,this._y=0,this._z=null,this._A=null,e!==i&&p(e,this)}function l(e,t){for(;3===e._y;)e=e._z;if(s._B&&s._B(e),0===e._y)return 0===e._x?(e._x=1,void(e._A=t)):1===e._x?(e._x=2,void(e._A=[e._A,t])):void e._A.push(t);!function(e,t){r((function(){var n=1===e._y?t.onFulfilled:t.onRejected;if(null!==n){var r=function(e,t){try{return e(t)}catch(n){return o=n,a}}(n,e._z);r===a?u(t.promise,o):c(t.promise,r)}else 1===e._y?c(t.promise,e._z):u(t.promise,e._z)}))}(e,t)}function c(e,t){if(t===e)return u(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(t){return o=t,a}}(t);if(n===a)return u(e,o);if(n===e.then&&t instanceof s)return e._y=3,e._z=t,void d(e);if("function"===typeof n)return void p(n.bind(t),e)}e._y=1,e._z=t,d(e)}function u(e,t){e._y=2,e._z=t,s._C&&s._C(e,t),d(e)}function d(e){if(1===e._x&&(l(e,e._A),e._A=null),2===e._x){for(var t=0;t<e._A.length;t++)l(e,e._A[t]);e._A=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(r){return o=r,a}}(e,(function(e){n||(n=!0,c(t,e))}),(function(e){n||(n=!0,u(t,e))}));n||r!==a||(n=!0,u(t,o))}
2e.exports=s,s._B=null,s._C=null,s._D=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),l(e,new h(t,n,a))}))}(this,e,t);var n=new s(i);return l(this,new h(e,t,n)),n}},function(e,t,n){"use strict";var r=n(73),i=n(52),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},function(e,t,n){"use strict";var r=n(14);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var r=n(20);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(25),i=n(43),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw new o("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(17),i=n(95),o=n(26);e.exports=function(e){for(var t=r(this),n=o(t),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);c>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r=n(8),i=n(13),o=n(45);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},function(e,t,n){"use strict";var r=n(180),i=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new i("Wrong offset");return n}},function(e,t,n){"use strict";var r=n(38),i=n(11),o=n(106),a=n(17),s=n(26),l=n(78),c=n(57),u=n(116),d=n(182),h=n(24).aTypedArrayConstructor,p=n(117);e.exports=function(e){var t,n,f,m,g,v,y,b,x=o(this),w=a(e),_=arguments.length,E=_>1?arguments[1]:void 0,S=void 0!==E,M=c(w);if(M&&!u(M))for(b=(y=l(w,M)).next,w=[];!(v=i(b,y)).done;)w.push(v.value);for(S&&_>2&&(E=r(E,arguments[2])),n=s(w),f=new(h(x))(n),m=d(f),t=0;n>t;t++)g=S?E(w[t],t):w[t],f[t]=m?p(g):+g;return f}},function(e,t,n){"use strict";var r=n(34),i=n(7);e.exports=function(e){if("Function"===r(e))return i(e)}},function(e,t,n){"use strict";var r=n(9),i=n(44),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(89),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},function(e,t,n){"use strict";var r=n(46),i=Math.floor,o=function(e,t){var n=e.length;if(n<8)for(var a,s,l=1;l<n;){for(s=l,a=e[l];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==l++&&(e[s]=a)}else for(var c=i(n/2),u=o(r(e,0,c),t),d=o(r(e,c),t),h=u.length,p=d.length,f=0,m=0;f<h||m<p;)e[f+m]=f<h&&m<p?t(u[f],d[m])<=0?u[f++]:d[m++]:f<h?u[f++]:d[m++];return e};e.exports=o},function(e,t,n){"use strict";var r,i,o,a,s=n(5),l=n(74),c=n(38),u=n(8),d=n(12),h=n(6),p=n(96),f=n(46),m=n(49),g=n(58),v=n(207),y=n(208),b=s.setImmediate,x=s.clearImmediate,w=s.process,_=s.Dispatch,E=s.Function,S=s.MessageChannel,M=s.String,T=0,A={},O="onreadystatechange";h((function(){r=s.location}));var C=function(e){if(d(A,e)){var t=A[e];delete A[e],t()}},R=function(e){return function(){C(e)}},P=function(e){C(e.data)},I=function(e){s.postMessage(M(e),r.protocol+"//"+r.host)};b&&x||(b=function(e){g(arguments.length,1);var t=u(e)?e:E(e),n=f(arguments,1);return A[++T]=function(){l(t,void 0,n)},i(T),T},x=function(e){delete A[e]},y?i=function(e){w.nextTick(R(e))}:_&&_.now?i=function(e){_.now(R(e))}:S&&!v?(a=(o=new S).port2,o.port1.onmessage=P,i=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(I)?(i=I,s.addEventListener("message",P,!1)):i=O in m("script")?function(e){p.appendChild(m("script"))[O]=function(){p.removeChild(this),C(e)}}:function(e){setTimeout(R(e),0)}),e.exports={set:b,clear:x}},function(e,t,n){"use strict";var r=n(6),i=n(9),o=n(10),a=n(29),s=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!o)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},function(e,t,n){"use strict";n(92);var r=n(19),i=n(5),o=n(221),a=n(11),s=n(7),l=n(10),c=n(120),u=n(20),d=n(27),h=n(109),p=n(36),f=n(103),m=n(18),g=n(56),v=n(8),y=n(12),b=n(38),x=n(23),w=n(14),_=n(13),E=n(37),S=n(35),M=n(33),T=n(78),A=n(57),O=n(72),C=n(58),R=n(9),P=n(118),I=R("iterator"),L="URLSearchParams",k=L+"Iterator",D=m.set,N=m.getterFor(L),U=m.getterFor(k),j=o("fetch"),F=o("Request"),B=o("Headers"),z=F&&F.prototype,H=B&&B.prototype,V=i.RegExp,W=i.TypeError,G=i.decodeURIComponent,q=i.encodeURIComponent,X=s("".charAt),Y=s([].join),Z=s([].push),K=s("".replace),$=s([].shift),J=s([].splice),Q=s("".split),ee=s("".slice),te=/\+/g,ne=Array(4),re=function(e){return ne[e-1]||(ne[e-1]=V("((?:%[\\da-f]{2}){"+e+"})","gi"))},ie=function(e){try{return G(e)}catch(t){return e}},oe=function(e){var t=K(e,te," "),n=4;try{return G(t)}catch(r){for(;n;)t=K(t,re(n--),ie);return t}}
vendor: 5,251 bytes, line 2
2,ae=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},le=function(e){return se[e]},ce=function(e){return K(q(e),ae,le)},ue=f((function(e,t){D(this,{type:k,target:N(e).entries,index:0,kind:t})}),L,(function(){var e=U(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,O(void 0,!0);var r=t[n];switch(e.kind){case"keys":return O(r.key,!1);case"values":return O(r.value,!1)}return O([r.key,r.value],!1)}),!0),de=function(e){this.entries=[],this.url=null,void 0!==e&&(_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===X(e,0)?ee(e,1):e:E(e)))};de.prototype={type:L,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,s,l,c=this.entries,u=A(e);if(u)for(n=(t=T(e,u)).next;!(r=a(n,t)).done;){if(o=(i=T(w(r.value))).next,(s=a(o,i)).done||(l=a(o,i)).done||!a(o,i).done)throw new W("Expected sequence with length 2");Z(c,{key:E(s.value),value:E(l.value)})}else for(var d in e)y(e,d)&&Z(c,{key:d,value:E(e[d])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=Q(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(n=Q(t,"="),Z(r,{key:oe($(n)),value:oe(Y(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Z(n,ce(e.key)+"="+ce(e.value));return Y(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var he=function(){g(this,pe);var e=D(this,new de(arguments.length>0?arguments[0]:void 0));l||(this.size=e.entries.length)},pe=he.prototype;if(h(pe,{append:function(e,t){var n=N(this);C(arguments.length,2),Z(n.entries,{key:E(e),value:E(t)}),l||this.length++,n.updateURL()},delete:function(e){for(var t=N(this),n=C(arguments.length,1),r=t.entries,i=E(e),o=n<2?void 0:arguments[1],a=void 0===o?o:E(o),s=0;s<r.length;){var c=r[s];if(c.key!==i||void 0!==a&&c.value!==a)s++;else if(J(r,s,1),void 0!==a)break}l||(this.size=r.length),t.updateURL()},get:function(e){var t=N(this).entries;C(arguments.length,1);for(var n=E(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=N(this).entries;C(arguments.length,1);for(var n=E(e),r=[],i=0;i<t.length;i++)t[i].key===n&&Z(r,t[i].value);return r},has:function(e){for(var t=N(this).entries,n=C(arguments.length,1),r=E(e),i=n<2?void 0:arguments[1],o=void 0===i?i:E(i),a=0;a<t.length;){var s=t[a++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var n=N(this);C(arguments.length,1);for(var r,i=n.entries,o=!1,a=E(e),s=E(t),c=0;c<i.length;c++)(r=i[c]).key===a&&(o?J(i,c--,1):(o=!0,r.value=s));o||Z(i,{key:a,value:s}),l||(this.size=i.length),n.updateURL()},sort:function(){var e=N(this);P(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=N(this).entries,r=b(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new ue(this,"keys")},values:function(){return new ue(this,"values")},entries:function(){return new ue(this,"entries")}},{enumerable:!0}),u(pe,I,pe.entries,{name:"entries"}),u(pe,"toString",(function(){return N(this).serialize()}),{enumerable:!0}),l&&d(pe,"size",{get:function(){return N(this).entries.length},configurable:!0,enumerable:!0}),p(he,L),r({global:!0,constructor:!0,forced:!c},{URLSearchParams:he}),!c&&v(B)){var fe=s(H.has),me=s(H.set),ge=function(e){if(_(e)){var t,n=e.body;if(x(n)===L)return t=e.headers?new B(e.headers):new B,fe(t,"content-type")||me(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),S(e,{body:M(0,E(n)),headers:M(0,t)})}return e};if(v(j)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return j(e,arguments.length>1?ge(arguments[1]):{})}}),v(F)){var ve=function(e){return g(this,z),new F(e,arguments.length>1?ge(arguments[1]):{})};z.constructor=ve,ve.prototype=z,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:he,getState:N}},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){var r=n(124);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}},e.exports.__esModule=!0,e.exports.default=e.exports},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},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return X$}));var i,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,x,w,_,E,S,M,T,A,O,C,R,P,I,L,k,D,N,U,j,F,B,z,H,V,W,G,q,X,Y,Z,K,$,J,Q,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,he,pe,fe,me,ge,ve,ye,be,xe,we,_e,Ee,Se,Me,Te,Ae,Oe,Ce,Re,Pe,Ie,Le,ke,De,Ne,Ue,je,Fe,Be,ze,He,Ve=n(2),We=n(0),Ge=n.n(We),qe=n(16),Xe=n.n(qe),Ye=n(1),Ze
2=("undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e||"undefined"!==typeof self&&self,{exports:{}});!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,o),!0;case 6:return u.fn.call(u.context,t,r,i,o,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,i);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(Ze);var Ke=Ze.exports;function $e(e){return Array.isArray(e[0])?e.map($e):[e[1],e[0]]}function Je(e){if(!e||!e.type||!e.coordinates)return null;const{type:t,coordinates:n}=e;return"MultiLineString"===t?{type:t,coordinates:$e(n[0])}:{type:t,coordinates:$e(n)}}var Qe=function(){var e,t=0,n=!1;function r(t,n){return e.list.push({type:t,data:n?JSON.parse(JSON.stringify(n)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(e,t){return r("check",{seg1:e,seg2:t})},segmentChop:function(e,t){return r("div_seg",{seg:e,pt:t}),r("chop",{seg:e,pt:t})},statusRemove:function(e){return r("pop_seg",{seg:e})},segmentUpdate:function(e){return r("seg_update",{seg:e})},segmentNew:function(e,t){return r("new_seg",{seg:e,primary:t})},segmentRemove:function(e){return r("rem_seg",{seg:e})},tempStatus:function(e,t,n){return r("temp_status",{seg:e,above:t,below:n})},rewind:function(e){return r("rewind",{seg:e})},status:function(e,t,n){return r("status",{seg:e,above:t,below:n})},vert:function(t){return t===n?e:(n=t,r("vert",{x:t}))},log:function(e){return"string"!==typeof e&&(e=JSON.stringify(e,!1,"  ")),r("log",{txt:e})},reset:function(){return r("reset")},selected:function(e){return r("selected",{segs:e})},chainStart:function(e){return r("chain_start",{seg:e})},chainRemoveHead:function(e,t){return r("chain_rem_head",{index:e,pt:t})},chainRemoveTail:function(e,t){return r("chain_rem_tail",{index:e,pt:t})},chainNew:function(e,t){return r("chain_new",{pt1:e,pt2:t})},chainMatch:function(e){return r("chain_match",{index:e})},chainClose:function(e){return r("chain_close",{index:e})},chainAddHead:function(e,t){return r("chain_add_head",{index:e,pt:t})},chainAddTail:function(e,t){return r("chain_add_tail",{index:e,pt:t})},chainConnect:function(e,t){return r("chain_con",{index1:e,index2:t})},chainReverse:function(e){return r("chain_rev",{index:e})},chainJoin:function(e,t){return r("chain_join",{index1:e,index2:t})},done:function(){return r("done")}},e};var et=function(e){"number"!==typeof e&&(e=1e-10);var t={epsilon:function(t){return"number"===typeof t&&(e=t),e},pointAboveOrOnLine:function(t,n,r){var i=n[0],o=n[1],a=r[0],s=r[1],l=t[0],c=t[1],u=a-i,d=s-o,h=Math.sqrt(u*u+d*d);return u*(c-o)-d*(l-i)>=-e*h},pointBetween:function(e,n,r){if(t.pointsSame(e,n)||t.pointsSame(e,r))return!1;var i=e[1]-n[1],o=r[0]-n[0],a=e[0]-n[0],s=r[1]-n[1],l=a*o+i*s;return!(l<0)&&l<=o*o+s*s},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])<e},pointsSameY:function(t,n){return Math.abs(t[1]-n[1])<e},pointsSame:function(e,n){return t.pointsSameX(e,n)&&t.pointsSameY(e,n)},pointsCompare:function(e,n){return t.pointsSameX(e,n)?t.pointsSameY(e,n)?0:e[1]<n[1]?-1:1:e[0]<n[0]?-1:1},pointsCollinear:function(t,n,r){var i=t[0]-n[0],o=t[1]-n[1],a=n[0]-r[0],s=n[1]-r[1],l=Math.sqrt(i*i+o*o),c=Math.sqrt(a*a+s*s);return Math.abs(i*s-a*o)<=e*(l+c)},linesIntersect:function(n,r,i,o){var a=r[0]-n[0],s=r[1]-n[1],l=o[0]-i[0],c=o[1]-i[1],u=a*c-s*l,d=Math.sqrt(a*a+s*s),h=Math.sqrt(l*l+c*c);
2if(Math.abs(u)<=e*(d+h))return!1;var p=n[0]-i[0],f=n[1]-i[1],m=(l*f-c*p)/u,g=(a*f-s*p)/u,v=[n[0]+m*a,n[1]+m*s],y={alongA:0,alongB:0,pt:v};return t.pointsSame(v,n)?y.alongA=-1:t.pointsSame(v,r)?y.alongA=1:m<0?y.alongA=-2:m>1&&(y.alongA=2),t.pointsSame(v,i)?y.alongB=-1:t.pointsSame(v,o)?y.alongB=1:g<0?y.alongB=-2:g>1&&(y.alongB=2),y},pointInsideRegion:function(t,n){for(var r=t[0],i=t[1],o=n[n.length-1][0],a=n[n.length-1][1],s=!1,l=0;l<n.length;l++){var c=n[l][0],u=n[l][1];u-i>e!=a-i>e&&(o-c)*(i-u)/(a-u)+c-r>e&&(s=!s),o=c,a=u}return s}};return t},tt={create:function(){var e={root:{root:!0,next:null},exists:function(t){return null!==t&&t!==e.root},isEmpty:function(){return null===e.root.next},getHead:function(){return e.root.next},insertBefore:function(t,n){for(var r=e.root,i=e.root.next;null!==i;){if(n(i))return t.prev=i.prev,t.next=i,i.prev.next=t,void(i.prev=t);r=i,i=i.next}r.next=t,t.prev=r,t.next=null},findTransition:function(t){for(var n=e.root,r=e.root.next;null!==r&&!t(r);)n=r,r=r.next;return{before:n===e.root?null:n,after:r,insert:function(e){return e.prev=n,e.next=r,n.next=e,null!==r&&(r.prev=e),e}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}},nt=tt;var rt=function(e,t,n){function r(e,t){return{id:n?n.segmentId():-1,start:e,end:t,myFill:{above:null,below:null},otherFill:null}}function i(e,t,r){return{id:n?n.segmentId():-1,start:e,end:t,myFill:{above:r.myFill.above,below:r.myFill.below},otherFill:null}}var o=nt.create();function a(e,n){o.insertBefore(e,(function(r){return function(e,n,r,i,o,a){var s=t.pointsCompare(n,o);return 0!==s?s:t.pointsSame(r,a)?0:e!==i?e?1:-1:t.pointAboveOrOnLine(r,i?o:a,i?a:o)?1:-1}(e.isStart,e.pt,n,r.isStart,r.pt,r.other.pt)<0}))}function s(e,t){var n=function(e,t){var n=nt.node({isStart:!0,pt:e.start,seg:e,primary:t,other:null,status:null});return a(n,e.end),n}(e,t);return function(e,t,n){var r=nt.node({isStart:!1,pt:t.end,seg:t,primary:n,other:e,status:null});e.other=r,a(r,e.pt)}(n,e,t),n}function l(e,t){var r=i(t,e.seg.end,e.seg);return function(e,t){n&&n.segmentChop(e.seg,t),e.other.remove(),e.seg.end=t,e.other.pt=t,a(e.other,e.pt)}(e,t),s(r,e.primary)}function c(r,i){var a=nt.create();function s(e){return a.findTransition((function(n){return function(e,n){var r=e.seg.start,i=e.seg.end,o=n.seg.start,a=n.seg.end;return t.pointsCollinear(r,o,a)?t.pointsCollinear(i,o,a)||t.pointAboveOrOnLine(i,o,a)?1:-1:t.pointAboveOrOnLine(r,o,a)?1:-1}(e,n.ev)>0}))}function c(e,r){var i=e.seg,o=r.seg,a=i.start,s=i.end,c=o.start,u=o.end;n&&n.checkIntersection(i,o);var d=t.linesIntersect(a,s,c,u);if(!1===d){if(!t.pointsCollinear(a,s,c))return!1;if(t.pointsSame(a,u)||t.pointsSame(s,c))return!1;var h=t.pointsSame(a,c),p=t.pointsSame(s,u);if(h&&p)return r;var f=!h&&t.pointBetween(a,c,u),m=!p&&t.pointBetween(s,c,u);if(h)return m?l(r,s):l(e,u),r;f&&(p||(m?l(r,s):l(e,u)),l(r,a))}else 0===d.alongA&&(-1===d.alongB?l(e,c):0===d.alongB?l(e,d.pt):1===d.alongB&&l(e,u)),0===d.alongB&&(-1===d.alongA?l(r,a):0===d.alongA?l(r,d.pt):1===d.alongA&&l(r,s));return!1}for(var u=[];!o.isEmpty();){var d=o.getHead();if(n&&n.vert(d.pt[0]),d.isStart){n&&n.segmentNew(d.seg,d.primary);var h=s(d),p=h.before?h.before.ev:null,f=h.after?h.after.ev:null;function x(){if(p){var e=c(d,p);if(e)return e}return!!f&&c(d,f)}n&&n.tempStatus(d.seg,!!p&&p.seg,!!f&&f.seg);var m,g=x();if(g){var v;if(e)(v=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below)&&(g.seg.myFill.above=!g.seg.myFill.above);else g.seg.otherFill=d.seg.myFill;n&&n.segmentUpdate(g.seg),d.other.remove(),d.remove()}if(o.getHead()!==d){n&&n.rewind(d.seg);continue}if(e)v=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below,d.seg.myFill.below=f?f.seg.myFill.above:r,d.seg.myFill.above=v?!d.seg.myFill.below:d.seg.myFill.below;else if(null===d.seg.otherFill)m=f?d.primary===f.primary?f.seg.otherFill.above:f.seg.myFill.above:d.primary?i:r,d.seg.otherFill={above:m,below:m};n&&n.status(d.seg,!!p&&p.seg,!!f&&f.seg),d.other.status=h.insert(nt.node({ev:d}))}else{var y=d.status;if(null===y)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(a.exists(y.prev)&&a.exists(y.next)&&c(y.prev.ev,y.next.ev),n&&n.statusRemove(y.ev.seg),y.remove(),!d.primary){var b=d.seg.myFill;d.seg.myFill=d.seg.otherFill,d.seg.otherFill=b}u.push(d.seg)}o.getHead().remove()}return n&&n.done(),u}return e?{addRegion:function(e){for(var n,i=e[e.length-1],o=0;o<e.length;o++){n=i,i=e[o];var a=t.pointsCompare(n,i);
20!==a&&s(r(a<0?n:i,a<0?i:n),!0)}},calculate:function(e){return c(e,!1)}}:{calculate:function(e,t,n,r){return e.forEach((function(e){s(i(e.start,e.end,e),!0)})),n.forEach((function(e){s(i(e.start,e.end,e),!1)})),c(t,r)}}};var it=function(e,t,n){var r=[],i=[];return e.forEach((function(e){var o=e.start,a=e.end;if(t.pointsSame(o,a))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{n&&n.chainStart(e);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u<r.length;u++){var d=(g=r[u])[0];g[1];var h=g[g.length-1];if(g[g.length-2],t.pointsSame(d,o)){if(S(u,!0,!0))break}else if(t.pointsSame(d,a)){if(S(u,!0,!1))break}else if(t.pointsSame(h,o)){if(S(u,!1,!0))break}else if(t.pointsSame(h,a)&&S(u,!1,!1))break}if(c===s)return r.push([o,a]),void(n&&n.chainNew(o,a));if(c===l){n&&n.chainMatch(s.index);var p=s.index,f=s.matches_pt1?a:o,m=s.matches_head,g=r[p],v=m?g[0]:g[g.length-1],y=m?g[1]:g[g.length-2],b=m?g[g.length-1]:g[0],x=m?g[g.length-2]:g[1];return t.pointsCollinear(y,v,f)&&(m?(n&&n.chainRemoveHead(s.index,f),g.shift()):(n&&n.chainRemoveTail(s.index,f),g.pop()),v=y),t.pointsSame(b,f)?(r.splice(p,1),t.pointsCollinear(x,b,v)&&(m?(n&&n.chainRemoveTail(s.index,v),g.pop()):(n&&n.chainRemoveHead(s.index,v),g.shift())),n&&n.chainClose(s.index),void i.push(g)):void(m?(n&&n.chainAddHead(s.index,f),g.unshift(f)):(n&&n.chainAddTail(s.index,f),g.push(f)))}var w=s.index,_=l.index;n&&n.chainConnect(w,_);var E=r[w].length<r[_].length;s.matches_head?l.matches_head?E?(M(w),T(w,_)):(M(_),T(_,w)):T(_,w):l.matches_head?T(w,_):E?(M(w),T(_,w)):(M(_),T(w,_))}function S(e,t,n){return c.index=e,c.matches_head=t,c.matches_pt1=n,c===s?(c=l,!1):(c=null,!0)}function M(e){n&&n.chainReverse(e),r[e].reverse()}function T(e,i){var o=r[e],a=r[i],s=o[o.length-1],l=o[o.length-2],c=a[0],u=a[1];t.pointsCollinear(l,s,c)&&(n&&n.chainRemoveTail(e,s),o.pop(),s=l),t.pointsCollinear(s,c,u)&&(n&&n.chainRemoveHead(i,c),a.shift()),n&&n.chainJoin(e,i),r[e]=o.concat(a),r.splice(i,1)}})),i};function ot(e,t,n){var r=[];return e.forEach((function(e){var i=(e.myFill.above?8:0)+(e.myFill.below?4:0)+(e.otherFill&&e.otherFill.above?2:0)+(e.otherFill&&e.otherFill.below?1:0);0!==t[i]&&r.push({id:n?n.segmentId():-1,start:e.start,end:e.end,myFill:{above:1===t[i],below:2===t[i]},otherFill:null})})),n&&n.selected(r),r}var at,st={union:function(e,t){return ot(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return ot(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return ot(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return ot(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return ot(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},lt={toPolygon:function(e,t){function n(t){if(t.length<=0)return e.segments({inverted:!1,regions:[]});function n(t){var n=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[n]})}for(var r=n(t[0]),i=1;i<t.length;i++)r=e.selectDifference(e.combine(r,n(t[i])));return r}if("Polygon"===t.type)return e.polygon(n(t.coordinates));if("MultiPolygon"===t.type){for(var r=e.segments({inverted:!1,regions:[]}),i=0;i<t.coordinates.length;i++)r=e.selectUnion(e.combine(r,n(t.coordinates[i])));return e.polygon(r)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,n){function r(e,n){return t.pointInsideRegion([.5*(e[0][0]+e[1][0]),.5*(e[0][1]+e[1][1])],n)}function i(e){return{region:e,children:[]}}n=e.polygon(e.segments(n));var o=i(null);function a(e,t){for(var n=0;n<e.children.length;n++){if(r(t,(s=e.children[n]).region))return void a(s,t)}var o=i(t);for(n=0;n<e.children.length;n++){var s;r((s=e.children[n]).region,t)&&(o.children.push(s),e.children.splice(n,1),n--)}e.children.push(o)}for(var s=0;s<n.regions.length;s++){var l=n.regions[s];l.length<3||a(o,l)}function c(e,t){for(var n=0,r=e[e.length-1][0],i=e[e.length-1][1],o=[],a=0;a<e.length;a++){var s=e[a][0],l=e[a][1];o.push([s,l]),n+=l*r-s*i,r=s,i=l}return n<0!==t&&o.reverse(),o.push([o[0][0],o[0][1]]),o}var u=[];function d(e){var t=[c(e.region,!1)];u.push(t);for(var n=0;n<e.children.length;n++)t.push(h(e.children[n]))}function h(e){for(var t=0;t<e.children.length;t++)d(e.children[t]);return c(e.region,!0)}for(s=0;s<o.children.length;s++)d(o.children[s]);return u.length<=0?{type:"Polygon",coordinates:[]}:1==u.length?{type:"Polygon",coordinates:u[0]}:{type:"MultiPolygon",coordinates:u}}},ct=Qe,ut=rt,dt=it,ht=st,pt=lt,ft=!1,mt=et();function gt(e,t,n){var r=at.segments(e),i=at.segments(t),o=n(at.combine(r,i));return at.polygon(o)}at={buildLog:function(e){return!0===e?ft=ct():!1===e&&(ft=!1),!1!==ft&&ft.list},epsilon:function(e){return mt.epsilon(e)},segments:function(e){var t=ut(!0,mt,ft);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){return{combined:ut(!1,mt,ft).calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}}
2,selectUnion:function(e){return{segments:ht.union(e.combined,ft),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:ht.intersect(e.combined,ft),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:ht.difference(e.combined,ft),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:ht.differenceRev(e.combined,ft),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:ht.xor(e.combined,ft),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:dt(e.segments,mt,ft),inverted:e.inverted}},polygonFromGeoJSON:function(e){return pt.toPolygon(at,e)},polygonToGeoJSON:function(e){return pt.fromPolygon(at,mt,e)},union:function(e,t){return gt(e,t,at.selectUnion)},intersect:function(e,t){return gt(e,t,at.selectIntersect)},difference:function(e,t){return gt(e,t,at.selectDifference)},differenceRev:function(e,t){return gt(e,t,at.selectDifferenceRev)},xor:function(e,t){return gt(e,t,at.selectXor)}},"object"===typeof window&&(window.PolyBool=at);var vt=at;const yt="162",bt=0,xt=1,wt=2,_t=0,Et=1,St=2,Mt=3,Tt=1,At=2,Ot=3,Ct=0,Rt=1,Pt=2,It=100,Lt=101,kt=102,Dt=200,Nt=201,Ut=202,jt=203,Ft=204,Bt=205,zt=206,Ht=207,Vt=208,Wt=209,Gt=210,qt=211,Xt=212,Yt=213,Zt=214,Kt=0,$t=1,Jt=2,Qt=0,en=1,tn=2,nn=3,rn=4,on=5,an=6,sn=7,ln="attached",cn=301,un=302,dn=304,hn=306,pn=1e3,fn=1001,mn=1002,gn=1003,vn=1004,yn=1005,bn=1006,xn=1007,wn=1008,_n=1009,En=1012,Sn=1013,Mn=1014,Tn=1015,An=1016,On=1020,Cn=1023,Rn=1026,Pn=1027,In=1028,Ln=33776,kn=33777,Dn=33778,Nn=33779,Un=36492,jn=2300,Fn=2301,Bn=2302,zn="",Hn="srgb",Vn="srgb-linear",Wn="display-p3",Gn="display-p3-linear",qn="linear",Xn="srgb",Yn="rec709",Zn="p3",Kn=7680,$n=512,Jn=513,Qn=514,er=515,tr=516,nr=517,rr=518,ir=519,or=35044,ar="300 es",sr=1035,lr=2e3,cr=2001;class ur{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners[e];if(void 0!==n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners[e.type];if(void 0!==t){e.target=this;const n=t.slice(0);for(let t=0,r=n.length;t<r;t++)n[t].call(this,e);e.target=null}}}const dr=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let hr=1234567;const pr=Math.PI/180,fr=180/Math.PI;function mr(){const e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(dr[255&e]+dr[e>>8&255]+dr[e>>16&255]+dr[e>>24&255]+"-"+dr[255&t]+dr[t>>8&255]+"-"+dr[t>>16&15|64]+dr[t>>24&255]+"-"+dr[63&n|128]+dr[n>>8&255]+"-"+dr[n>>16&255]+dr[n>>24&255]+dr[255&r]+dr[r>>8&255]+dr[r>>16&255]+dr[r>>24&255]).toLowerCase()}function gr(e,t,n){return Math.max(t,Math.min(n,e))}function vr(e,t){return(e%t+t)%t}function yr(e,t,n){return(1-n)*e+n*t}function br(e){return 0===(e&e-1)&&0!==e}function xr(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}function wr(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function _r(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(4294967295*e);case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int32Array:return Math.round(2147483647*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}const Er={DEG2RAD:pr,RAD2DEG:fr,generateUUID:mr,clamp:gr,euclideanModulo:vr,mapLinear:function(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)},inverseLerp:function(e,t,n){return e!==t?(n-e)/(t-e):0},lerp:yr,damp:function(e,t,n,r){return yr(e,t,1-Math.exp(-n*r))},pingpong:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t-Math.abs(vr(e,2*t)-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){void 0!==e&&(hr=e);let t=hr+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296},degToRad:function(e){return e*pr},radToDeg:function(e){return e*fr},isPowerOfTwo:br,ceilPowerOfTwo:function(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},floorPowerOfTwo:xr,setQuaternionFromProperEuler:function(e,t,n,r,i){const o=Math.cos,a=Math.sin,s=o(n/2),l=a(n/2),c=o((t+r)/2),u=a((t+r)/2),d=o((t-r)/2),h=a((t-r)/2),p=o((r-t)/2),f=a((r-t)/2);switch(i){case"XYX":e.set(s*u,l*d,l*h,s*c);break;case"YZY":e.set(l*h,s*u,l*d,s*c);break;case"ZXZ":e.set(l*d,l*h,s*u,s*c);break;case"XZX":e.set(s*u,l*f,l*p,s*c);break;case"YXY":e.set(l*p,s*u,l*f,s*c);break;case"ZYZ":e.set(l*f,l*p,s*u,s*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}},normalize:_r,denormalize:wr};class Sr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Sr.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(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}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}
vendor: 6,732 bytes, line 2
2sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const 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}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(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}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(gr(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this}toArray(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const 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}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Mr{constructor(e,t,n,r,i,o,a,s,l){Mr.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==e&&this.set(e,t,n,r,i,o,a,s,l)}set(e,t,n,r,i,o,a,s,l){const 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]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const 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}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const 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}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,o=n[0],a=n[3],s=n[6],l=n[1],c=n[4],u=n[7],d=n[2],h=n[5],p=n[8],f=r[0],m=r[3],g=r[6],v=r[1],y=r[4],b=r[7],x=r[2],w=r[5],_=r[8];return i[0]=o*f+a*v+s*x,i[3]=o*m+a*y+s*w,i[6]=o*g+a*b+s*_,i[1]=l*f+c*v+u*x,i[4]=l*m+c*y+u*w,i[7]=l*g+c*b+u*_,i[2]=d*f+h*v+p*x,i[5]=d*m+h*y+p*w,i[8]=d*g+h*b+p*_,this}multiplyScalar(e){const 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}determinant(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8];return t*o*c-t*a*l-n*i*c+n*a*s+r*i*l-r*o*s}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=c*o-a*l,d=a*s-c*i,h=l*i-o*s,p=t*u+n*d+r*h;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const f=1/p;return e[0]=u*f,e[1]=(r*l-c*n)*f,e[2]=(a*n-r*o)*f,e[3]=d*f,e[4]=(c*t-r*s)*f,e[5]=(r*i-a*t)*f,e[6]=h*f,e[7]=(n*s-l*t)*f,e[8]=(o*t-n*i)*f,this}transpose(){let e;const 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}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const 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}setUvTransform(e,t,n,r,i,o,a){const s=Math.cos(i),l=Math.sin(i);return this.set(n*s,n*l,-n*(s*o+l*a)+o+e,-r*l,r*s,-r*(-l*o+s*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(Tr.makeScale(e,t)),this}rotate(e){return this.premultiply(Tr.makeRotation(-e)),this}translate(e,t){return this.premultiply(Tr.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let r=0;r<9;r++)if(t[r]!==n[r])return!1;return!0}fromArray(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const 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}clone(){return(new this.constructor).fromArray(this.elements)}}const Tr=new Mr;function Ar(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function Or(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function Cr(){const e=Or("canvas");return e.style.display="block",e}const Rr={};function Pr(e){e in Rr||(Rr[e]=!0,console.warn(e))}const Ir=(new Mr).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Lr=(new Mr).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),kr={[Vn]:{transfer:qn,primaries:Yn,toReference:e=>e,fromReference:e=>e},[Hn]:{transfer:Xn,primaries:Yn,toReference:e=>e.convertSRGBToLinear(),fromReference:e=>e.convertLinearToSRGB()},[Gn]:{transfer:qn,primaries:Zn,toReference:e=>
2e.applyMatrix3(Lr),fromReference:e=>e.applyMatrix3(Ir)},[Wn]:{transfer:Xn,primaries:Zn,toReference:e=>e.convertSRGBToLinear().applyMatrix3(Lr),fromReference:e=>e.applyMatrix3(Ir).convertLinearToSRGB()}},Dr=new Set([Vn,Gn]),Nr={enabled:!0,_workingColorSpace:Vn,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(e){if(!Dr.has(e))throw new Error('Unsupported working color space, "'.concat(e,'".'));this._workingColorSpace=e},convert:function(e,t,n){if(!1===this.enabled||t===n||!t||!n)return e;const r=kr[t].toReference;return(0,kr[n].fromReference)(r(e))},fromWorkingColorSpace:function(e,t){return this.convert(e,this._workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this._workingColorSpace)},getPrimaries:function(e){return kr[e].primaries},getTransfer:function(e){return e===zn?qn:kr[e].transfer}};function Ur(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function jr(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}let Fr;class Br{static getDataURL(e){if(/^data:/i.test(e.src))return e.src;if("undefined"===typeof HTMLCanvasElement)return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===Fr&&(Fr=Or("canvas")),Fr.width=e.width,Fr.height=e.height;const n=Fr.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=Fr}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if("undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap){const t=Or("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e<i.length;e++)i[e]=255*Ur(i[e]/255);return n.putImageData(r,0,0),t}if(e.data){const t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor(255*Ur(t[e]/255)):t[e]=Ur(t[e]);return{data:t,width:e.width,height:e.height}}return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}let zr=0;class Hr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.isSource=!0,Object.defineProperty(this,"id",{value:zr++}),this.uuid=mr(),this.data=e,this.dataReady=!0,this.version=0}set needsUpdate(e){!0===e&&this.version++}toJSON(e){const t=void 0===e||"string"===typeof e;if(!t&&void 0!==e.images[this.uuid])return e.images[this.uuid];const n={uuid:this.uuid,url:""},r=this.data;if(null!==r){let e;if(Array.isArray(r)){e=[];for(let t=0,n=r.length;t<n;t++)r[t].isDataTexture?e.push(Vr(r[t].image)):e.push(Vr(r[t]))}else e=Vr(r);n.url=e}return t||(e.images[this.uuid]=n),n}}function Vr(e){return"undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap?Br.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let Wr=0;class Gr extends ur{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gr.DEFAULT_IMAGE,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gr.DEFAULT_MAPPING,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fn,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:fn,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:bn,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:wn,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Cn,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:_n,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:Gr.DEFAULT_ANISOTROPY,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:zn;super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:Wr++}),this.uuid=mr(),this.name="",this.source=new Hr(e),this.mipmaps=[],this.mapping=t,this.channel=0,this.wrapS=n,this.wrapT=r,this.magFilter=i,this.minFilter=o,this.anisotropy=l,this.format=a,this.internalFormat=null,this.type=s,this.offset=new Sr(0,0),this.repeat=new Sr(1,1),this.center=new Sr(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Mr,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace
vendor: 4,128 bytes, line 2
2=c,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(e){void 0===e&&(e=null),this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return(new this.constructor).copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,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.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const t=void 0===e||"string"===typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];const n={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,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,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(300!==this.mapping)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case pn:e.x=e.x-Math.floor(e.x);break;case fn:e.x=e.x<0?0:1;break;case mn: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 pn:e.y=e.y-Math.floor(e.y);break;case fn:e.y=e.y<0?0:1;break;case mn: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}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}}Gr.DEFAULT_IMAGE=null,Gr.DEFAULT_MAPPING=300,Gr.DEFAULT_ANISOTROPY=1;class qr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;qr.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(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}getComponent(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)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(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}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}
vendor: 4,901 bytes, line 2
2sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(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}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const 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}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const 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}setAxisAngleFromRotationMatrix(e){let t,n,r,i;const o=.01,a=.1,s=e.elements,l=s[0],c=s[4],u=s[8],d=s[1],h=s[5],p=s[9],f=s[2],m=s[6],g=s[10];if(Math.abs(c-d)<o&&Math.abs(u-f)<o&&Math.abs(p-m)<o){if(Math.abs(c+d)<a&&Math.abs(u+f)<a&&Math.abs(p+m)<a&&Math.abs(l+h+g-3)<a)return this.set(1,0,0,0),this;t=Math.PI;const e=(l+1)/2,s=(h+1)/2,v=(g+1)/2,y=(c+d)/4,b=(u+f)/4,x=(p+m)/4;return e>s&&e>v?e<o?(n=0,r=.707106781,i=.707106781):(n=Math.sqrt(e),r=y/n,i=b/n):s>v?s<o?(n=.707106781,r=0,i=.707106781):(r=Math.sqrt(s),n=y/r,i=x/r):v<o?(n=.707106781,r=.707106781,i=0):(i=Math.sqrt(v),n=b/i,r=x/i),this.set(n,r,i,t),this}let v=Math.sqrt((m-p)*(m-p)+(u-f)*(u-f)+(d-c)*(d-c));return Math.abs(v)<.001&&(v=1),this.x=(m-p)/v,this.y=(u-f)/v,this.z=(d-c)/v,this.w=Math.acos((l+h+g-1)/2),this}min(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}max(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}clamp(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}clampScalar(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}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(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}lerpVectors(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}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class Xr extends ur{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new qr(0,0,e,t),this.scissorTest=!1,this.viewport=new qr(0,0,e,t);const r={width:e,height:t,depth:1};n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:bn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0,count:1},n);const i=new Gr(r,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.c
2olorSpace);i.flipY=!1,i.generateMipmaps=n.generateMipmaps,i.internalFormat=n.internalFormat,this.textures=[];const o=n.count;for(let a=0;a<o;a++)this.textures[a]=i.clone(),this.textures[a].isRenderTargetTexture=!0;this.depthBuffer=n.depthBuffer,this.stencilBuffer=n.stencilBuffer,this.depthTexture=n.depthTexture,this.samples=n.samples}get texture(){return this.textures[0]}set texture(e){this.textures[0]=e}setSize(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(this.width!==e||this.height!==t||this.depth!==n){this.width=e,this.height=t,this.depth=n;for(let r=0,i=this.textures.length;r<i;r++)this.textures[r].image.width=e,this.textures[r].image.height=t,this.textures[r].image.depth=n;this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return(new this.constructor).copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let n=0,r=e.textures.length;n<r;n++)this.textures[n]=e.textures[n].clone(),this.textures[n].isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new Hr(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,null!==e.depthTexture&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class Yr extends Xr{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),this.isWebGLRenderTarget=!0}}class Zr extends Gr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:n,depth:r},this.magFilter=gn,this.minFilter=gn,this.wrapR=fn,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Kr extends Gr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:n,depth:r},this.magFilter=gn,this.minFilter=gn,this.wrapR=fn,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class $r{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,o,a){let s=n[r+0],l=n[r+1],c=n[r+2],u=n[r+3];const d=i[o+0],h=i[o+1],p=i[o+2],f=i[o+3];if(0===a)return e[t+0]=s,e[t+1]=l,e[t+2]=c,void(e[t+3]=u);if(1===a)return e[t+0]=d,e[t+1]=h,e[t+2]=p,void(e[t+3]=f);if(u!==f||s!==d||l!==h||c!==p){let e=1-a;const t=s*d+l*h+c*p+u*f,n=t>=0?1:-1,r=1-t*t;if(r>Number.EPSILON){const i=Math.sqrt(r),o=Math.atan2(i,t*n);e=Math.sin(e*o)/i,a=Math.sin(a*o)/i}const i=a*n;if(s=s*e+d*i,l=l*e+h*i,c=c*e+p*i,u=u*e+f*i,e===1-a){const e=1/Math.sqrt(s*s+l*l+c*c+u*u);s*=e,l*=e,c*=e,u*=e}}e[t]=s,e[t+1]=l,e[t+2]=c,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,o){const a=n[r],s=n[r+1],l=n[r+2],c=n[r+3],u=i[o],d=i[o+1],h=i[o+2],p=i[o+3];return e[t]=a*p+c*u+s*h-l*d,e[t+1]=s*p+c*d+l*u-a*h,e[t+2]=l*p+c*h+a*d-s*u,e[t+3]=c*p-a*u-s*d-l*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e._x,r=e._y,i=e._z,o=e._order,a=Math.cos,s=Math.sin,l=a(n/2),c=a(r/2),u=a(i/2),d=s(n/2),h=s(r/2),p=s(i/2);switch(o){case"XYZ":this._x=d*c*u+l*h*p,this._y=l*h*u-d*c*p,this._z=l*c*p+d*h*u,this._w=l*c*u-d*h*p;break;case"YXZ":this._x=d*c*u+l*h*p,this._y=l*h*u-d*c*p,this._z=l*c*p-d*h*u,this._w=l*c*u+d*h*p;break;case"ZXY":this._x=d*c*u-l*h*p,this._y=l*h*u+d*c*p,this._z=l*c*p+d*h*u,this._w=l*c*u-d*h*p;break;case"ZYX":this._x=d*c*u-l*h*p,this._y=l*h*u+d*c*p,this._z=l*c*p-d*h*u,this._w=l*c*u+d*h*p;break;case"YZX":this._x=d*c*u+l*h*p,this._y=l*h*u+d*c*p,this._z=l*c*p-d*h*u,this._w=l*c*u-d*h*p;break;case"XZY":this._x=d*c*u-l*h*p,this._y=l*h*u-d*c*p,this._z=l*c*p+d*h*u,this._w=l*c*u+d*h*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return!0===t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const 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}setFromRotationMatrix(e){const t=e.elements,n=t[0],r=t[4],i=t[8],o=t[1],a=t[5],s=t[9],l=t[2],c=t[6],u=t[10],d=n+a+u;if(d>0){const e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(c-s)*e,this._y=(i-l)*e,this._z=(o-r)*e}else if(n>a&&n>u){const e=2*Math.sqrt(1+n-a-u);this._w=(c-s)/e,this._x=.25*e,this._y=(r+o)/e,this._z=(i+l)/e}else if(a>u){const e=2*Math.sqrt(1+a-n-u);this._w=(i-l)/e,this._x=(r+o)/e,this._y=.25*e,this._z=(s+c)/e}else{const e=2*Math.sqrt(1+u-n-a);this._w=(o-r)/e,this._x=(i+l)/e,this._y=(s+c)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<Number.EPSILON?(n=0,Math.abs(e.x)>
vendor: 12,743 bytes, line 2
2Math.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()}angleTo(e){return 2*Math.acos(Math.abs(gr(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let 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}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,r=e._y,i=e._z,o=e._w,a=t._x,s=t._y,l=t._z,c=t._w;return this._x=n*c+o*a+r*l-i*s,this._y=r*c+o*s+i*a-n*l,this._z=i*c+o*l+n*s-r*a,this._w=o*c-n*a-r*s-i*l,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,r=this._y,i=this._z,o=this._w;let 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;const s=1-a*a;if(s<=Number.EPSILON){const e=1-t;return this._w=e*o+t*this._w,this._x=e*n+t*this._x,this._y=e*r+t*this._y,this._z=e*i+t*this._z,this.normalize(),this}const l=Math.sqrt(s),c=Math.atan2(l,a),u=Math.sin((1-t)*c)/l,d=Math.sin(t*c)/l;return this._w=o*u+this._w*d,this._x=n*u+this._x*d,this._y=r*u+this._y*d,this._z=i*u+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Jr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Jr.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(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}getComponent(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)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(ei.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(ei.setFromAxisAngle(e,t))}applyMatrix3(e){const 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}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const 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}applyQuaternion(e){const t=this.x,n=this.y,r=this.z,i=e.x,o=e.y,a=e.z,s=e.w,l=2*(o*r-a*n),c=2*(a*t-i*r),u=2*(i*n-o*t);return this.x=t+s*l+o*u-a*c,this.y=n+s*c+a*l-i*u,this.z=r+s*u+i*c-o*l,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const 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()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(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}max(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}clamp(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}clampScalar(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}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(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}lerpVectors(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}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const 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}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return Qr.copy(this).projectOnVector(e),this.sub(Qr)}reflect(e){return this.sub(Qr.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(gr(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const 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}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const 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}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=2*Math.random()-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Qr=new Jr,ei=new $r;class ti{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Jr(1/0,1/0,1/0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Jr(-1/0,-1/0,-1/0);this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t+=3)this.expandByPoint(ri.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,n=e.count;t<n;t++)this.expandByPoint(ri.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const n=ri.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.makeEmpty(),this.expandByObject(e,t)}clone(){return(new this.constructor).copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.updateWorldMatrix(!1,!1);const n=e.geometry;if(void 0!==n){const r=n.getAttribute("position");if(!0===t&&void 0!==r&&!0!==e.isInstancedMesh)for(let t=0,n=r.count;t<n;t++)!0===e.isMesh?e.getVertexPosition(t,ri):ri.fromBufferAttribute(r,t),ri.applyMatrix4(e.matrixWorld),this.expandByPoint(ri);else void 0!==e.boundingBox?(null===e.boundingBox&&e.computeBoundingBox(),ii.copy(e.boundingBox)):(null===n.boundingBox&&n.computeBoundingBox(),ii.copy(n.boundingBox)),ii.applyMatrix4(e.matrixWorld),this.union(ii)}const r=e.children;for(let i=0,o=r.length;i<o;i++)this.expandByObject(r[i],t);return this}containsPoint(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)}containsBox(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}getParameter(e,t){return 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))}intersectsBox(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)}intersectsSphere(e){return this.clampPoint(e.center,ri),ri.distanceToSquared(e.center)<=e.radius*e.radiu
vendor: 10,748 bytes, line 2
2s}intersectsPlane(e){let 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}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(di),hi.subVectors(this.max,di),oi.subVectors(e.a,di),ai.subVectors(e.b,di),si.subVectors(e.c,di),li.subVectors(ai,oi),ci.subVectors(si,ai),ui.subVectors(oi,si);let t=[0,-li.z,li.y,0,-ci.z,ci.y,0,-ui.z,ui.y,li.z,0,-li.x,ci.z,0,-ci.x,ui.z,0,-ui.x,-li.y,li.x,0,-ci.y,ci.x,0,-ui.y,ui.x,0];return!!mi(t,oi,ai,si,hi)&&(t=[1,0,0,0,1,0,0,0,1],!!mi(t,oi,ai,si,hi)&&(pi.crossVectors(li,ci),t=[pi.x,pi.y,pi.z],mi(t,oi,ai,si,hi)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,ri).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(ri).length()),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(ni[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),ni[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),ni[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),ni[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),ni[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),ni[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),ni[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),ni[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(ni)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const ni=[new Jr,new Jr,new Jr,new Jr,new Jr,new Jr,new Jr,new Jr],ri=new Jr,ii=new ti,oi=new Jr,ai=new Jr,si=new Jr,li=new Jr,ci=new Jr,ui=new Jr,di=new Jr,hi=new Jr,pi=new Jr,fi=new Jr;function mi(e,t,n,r,i){for(let o=0,a=e.length-3;o<=a;o+=3){fi.fromArray(e,o);const a=i.x*Math.abs(fi.x)+i.y*Math.abs(fi.y)+i.z*Math.abs(fi.z),s=t.dot(fi),l=n.dot(fi),c=r.dot(fi);if(Math.max(-Math.max(s,l,c),Math.min(s,l,c))>a)return!1}return!0}const gi=new ti,vi=new Jr,yi=new Jr;class bi{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Jr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):gi.setFromPoints(e).getCenter(n);let r=0;for(let i=0,o=e.length;i<o;i++)r=Math.max(r,n.distanceToSquared(e[i]));return this.radius=Math.sqrt(r),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;vi.subVectors(e,this.center);const t=vi.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.addScaledVector(vi,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(yi.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(vi.copy(e.center).add(yi)),this.expandByPoint(vi.copy(e.center).sub(yi))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const xi=new Jr,wi=new Jr,_i=new Jr,Ei=new Jr,Si=new Jr,Mi=new Jr,Ti=new Jr;class Ai{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Jr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Jr(0,0,-1);this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,xi)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=xi.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(xi.copy(this.origin).addScaledVector(this.direction,t),xi.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){wi.copy(e).add(t).multiplyScalar(.5),_i.copy(t).sub(e).normalize(),Ei.copy(this.origin).sub(wi);const i=.5*e.distanceTo(t),o=-this.direction.dot(_i),a=Ei.dot(this.direction),s=-Ei.dot(_i),l=Ei.lengthSq(),c=Math.abs(1-o*o);let u,d,h,p;if(c>0)if(u=o*s-a,d=o*a-s,p=i*c,u>=0)if(d>=-p)if(d<=p){const e=1/c;u*=e,d*=e,h=u*(u+o*d+2*a)+d*(o*u+d+2*s)+l}else d=i,u=Math.max(0,-(o*d+a)),h=-u*u+d*(d+2*s)+l;else d=-i,u=Math.max(0,-(o*d+a)),h=-u*u+d*(d+2*s)+l;else d<=-p?(u=Math.max(0,-(-o*i+a)),d=u>0?-i:Math.min(Math.max(-i,-s),i),h=-u*u+d*(d+2*s)+l):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),h=d*(d+2*s)+l):(u=Math.max(0,-(o*i+a)),d=u>0?i:Math.min(Math.max(-i,-s),i),h=-u*u+d*(d+2*s)+l);else d=o>0?-i:i,u=Math.max(0,-(o*d+a)),h=-u*u+d*(d+2*s)+l;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(wi).addScaledVector(_i,d),h}intersectSphere(e,t){xi.subVectors(e.center,this.origin);const n=xi.dot(this.direction),r=xi.dot(xi)-n*n,i=e.radius*e.radius;if(r>i)return null;const o=Math.sqrt(i-r),a=n-o,s=n+o;return s<0?null:a<0?this.at(s,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);if(0===t)return!0;return e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,o,a,s;const l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,d=this.origin;return l>=0?(n=(e.min.x-d.x)*l,r=(e.max.x-d.x)*l):(n=(e.max.x-d.x)*l,r=(e.min.x-d.x)*l),c>=0?(i=(e.min.y-d.y)*c,o=(e.max.y-d.y)*c):(i=(e.max.y-d.y)*c,o=(e.min.y-d.y)*c),n>o||i>r?null:((i>n||isNaN(n))&&(n=i),(o<r||isNaN(r))&&(r=o),u>=0?(a=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(a=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),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)))}intersectsBox(e){return null!==this.intersectBox(e,xi)}intersectTriangle(e,t,n,r,i){Si.subVectors(t,e),Mi.subVectors(n,e),Ti.crossVectors(Si,Mi);let o,a=this.direction.dot(Ti);if(a>0){if(r)return null;o=1}else{if(!(a<0))return null;o=-1,a=-a}Ei.subVectors(this.origin,e);const s=o*this.direction.dot(Mi.crossVectors(Ei,Mi));if(s<0)return null;const l=o*this.direction.dot(Si.cross(Ei));if(l<0)return null;if(s+l>a)return null;const c=-o*Ei.dot(Ti);return c<0?null:this.at(c/a,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Oi{constructor(e,t,n,r,i,o,a,s,l,c,u,d,h,p,f,m){Oi.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==e&&this.set(e,t,n,r,i,o,a,s,l,c,u,d,h,p,f,m)}set(e,t,n,r,i,o,a,s,l,c,u,d,h,p,f,m){const g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=r,g[1]=i,g[5]=o,g[9]=a,g[13]=s,g[2]=l,g[6]=c,g[10]=u,g[14]=d,g[3]=h,g[7]=p,g[11]=f,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Oi).fromArray(this.elements)}copy(e){const 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}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(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}extractRotation(e){const t=this.elements,n=e.elements,r=1/Ci.setFromMatrixColumn(e,0).length(),i=1/Ci.setFromMatrixColumn(e,1).length(),o=1/Ci.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}makeRotationFromEuler(e){const t=this.elements,n=e.x,r=e.y,i=e.z,o=Math.cos(n),a=Math.sin(n),s=Math.cos(r),l=Math.sin(r),c=Math.cos(i),u=Math.sin(i);if("XYZ"===e.order){const e=o*c,n=o*u,r=a*c,i=a*u;t[0]=s*c,t[4]=-s*u,t[8]=l,t[1]=n+r*l,t[5]=e-i*l,t[9]=-a*s,t[2]=i-e*l,t[6]=r+n*l,t[10]=o*s}else if("YXZ"===e.order){const e=s*c,n=s*u,r=l*c,i=l*u;t[0]=e+i*a,t[4]=r*a-n,t[8]=o*l,t[1]=o*u,t[5]=o*c,t[9]=-a,t[2]=n*a-r,t[6]=i+e*a,t[10]=o*s}else if("ZXY"===e.order){const e=s*c,n=s*u,r=l*c,i=l*u;t[0]=e-i*a,t[4]=-o*u,t[8]=r+n*a,t[1]=n+r*a,t[5]=o*c,t[9]=i-e*a,t[2]=-o*l,t[6]=a,t[10]=o*s}else if("ZYX"===e.order){const e=o*c,n=o*u,r=a*c,i=a*u;t[0]=s*c,t[4]=r*l-n,t[8]=e*l+i,t[1]=s*u,t[5]=i*l+e,t[9]=n*l-r,t[2]=-l,t[6]=a*s,t[10]=o*s}else if("YZX"===e.order){const e=o*s,n=o*l,r=a*s,i=a*l;t[0]=s*c,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=o*c,t[9]=-a*c,t[2]=-l*c,t[6]=n*u+r,t[10]=e-i*u}
vendor: 5,620 bytes, line 2
2else if("XZY"===e.order){const e=o*s,n=o*l,r=a*s,i=a*l;t[0]=s*c,t[4]=-u,t[8]=l*c,t[1]=e*u+i,t[5]=o*c,t[9]=n*u-r,t[2]=r*u-n,t[6]=a*c,t[10]=i*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Pi,e,Ii)}lookAt(e,t,n){const r=this.elements;return Di.subVectors(e,t),0===Di.lengthSq()&&(Di.z=1),Di.normalize(),Li.crossVectors(n,Di),0===Li.lengthSq()&&(1===Math.abs(n.z)?Di.x+=1e-4:Di.z+=1e-4,Di.normalize(),Li.crossVectors(n,Di)),Li.normalize(),ki.crossVectors(Di,Li),r[0]=Li.x,r[4]=ki.x,r[8]=Di.x,r[1]=Li.y,r[5]=ki.y,r[9]=Di.y,r[2]=Li.z,r[6]=ki.z,r[10]=Di.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,o=n[0],a=n[4],s=n[8],l=n[12],c=n[1],u=n[5],d=n[9],h=n[13],p=n[2],f=n[6],m=n[10],g=n[14],v=n[3],y=n[7],b=n[11],x=n[15],w=r[0],_=r[4],E=r[8],S=r[12],M=r[1],T=r[5],A=r[9],O=r[13],C=r[2],R=r[6],P=r[10],I=r[14],L=r[3],k=r[7],D=r[11],N=r[15];return i[0]=o*w+a*M+s*C+l*L,i[4]=o*_+a*T+s*R+l*k,i[8]=o*E+a*A+s*P+l*D,i[12]=o*S+a*O+s*I+l*N,i[1]=c*w+u*M+d*C+h*L,i[5]=c*_+u*T+d*R+h*k,i[9]=c*E+u*A+d*P+h*D,i[13]=c*S+u*O+d*I+h*N,i[2]=p*w+f*M+m*C+g*L,i[6]=p*_+f*T+m*R+g*k,i[10]=p*E+f*A+m*P+g*D,i[14]=p*S+f*O+m*I+g*N,i[3]=v*w+y*M+b*C+x*L,i[7]=v*_+y*T+b*R+x*k,i[11]=v*E+y*A+b*P+x*D,i[15]=v*S+y*O+b*I+x*N,this}multiplyScalar(e){const 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}determinant(){const e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],o=e[1],a=e[5],s=e[9],l=e[13],c=e[2],u=e[6],d=e[10],h=e[14];return e[3]*(+i*s*u-r*l*u-i*a*d+n*l*d+r*a*h-n*s*h)+e[7]*(+t*s*h-t*l*d+i*o*d-r*o*h+r*l*c-i*s*c)+e[11]*(+t*l*u-t*a*h-i*o*u+n*o*h+i*a*c-n*l*c)+e[15]*(-r*a*c-t*s*u+t*a*d+r*o*u-n*o*d+n*s*c)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const 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}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=e[9],d=e[10],h=e[11],p=e[12],f=e[13],m=e[14],g=e[15],v=u*m*l-f*d*l+f*s*h-a*m*h-u*s*g+a*d*g,y=p*d*l-c*m*l-p*s*h+o*m*h+c*s*g-o*d*g,b=c*f*l-p*u*l+p*a*h-o*f*h-c*a*g+o*u*g,x=p*u*s-c*f*s-p*a*d+o*f*d+c*a*m-o*u*m,w=t*v+n*y+r*b+i*x;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const _=1/w;return e[0]=v*_,e[1]=(f*d*i-u*m*i-f*r*h+n*m*h+u*r*g-n*d*g)*_,e[2]=(a*m*i-f*s*i+f*r*l-n*m*l-a*r*g+n*s*g)*_,e[3]=(u*s*i-a*d*i-u*r*l+n*d*l+a*r*h-n*s*h)*_,e[4]=y*_,e[5]=(c*m*i-p*d*i+p*r*h-t*m*h-c*r*g+t*d*g)*_,e[6]=(p*s*i-o*m*i-p*r*l+t*m*l+o*r*g-t*s*g)*_,e[7]=(o*d*i-c*s*i+c*r*l-t*d*l-o*r*h+t*s*h)*_,e[8]=b*_,e[9]=(p*u*i-c*f*i-p*n*h+t*f*h+c*n*g-t*u*g)*_,e[10]=(o*f*i-p*a*i+p*n*l-t*f*l-o*n*g+t*a*g)*_,e[11]=(c*a*i-o*u*i-c*n*l+t*u*l+o*n*h-t*a*h)*_,e[12]=x*_,e[13]=(c*f*r-p*u*r+p*n*d-t*f*d-c*n*m+t*u*m)*_,e[14]=(p*a*r-o*f*r-p*n*s+t*f*s+o*n*m-t*a*m)*_,e[15]=(o*u*r-c*a*r+c*n*s-t*u*s-o*n*d+t*a*d)*_,this}scale(e){const 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}getMaxScaleOnAxis(){const 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))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const 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}makeRotationY(e){const 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}makeRotationZ(e){const 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}makeRotationAxis(e,t){const n=Math.cos(t),r=Math.sin(t),i=1-n,o=e.x,a=e.y,s=e.z,l=i*o,c=i*a;return this.set(l*o+n,l*a-r*s,l*s+r*a,0,l*a+r*s,c*a+n,c*s-r*o,0,l*s-r*a,c*s+r*o,i*s*s+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,o){return this.set(1,n,i,0,e,1,o,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){const r=this.elements,i=t._x,o=t._y,a=t._z,s=t._w,l=i+i,c=o+o,u=a+a,d=i*l,h=i*c,p=i*u,f=o*c,m=o*u,g=a*u,v=s*l,y=s*c,b=s*u,x=n.x,w=n.y,_=n.z;return r[0]=(1-(f+g))*x,r[1]=(h+b)*x,r[2]=(p-y)*x,r[3]=0,r[4]=(h-b)*w,r[5]=(1-(d+g))*w,r[6]=(m+v)*w,r[7]=0,r[8]=(p+y)*_,r[9]=(m-v)*_,r[10]=(1-(d+f))*_,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){const r=this.elements;let i=Ci.set(r[0],r[1],r[2]).length();const o=Ci.set(r[4],r[5],r[6]).length(),a=Ci.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],Ri.copy(this);const s=1/i,l=1/o,c=1/a;return Ri.elements[0]*=s,Ri.elements[1]*=s,Ri.elements[2]*=s,Ri.elements[4]*=l,Ri.elements[5]*=l,Ri.elements[6]*=l,Ri.elements[8]*=c,Ri.elements[9]*=c,Ri.elements[10]*=c,t.setFromRotationMatrix(Ri),n.x=i,n.y=o,n.z=a,this}makePerspective(e,t,n,r,i,o){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:lr;const s=this.elements,l=2*i/(t-e),c=2*i/(n-r),u=(t+e)/(t-e),d=(n+r)/(n-r);let h,p;if(a===lr)h=-(o+i)/(o-i),p=-2*o*i/(o-i);else{if(a!==cr)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);h=-o/(o-i),p=-o*i/(o-i)}return s[0]=l,s[4]=0,s[8]=u,s[12]=0,s[1]=0,s[5]=c,s[9]=d,s[13]=0,s[2]=0,s[6]=0,s[10]=h,s[14]=p,s[3]=0,s[7]=0,s[11]=-1,s[15]=0,this}
2makeOrthographic(e,t,n,r,i,o){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:lr;const s=this.elements,l=1/(t-e),c=1/(n-r),u=1/(o-i),d=(t+e)*l,h=(n+r)*c;let p,f;if(a===lr)p=(o+i)*u,f=-2*u;else{if(a!==cr)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);p=i*u,f=-1*u}return s[0]=2*l,s[4]=0,s[8]=0,s[12]=-d,s[1]=0,s[5]=2*c,s[9]=0,s[13]=-h,s[2]=0,s[6]=0,s[10]=f,s[14]=-p,s[3]=0,s[7]=0,s[11]=0,s[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let r=0;r<16;r++)if(t[r]!==n[r])return!1;return!0}fromArray(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const 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}}const Ci=new Jr,Ri=new Oi,Pi=new Jr(0,0,0),Ii=new Jr(1,1,1),Li=new Jr,ki=new Jr,Di=new Jr,Ni=new Oi,Ui=new $r;class ji{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ji.DEFAULT_ORDER;this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._order;return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=e.elements,i=r[0],o=r[4],a=r[8],s=r[1],l=r[5],c=r[9],u=r[2],d=r[6],h=r[10];switch(t){case"XYZ":this._y=Math.asin(gr(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,h),this._z=Math.atan2(-o,i)):(this._x=Math.atan2(d,l),this._z=0);break;case"YXZ":this._x=Math.asin(-gr(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,h),this._z=Math.atan2(s,l)):(this._y=Math.atan2(-u,i),this._z=0);break;case"ZXY":this._x=Math.asin(gr(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,h),this._z=Math.atan2(-o,l)):(this._y=0,this._z=Math.atan2(s,i));break;case"ZYX":this._y=Math.asin(-gr(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,h),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-o,l));break;case"YZX":this._z=Math.asin(gr(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(a,h));break;case"XZY":this._z=Math.asin(-gr(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(d,l),this._y=Math.atan2(a,i)):(this._x=Math.atan2(-c,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return Ni.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Ni,t,n)}setFromVector3(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order;return this.set(e.x,e.y,e.z,t)}reorder(e){return Ui.setFromEuler(this),this.setFromQuaternion(Ui,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(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}toArray(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}ji.DEFAULT_ORDER="XYZ";class Fi{constructor(){this.mask=1}set(e){this.mask=1<<e>>>0}enable(e){this.mask|=1<<e}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e}disable(e){this.mask&=~(1<<e)}disableAll(){this.mask=0}test(e){return 0!==(this.mask&e.mask)}isEnabled(e){return 0!==(this.mask&1<<e)}}let Bi=0;const zi=new Jr,Hi=new $r,Vi=new Oi,Wi=new Jr,Gi=new Jr,qi=new Jr,Xi=new $r,Yi=new Jr(1,0,0),Zi=new Jr(0,1,0),Ki=new Jr(0,0,1),$i={type:"added"},Ji={type:"removed"},Qi={type:"childadded",child:null},eo={type:"childremoved",child:null};class to extends ur{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:Bi++}),this.uuid=mr(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=to.DEFAULT_UP.clone();const e=new Jr,t=new ji,n=new $r,r=new Jr(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 Oi},normalMatrix:{value:new Mr}}),this.matrix=new Oi,this.matrixWorld=new Oi,this.matrixAutoUpdate=to.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=to.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new Fi,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}
vendor: 11,639 bytes, line 2
2setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return Hi.setFromAxisAngle(e,t),this.quaternion.multiply(Hi),this}rotateOnWorldAxis(e,t){return Hi.setFromAxisAngle(e,t),this.quaternion.premultiply(Hi),this}rotateX(e){return this.rotateOnAxis(Yi,e)}rotateY(e){return this.rotateOnAxis(Zi,e)}rotateZ(e){return this.rotateOnAxis(Ki,e)}translateOnAxis(e,t){return zi.copy(e).applyQuaternion(this.quaternion),this.position.add(zi.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(Yi,e)}translateY(e){return this.translateOnAxis(Zi,e)}translateZ(e){return this.translateOnAxis(Ki,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(Vi.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?Wi.copy(e):Wi.set(e,t,n);const r=this.parent;this.updateWorldMatrix(!0,!1),Gi.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Vi.lookAt(Gi,Wi,this.up):Vi.lookAt(Wi,Gi,this.up),this.quaternion.setFromRotationMatrix(Vi),r&&(Vi.extractRotation(r.matrixWorld),Hi.setFromRotationMatrix(Vi),this.quaternion.premultiply(Hi.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);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($i),Qi.child=e,this.dispatchEvent(Qi),Qi.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}const t=this.children.indexOf(e);return-1!==t&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(Ji),eo.child=e,this.dispatchEvent(eo),eo.child=null),this}removeFromParent(){const e=this.parent;return null!==e&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),Vi.copy(this.matrixWorld).invert(),null!==e.parent&&(e.parent.updateWorldMatrix(!0,!1),Vi.multiply(e.parent.matrixWorld)),e.applyMatrix4(Vi),this.add(e),e.updateWorldMatrix(!1,!0),this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,r=this.children.length;n<r;n++){const r=this.children[n].getObjectByProperty(e,t);if(void 0!==r)return r}}getObjectsByProperty(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this[e]===t&&n.push(this);const r=this.children;for(let i=0,o=r.length;i<o;i++)r[i].getObjectsByProperty(e,t,n);return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Gi,e,qi),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Gi,Xi,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverse(e)}traverseVisible(e){if(!1===this.visible)return;e(this);const t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverseVisible(e)}traverseAncestors(e){const t=this.parent;null!==t&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(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);const t=this.children;for(let n=0,r=t.length;n<r;n++){const r=t[n];!0!==r.matrixWorldAutoUpdate&&!0!==e||r.updateMatrixWorld(e)}}updateWorldMatrix(e,t){const n=this.parent;if(!0===e&&null!==n&&!0===n.matrixWorldAutoUpdate&&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){const e=this.children;for(let t=0,n=e.length;t<n;t++){const n=e[t];!0===n.matrixWorldAutoUpdate&&n.updateWorldMatrix(!1,!0)}}}toJSON(e){const t=void 0===e||"string"===typeof e,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const 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),Object.keys(this.userData).length>0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map((e=>({boxInitialized:e.boxInitialized,boxMin:e.box.min.toArray(),boxMax:e.box.max.toArray(),sphereInitialized:e.sphereInitialized,sphereRadius:e.sphere.radius,sphereCenter:e.sphere.center.toArray()}))),r.maxGeometryCount=this._maxGeometryCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),null!==this.boundingSphere&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),null!==this.boundingBox&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);const t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){const n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t<r;t++){const r=n[t];i(e.shapes,r)}else i(e.shapes,n)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(i(e.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const t=[];for(let n=0,r=this.material.length;n<r;n++)t.push(i(e.materials,this.material[n]));r.material=t}else r.material=i(e.materials,this.material);if(this.children.length>0){r.children=[];for(let t=0;t<this.children.length;t++)r.children.push(this.children[t].toJSON(e).object)}if(this.animations.length>0){r.animations=[];for(let t=0;t<this.animations.length;t++){const n=this.animations[t];r.animations.push(i(e.animations,n))}}if(t){const t=o(e.geometries),r=o(e.materials),i=o(e.textures),a=o(e.images),s=o(e.shapes),l=o(e.skeletons),c=o(e.animations),u=o(e.nodes);t.length>0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),a.length>0&&(n.images=a),s.length>0&&(n.shapes=s),l.length>0&&(n.skeletons=l),c.length>0&&(n.animations=c),u.length>0&&(n.nodes=u)}return n.object=r,n;function o(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(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.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,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.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let n=0;n<e.children.length;n++){const t=e.children[n];this.add(t.clone())}return this}}to.DEFAULT_UP=new Jr(0,1,0),to.DEFAULT_MATRIX_AUTO_UPDATE=!0,to.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const no=new Jr,ro=new Jr,io=new Jr,oo=new Jr,ao=new Jr,so=new Jr,lo=new Jr,co=new Jr,uo=new Jr,ho=new Jr;class po{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Jr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Jr,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Jr;this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,r){r.subVectors(n,t),no.subVectors(e,t),r.cross(no);const i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){no.subVectors(r,t),ro.subVectors(n,t),io.subVectors(e,t);const o=no.dot(no),a=no.dot(ro),s=no.dot(io),l=ro.dot(ro),c=ro.dot(io),u=o*l-a*a;if(0===u)return i.set(0,0,0),null;const d=1/u,h=(l*s-a*c)*d,p=(o*c-a*s)*d;return i.set(1-h-p,p,h)}static containsPoint(e,t,n,r){return null!==this.getBarycoord(e,t,n,r,oo)&&(oo.x>=0&&oo.y>=0&&oo.x+oo.y<=1)}static getInterpolation(e,t,n,r,i,o,a,s){return null===this.getBarycoord(e,t,n,r,oo)?(s.x=0,s.y=0,"z"in s&&(s.z=0),"w"in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,oo.x),s.addScaledVector(o,oo.y),s.addScaledVector(a,oo.z),s)}static isFrontFacing(e,t,n,r){return no.subVectors(n,t),ro.subVectors(e,t),no.cross(ro).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return no.subVectors(this.c,this.b),ro.subVectors(this.a,this.b),.5*no.cross(ro).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return po.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return po.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,r,i){return po.getInterpolation(e,this.a,this.b,this.c,t,n,r,i)}containsPoint(e){return po.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return po.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,r=this.b,i=this.c;let o,a;ao.subVectors(r,n),so.subVectors(i,n),co.subVectors(e,n);const s=ao.dot(co),l=so.dot(co);if(s<=0&&l<=0)return t.copy(n);uo.subVectors(e,r);const c=ao.dot(uo),u=so.dot(uo);if(c>=0&&u<=c)return t.copy(r);
2const d=s*u-c*l;if(d<=0&&s>=0&&c<=0)return o=s/(s-c),t.copy(n).addScaledVector(ao,o);ho.subVectors(e,i);const h=ao.dot(ho),p=so.dot(ho);if(p>=0&&h<=p)return t.copy(i);const f=h*l-s*p;if(f<=0&&l>=0&&p<=0)return a=l/(l-p),t.copy(n).addScaledVector(so,a);const m=c*p-h*u;if(m<=0&&u-c>=0&&h-p>=0)return lo.subVectors(i,r),a=(u-c)/(u-c+(h-p)),t.copy(r).addScaledVector(lo,a);const g=1/(m+f+d);return o=f*g,a=d*g,t.copy(n).addScaledVector(ao,o).addScaledVector(so,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const fo={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},mo={h:0,s:0,l:0},go={h:0,s:0,l:0};function vo(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}class yo{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(void 0===t&&void 0===n){const t=e;t&&t.isColor?this.copy(t):"number"===typeof t?this.setHex(t):"string"===typeof t&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hn;return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,Nr.toWorkingColorSpace(this,t),this}setRGB(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Nr.workingColorSpace;return this.r=e,this.g=t,this.b=n,Nr.toWorkingColorSpace(this,r),this}setHSL(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Nr.workingColorSpace;if(e=vr(e,1),t=gr(t,0,1),n=gr(n,0,1),0===t)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=vo(i,r,e+1/3),this.g=vo(i,r,e),this.b=vo(i,r,e-1/3)}return Nr.toWorkingColorSpace(this,r),this}setStyle(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hn;function r(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}if(t=/^(\w+)\(([^\)]*)\)/.exec(e)){let i;const o=t[1],a=t[2];switch(o){case"rgb":case"rgba":if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,n);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,n);break;case"hsl":case"hsla":if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(t=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=t[1],i=r.length;if(3===i)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,n);if(6===i)return this.setHex(parseInt(r,16),n);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,n);return this}setColorName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hn;const n=fo[e.toLowerCase()];return void 0!==n?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Ur(e.r),this.g=Ur(e.g),this.b=Ur(e.b),this}copyLinearToSRGB(e){return this.r=jr(e.r),this.g=jr(e.g),this.b=jr(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hn;return Nr.fromWorkingColorSpace(bo.copy(this),e),65536*Math.round(gr(255*bo.r,0,255))+256*Math.round(gr(255*bo.g,0,255))+Math.round(gr(255*bo.b,0,255))}getHexString(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hn;return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nr.workingColorSpace;Nr.fromWorkingColorSpace(bo.copy(this),t);const n=bo.r,r=bo.g,i=bo.b,o=Math.max(n,r,i),a=Math.min(n,r,i);let s,l;const c=(a+o)/2;if(a===o)s=0,l=0;else{const e=o-a;switch(l=c<=.5?e/(o+a):e/(2-o-a),o){case n:s=(r-i)/e+(r<i?6:0);break;case r:s=(i-n)/e+2;break;case i:s=(n-r)/e+4}s/=6}return e.h=s,e.s=l,e.l=c,e}getRGB(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nr.workingColorSpace;return Nr.fromWorkingColorSpace(bo.copy(this),t),e.r=bo.r,e.g=bo.g,e.b=bo.b,e}getStyle(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hn;Nr.fromWorkingColorSpace(bo.copy(this),e);const t=bo.r,n=bo.g,r=bo.b;return e!==Hn?"color(".concat(e," ").concat(t.toFixed(3)," ").concat(n.toFixed(3)," ").concat(r.toFixed(3),")"):"rgb(".concat(Math.round(255*t),",").concat(Math.round(255*n),",").concat(Math.round(255*r),")")}offsetHSL(e,t,n){return this.getHSL(mo),this.setHSL(mo.h+e,mo.s+t,mo.l+n)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(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}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(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}
2lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(mo),e.getHSL(go);const n=yr(mo.h,go.h,t),r=yr(mo.s,go.s,t),i=yr(mo.l,go.l,t);return this.setHSL(n,r,i),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const t=this.r,n=this.g,r=this.b,i=e.elements;return this.r=i[0]*t+i[3]*n+i[6]*r,this.g=i[1]*t+i[4]*n+i[7]*r,this.b=i[2]*t+i[5]*n+i[8]*r,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const bo=new yo;yo.NAMES=fo;let xo=0;class wo extends ur{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:xo++}),this.uuid=mr(),this.name="",this.type="Material",this.blending=1,this.side=Ct,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=It,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new yo(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Kn,this.stencilZFail=Kn,this.stencilZPass=Kn,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!==e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n){console.warn("THREE.Material: parameter '".concat(t,"' has value of undefined."));continue}const 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.Material: '".concat(t,"' is not a property of THREE.").concat(this.type,"."))}}toJSON(e){const t=void 0===e||"string"===typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function r(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}
vendor: 5,371 bytes, line 2
2if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(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()),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),void 0!==this.anisotropy&&(n.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),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,n.lightMapIntensity=this.lightMapIntensity),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.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapRotation&&(n.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(n.blending=this.blending),this.side!==Ct&&(n.side=this.side),!0===this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=!0),204!==this.blendSrc&&(n.blendSrc=this.blendSrc),205!==this.blendDst&&(n.blendDst=this.blendDst),this.blendEquation!==It&&(n.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(n.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&
vendor: 7,454 bytes, line 2
2(n.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(n.blendAlpha=this.blendAlpha),3!==this.depthFunc&&(n.depthFunc=this.depthFunc),!1===this.depthTest&&(n.depthTest=this.depthTest),!1===this.depthWrite&&(n.depthWrite=this.depthWrite),!1===this.colorWrite&&(n.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(n.stencilWriteMask=this.stencilWriteMask),519!==this.stencilFunc&&(n.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(n.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Kn&&(n.stencilFail=this.stencilFail),this.stencilZFail!==Kn&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==Kn&&(n.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(n.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaHash&&(n.alphaHash=!0),!0===this.alphaToCoverage&&(n.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=!0),!0===this.forceSinglePass&&(n.forceSinglePass=!0),!0===this.wireframe&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=!0),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),t){const t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,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.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,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;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let r=0;r!==e;++r)n[r]=t[r].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.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}class _o extends wo{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new yo(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.envMapRotation=new ji,this.combine=Kt,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(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.envMapRotation.copy(e.envMapRotation),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.fog=e.fog,this}}const Eo=So();function So(){const e=new ArrayBuffer(4),t=new Float32Array(e),n=new Uint32Array(e),r=new Uint32Array(512),i=new Uint32Array(512);for(let l=0;l<256;++l){const e=l-127;e<-27?(r[l]=0,r[256|l]=32768,i[l]=24,i[256|l]=24):e<-14?(r[l]=1024>>-e-14,r[256|l]=1024>>-e-14|32768,i[l]=-e-1,i[256|l]=-e-1):e<=15?(r[l]=e+15<<10,r[256|l]=e+15<<10|32768,i[l]=13,i[256|l]=13):e<128?(r[l]=31744,r[256|l]=64512,i[l]=24,i[256|l]=24):(r[l]=31744,r[256|l]=64512,i[l]=13,i[256|l]=13)}const o=new Uint32Array(2048),a=new Uint32Array(64),s=new Uint32Array(64);for(let l=1;l<1024;++l){let e=l<<13,t=0;for(;0===(8388608&e);)e<<=1,t-=8388608;e&=-8388609,t+=947912704,o[l]=e|t}for(let l=1024;l<2048;++l)o[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)a[l]=l<<23;a[31]=1199570944,a[32]=2147483648;for(let l=33;l<63;++l)a[l]=2147483648+(l-32<<23);a[63]=3347054592;for(let l=1;l<64;++l)32!==l&&(s[l]=1024);return{floatView:t,uint32View:n,baseTable:r,shiftTable:i,mantissaTable:o,exponentTable:a,offsetTable:s}}const Mo={toHalfFloat:function(e){Math.abs(e)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),e=gr(e,-65504,65504),Eo.floatView[0]=e;const t=Eo.uint32View[0],n=t>>23&511;return Eo.baseTable[n]+((8388607&t)>>Eo.shiftTable[n])},fromHalfFloat:function(e){const t=e>>10;return Eo.uint32View[0]=Eo.mantissaTable[Eo.offsetTable[t]+(1023&e)]+Eo.exponentTable[t],Eo.floatView[0]}},To=new Jr,Ao=new Sr;class Oo{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=or,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Tn,this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}get updateRange(){return Pr("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(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.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;
vendor: 5,149 bytes, line 2
2for(let r=0,i=this.itemSize;r<i;r++)this.array[e+r]=t.array[n+r];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(2===this.itemSize)for(let t=0,n=this.count;t<n;t++)Ao.fromBufferAttribute(this,t),Ao.applyMatrix3(e),this.setXY(t,Ao.x,Ao.y);else if(3===this.itemSize)for(let t=0,n=this.count;t<n;t++)To.fromBufferAttribute(this,t),To.applyMatrix3(e),this.setXYZ(t,To.x,To.y,To.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)To.fromBufferAttribute(this,t),To.applyMatrix4(e),this.setXYZ(t,To.x,To.y,To.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)To.fromBufferAttribute(this,t),To.applyNormalMatrix(e),this.setXYZ(t,To.x,To.y,To.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)To.fromBufferAttribute(this,t),To.transformDirection(e),this.setXYZ(t,To.x,To.y,To.z);return this}set(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(e,t),this}getComponent(e,t){let n=this.array[e*this.itemSize+t];return this.normalized&&(n=wr(n,this.array)),n}setComponent(e,t,n){return this.normalized&&(n=_r(n,this.array)),this.array[e*this.itemSize+t]=n,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=wr(t,this.array)),t}setX(e,t){return this.normalized&&(t=_r(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=wr(t,this.array)),t}setY(e,t){return this.normalized&&(t=_r(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=wr(t,this.array)),t}setZ(e,t){return this.normalized&&(t=_r(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=wr(t,this.array)),t}setW(e,t){return this.normalized&&(t=_r(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=_r(t,this.array),n=_r(n,this.array)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,r){return e*=this.itemSize,this.normalized&&(t=_r(t,this.array),n=_r(n,this.array),r=_r(r,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this}setXYZW(e,t,n,r,i){return e*=this.itemSize,this.normalized&&(t=_r(t,this.array),n=_r(n,this.array),r=_r(r,this.array),i=_r(i,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this.array[e+3]=i,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),this.usage!==or&&(e.usage=this.usage),e}}class Co extends Oo{constructor(e,t,n){super(new Uint16Array(e),t,n)}}class Ro extends Oo{constructor(e,t,n){super(new Uint32Array(e),t,n)}}class Po extends Oo{constructor(e,t,n){super(new Float32Array(e),t,n)}}let Io=0;const Lo=new Oi,ko=new to,Do=new Jr,No=new ti,Uo=new ti,jo=new Jr;class Fo extends ur{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:Io++}),this.uuid=mr(),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={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(Ar(e)?Ro:Co)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return void 0!==this.attributes[e]}addGroup(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const t=(new Mr).getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}const r=this.attributes.tangent;return void 0!==r&&(r.transformDirection(e),r.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(e){return Lo.makeRotationFromQuaternion(e),this.applyMatrix4(Lo),this}rotateX(e){return Lo.makeRotationX(e),this.applyMatrix4(Lo),this}rotateY(e){return Lo.makeRotationY(e),this.applyMatrix4(Lo),this}rotateZ(e){return Lo.makeRotationZ(e),this.applyMatrix4(Lo),this}translate(e,t,n){return Lo.makeTranslation(e,t,n),this.applyMatrix4(Lo),this}scale(e,t,n){return Lo.makeScale(e,t,n),this.applyMatrix4(Lo),this}lookAt(e){return ko.lookAt(e),ko.updateMatrix(),this.applyMatrix4(ko.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Do).negate(),this.translate(Do.x,Do.y,Do.z),this}setFromPoints(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];t.push(r.x,r.y,r.z||0)}return this.setAttribute("position",new Po(t,3)),this}
vendor: 4,216 bytes, line 2
2computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new ti);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)return console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),void this.boundingBox.set(new Jr(-1/0,-1/0,-1/0),new Jr(1/0,1/0,1/0));if(void 0!==e){if(this.boundingBox.setFromBufferAttribute(e),t)for(let n=0,r=t.length;n<r;n++){const e=t[n];No.setFromBufferAttribute(e),this.morphTargetsRelative?(jo.addVectors(this.boundingBox.min,No.min),this.boundingBox.expandByPoint(jo),jo.addVectors(this.boundingBox.max,No.max),this.boundingBox.expandByPoint(jo)):(this.boundingBox.expandByPoint(No.min),this.boundingBox.expandByPoint(No.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(){null===this.boundingSphere&&(this.boundingSphere=new bi);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)return console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),void this.boundingSphere.set(new Jr,1/0);if(e){const n=this.boundingSphere.center;if(No.setFromBufferAttribute(e),t)for(let e=0,i=t.length;e<i;e++){const n=t[e];Uo.setFromBufferAttribute(n),this.morphTargetsRelative?(jo.addVectors(No.min,Uo.min),No.expandByPoint(jo),jo.addVectors(No.max,Uo.max),No.expandByPoint(jo)):(No.expandByPoint(Uo.min),No.expandByPoint(Uo.max))}No.getCenter(n);let r=0;for(let t=0,i=e.count;t<i;t++)jo.fromBufferAttribute(e,t),r=Math.max(r,n.distanceToSquared(jo));if(t)for(let i=0,o=t.length;i<o;i++){const o=t[i],a=this.morphTargetsRelative;for(let t=0,i=o.count;t<i;t++)jo.fromBufferAttribute(o,t),a&&(Do.fromBufferAttribute(e,t),jo.add(Do)),r=Math.max(r,n.distanceToSquared(jo))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,t=this.attributes;if(null===e||void 0===t.position||void 0===t.normal||void 0===t.uv)return void console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");const n=t.position,r=t.normal,i=t.uv;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new Oo(new Float32Array(4*n.count),4));const o=this.getAttribute("tangent"),a=[],s=[];for(let E=0;E<n.count;E++)a[E]=new Jr,s[E]=new Jr;const l=new Jr,c=new Jr,u=new Jr,d=new Sr,h=new Sr,p=new Sr,f=new Jr,m=new Jr;function g(e,t,r){l.fromBufferAttribute(n,e),c.fromBufferAttribute(n,t),u.fromBufferAttribute(n,r),d.fromBufferAttribute(i,e),h.fromBufferAttribute(i,t),p.fromBufferAttribute(i,r),c.sub(l),u.sub(l),h.sub(d),p.sub(d);const o=1/(h.x*p.y-p.x*h.y);isFinite(o)&&(f.copy(c).multiplyScalar(p.y).addScaledVector(u,-h.y).multiplyScalar(o),m.copy(u).multiplyScalar(h.x).addScaledVector(c,-p.x).multiplyScalar(o),a[e].add(f),a[t].add(f),a[r].add(f),s[e].add(m),s[t].add(m),s[r].add(m))}let v=this.groups;0===v.length&&(v=[{start:0,count:e.count}]);for(let E=0,S=v.length;E<S;++E){const t=v[E],n=t.start;for(let r=n,i=n+t.count;r<i;r+=3)g(e.getX(r+0),e.getX(r+1),e.getX(r+2))}const y=new Jr,b=new Jr,x=new Jr,w=new Jr;function _(e){x.fromBufferAttribute(r,e),w.copy(x);const t=a[e];y.copy(t),y.sub(x.multiplyScalar(x.dot(t))).normalize(),b.crossVectors(w,t);const n=b.dot(s[e])<0?-1:1;o.setXYZW(e,y.x,y.y,y.z,n)}for(let E=0,S=v.length;E<S;++E){const t=v[E],n=t.start;for(let r=n,i=n+t.count;r<i;r+=3)_(e.getX(r+0)),_(e.getX(r+1)),_(e.getX(r+2))}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(void 0!==t){let n=this.getAttribute("normal");if(void 0===n)n=new Oo(new Float32Array(3*t.count),3),this.setAttribute("normal",n);else for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);const r=new Jr,i=new Jr,o=new Jr,a=new Jr,s=new Jr,l=new Jr,c=new Jr,u=ne
vendor: 13,971 bytes, line 2
2w Jr;if(e)for(let d=0,h=e.count;d<h;d+=3){const h=e.getX(d+0),p=e.getX(d+1),f=e.getX(d+2);r.fromBufferAttribute(t,h),i.fromBufferAttribute(t,p),o.fromBufferAttribute(t,f),c.subVectors(o,i),u.subVectors(r,i),c.cross(u),a.fromBufferAttribute(n,h),s.fromBufferAttribute(n,p),l.fromBufferAttribute(n,f),a.add(c),s.add(c),l.add(c),n.setXYZ(h,a.x,a.y,a.z),n.setXYZ(p,s.x,s.y,s.z),n.setXYZ(f,l.x,l.y,l.z)}else for(let e=0,d=t.count;e<d;e+=3)r.fromBufferAttribute(t,e+0),i.fromBufferAttribute(t,e+1),o.fromBufferAttribute(t,e+2),c.subVectors(o,i),u.subVectors(r,i),c.cross(u),n.setXYZ(e+0,c.x,c.y,c.z),n.setXYZ(e+1,c.x,c.y,c.z),n.setXYZ(e+2,c.x,c.y,c.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)jo.fromBufferAttribute(e,t),jo.normalize(),e.setXYZ(t,jo.x,jo.y,jo.z)}toNonIndexed(){function e(e,t){const n=e.array,r=e.itemSize,i=e.normalized,o=new n.constructor(t.length*r);let a=0,s=0;for(let l=0,c=t.length;l<c;l++){a=e.isInterleavedBufferAttribute?t[l]*e.data.stride+e.offset:t[l]*r;for(let e=0;e<r;e++)o[s++]=n[a++]}return new Oo(o,r,i)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const t=new Fo,n=this.index.array,r=this.attributes;for(const a in r){const i=e(r[a],n);t.setAttribute(a,i)}const i=this.morphAttributes;for(const a in i){const r=[],o=i[a];for(let t=0,i=o.length;t<i;t++){const i=e(o[t],n);r.push(i)}t.morphAttributes[a]=r}t.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let a=0,s=o.length;a<s;a++){const e=o[a];t.addGroup(e.start,e.count,e.materialIndex)}return t}toJSON(){const e={metadata:{version:4.6,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){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const s in n){const t=n[s];e.data.attributes[s]=t.toJSON(e.data)}const r={};let i=!1;for(const s in this.morphAttributes){const t=this.morphAttributes[s],n=[];for(let r=0,i=t.length;r<i;r++){const i=t[r];n.push(i.toJSON(e.data))}n.length>0&&(r[s]=n,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return null!==a&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return(new this.constructor).copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;null!==n&&this.setIndex(n.clone(t));const r=e.attributes;for(const l in r){const e=r[l];this.setAttribute(l,e.clone(t))}const i=e.morphAttributes;for(const l in i){const e=[],n=i[l];for(let r=0,i=n.length;r<i;r++)e.push(n[r].clone(t));this.morphAttributes[l]=e}this.morphTargetsRelative=e.morphTargetsRelative;const o=e.groups;for(let l=0,c=o.length;l<c;l++){const e=o[l];this.addGroup(e.start,e.count,e.materialIndex)}const a=e.boundingBox;null!==a&&(this.boundingBox=a.clone());const s=e.boundingSphere;return null!==s&&(this.boundingSphere=s.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const Bo=new Oi,zo=new Ai,Ho=new bi,Vo=new Jr,Wo=new Jr,Go=new Jr,qo=new Jr,Xo=new Jr,Yo=new Jr,Zo=new Sr,Ko=new Sr,$o=new Sr,Jo=new Jr,Qo=new Jr,ea=new Jr,ta=new Jr,na=new Jr;class ra extends to{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Fo,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new _o;super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}getVertexPosition(e,t){const n=this.geometry,r=n.attributes.position,i=n.morphAttributes.position,o=n.morphTargetsRelative;t.fromBufferAttribute(r,e);const a=this.morphTargetInfluences;if(i&&a){Yo.set(0,0,0);for(let n=0,r=i.length;n<r;n++){const r=a[n],s=i[n];0!==r&&(Xo.fromBufferAttribute(s,e),o?Yo.addScaledVector(Xo,r):Yo.addScaledVector(Xo.sub(t),r))}t.add(Yo)}return t}raycast(e,t){const n=this.geometry,r=this.material,i=this.matrixWorld;if(void 0!==r){if(null===n.boundingSphere&&n.computeBoundingSphere(),Ho.copy(n.boundingSphere),Ho.applyMatrix4(i),zo.copy(e.ray).recast(e.near),!1===Ho.containsPoint(zo.origin)){if(null===zo.intersectSphere(Ho,Vo))return;if(zo.origin.distanceToSquared(Vo)>(e.far-e.near)**2)return}Bo.copy(i).invert(),zo.copy(e.ray).applyMatrix4(Bo),null!==n.boundingBox&&!1===zo.intersectsBox(n.boundingBox)||this._computeIntersections(e,t,zo)}}_computeIntersections(e,t,n){let r;const i=this.geometry,o=this.material,a=i.index,s=i.attributes.position,l=i.attributes.uv,c=i.attributes.uv1,u=i.attributes.normal,d=i.groups,h=i.drawRange;if(null!==a)if(Array.isArray(o))for(let p=0,f=d.length;p<f;p++){const i=d[p],s=o[i.materialIndex];for(let o=Math.max(i.start,h.start),d=Math.min(a.count,Math.min(i.start+i.count,h.start+h.count));o<d;o+=3){r=ia(this,s,e,n,l,c,u,a.getX(o),a.getX(o+1),a.getX(o+2)),r&&(r.faceIndex=Math.floor(o/3),r.face.materialIndex=i.materialIndex,t.push(r))}}else{for(let i=Math.max(0,h.start),s=Math.min(a.count,h.start+h.count);i<s;i+=3){r=ia(this,o,e,n,l,c,u,a.getX(i),a.getX(i+1),a.getX(i+2)),r&&(r.faceIndex=Math.floor(i/3),t.push(r))}}else if(void 0!==s)if(Array.isArray(o))for(let p=0,f=d.length;p<f;p++){const i=d[p],a=o[i.materialIndex];for(let o=Math.max(i.start,h.start),d=Math.min(s.count,Math.min(i.start+i.count,h.start+h.count));o<d;o+=3){r=ia(this,a,e,n,l,c,u,o,o+1,o+2),r&&(r.faceIndex=Math.floor(o/3),r.face.materialIndex=i.materialIndex,t.push(r))}}else{for(let i=Math.max(0,h.start),a=Math.min(s.count,h.start+h.count);i<a;i+=3){r=ia(this,o,e,n,l,c,u,i,i+1,i+2),r&&(r.faceIndex=Math.floor(i/3),t.push(r))}}}}function ia(e,t,n,r,i,o,a,s,l,c){e.getVertexPosition(s,Wo),e.getVertexPosition(l,Go),e.getVertexPosition(c,qo);const u=function(e,t,n,r,i,o,a,s){let l;if(l=t.side===Rt?r.intersectTriangle(a,o,i,!0,s):r.intersectTriangle(i,o,a,t.side===Ct,s),null===l)return null;na.copy(s),na.applyMatrix4(e.matrixWorld);const c=n.ray.origin.distanceTo(na);return c<n.near||c>n.far?null:{distance:c,point:na.clone(),object:e}}(e,t,n,r,Wo,Go,qo,ta);if(u){i&&(Zo.fromBufferAttribute(i,s),Ko.fromBufferAttribute(i,l),$o.fromBufferAttribute(i,c),u.uv=po.getInterpolation(ta,Wo,Go,qo,Zo,Ko,$o,new Sr)),o&&(Zo.fromBufferAttribute(o,s),Ko.fromBufferAttribute(o,l),$o.fromBufferAttribute(o,c),u.uv1=po.getInterpolation(ta,Wo,Go,qo,Zo,Ko,$o,new Sr)),a&&(Jo.fromBufferAttribute(a,s),Qo.fromBufferAttribute(a,l),ea.fromBufferAttribute(a,c),u.normal=po.getInterpolation(ta,Wo,Go,qo,Jo,Qo,ea,new Jr),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));const e={a:s,b:l,c:c,normal:new Jr,materialIndex:0};po.getNormal(Wo,Go,qo,e.normal),u.face=e}return u}class oa extends Fo{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:o};const a=this;r=Math.floor(r),i=Math.floor(i),o=Math.floor(o);const s=[],l=[],c=[],u=[];let d=0,h=0;function p(e,t,n,r,i,o,p,f,m,g,v){const y=o/m,b=p/g,x=o/2,w=p/2,_=f/2,E=m+1,S=g+1;let M=0,T=0;const A=new Jr;for(let a=0;a<S;a++){const o=a*b-w;for(let s=0;s<E;s++){const d=s*y-x;A[e]=d*r,A[t]=o*i,A[n]=_,l.push(A.x,A.y,A.z),A[e]=0,A[t]=0,A[n]=f>0?1:-1,c.push(A.x,A.y,A.z),u.push(s/m),u.push(1-a/g),M+=1}}for(let a=0;a<g;a++)for(let e=0;e<m;e++){const t=d+e+E*a,n=d+e+E*(a+1),r=d+(e+1)+E*(a+1),i=d+(e+1)+E*a;s.push(t,n,i),s.push(n,r,i),T+=6}a.addGroup(h,T,v),h+=T,d+=M}p("z","y","x",-1,-1,n,t,e,o,i,0),p("z","y","x",1,-1,n,t,-e,o,i,1),p("x","z","y",1,1,e,n,t,r,o,2),p("x","z","y",1,-1,e,n,-t,r,o,3),p("x","y","z",1,-1,e,t,n,r,i,4),p("x","y","z",-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute("position",new Po(l,3)),this.setAttribute("normal",new Po(c,3)),this.setAttribute("uv",new Po(u,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new oa(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function aa(e){const t={};for(const n in e){t[n]={};for(const r in e[n]){const i=e[n][r];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture||i.isQuaternion)?i.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),t[n][r]=null):t[n][r]=i.clone():Array.isArray(i)?t[n][r]=i.slice():t[n][r]=i}}return t}function sa(e){const t={};for(let n=0;n<e.length;n++){const r=aa(e[n]);for(const e in r)t[e]=r[e]}return t}function la(e){return null===e.getRenderTarget()?e.outputColorSpace:Nr.workingColorSpace}const ca={clone:aa,merge:sa};class ua extends wo{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1,clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==e&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=aa(e.uniforms),this.uniformsGroups=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].clone());return t}(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const r in this.uniforms){const n=this.uniforms[r].value;n&&n.isTexture?t.uniforms[r]={type:"t",value:n.toJSON(e).uuid}:n&&n.isColor?t.uniforms[r]={type:"c",value:n.getHex()}:n&&n.isVector2?t.uniforms[r]={type:"v2",value:n.toArray()}:n&&n.isVector3?t.uniforms[r]={type:"v3",value:n.toArray()}:n&&n.isVector4?t.uniforms[r]={type:"v4",value:n.toArray()}:n&&n.isMatrix3?t.uniforms[r]={type:"m3",value:n.toArray()}:n&&n.isMatrix4?t.uniforms[r]={type:"m4",value:n.toArray()}:t.uniforms[r]={value:n}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const r in this.extensions)!0===this.extensions[r]&&(n[r]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class da extends to{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Oi,this.projectionMatrix=new Oi,this.projectionMatrixInverse=new Oi,this.coordinateSystem=lr}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}const ha=new Jr,pa=new Sr,fa=new Sr;class ma extends da{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2e3;super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(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(e){const t=.5*this.getFilmHeight()/e;this.fov=2*fr*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*pr*this.fov);return.5*this.getFilmHeight()/e}
vendor: 4,480 bytes, line 2
2getEffectiveFOV(){return 2*fr*Math.atan(Math.tan(.5*pr*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){ha.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(ha.x,ha.y).multiplyScalar(-e/ha.z),ha.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(ha.x,ha.y).multiplyScalar(-e/ha.z)}getViewSize(e,t){return this.getViewBounds(e,pa,fa),t.subVectors(fa,pa)}setViewOffset(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(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*pr*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r;const o=this.view;if(null!==this.view&&this.view.enabled){const e=o.fullWidth,a=o.fullHeight;i+=o.offsetX*r/e,t-=o.offsetY*n/a,r*=o.width/e,n*=o.height/a}const a=this.filmOffset;0!==a&&(i+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(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}}const ga=-90;class va extends to{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const r=new ma(ga,1,e,t);r.layers=this.layers,this.add(r);const i=new ma(ga,1,e,t);i.layers=this.layers,this.add(i);const o=new ma(ga,1,e,t);o.layers=this.layers,this.add(o);const a=new ma(ga,1,e,t);a.layers=this.layers,this.add(a);const s=new ma(ga,1,e,t);s.layers=this.layers,this.add(s);const l=new ma(ga,1,e,t);l.layers=this.layers,this.add(l)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,r,i,o,a,s]=t;for(const l of t)this.remove(l);if(e===lr)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),s.up.set(0,1,0),s.lookAt(0,0,-1);else{if(e!==cr)throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),s.up.set(0,-1,0),s.lookAt(0,0,-1)}for(const l of t)this.add(l),l.updateMatrixWorld()}update(e,t){null===this.parent&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[i,o,a,s,l,c]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;const f=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,r),e.render(t,i),e.setRenderTarget(n,1,r),e.render(t,o),e.setRenderTarget(n,2,r),e.render(t,a),e.setRenderTarget(n,3,r),e.render(t,s),e.setRenderTarget(n,4,r),e.render(t,l),n.texture.generateMipmaps=f,e.setRenderTarget(n,5,r),e.render(t,c),e.setRenderTarget(u,d,h),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}}class ya extends Gr{constructor(e,t,n,r,i,o,a,s,l,c){super(e=void 0!==e?e:[],t=void 0!==t?t:cn,n,r,i,o,a,s,l,c),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class ba extends Yr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new ya(r,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:bn}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace
vendor: 6,206 bytes, line 2
2=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={tEquirect:{value:null}},r="\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",i="\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t",o=new oa(5,5,5),a=new ua({name:"CubemapFromEquirect",uniforms:aa(n),vertexShader:r,fragmentShader:i,side:Rt,blending:0});a.uniforms.tEquirect.value=t;const s=new ra(o,a),l=t.minFilter;t.minFilter===wn&&(t.minFilter=bn);return new va(1,10,this).update(e,s),t.minFilter=l,s.geometry.dispose(),s.material.dispose(),this}clear(e,t,n,r){const i=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,n,r);e.setRenderTarget(i)}}const xa=new Jr,wa=new Jr,_a=new Mr;class Ea{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Jr(1,0,0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const r=xa.subVectors(n,t).cross(wa.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const n=e.delta(xa),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;const i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:t.copy(e.start).addScaledVector(n,i)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||_a.getNormalMatrix(e),r=this.coplanarPoint(xa).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const Sa=new bi,Ma=new Jr;class Ta{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Ea,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Ea,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Ea,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Ea,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Ea,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Ea;this.planes=[e,t,n,r,i,o]}set(e,t,n,r,i,o){const 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}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lr;const n=this.planes,r=e.elements,i=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=r[6],d=r[7],h=r[8],p=r[9],f=r[10],m=r[11],g=r[12],v=r[13],y=r[14],b=r[15];if(n[0].setComponents(s-i,d-l,m-h,b-g).normalize(),n[1].setComponents(s+i,d+l,m+h,b+g).normalize(),n[2].setComponents(s+o,d+c,m+p,b+v).normalize(),n[3].setComponents(s-o,d-c,m-p,b-v).normalize(),n[4].setComponents(s-a,d-u,m-f,b-y).normalize(),t===lr)n[5].setComponents(s+a,d+u,m+f,b+y).normalize();else{if(t!==cr)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);n[5].setComponents(a,u,f,y).normalize()}return this}intersectsObject(e){if(void 0!==e.boundingSphere)null===e.boundingSphere&&e.computeBoundingSphere(),Sa.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),Sa.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Sa)}intersectsSprite(e){return Sa.center.set(0,0,0),Sa.radius=.7071067811865476,Sa.applyMatrix4(e.matrixWorld),this.intersectsSphere(Sa)}intersectsSphere(e){const t=this.planes,n=e.center,r=-e.radius;for(let i=0;i<6;i++){if(t[i].distanceToPoint(n)<r)return!1}return!0}intersectsBox(e){const t=this.planes;for(let n=0;n<6;n++){const r=t[n];if(Ma.x=r.normal.x>0?e.max.x:e.min.x,Ma.y=r.normal.y>0?e.max.y:e.min.y,Ma.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Ma)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Aa(){let 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 Oa(e,t){const 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);const n=r.get(t);n&&(e.deleteBuffer(n.buffer),r.delete(t))},update:function(t,i){if(t.isGLBufferAttribute){const e=r.get(t);
2return void((!e||e.version<t.version)&&r.set(t,{buffer:t.buffer,type:t.type,bytesPerElement:t.elementSize,version:t.version}))}t.isInterleavedBufferAttribute&&(t=t.data);const o=r.get(t);if(void 0===o)r.set(t,function(t,r){const i=t.array,o=t.usage,a=i.byteLength,s=e.createBuffer();let l;if(e.bindBuffer(r,s),e.bufferData(r,i,o),t.onUploadCallback(),i instanceof Float32Array)l=e.FLOAT;else if(i instanceof Uint16Array)if(t.isFloat16BufferAttribute){if(!n)throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");l=e.HALF_FLOAT}else l=e.UNSIGNED_SHORT;else if(i instanceof Int16Array)l=e.SHORT;else if(i instanceof Uint32Array)l=e.UNSIGNED_INT;else if(i instanceof Int32Array)l=e.INT;else if(i instanceof Int8Array)l=e.BYTE;else if(i instanceof Uint8Array)l=e.UNSIGNED_BYTE;else{if(!(i instanceof Uint8ClampedArray))throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+i);l=e.UNSIGNED_BYTE}return{buffer:s,type:l,bytesPerElement:i.BYTES_PER_ELEMENT,version:t.version,size:a}}(t,i));else if(o.version<t.version){if(o.size!==t.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");!function(t,r,i){const o=r.array,a=r._updateRange,s=r.updateRanges;if(e.bindBuffer(i,t),-1===a.count&&0===s.length&&e.bufferSubData(i,0,o),0!==s.length){for(let t=0,r=s.length;t<r;t++){const r=s[t];n?e.bufferSubData(i,r.start*o.BYTES_PER_ELEMENT,o,r.start,r.count):e.bufferSubData(i,r.start*o.BYTES_PER_ELEMENT,o.subarray(r.start,r.start+r.count))}r.clearUpdateRanges()}-1!==a.count&&(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),r.onUploadCallback()}(o.buffer,t,i),o.version=t.version}}}}class Ca extends Fo{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:n,heightSegments:r};const i=e/2,o=t/2,a=Math.floor(n),s=Math.floor(r),l=a+1,c=s+1,u=e/a,d=t/s,h=[],p=[],f=[],m=[];for(let g=0;g<c;g++){const e=g*d-o;for(let t=0;t<l;t++){const n=t*u-i;p.push(n,-e,0),f.push(0,0,1),m.push(t/a),m.push(1-g/s)}}for(let g=0;g<s;g++)for(let e=0;e<a;e++){const t=e+l*g,n=e+l*(g+1),r=e+1+l*(g+1),i=e+1+l*g;h.push(t,n,i),h.push(n,r,i)}this.setIndex(h),this.setAttribute("position",new Po(p,3)),this.setAttribute("normal",new Po(f,3)),this.setAttribute("uv",new Po(m,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Ca(e.width,e.height,e.widthSegments,e.heightSegments)}}const Ra
vendor: 41,230 bytes, line 2
2={alphahash_fragment:"#ifdef USE_ALPHAHASH\n\tif ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;\n#endif",alphahash_pars_fragment:"#ifdef USE_ALPHAHASH\n\tconst float ALPHA_HASH_SCALE = 0.05;\n\tfloat hash2D( vec2 value ) {\n\t\treturn fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );\n\t}\n\tfloat hash3D( vec3 value ) {\n\t\treturn hash2D( vec2( hash2D( value.xy ), value.z ) );\n\t}\n\tfloat getAlphaHashThreshold( vec3 position ) {\n\t\tfloat maxDeriv = max(\n\t\t\tlength( dFdx( position.xyz ) ),\n\t\t\tlength( dFdy( position.xyz ) )\n\t\t);\n\t\tfloat pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );\n\t\tvec2 pixScales = vec2(\n\t\t\texp2( floor( log2( pixScale ) ) ),\n\t\t\texp2( ceil( log2( pixScale ) ) )\n\t\t);\n\t\tvec2 alpha = vec2(\n\t\t\thash3D( floor( pixScales.x * position.xyz ) ),\n\t\t\thash3D( floor( pixScales.y * position.xyz ) )\n\t\t);\n\t\tfloat lerpFactor = fract( log2( pixScale ) );\n\t\tfloat x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;\n\t\tfloat a = min( lerpFactor, 1.0 - lerpFactor );\n\t\tvec3 cases = vec3(\n\t\t\tx * x / ( 2.0 * a * ( 1.0 - a ) ),\n\t\t\t( x - 0.5 * a ) / ( 1.0 - a ),\n\t\t\t1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )\n\t\t);\n\t\tfloat threshold = ( x < ( 1.0 - a ) )\n\t\t\t? ( ( x < a ) ? cases.x : cases.y )\n\t\t\t: cases.z;\n\t\treturn clamp( threshold , 1.0e-6, 1.0 );\n\t}\n#endif",alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef USE_ALPHATEST\n\t#ifdef ALPHA_TO_COVERAGE\n\tdiffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );\n\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\tif ( diffuseColor.a < alphaTest ) discard;\n\t#endif\n#endif",alphatest_pars_fragment:"#ifdef USE_ALPHATEST\n\tuniform float alphaTest;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_CLEARCOAT ) \n\t\tclearcoatSpecularIndirect *= ambientOcclusion;\n\t#endif\n\t#if defined( USE_SHEEN ) \n\t\tsheenSpecularIndirect *= ambientOcclusion;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometryNormal, geometryViewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n\t#endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",batching_pars_vertex:"#ifdef USE_BATCHING\n\tattribute float batchId;\n\tuniform highp sampler2D batchingTexture;\n\tmat4 getBatchingMatrix( const in float i ) {\n\t\tint size = textureSize( batchingTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",batching_vertex:"#ifdef USE_BATCHING\n\tmat4 batchingMatrix = getBatchingMatrix( batchId );\n#endif",begin_vertex:"vec3 transformed = vec3( position );\n#ifdef USE_ALPHAHASH\n\tvPosition = vec3( position );\n#endif",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"float 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_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n} // validated",iridescence_fragment:"#ifdef USE_IRIDESCENCE\n\tconst mat3 XYZ_TO_REC709 = mat3(\n\t\t 3.2404542, -0.9692660,  0.0556434,\n\t\t-1.5371385,  1.8760108, -0.2040259,\n\t\t-0.4985314,  0.0415560,  1.0572252\n\t);\n\tvec3 Fresnel0ToIor( vec3 fresnel0 ) {\n\t\tvec3 sqrtF0 = sqrt( fresnel0 );\n\t\treturn ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );\n\t}\n\tvec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );\n\t}\n\tfloat IorToFresnel0( float transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));\n\t}\n\tvec3 evalSensitivity( float OPD, vec3 shift ) {\n\t\tfloat phase = 2.0 * PI * OPD * 1.0e-9;\n\t\tvec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );\n\t\tvec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );\n\t\tvec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );\n\t\tvec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );\n\t\txyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );\n\t\txyz /= 1.0685e-7;\n\t\tvec3 rgb = XYZ_TO_REC709 * xyz;\n\t\treturn rgb;\n\t}\n\tvec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {\n\t\tvec3 I;\n\t\tfloat iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );\n\t\tfloat sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );\n\t\tfloat cosTheta2Sq = 1.0 - sinTheta2Sq;\n\t\tif ( cosTheta2Sq < 0.0 ) {\n\t\t\treturn vec3( 1.0 );\n\t\t}\n\t\tfloat cosTheta2 = sqrt( cosTheta2Sq );\n\t\tfloat R0 = IorToFresnel0( iridescenceIOR, outsideIOR );\n\t\tfloat R12 = F_Schlick( R0, 1.0, cosTheta1 );\n\t\tfloat T121 = 1.0 - R12;\n\t\tfloat phi12 = 0.0;\n\t\tif ( iridescenceIOR < outsideIOR ) phi12 = PI;\n\t\tfloat phi21 = PI - phi12;\n\t\tvec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );\t\tvec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );\n\t\tvec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );\n\t\tvec3 phi23 = vec3( 0.0 );\n\t\tif ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;\n\t\tif ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;\n\t\tif ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;\n\t\tfloat OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;\n\t\tvec3 phi = vec3( phi21 ) + phi23;\n\t\tvec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );\n\t\tvec3 r123 = sqrt( R123 );\n\t\tvec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );\n\t\tvec3 C0 = R12 + Rs;\n\t\tI = C0;\n\t\tvec3 Cm = Rs - T121;\n\t\tfor ( int m = 1; m <= 2; ++ m ) {\n\t\t\tCm *= r123;\n\t\t\tvec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );\n\t\t\tI += Cm * Sm;\n\t\t}\n\t\treturn max( I, vec3( 0.0 ) );\n\t}\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( vBumpMapUv );\n\t\tvec2 dSTdy = dFdy( vBumpMapUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );\n\t\tvec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );\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 ) * faceDirection;\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#ifdef ALPHA_TO_COVERAGE\n\t\tfloat distanceToPlane, distanceGradient;\n\t\tfloat clipOpacity = 1.0;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\tclipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\tif ( clipOpacity == 0.0 ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tfloat unionClipOpacity = 1.0;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\t\tunionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tclipOpacity *= 1.0 - unionClipOpacity;\n\t\t#endif\n\t\tdiffuseColor.a *= clipOpacity;\n\t\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tbool clipped = true;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tif ( clipped ) discard;\n\t\t#endif\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n\tmat3 bm = mat3( batchingMatrix );\n\ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n\ttransformedNormal = bm * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = bm * transformedTangent;\n\t#endif\n#endif\n#ifdef USE_INSTANCING\n\tmat3 im = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n\ttransformedNormal = im * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = im * transformedTangent;\n\t#endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\ttransformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n\tvec3( 0.8224621, 0.177538, 0.0 ),\n\tvec3( 0.0331941, 0.9668058, 0.0 ),\n\tvec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.2249401, - 0.2249404, 0.0 ),\n\tvec3( - 0.0420569, 1.0420571, 0.0 ),\n\tvec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( 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 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn sRGBTransferOETF( value );\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, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform mat3 envMapRotation;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tif( material.anisotropy == 0.0 ) {\n\t\tanisotropyV = vec2( 1.0, 0.0 );\n\t} else {\n\t\tanisotropyV /= material.anisotropy;\n\t\tmaterial.anisotropy = saturate( material.anisotropy );\n\t}\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n    float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n    float x2 = x * x;\n    float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n    return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alph
vendor: 11,921 bytes, line 2
2aB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3(    0, 1,    0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;
vendor: 37,338 bytes, line 2
2\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, 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, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, 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\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\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 ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphinstance_vertex:"#ifdef USE_INSTANCING_MORPH\n\tfloat morphTargetInfluences[MORPHTARGETS_COUNT];\n\tfloat morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tmorphTargetInfluences[i] =  texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n\t}\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_INSTANCING_MORPH\n\t\tuniform float morphTargetBaseInfluence;\n\t#endif\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\t#ifndef USE_INSTANCING_MORPH\n\t\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\t#endif\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n\tmvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tint size = textureSize( boneTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;
vendor: 2,014 bytes, line 2
2\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( 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}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.6605, - 0.1246, - 0.0182 ),\n\tvec3( - 0.5876, 1.1329, - 0.1006 ),\n\tvec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n\tvec3( 0.6274, 0.0691, 0.0164 ),\n\tvec3( 0.3293, 0.9195, 0.0880 ),\n\tvec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n\tvec3 x2 = x * x;\n\tvec3 x4 = x2 * x2;\n\treturn + 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n\tconst mat3 AgXInsetMatrix = mat3(\n\t\tvec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n\t\tvec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n\t\tvec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n\t);
vendor: 7,985 bytes, line 2
2\n\tconst mat3 AgXOutsetMatrix = mat3(\n\t\tvec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n\t\tvec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n\t\tvec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n\t);\n\tconst float AgxMinEv = - 12.47393;\tconst float AgxMaxEv = 4.026069;\n\tcolor *= toneMappingExposure;\n\tcolor = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n\tcolor = AgXInsetMatrix * color;\n\tcolor = max( color, 1e-10 );\tcolor = log2( color );\n\tcolor = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n\tcolor = clamp( color, 0.0, 1.0 );\n\tcolor = agxDefaultContrastApprox( color );\n\tcolor = AgXOutsetMatrix * color;\n\tcolor = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n\tcolor = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n\tcolor = clamp( color, 0.0, 1.0 );\n\treturn color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n\tfloat startCompression = 0.8 - 0.04;\n\tfloat desaturation = 0.15;\n\tcolor *= toneMappingExposure;\n\tfloat x = min(color.r, min(color.g, color.b));\n\tfloat offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n\tcolor -= offset;\n\tfloat peak = max(color.r, max(color.g, color.b));\n\tif (peak < startCompression) return color;\n\tfloat d = 1. - startCompression;\n\tfloat newPeak = 1. - d * d / (peak + d - startCompression);\n\tcolor *= newPeak / peak;\n\tfloat g = 1. - 1. / (desaturation * (peak - newPeak) + 1.);\n\treturn mix(color, vec3(1, 1, 1), g);\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a *  a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;
vendor: 5,728 bytes, line 2
2\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;
vendor: 25,357 bytes, line 2
2\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_BATCHING\n\t\tworldPosition = batchingMatrix * worldPosition;\n\t#endif\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",backgroundCube_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}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_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}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",depth_vert:"#include <common>\n#include <batching_pars_vertex>\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 <batching_vertex>\n\t#include <skinbase_vertex>\n\t#include <morphinstance_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}",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 <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <clipping_planes_fragment>\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 <alphahash_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}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <batching_pars_vertex>\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 <batching_vertex>\n\t#include <skinbase_vertex>\n\t#include <morphinstance_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}",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 <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <clipping_planes_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\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\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <uv_pars_vertex>\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 <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_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}",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 <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",meshbasic_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <uv_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 <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinbase_vertex>\n\t\t#include <skinnormal_vertex>\n\t\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 <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_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 <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_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 <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\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 <alphahash_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\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_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 <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_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 <normal_vertex>\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}",meshlambert_frag:"#define LAMBERT\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 <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_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 <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_lambert_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\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\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 <alphahash_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_lambert_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\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_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#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_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 <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_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 <normal_vertex>\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}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\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 <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_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\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\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 <alphahash_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#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_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 <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\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( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_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\tvec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\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 ), diffuseColor.a );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_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 <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\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}",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 <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_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 <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\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\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\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 <alphahash_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\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_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#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_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 <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_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 <normal_vertex>\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#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;
vendor: 3,625 bytes, line 2
2\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\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 <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <iridescence_fragment>\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 <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <iridescence_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\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\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 <alphahash_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 <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 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n\t#endif\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}"
vendor: 8,776 bytes, line 2
2,meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_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 <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_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 <normal_vertex>\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}",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 <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_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 <normal_pars_fragment>\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\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\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 <alphahash_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\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_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>\n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_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}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",shadow_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_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 <worldpos_vertex>\n\t#include <shadowmap_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 <logdepthbuf_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\t#include <logdepthbuf_fragment>\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_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}",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 <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}"},Pa={common:{diffuse:{value:new yo(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Mr},alphaMap:{value:null},alphaMapTransform:{value:new Mr},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Mr}},envmap:{envMap:{value:null},envMapRotation:{value:new Mr},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Mr}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Mr}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Mr},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Mr},normalScale:{value:new Sr(1,1)}}
vendor: 7,584 bytes, line 2
2,displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Mr},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Mr}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Mr}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Mr}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new yo(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new yo(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Mr},alphaTest:{value:0},uvTransform:{value:new Mr}},sprite:{diffuse:{value:new yo(16777215)},opacity:{value:1},center:{value:new Sr(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Mr},alphaMap:{value:null},alphaMapTransform:{value:new Mr},alphaTest:{value:0}}},Ia={basic:{uniforms:sa([Pa.common,Pa.specularmap,Pa.envmap,Pa.aomap,Pa.lightmap,Pa.fog]),vertexShader:Ra.meshbasic_vert,fragmentShader:Ra.meshbasic_frag},lambert:{uniforms:sa([Pa.common,Pa.specularmap,Pa.envmap,Pa.aomap,Pa.lightmap,Pa.emissivemap,Pa.bumpmap,Pa.normalmap,Pa.displacementmap,Pa.fog,Pa.lights,{emissive:{value:new yo(0)}}]),vertexShader:Ra.meshlambert_vert,fragmentShader:Ra.meshlambert_frag},phong:{uniforms:sa([Pa.common,Pa.specularmap,Pa.envmap,Pa.aomap,Pa.lightmap,Pa.emissivemap,Pa.bumpmap,Pa.normalmap,Pa.displacementmap,Pa.fog,Pa.lights,{emissive:{value:new yo(0)},specular:{value:new yo(1118481)},shininess:{value:30}}]),vertexShader:Ra.meshphong_vert,fragmentShader:Ra.meshphong_frag},standard:{uniforms:sa([Pa.common,Pa.envmap,Pa.aomap,Pa.lightmap,Pa.emissivemap,Pa.bumpmap,Pa.normalmap,Pa.displacementmap,Pa.roughnessmap,Pa.metalnessmap,Pa.fog,Pa.lights,{emissive:{value:new yo(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Ra.meshphysical_vert,fragmentShader:Ra.meshphysical_frag},toon:{uniforms:sa([Pa.common,Pa.aomap,Pa.lightmap,Pa.emissivemap,Pa.bumpmap,Pa.normalmap,Pa.displacementmap,Pa.gradientmap,Pa.fog,Pa.lights,{emissive:{value:new yo(0)}}]),vertexShader:Ra.meshtoon_vert,fragmentShader:Ra.meshtoon_frag},matcap:{uniforms:sa([Pa.common,Pa.bumpmap,Pa.normalmap,Pa.displacementmap,Pa.fog,{matcap:{value:null}}]),vertexShader:Ra.meshmatcap_vert,fragmentShader:Ra.meshmatcap_frag},points:{uniforms:sa([Pa.points,Pa.fog]),vertexShader:Ra.points_vert,fragmentShader:Ra.points_frag},dashed:{uniforms:sa([Pa.common,Pa.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Ra.linedashed_vert,fragmentShader:Ra.linedashed_frag},depth:{uniforms:sa([Pa.common,Pa.displacementmap]),vertexShader:Ra.depth_vert,fragmentShader:Ra.depth_frag},normal:{uniforms:sa([Pa.common,Pa.bumpmap,Pa.normalmap,Pa.displacementmap,{opacity:{value:1}}]),vertexShader:Ra.meshnormal_vert,fragmentShader:Ra.meshnormal_frag},sprite:{uniforms:sa([Pa.sprite,Pa.fog]),vertexShader:Ra.sprite_vert,fragmentShader:Ra.sprite_frag},background:{uniforms:{uvTransform:{value:new Mr},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Ra.background_vert,fragmentShader:Ra.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Mr}},vertexShader:Ra.backgroundCube_vert,fragmentShader:Ra.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Ra.cube_vert,fragmentShader:Ra.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Ra.equirect_vert,fragmentShader:Ra.equirect_frag},distanceRGBA:{uniforms:sa([Pa.common,Pa.displacementmap,{referencePosition:{value:new Jr},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Ra.distanceRGBA_vert,fragmentShader:Ra.distanceRGBA_frag},shadow:{uniforms:sa([Pa.lights,Pa.fog,{color:{value:new yo(0)},opacity:{value:1}}]),vertexShader:Ra.shadow_vert,fragmentShader:Ra.shadow_frag}};Ia.physical={uniforms:sa([Ia.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Mr},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Mr},clearcoatNormalScale:{value:new Sr(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Mr},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Mr},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Mr},sheen:{value:0},sheenColor:{value:new yo(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Mr},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Mr},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Mr},transmissionSamplerSize:{value:new Sr},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Mr},attenuationDistance:{value:0},attenuationColor:{value:new yo(0)},specularColor:{value:new yo(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Mr},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Mr},anisotropyVector:{value:new Sr},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Mr}}]),vertexShader:Ra.meshphysical_vert,fragmentShader:Ra.meshphysical_frag};const La={r:0,b:0,g:0},ka=new ji,Da=new Oi;function Na(e,t,n,r,i,o,a){const s=new yo(0);let l,c,u=!0===o?0:1,d=null,h=0,p=null;function f(t,n){t.getRGB(La,la(e)),r.buffers.color.setClear(La.r,La.g,La.b,n,a)}return{getClearColor:function(){return s},setClearColor:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;s.set(e),u=t,f(s,u)},getClearAlpha:function(){return u},setClearAlpha:function(e){u=e,f(s,u)},render:function(o,m){let g=!1,v=!0===m.isScene?m.background:null;if(v&&v.isTexture){v=(m.backgroundBlurriness>0?n:t).get(v)}null===v?f(s,u):v&&v.isColor&&(f(v,1),g=!0);const y=e.xr.getEnvironmentBlendMode();"additive"===y?r.buffers.color.setClear(0,0,0,1,a):"alpha-blend"===y&&r.buffers.color.setClear(0,0,0,0,a),(e.autoClear||g)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),v&&(v.isCubeTexture||v.mapping===hn)?(void 0===c&&(c=new ra(new oa(1,1,1),new ua({name:"Backgroun
2dCubeMaterial",uniforms:aa(Ia.backgroundCube.uniforms),vertexShader:Ia.backgroundCube.vertexShader,fragmentShader:Ia.backgroundCube.fragmentShader,side:Rt,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),c.geometry.deleteAttribute("uv"),c.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(c.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(c)),ka.copy(m.backgroundRotation),ka.x*=-1,ka.y*=-1,ka.z*=-1,v.isCubeTexture&&!1===v.isRenderTargetTexture&&(ka.y*=-1,ka.z*=-1),c.material.uniforms.envMap.value=v,c.material.uniforms.flipEnvMap.value=v.isCubeTexture&&!1===v.isRenderTargetTexture?-1:1,c.material.uniforms.backgroundBlurriness.value=m.backgroundBlurriness,c.material.uniforms.backgroundIntensity.value=m.backgroundIntensity,c.material.uniforms.backgroundRotation.value.setFromMatrix4(Da.makeRotationFromEuler(ka)),c.material.toneMapped=Nr.getTransfer(v.colorSpace)!==Xn,d===v&&h===v.version&&p===e.toneMapping||(c.material.needsUpdate=!0,d=v,h=v.version,p=e.toneMapping),c.layers.enableAll(),o.unshift(c,c.geometry,c.material,0,0,null)):v&&v.isTexture&&(void 0===l&&(l=new ra(new Ca(2,2),new ua({name:"BackgroundMaterial",uniforms:aa(Ia.background.uniforms),vertexShader:Ia.background.vertexShader,fragmentShader:Ia.background.fragmentShader,side:Ct,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),Object.defineProperty(l.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(l)),l.material.uniforms.t2D.value=v,l.material.uniforms.backgroundIntensity.value=m.backgroundIntensity,l.material.toneMapped=Nr.getTransfer(v.colorSpace)!==Xn,!0===v.matrixAutoUpdate&&v.updateMatrix(),l.material.uniforms.uvTransform.value.copy(v.matrix),d===v&&h===v.version&&p===e.toneMapping||(l.material.needsUpdate=!0,d=v,h=v.version,p=e.toneMapping),l.layers.enableAll(),o.unshift(l,l.geometry,l.material,0,0,null))}}}function Ua(e,t,n,r){const i=e.getParameter(e.MAX_VERTEX_ATTRIBS),o=r.isWebGL2?null:t.get("OES_vertex_array_object"),a=r.isWebGL2||null!==o,s={},l=p(null);let c=l,u=!1;function d(t){return r.isWebGL2?e.bindVertexArray(t):o.bindVertexArrayOES(t)}function h(t){return r.isWebGL2?e.deleteVertexArray(t):o.deleteVertexArrayOES(t)}function p(e){const t=[],n=[],r=[];for(let 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 f(){const e=c.newAttributes;for(let t=0,n=e.length;t<n;t++)e[t]=0}function m(e){g(e,0)}function g(n,i){const o=c.newAttributes,a=c.enabledAttributes,s=c.attributeDivisors;if(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(){const t=c.newAttributes,n=c.enabledAttributes;for(let r=0,i=n.length;r<i;r++)n[r]!==t[r]&&(e.disableVertexAttribArray(r),n[r]=0)}function y(t,n,r,i,o,a,s){!0===s?e.vertexAttribIPointer(t,n,r,o,a):e.vertexAttribPointer(t,n,r,i,o,a)}function b(){x(),u=!0,c!==l&&(c=l,d(c.object))}function x(){l.geometry=null,l.program=null,l.wireframe=!1}return{setup:function(i,l,h,b,x){let w=!1;if(a){const t=function(t,n,i){const a=!0===i.wireframe;let l=s[t.id];void 0===l&&(l={},s[t.id]=l);let c=l[n.id];void 0===c&&(c={},l[n.id]=c);let u=c[a];void 0===u&&(u=p(r.isWebGL2?e.createVertexArray():o.createVertexArrayOES()),c[a]=u);return u}(b,h,l);c!==t&&(c=t,d(c.object)),w=function(e,t,n,r){const i=c.attributes,o=t.attributes;let a=0;const s=n.getAttributes();for(const l in s){if(s[l].location>=0){const t=i[l];let n=o[l];if(void 0===n&&("instanceMatrix"===l&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===l&&e.instanceColor&&(n=e.instanceColor)),void 0===t)return!0;if(t.attribute!==n)return!0;if(n&&t.data!==n.data)return!0;a++}}return c.attributesNum!==a||c.index!==r}(i,b,h,x),w&&function(e,t,n,r){const i={},o=t.attributes;let a=0;const s=n.getAttributes();for(const l in s){if(s[l].location>=0){let t=o[l];void 0===t&&("instanceMatrix"===l&&e.instanceMatrix&&(t=e.instanceMatrix),"instanceColor"===l&&e.instanceColor&&(t=e.instanceColor));const n={};n.attribute=t,t&&t.data&&(n.data=t.data),i[l]=n,a++}}c.attributes=i,c.attributesNum=a,c.index=r}(i,b,h,x)}else{const e=!0===l.wireframe;c.geometry===b.id&&c.program===h.id&&c.wireframe===e||(c.geometry=b.id,c.program=h.id,c.wireframe=e,w=!0)}null!==x&&n.update(x,e.ELEMENT_ARRAY_BUFFER),(w||u)&&(u=!1,function(i,o,a,s){if
vendor: 5,097 bytes, line 2
2(!1===r.isWebGL2&&(i.isInstancedMesh||s.isInstancedBufferGeometry)&&null===t.get("ANGLE_instanced_arrays"))return;f();const l=s.attributes,c=a.getAttributes(),u=o.defaultAttributeValues;for(const t in c){const o=c[t];if(o.location>=0){let a=l[t];if(void 0===a&&("instanceMatrix"===t&&i.instanceMatrix&&(a=i.instanceMatrix),"instanceColor"===t&&i.instanceColor&&(a=i.instanceColor)),void 0!==a){const t=a.normalized,l=a.itemSize,c=n.get(a);if(void 0===c)continue;const u=c.buffer,d=c.type,h=c.bytesPerElement,p=!0===r.isWebGL2&&(d===e.INT||d===e.UNSIGNED_INT||a.gpuType===Sn);if(a.isInterleavedBufferAttribute){const n=a.data,r=n.stride,c=a.offset;if(n.isInstancedInterleavedBuffer){for(let e=0;e<o.locationSize;e++)g(o.location+e,n.meshPerAttribute);!0!==i.isInstancedMesh&&void 0===s._maxInstanceCount&&(s._maxInstanceCount=n.meshPerAttribute*n.count)}else for(let e=0;e<o.locationSize;e++)m(o.location+e);e.bindBuffer(e.ARRAY_BUFFER,u);for(let e=0;e<o.locationSize;e++)y(o.location+e,l/o.locationSize,d,t,r*h,(c+l/o.locationSize*e)*h,p)}else{if(a.isInstancedBufferAttribute){for(let e=0;e<o.locationSize;e++)g(o.location+e,a.meshPerAttribute);!0!==i.isInstancedMesh&&void 0===s._maxInstanceCount&&(s._maxInstanceCount=a.meshPerAttribute*a.count)}else for(let e=0;e<o.locationSize;e++)m(o.location+e);e.bindBuffer(e.ARRAY_BUFFER,u);for(let e=0;e<o.locationSize;e++)y(o.location+e,l/o.locationSize,d,t,l*h,l/o.locationSize*e*h,p)}}else if(void 0!==u){const n=u[t];if(void 0!==n)switch(n.length){case 2:e.vertexAttrib2fv(o.location,n);break;case 3:e.vertexAttrib3fv(o.location,n);break;case 4:e.vertexAttrib4fv(o.location,n);break;default:e.vertexAttrib1fv(o.location,n)}}}}v()}(i,l,h,b),null!==x&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,n.get(x).buffer))},reset:b,resetDefaultState:x,dispose:function(){b();for(const e in s){const t=s[e];for(const e in t){const n=t[e];for(const e in n)h(n[e].object),delete n[e];delete t[e]}delete s[e]}},releaseStatesOfGeometry:function(e){if(void 0===s[e.id])return;const t=s[e.id];for(const n in t){const e=t[n];for(const t in e)h(e[t].object),delete e[t];delete t[n]}delete s[e.id]},releaseStatesOfProgram:function(e){for(const t in s){const n=s[t];if(void 0===n[e.id])continue;const r=n[e.id];for(const e in r)h(r[e].object),delete r[e];delete n[e.id]}},initAttributes:f,enableAttribute:m,disableUnusedAttributes:v}}function ja(e,t,n,r){const i=r.isWebGL2;let o;this.setMode=function(e){o=e},this.render=function(t,r){e.drawArrays(o,t,r),n.update(r,o,1)},this.renderInstances=function(r,a,s){if(0===s)return;let l,c;if(i)l=e,c="drawArraysInstanced";else if(l=t.get("ANGLE_instanced_arrays"),c="drawArraysInstancedANGLE",null===l)return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");l[c](o,r,a,s),n.update(a,o,s)},this.renderMultiDraw=function(e,r,i){if(0===i)return;const a=t.get("WEBGL_multi_draw");if(null===a)for(let t=0;t<i;t++)this.render(e[t],r[t]);else{a.multiDrawArraysWEBGL(o,e,0,r,0,i);let t=0;for(let e=0;e<i;e++)t+=r[e];n.update(t,o,1)}}}function Fa(e,t,n){let r;function i(t){if("highp"===t){if(e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o="undefined"!==typeof WebGL2RenderingContext&&"WebGL2RenderingContext"===e.constructor.name;let a=void 0!==n.precision?n.precision:"highp";const s=i(a);s!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",s,"instead."),a=s);const l=o||t.has("WEBGL_draw_buffers"),c=!0===n.logarithmicDepthBuffer,u=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),d=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),p=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),f=e.getParameter(e.MAX_VERTEX_ATTRIBS),m=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),g=e.getParameter(e.MAX_VARYING_VECTORS),v=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),y=d>0,b=o||t.has("OES_texture_float");return{isWebGL2:o,drawBuffers:l,getMaxAnisotropy:function(){if(void 0!==r)return r;if(!0===t.has("EXT_texture_filter_anisotropic")){const n=t.get("EXT_texture_filter_anisotropic");r=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r},getMaxPrecision:i,precision:a,logarithmicDepthBuffer:c,maxTextures:u,maxVertexTextures:d,maxTextureSize:h,maxCubemapSize:p,maxAttributes:f,maxVertexUniforms:m,maxVaryings:g,maxFragmentUniforms:v,vertexTextures:y,floatFragmentTextures:b,floatVertexTextures:y&&b,maxSamples:o?e.getParameter(e.MAX_SAMPLES):0}}function Ba(e){const t=this;let n=null,r=0,i=!1,o=!1;const a=new Ea,s=new Mr,l={value:null,needsUpdate:!1};function c(e,n,r,i){const o=null!==e?e.length:0;let c=null;if(0!==o){if(c=l.value,!0!==i||null===c){const t=r+4*o,i=n.matrixWorldInverse;s.getNormalMatrix(i),(null===c||c.length<t)&&(c=new Float32Array(t));for(let n=0,l=r;n!==o;
vendor: 17,384 bytes, line 2
2++n,l+=4)a.copy(e[n]).applyMatrix4(i,s),a.normal.toArray(c,l),c[l+3]=a.constant}l.value=c,l.needsUpdate=!0}return t.numPlanes=o,t.numIntersection=0,c}this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){const n=0!==e.length||t||0!==r||i;return i=t,r=e.length,n},this.beginShadows=function(){o=!0,c(null)},this.endShadows=function(){o=!1},this.setGlobalState=function(e,t){n=c(e,t,0)},this.setState=function(a,s,u){const d=a.clippingPlanes,h=a.clipIntersection,p=a.clipShadows,f=e.get(a);if(!i||null===d||0===d.length||o&&!p)o?c(null):function(){l.value!==n&&(l.value=n,l.needsUpdate=r>0);t.numPlanes=r,t.numIntersection=0}();else{const e=o?0:r,t=4*e;let i=f.clippingState||null;l.value=i,i=c(d,s,t,u);for(let r=0;r!==t;++r)i[r]=n[r];f.clippingState=i,this.numIntersection=h?this.numPlanes:0,this.numPlanes+=e}}}function za(e){let t=new WeakMap;function n(e,t){return 303===t?e.mapping=cn:t===dn&&(e.mapping=un),e}function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const o=i.mapping;if(303===o||o===dn){if(t.has(i)){return n(t.get(i).texture,i.mapping)}{const o=i.image;if(o&&o.height>0){const a=new ba(o.height);return a.fromEquirectangularTexture(e,i),t.set(i,a),i.addEventListener("dispose",r),n(a.texture,i.mapping)}return null}}}return i},dispose:function(){t=new WeakMap}}}class Ha extends da{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.1,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2e3;super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=i,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(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(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(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const 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;let i=n-e,o=n+e,a=r+t,s=r-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=e*this.view.offsetX,o=i+e*this.view.width,a-=t*this.view.offsetY,s=a-t*this.view.height}this.projectionMatrix.makeOrthographic(i,o,a,s,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(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}}const Va=[.125,.215,.35,.446,.526,.582],Wa=20,Ga=new Ha,qa=new yo;let Xa=null,Ya=0,Za=0;const Ka=(1+Math.sqrt(5))/2,$a=1/Ka,Ja=[new Jr(1,1,1),new Jr(-1,1,1),new Jr(1,1,-1),new Jr(-1,1,-1),new Jr(0,Ka,$a),new Jr(0,Ka,-$a),new Jr($a,0,Ka),new Jr(-$a,0,Ka),new Jr(Ka,$a,0),new Jr(-Ka,$a,0)];class Qa{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100;Xa=this._renderer.getRenderTarget(),Ya=this._renderer.getActiveCubeFace(),Za=this._renderer.getActiveMipmapLevel(),this._setSize(256);const i=this._allocateTargets();return i.depthBuffer=!0,this._sceneToCubeUV(e,n,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._fromTexture(e,t)}fromCubemap(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=rs(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=ns(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(Xa,Ya,Za),e.scissorTest=!1,ts(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===cn||e.mapping===un?this._setSize(0===e.image.length?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),Xa=this._renderer.getRenderTarget(),Ya=this._renderer.getActiveCubeFace(),Za=this._renderer.getActiveMipmapLevel();const n=t||this._allocateTargets();return this._textureToCubeUV(e,n),this._applyPMREM(n),this._cleanup(n),n}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,n={magFilter:bn,minFilter:bn,generateMipmaps:!1,type:An,format:Cn,colorSpace:Vn,depthBuffer:!1},r=es(e,t,n);if(null===this._pingPongRenderTarget||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){null!==this._pingPongRenderTarget&&this._dispose(),this._pingPongRenderTarget=es(e,t,n);const{_lodMax:r}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=function(e){const t=[],n=[],r=[];let i=e;const o=e-4+1+Va.length;for(let a=0;a<o;a++){const o=Math.pow(2,i);n.push(o);let s=1/o;a>e-4?s=Va[a-e+4-1]:0===a&&(s=0),r.push(s);const l=1/(o-2),c=-l,u=1+l,d=[c,c,u,c,u,u,c,c,u,u,c,u],h=6,p=6,f=3,m=2,g=1,v=new Float32Array(f*p*h),y=new Float32Array(m*p*h),b=new Float32Array(g*p*h);for(let e=0;e<h;e++){const t=e%3*2/3-1,n=e>2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];v.set(r,f*p*e),y.set(d,m*p*e);const i=[e,e,e,e,e,e];b.set(i,g*p*e)}const x=new Fo;x.setAttribute("position",new Oo(v,f)),x.setAttribute("uv",new Oo(y,m)),x.setAttribute("faceIndex",new Oo(b,g)),t.push(x),i>4&&i--}return{lodPlanes:t,sizeLods:n,sigmas:r}}(r)),this._blurMaterial=function(e,t,n){const r=new Float32Array(Wa),i=new Jr(0,1,0),o=new ua({name:"SphericalGaussianBlur",defines:{n:Wa,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:"".concat(e,".0")},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1});return o}(r,e,t)}return r}_compileMaterial(e){const t=new ra(this._lodPlanes[0],e);this._renderer.compile(t,Ga)}_sceneToCubeUV(e,t,n,r){const i=new ma(90,1,t,n),o=[1,-1,1,1,1,1],a=[1,1,1,-1,-1,-1],s=this._renderer,l=s.autoClear,c=s.toneMapping;s.getClearColor(qa),s.toneMapping=Qt,s.autoClear=!1;const u=new _o({name:"PMREM.Background",side:Rt,depthWrite:!1,depthTest:!1}),d=new ra(new oa,u);let h=!1;const p=e.background;p?p.isColor&&(u.color.copy(p),e.background=null,h=!0):(u.color.copy(qa),h=!0);for(let f=0;f<6;f++){const t=f%3;0===t?(i.up.set(0,o[f],0),i.lookAt(a[f],0,0)):1===t?(i.up.set(0,0,o[f]),i.lookAt(0,a[f],0)):(i.up.set(0,o[f],0),i.lookAt(0,0,a[f]));const n=this._cubeSize;ts(r,t*n,f>2?n:0,n,n),s.setRenderTarget(r),h&&s.render(d,i),s.render(e,i)}d.geometry.dispose(),d.material.dispose(),s.toneMapping=c,s.autoClear=l,e.background=p}_textureToCubeUV(e,t){const n=this._renderer,r=e.mapping===cn||e.mapping===un;r?(null===this._cubemapMaterial&&(this._cubemapMaterial=rs()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=ns());const i=r?this._cubemapMaterial:this._equirectMaterial,o=new ra(this._lodPlanes[0],i);i.uniforms.envMap.value=e;const a=this._cubeSize;ts(t,0,0,3*a,2*a),n.setRenderTarget(t),n.render(o,Ga)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;for(let r=1;r<this._lodPlanes.length;r++){const t=Math.sqrt(this._sigmas[r]*this._sigmas[r]-this._sigmas[r-1]*this._sigmas[r-1]),n=Ja[(r-1)%Ja.length];this._blur(e,r-1,r,t,n)}t.autoClear=n}_blur(e,t,n,r,i){const o=this._pingPongRenderTarget;this._halfBlur(e,o,t,n,r,"latitudinal",i),this._halfBlur(o,e,n,n,r,"longitudinal",i)}_halfBlur(e,t,n,r,i,o,a){const s=this._renderer,l=this._blurMaterial;"latitudinal"!==o&&"longitudinal"!==o&&console.error("blur direction must be either latitudinal or longitudinal!");const c=new ra(this._lodPlanes[r],l),u=l.uniforms,d=this._sizeLods[n]-1,h=isFinite(i)?Math.PI/(2*d):2*Math.PI/39,p=i/h,f=isFinite(i)?1+Math.floor(3*p):Wa;f>Wa&&console.warn("sigmaRadians, ".concat(i,", is too large and will clip, as it requested ").concat(f," samples when the maximum is set to ").concat(Wa));const m=[];let g=0;for(let b=0;b<Wa;++b){const e=b/p,t=Math.exp(-e*e/2);m.push(t),0===b?g+=t:b<f&&(g+=2*t)}for(let b=0;b<m.length;b++)m[b]=m[b]/g;u.envMap.value=e.texture,u.samples.value=f,u.weights.value=m,u.latitudinal.value="latitudinal"===o,a&&(u.poleAxis.value=a);const{_lodMax:v}=this;u.dTheta.value=h,u.mipInt.value=v-n;const y=this._sizeLods[r];ts(t,3*y*(r>v-4?r-v+4:0),4*(this._cubeSize-y),3*y,2*y),s.setRenderTarget(t),s.render(c,Ga)}}function es(e,t,n){const r=new Yr(e,t,n);return r.texture.mapping=hn,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function ts(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function ns(){return new ua({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function rs(){return new ua({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function is(e){let t=new WeakMap,n=null;function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const o=i.mapping,a=303===o||o===dn,s=o===cn||o===un;if(a||s){if(i.isRenderTargetTexture&&!0===i.needsPMREMUpdate){i.needsPMREMUpdate=!1;let r=t.get(i);return null===n&&(n=new Qa(e)),r=a?n.fromEquirectangular(i,r):n.fromCubemap(i,r),t.set(i,r),r.texture}if(t.has(i))return t.get(i).texture;{const o=i.image;if(a&&o&&o.height>0||s&&o&&function(e){let t=0;const n=6;for(let r=0;r<n;r++)void 0!==e[r]&&t++;return t===n}(o)){null===n&&(n=new Qa(e));const o=a?n.fromEquirectangular(i):n.fromCubemap(i);return t.set(i,o),i.addEventListener("dispose",r),o.texture}return null}}}return i},dispose:function(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function os(e){const t={};
vendor: 7,490 bytes, line 2
2function n(n){if(void 0!==t[n])return t[n];let 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,r}return{has:function(e){return null!==n(e)},init:function(e){e.isWebGL2?(n("EXT_color_buffer_float"),n("WEBGL_clip_cull_distance")):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture")},get:function(e){const t=n(e);return null===t&&console.warn("THREE.WebGLRenderer: "+e+" extension not supported."),t}}}function as(e,t,n,r){const i={},o=new WeakMap;function a(e){const s=e.target;null!==s.index&&t.remove(s.index);for(const n in s.attributes)t.remove(s.attributes[n]);for(const n in s.morphAttributes){const e=s.morphAttributes[n];for(let n=0,r=e.length;n<r;n++)t.remove(e[n])}s.removeEventListener("dispose",a),delete i[s.id];const l=o.get(s);l&&(t.remove(l),o.delete(s)),r.releaseStatesOfGeometry(s),!0===s.isInstancedBufferGeometry&&delete s._maxInstanceCount,n.memory.geometries--}function s(e){const n=[],r=e.index,i=e.attributes.position;let a=0;if(null!==r){const e=r.array;a=r.version;for(let t=0,r=e.length;t<r;t+=3){const r=e[t+0],i=e[t+1],o=e[t+2];n.push(r,i,i,o,o,r)}}else{if(void 0===i)return;{const e=i.array;a=i.version;for(let t=0,r=e.length/3-1;t<r;t+=3){const e=t+0,r=t+1,i=t+2;n.push(e,r,r,i,i,e)}}}const s=new(Ar(n)?Ro:Co)(n,1);s.version=a;const l=o.get(e);l&&t.remove(l),o.set(e,s)}return{get:function(e,t){return!0===i[t.id]||(t.addEventListener("dispose",a),i[t.id]=!0,n.memory.geometries++),t},update:function(n){const r=n.attributes;for(const o in r)t.update(r[o],e.ARRAY_BUFFER);const i=n.morphAttributes;for(const o in i){const n=i[o];for(let r=0,i=n.length;r<i;r++)t.update(n[r],e.ARRAY_BUFFER)}},getWireframeAttribute:function(e){const t=o.get(e);if(t){const n=e.index;null!==n&&t.version<n.version&&s(e)}else s(e);return o.get(e)}}}function ss(e,t,n,r){const i=r.isWebGL2;let o,a,s;this.setMode=function(e){o=e},this.setIndex=function(e){a=e.type,s=e.bytesPerElement},this.render=function(t,r){e.drawElements(o,r,a,t*s),n.update(r,o,1)},this.renderInstances=function(r,l,c){if(0===c)return;let u,d;if(i)u=e,d="drawElementsInstanced";else if(u=t.get("ANGLE_instanced_arrays"),d="drawElementsInstancedANGLE",null===u)return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");u[d](o,l,a,r*s,c),n.update(l,o,c)},this.renderMultiDraw=function(e,r,i){if(0===i)return;const l=t.get("WEBGL_multi_draw");if(null===l)for(let t=0;t<i;t++)this.render(e[t]/s,r[t]);else{l.multiDrawElementsWEBGL(o,r,0,a,e,0,i);let t=0;for(let e=0;e<i;e++)t+=r[e];n.update(t,o,1)}}}function ls(e){const 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.calls=0,t.triangles=0,t.points=0,t.lines=0},update:function(n,r,i){switch(t.calls++,r){case e.TRIANGLES:t.triangles+=i*(n/3);break;case e.LINES:t.lines+=i*(n/2);break;case e.LINE_STRIP:t.lines+=i*(n-1);break;case e.LINE_LOOP:t.lines+=i*n;break;case e.POINTS:t.points+=i*n;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",r)}}}}function cs(e,t){return e[0]-t[0]}function us(e,t){return Math.abs(t[1])-Math.abs(e[1])}function ds(e,t,n){const r={},i=new Float32Array(8),o=new WeakMap,a=new qr,s=[];for(let l=0;l<8;l++)s[l]=[l,0];return{update:function(l,c,u){const d=l.morphTargetInfluences;if(!0===t.isWebGL2){const h=c.morphAttributes.position||c.morphAttributes.normal||c.morphAttributes.color,p=void 0!==h?h.length:0;let f=o.get(c);if(void 0===f||f.count!==p){void 0!==f&&f.texture.dispose();const m=void 0!==c.morphAttributes.position,g=void 0!==c.morphAttributes.normal,v=void 0!==c.morphAttributes.color,y=c.morphAttributes.position||[],b=c.morphAttributes.normal||[],x=c.morphAttributes.color||[];let w=0;!0===m&&(w=1),!0===g&&(w=2),!0===v&&(w=3);let _=c.attributes.position.count*w,E=1;_>t.maxTextureSize&&(E=Math.ceil(_/t.maxTextureSize),_=t.maxTextureSize);const S=new Float32Array(_*E*4*p),M=new Zr(S,_,E,p);M.type=Tn,M.needsUpdate=!0;const T=4*w;for(let O=0;O<p;O++){const C=y[O],R=b[O],P=x[O],I=_*E*4*O;for(let L=0;L<C.count;L++){const k=L*T;!0===m&&(a.fromBufferAttribute(C,L),S[I+k+0]=a.x,S[I+k+1]=a.y,S[I+k+2]=a.z,S[I+k+3]=0),!0===g&&(a.fromBufferAttribute(R,L),S[I+k+4]=a.x,S[I+k+5]=a.y,S[I+k+6]=a.z,S[I+k+7]=0),!0===v&&(a.fromBufferAttribute(P,L),S[I+k+8]=a.x,S[I+k+9]=a.y,S[I+k+10]=a.z,S[I+k+11]=4===P.itemSize?a.w:1)}}function A(){M.dispose(),o.delete(c),c.removeEventListener("dispose",A)}f={count:p,texture:M,size:new Sr(_,E)},o.set(c,f),c.addEventListener("dispose",A)}if(!0===l.isInstancedMesh&&null!==l.morphTexture)u.getUniforms().setValue(e,"morphTexture",l.morphTexture,n);else{let D=0;for(let U=0;U<d.length;U++)D+=d[U];const N=c.morphTargetsRelative?1:1-D;u.getUniforms().setValue(e,"morphTargetBaseInfluence",N),u.getUniforms().setValue(e,"morphTargetInfluences",d)}u.getUniforms().setValue(e,"morphTargetsTexture",f.texture,n),u.getUniforms().setValue(e,"morphTargetsTextureSize",f.size)}else{const j=void 0===d?0:d.length;let F=r[c.id];if(void 0===F||F.length!==j){F=[];for(let W=0;W<j;W++)F[W]=[W,0];r[c.id]=F}for(let G=0;G<j;G++){const q=F[G];q[0]=G,q[1]=d[G]}F.sort(us);for(let X=0;X<8;X++)X<j&&F[X][1]?(s[X][0]=F[X][0],s[X][1]=F[X][1]):(s[X][0]=Number.MAX_SAFE_INTEGER,s[X][1]=0);s.sort(cs);const B=c.morphAttributes.position,z=c.morphAttributes.normal;let H=0;for(let Y=0;Y<8;Y++){const Z=s[Y],K=Z[0],$=Z[1];K!==Number.MAX_SAFE_INTEGER&&$?(B&&c.getAttribute("morphTarget"+Y)!==B[K]&&c.setAttribute("morphTarget"+Y,B[K]),z&&c.getAttribute("morphNormal"+Y)!==z[K]&&c.setAttribute("morphNormal"+Y,z[K]),i[Y]=$,H+=$):(B&&!0===c.hasAttribute("morphTarget"+Y)&&c.deleteAttribute("morphTarget"+Y),z&&!0===c.hasAttribute("morphNormal"+Y)&&c.deleteAttribute("morphNormal"+Y),i[Y]=0)}const V=c.morphTargetsRelative?1:1-H;u.getUniforms().setValue(e,"morphTargetBaseInfluence",V),u.getUniforms().setValue(e,"morphTargetInfluences",i)}}}}function hs(e,t,n,r){let i=new WeakMap;function o(e){const t=e.target;t.removeEventListener("dispose",o),n.remove(t.instanceMatrix),null!==t.instanceColor&&n.remove(t.instanceColor)}return{update:function(a){const s=r.render.frame,l=a.geometry,c=t.get(a,l);if(i.get(c)!==s&&(t.update(c),i.set(c,s)),a.isInstancedMesh&&(!1===a.hasEventListener("dispose",o)&&a.addEventListener("dispose",o),i.get(a)!==s&&(n.update(a.instanceMatrix,e.ARRAY_BUFFER),null!==a.instanceColor&&n.update(a.instanceColor,e.ARRAY_BUFFER),i.set(a,s))),a.isSkinnedMesh){const e=a.skeleton;
vendor: 4,709 bytes, line 2
2i.get(e)!==s&&(e.update(),i.set(e,s))}return c},dispose:function(){i=new WeakMap}}}class ps extends Gr{constructor(e,t,n,r,i,o,a,s,l,c){if((c=void 0!==c?c:Rn)!==Rn&&c!==Pn)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===Rn&&(n=Mn),void 0===n&&c===Pn&&(n=On),super(null,r,i,o,a,s,c,n,l),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=void 0!==a?a:gn,this.minFilter=void 0!==s?s:gn,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const t=super.toJSON(e);return null!==this.compareFunction&&(t.compareFunction=this.compareFunction),t}}const fs=new Gr,ms=new ps(1,1);ms.compareFunction=515;const gs=new Zr,vs=new Kr,ys=new ya,bs=[],xs=[],ws=new Float32Array(16),_s=new Float32Array(9),Es=new Float32Array(4);function Ss(e,t,n){const r=e[0];if(r<=0||r>0)return e;const i=t*n;let o=bs[i];if(void 0===o&&(o=new Float32Array(i),bs[i]=o),0!==t){r.toArray(o,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(o,i)}return o}function Ms(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Ts(e,t){for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}function As(e,t){let n=xs[t];void 0===n&&(n=new Int32Array(t),xs[t]=n);for(let r=0;r!==t;++r)n[r]=e.allocateTextureUnit();return n}function Os(e,t){const n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function Cs(e,t){const 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(Ms(n,t))return;e.uniform2fv(this.addr,t),Ts(n,t)}}function Rs(e,t){const 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(Ms(n,t))return;e.uniform3fv(this.addr,t),Ts(n,t)}}function Ps(e,t){const 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(Ms(n,t))return;e.uniform4fv(this.addr,t),Ts(n,t)}}function Is(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(Ms(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),Ts(n,t)}else{if(Ms(n,r))return;Es.set(r),e.uniformMatrix2fv(this.addr,!1,Es),Ts(n,r)}}function Ls(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(Ms(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),Ts(n,t)}else{if(Ms(n,r))return;_s.set(r),e.uniformMatrix3fv(this.addr,!1,_s),Ts(n,r)}}function ks(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(Ms(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),Ts(n,t)}else{if(Ms(n,r))return;ws.set(r),e.uniformMatrix4fv(this.addr,!1,ws),Ts(n,r)}}function Ds(e,t){const n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function Ns(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2i(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Ms(n,t))return;e.uniform2iv(this.addr,t),Ts(n,t)}}function Us(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3i(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(Ms(n,t))return;e.uniform3iv(this.addr,t),Ts(n,t)}}function js(e,t){const 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.uniform4i(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(Ms(n,t))return;e.uniform4iv(this.addr,t),Ts(n,t)}}function Fs(e,t){const n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}function Bs(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2ui(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Ms(n,t))return;e.uniform2uiv(this.addr,t),Ts(n,t)}}function zs(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3ui(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(Ms(n,t))return;e.uniform3uiv(this.addr,t),Ts(n,t)}}function Hs(e,t){const 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.uniform4ui(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(Ms(n,t))return;e.uniform4uiv(this.addr,t),Ts(n,t)}}function Vs(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i);const o=this.type===e.SAMPLER_2D_SHADOW?ms:fs;n.setTexture2D(t||o,i)}function Ws(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture3D(t||vs,i)}function Gs(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTextureCube(t||ys,i)}
vendor: 4,965 bytes, line 2
2function qs(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture2DArray(t||gs,i)}function Xs(e,t){e.uniform1fv(this.addr,t)}function Ys(e,t){const n=Ss(t,this.size,2);e.uniform2fv(this.addr,n)}function Zs(e,t){const n=Ss(t,this.size,3);e.uniform3fv(this.addr,n)}function Ks(e,t){const n=Ss(t,this.size,4);e.uniform4fv(this.addr,n)}function $s(e,t){const n=Ss(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,n)}function Js(e,t){const n=Ss(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,n)}function Qs(e,t){const n=Ss(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,n)}function el(e,t){e.uniform1iv(this.addr,t)}function tl(e,t){e.uniform2iv(this.addr,t)}function nl(e,t){e.uniform3iv(this.addr,t)}function rl(e,t){e.uniform4iv(this.addr,t)}function il(e,t){e.uniform1uiv(this.addr,t)}function ol(e,t){e.uniform2uiv(this.addr,t)}function al(e,t){e.uniform3uiv(this.addr,t)}function sl(e,t){e.uniform4uiv(this.addr,t)}function ll(e,t,n){const r=this.cache,i=t.length,o=As(n,i);Ms(r,o)||(e.uniform1iv(this.addr,o),Ts(r,o));for(let a=0;a!==i;++a)n.setTexture2D(t[a]||fs,o[a])}function cl(e,t,n){const r=this.cache,i=t.length,o=As(n,i);Ms(r,o)||(e.uniform1iv(this.addr,o),Ts(r,o));for(let a=0;a!==i;++a)n.setTexture3D(t[a]||vs,o[a])}function ul(e,t,n){const r=this.cache,i=t.length,o=As(n,i);Ms(r,o)||(e.uniform1iv(this.addr,o),Ts(r,o));for(let a=0;a!==i;++a)n.setTextureCube(t[a]||ys,o[a])}function dl(e,t,n){const r=this.cache,i=t.length,o=As(n,i);Ms(r,o)||(e.uniform1iv(this.addr,o),Ts(r,o));for(let a=0;a!==i;++a)n.setTexture2DArray(t[a]||gs,o[a])}class hl{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.setValue=function(e){switch(e){case 5126:return Os;case 35664:return Cs;case 35665:return Rs;case 35666:return Ps;case 35674:return Is;case 35675:return Ls;case 35676:return ks;case 5124:case 35670:return Ds;case 35667:case 35671:return Ns;case 35668:case 35672:return Us;case 35669:case 35673:return js;case 5125:return Fs;case 36294:return Bs;case 36295:return zs;case 36296:return Hs;case 35678:case 36198:case 36298:case 36306:case 35682:return Vs;case 35679:case 36299:case 36307:return Ws;case 35680:case 36300:case 36308:case 36293:return Gs;case 36289:case 36303:case 36311:case 36292:return qs}}(t.type)}}class pl{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.size=t.size,this.setValue=function(e){switch(e){case 5126:return Xs;case 35664:return Ys;case 35665:return Zs;case 35666:return Ks;case 35674:return $s;case 35675:return Js;case 35676:return Qs;case 5124:case 35670:return el;case 35667:case 35671:return tl;case 35668:case 35672:return nl;case 35669:case 35673:return rl;case 5125:return il;case 36294:return ol;case 36295:return al;case 36296:return sl;case 35678:case 36198:case 36298:case 36306:case 35682:return ll;case 35679:case 36299:case 36307:return cl;case 35680:case 36300:case 36308:case 36293:return ul;case 36289:case 36303:case 36311:case 36292:return dl}}(t.type)}}class fl{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,n){const r=this.seq;for(let i=0,o=r.length;i!==o;++i){const o=r[i];o.setValue(e,t[o.id],n)}}}const ml=/(\w+)(\])?(\[|\.)?/g;function gl(e,t){e.seq.push(t),e.map[t.id]=t}function vl(e,t,n){const r=e.name,i=r.length;for(ml.lastIndex=0;;){const o=ml.exec(r),a=ml.lastIndex;let s=o[1];const l="]"===o[2],c=o[3];if(l&&(s|=0),void 0===c||"["===c&&a+2===i){gl(n,void 0===c?new hl(s,e,t):new pl(s,e,t));break}{let e=n.map[s];void 0===e&&(e=new fl(s),gl(n,e)),n=e}}}class yl{constructor(e,t){this.seq=[],this.map={};const n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let r=0;r<n;++r){const n=e.getActiveUniform(t,r);vl(n,e.getUniformLocation(t,n.name),this)}}setValue(e,t,n,r){const i=this.map[t];void 0!==i&&i.setValue(e,n,r)}setOptional(e,t,n){const r=t[n];void 0!==r&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,o=t.length;i!==o;++i){const o=t[i],a=n[o.id];!1!==a.needsUpdate&&o.setValue(e,a.value,r)}}static seqWithValue(e,t){const n=[];for(let r=0,i=e.length;r!==i;++r){const i=e[r];i.id in t&&n.push(i)}return n}}function bl(e,t,n){const r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}const xl=37297;let wl=0;function _l(e,t,n){const r=e.getShaderParameter(t,e.COMPILE_STATUS),i=e.getShaderInfoLog(t).trim();if(r&&""===i)return"";const o=/ERROR: 0:(\d+)/.exec(i);if(o){const r=parseInt(o[1]);return n.toUpperCase()+"\n\n"+i+"\n\n"+function(e,t){const n=e.split("\n"),r=[],i=Math.max(t-6,0),o=Math.min(t+6,n.length);for(let a=i;a<o;a++){const e=a+1;r.push("".concat(e===t?">":" "," ").concat(e,": ").concat(n[a]))}return r.join("\n")}(e.getShaderSource(t),r)}return i}function El(e,t){const n=function(e){const t=Nr.getPrimaries(Nr.workingColorSpace),n=Nr.getPrimaries(e);let r;switch(t===n?r="":t===Zn&&n===Yn?r="LinearDisplayP3ToLinearSRGB":t===Yn&&n===Zn&&(r="LinearSRGBToLinearDisplayP3"),e){case Vn:case Gn:return[r,"LinearTransferOETF"];
2case Hn:case Wn:return[r,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",e),[r,"LinearTransferOETF"]}}(t);return"vec4 ".concat(e,"( vec4 value ) { return ").concat(n[0],"( ").concat(n[1],"( value ) ); }")}function Sl(e,t){let n;switch(t){case en:n="Linear";break;case tn:n="Reinhard";break;case nn:n="OptimizedCineon";break;case rn:n="ACESFilmic";break;case an:n="AgX";break;case sn:n="Neutral";break;case on:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function Ml(e){return""!==e}function Tl(e,t){const n=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).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_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function Al(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}const Ol=/^[ \t]*#include +<([\w\d./]+)>/gm;function Cl(e){return e.replace(Ol,Pl)}const Rl=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function Pl(e,t){let n=Ra[t];if(void 0===n){const e=Rl.get(t);if(void 0===e)throw new Error("Can not resolve #include <"+t+">");n=Ra[e],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',t,e)}return Cl(n)}const Il=/#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 Ll(e){return e.replace(Il,kl)}function kl(e,t,n,r){let i="";for(let o=parseInt(t);o<parseInt(n);o++)i+=r.replace(/\[\s*i\s*\]/g,"[ "+o+" ]").replace(/UNROLLED_LOOP_INDEX/g,o);return i}function Dl(e){let t="precision ".concat(e.precision," float;\n\tprecision ").concat(e.precision," int;\n\tprecision ").concat(e.precision," sampler2D;\n\tprecision ").concat(e.precision," samplerCube;\n\t");return e.isWebGL2&&(t+="precision ".concat(e.precision," sampler3D;\n\t\tprecision ").concat(e.precision," sampler2DArray;\n\t\tprecision ").concat(e.precision," sampler2DShadow;\n\t\tprecision ").concat(e.precision," samplerCubeShadow;\n\t\tprecision ").concat(e.precision," sampler2DArrayShadow;\n\t\tprecision ").concat(e.precision," isampler2D;\n\t\tprecision ").concat(e.precision," isampler3D;\n\t\tprecision ").concat(e.precision," isamplerCube;\n\t\tprecision ").concat(e.precision," isampler2DArray;\n\t\tprecision ").concat(e.precision," usampler2D;\n\t\tprecision ").concat(e.precision," usampler3D;\n\t\tprecision ").concat(e.precision," usamplerCube;\n\t\tprecision ").concat(e.precision," usampler2DArray;\n\t\t")),"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 Nl(e,t,n,r){const i=e.getContext(),o=n.defines;let a=n.vertexShader,s=n.fragmentShader;const l=function(e){let t="SHADOWMAP_TYPE_BASIC";return e.shadowMapType===Tt?t="SHADOWMAP_TYPE_PCF":e.shadowMapType===At?t="SHADOWMAP_TYPE_PCF_SOFT":e.shadowMapType===Ot&&(t="SHADOWMAP_TYPE_VSM"),t}(n),c=function(e){let t="ENVMAP_TYPE_CUBE";if(e.envMap)switch(e.envMapMode){case cn:case un:t="ENVMAP_TYPE_CUBE";break;case hn:t="ENVMAP_TYPE_CUBE_UV"}return t}(n),u=function(e){let t="ENVMAP_MODE_REFLECTION";e.envMap&&e.envMapMode===un&&(t="ENVMAP_MODE_REFRACTION");return t}(n),d=function(e){let t="ENVMAP_BLENDING_NONE";if(e.envMap)switch(e.combine){case Kt:t="ENVMAP_BLENDING_MULTIPLY";break;case $t:t="ENVMAP_BLENDING_MIX";break;case Jt:t="ENVMAP_BLENDING_ADD"}return t}(n),h=function(e){const t=e.envMapCubeUVHeight;if(null===t)return null;const n=Math.log2(t)-2,r=1/t;return{texelWidth:1/(3*Math.max(Math.pow(2,n),112)),texelHeight:r,max
vendor: 11,665 bytes, line 2
2Mip:n}}(n),p=n.isWebGL2?"":function(e){return[e.extensionDerivatives||e.envMapCubeUVHeight||e.bumpMap||e.normalMapTangentSpace||e.clearcoatNormalMap||e.flatShading||e.alphaToCoverage||"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.transmission)&&e.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(Ml).join("\n")}(n),f=function(e){return[e.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",e.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(Ml).join("\n")}(n),m=function(e){const t=[];for(const n in e){const r=e[n];!1!==r&&t.push("#define "+n+" "+r)}return t.join("\n")}(o),g=i.createProgram();let v,y,b=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(v=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m].filter(Ml).join("\n"),v.length>0&&(v+="\n"),y=[p,"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m].filter(Ml).join("\n"),y.length>0&&(y+="\n")):(v=[Dl(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.instancingMorph?"#define USE_INSTANCING_MORPH":"",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 "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",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","#ifdef USE_INSTANCING_MORPH","\tuniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","\tattribute vec2 uv1;","#endif","#ifdef USE_UV2","\tattribute vec2 uv2;","#endif","#ifdef USE_UV3","\tattribute vec2 uv3;","#endif","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Ml).join("\n"),y=[p,Dl(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+d:"",h?"#define CUBEUV_TEXEL_WIDTH "+h.texelWidth:"",h?"#define CUBEUV_TEXEL_HEIGHT "+h.texelHeight:"",h?"#define CUBEUV_MAX_MIP "+h.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==Qt?"#define TONE_MAPPING":"",n.toneMapping!==Qt?Ra.tonemapping_pars_fragment:"",n.toneMapping!==Qt?Sl("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Ra.colorspace_pars_fragment,El("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Ml).join("\n")),a=Cl(a),a=Tl(a,n),a=Al(a,n),s=Cl(s),s=Tl(s,n),s=Al(s,n),a=Ll(a),s=Ll(s),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(b="#version 300 es\n",v=[f,"precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+v,y=["precision mediump sampler2DArray;","#define varying in",n.glslVersion===ar?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===ar?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+y);const x=b+v+a,w=b+y+s,_=bl(i,i.VERTEX_SHADER,x),E=bl(i,i.FRAGMENT_SHADER,w);function S(t){if(e.debug.checkShaderErrors){const n=i.getProgramInfoLog(g).trim(),r
vendor: 4,888 bytes, line 2
2=i.getShaderInfoLog(_).trim(),o=i.getShaderInfoLog(E).trim();let a=!0,s=!0;if(!1===i.getProgramParameter(g,i.LINK_STATUS))if(a=!1,"function"===typeof e.debug.onShaderError)e.debug.onShaderError(i,g,_,E);else{const e=_l(i,_,"vertex"),r=_l(i,E,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(g,i.VALIDATE_STATUS)+"\n\nMaterial Name: "+t.name+"\nMaterial Type: "+t.type+"\n\nProgram Info Log: "+n+"\n"+e+"\n"+r)}else""!==n?console.warn("THREE.WebGLProgram: Program Info Log:",n):""!==r&&""!==o||(s=!1);s&&(t.diagnostics={runnable:a,programLog:n,vertexShader:{log:r,prefix:v},fragmentShader:{log:o,prefix:y}})}i.deleteShader(_),i.deleteShader(E),M=new yl(i,g),T=function(e,t){const n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i<r;i++){const r=e.getActiveAttrib(t,i),o=r.name;let a=1;r.type===e.FLOAT_MAT2&&(a=2),r.type===e.FLOAT_MAT3&&(a=3),r.type===e.FLOAT_MAT4&&(a=4),n[o]={type:r.type,location:e.getAttribLocation(t,o),locationSize:a}}return n}(i,g)}let M,T;i.attachShader(g,_),i.attachShader(g,E),void 0!==n.index0AttributeName?i.bindAttribLocation(g,0,n.index0AttributeName):!0===n.morphTargets&&i.bindAttribLocation(g,0,"position"),i.linkProgram(g),this.getUniforms=function(){return void 0===M&&S(this),M},this.getAttributes=function(){return void 0===T&&S(this),T};let A=!1===n.rendererExtensionParallelShaderCompile;return this.isReady=function(){return!1===A&&(A=i.getProgramParameter(g,xl)),A},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(g),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=wl++,this.cacheKey=t,this.usedTimes=1,this.program=g,this.vertexShader=_,this.fragmentShader=E,this}let Ul=0;class jl{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(n),o=this._getShaderCacheForMaterial(e);return!1===o.has(r)&&(o.add(r),r.usedTimes++),!1===o.has(i)&&(o.add(i),i.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const n of t)n.usedTimes--,0===n.usedTimes&&this.shaderCache.delete(n.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return void 0===n&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return void 0===n&&(n=new Fl(e),t.set(e,n)),n}}class Fl{constructor(e){this.id=Ul++,this.code=e,this.usedTimes=0}}function Bl(e,t,n,r,i,o,a){const s=new Fi,l=new jl,c=new Set,u=[],d=i.isWebGL2,h=i.logarithmicDepthBuffer,p=i.vertexTextures;let f=i.precision;const m={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"};function g(e){return c.add(e),0===e?"uv":"uv".concat(e)}return{getParameters:function(o,s,u,v,y){const b=v.fog,x=y.geometry,w=o.isMeshStandardMaterial?v.environment:null,_=(o.isMeshStandardMaterial?n:t).get(o.envMap||w),E=_&&_.mapping===hn?_.image.height:null,S=m[o.type];null!==o.precision&&(f=i.getMaxPrecision(o.precision),f!==o.precision&&console.warn("THREE.WebGLProgram.getParameters:",o.precision,"not supported, using",f,"instead."));const M=x.morphAttributes.position||x.morphAttributes.normal||x.morphAttributes.color,T=void 0!==M?M.length:0;let A,O,C,R,P=0;if(void 0!==x.morphAttributes.position&&(P=1),void 0!==x.morphAttributes.normal&&(P=2),void 0!==x.morphAttributes.color&&(P=3),S){const e=Ia[S];A=e.vertexShader,O=e.fragmentShader}else A=o.vertexShader,O=o.fragmentShader,l.update(o),C=l.getVertexShaderID(o),R=l.getFragmentShaderID(o);const I=e.getRenderTarget(),L=!0===y.isInstancedMesh,k=!0===y.isBatchedMesh,D=!!o.map,N=!!o.matcap,U=!!_,j=!!o.aoMap,F=!!o.lightMap,B=!!o.bumpMap,z=!!o.normalMap,H=!!o.displacementMap,V=!!o.emissiveMap,W=!!o.metalnessMap,G=!!o.roughnessMap,q=o.anisotropy>0,X=o.clearcoat>0,Y=o.iridescence>0,Z=o.sheen>0,K=o.transmission>0,$=q&&!!o.anisotropyMap,J=X&&!!o.clearcoatMap,Q=X&&!!o.clearcoatNormalMap,ee=X&&!!o.clearcoatRoughnessMap,te=Y&&!!o.iridescenceMap,ne=Y&&!!o.iridescenceThicknessMap,re=Z&&!!o.sheenColorMap,ie=Z&&!!o.sheenRoughnessMap,oe=!!o.specularMap,ae=!!o.specularColorMap,se=!!o.specularIntensityMap,le=K&&!!o.transmissionMap,ce=K&&!!o.thicknessMap,ue=!!o.gradientMap,de=!!o.alphaMap,he=o.alphaTest>0,pe=!!o.alphaHash,fe=!!o.extensions;let me=Qt;
vendor: 32,418 bytes, line 2
2o.toneMapped&&(null!==I&&!0!==I.isXRRenderTarget||(me=e.toneMapping));const ge={isWebGL2:d,shaderID:S,shaderType:o.type,shaderName:o.name,vertexShader:A,fragmentShader:O,defines:o.defines,customVertexShaderID:C,customFragmentShaderID:R,isRawShaderMaterial:!0===o.isRawShaderMaterial,glslVersion:o.glslVersion,precision:f,batching:k,instancing:L,instancingColor:L&&null!==y.instanceColor,instancingMorph:L&&null!==y.morphTexture,supportsVertexTextures:p,outputColorSpace:null===I?e.outputColorSpace:!0===I.isXRRenderTarget?I.texture.colorSpace:Vn,alphaToCoverage:!!o.alphaToCoverage,map:D,matcap:N,envMap:U,envMapMode:U&&_.mapping,envMapCubeUVHeight:E,aoMap:j,lightMap:F,bumpMap:B,normalMap:z,displacementMap:p&&H,emissiveMap:V,normalMapObjectSpace:z&&1===o.normalMapType,normalMapTangentSpace:z&&0===o.normalMapType,metalnessMap:W,roughnessMap:G,anisotropy:q,anisotropyMap:$,clearcoat:X,clearcoatMap:J,clearcoatNormalMap:Q,clearcoatRoughnessMap:ee,iridescence:Y,iridescenceMap:te,iridescenceThicknessMap:ne,sheen:Z,sheenColorMap:re,sheenRoughnessMap:ie,specularMap:oe,specularColorMap:ae,specularIntensityMap:se,transmission:K,transmissionMap:le,thicknessMap:ce,gradientMap:ue,opaque:!1===o.transparent&&1===o.blending&&!1===o.alphaToCoverage,alphaMap:de,alphaTest:he,alphaHash:pe,combine:o.combine,mapUv:D&&g(o.map.channel),aoMapUv:j&&g(o.aoMap.channel),lightMapUv:F&&g(o.lightMap.channel),bumpMapUv:B&&g(o.bumpMap.channel),normalMapUv:z&&g(o.normalMap.channel),displacementMapUv:H&&g(o.displacementMap.channel),emissiveMapUv:V&&g(o.emissiveMap.channel),metalnessMapUv:W&&g(o.metalnessMap.channel),roughnessMapUv:G&&g(o.roughnessMap.channel),anisotropyMapUv:$&&g(o.anisotropyMap.channel),clearcoatMapUv:J&&g(o.clearcoatMap.channel),clearcoatNormalMapUv:Q&&g(o.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:ee&&g(o.clearcoatRoughnessMap.channel),iridescenceMapUv:te&&g(o.iridescenceMap.channel),iridescenceThicknessMapUv:ne&&g(o.iridescenceThicknessMap.channel),sheenColorMapUv:re&&g(o.sheenColorMap.channel),sheenRoughnessMapUv:ie&&g(o.sheenRoughnessMap.channel),specularMapUv:oe&&g(o.specularMap.channel),specularColorMapUv:ae&&g(o.specularColorMap.channel),specularIntensityMapUv:se&&g(o.specularIntensityMap.channel),transmissionMapUv:le&&g(o.transmissionMap.channel),thicknessMapUv:ce&&g(o.thicknessMap.channel),alphaMapUv:de&&g(o.alphaMap.channel),vertexTangents:!!x.attributes.tangent&&(z||q),vertexColors:o.vertexColors,vertexAlphas:!0===o.vertexColors&&!!x.attributes.color&&4===x.attributes.color.itemSize,pointsUvs:!0===y.isPoints&&!!x.attributes.uv&&(D||de),fog:!!b,useFog:!0===o.fog,fogExp2:!!b&&b.isFogExp2,flatShading:!0===o.flatShading,sizeAttenuation:!0===o.sizeAttenuation,logarithmicDepthBuffer:h,skinning:!0===y.isSkinnedMesh,morphTargets:void 0!==x.morphAttributes.position,morphNormals:void 0!==x.morphAttributes.normal,morphColors:void 0!==x.morphAttributes.color,morphTargetsCount:T,morphTextureStride:P,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numSpotLightMaps:s.spotLightMap.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numSpotLightShadowsWithMaps:s.numSpotLightShadowsWithMaps,numLightProbes:s.numLightProbes,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:o.dithering,shadowMapEnabled:e.shadowMap.enabled&&u.length>0,shadowMapType:e.shadowMap.type,toneMapping:me,useLegacyLights:e._useLegacyLights,decodeVideoTexture:D&&!0===o.map.isVideoTexture&&Nr.getTransfer(o.map.colorSpace)===Xn,premultipliedAlpha:o.premultipliedAlpha,doubleSided:2===o.side,flipSided:o.side===Rt,useDepthPacking:o.depthPacking>=0,depthPacking:o.depthPacking||0,index0AttributeName:o.index0AttributeName,extensionDerivatives:fe&&!0===o.extensions.derivatives,extensionFragDepth:fe&&!0===o.extensions.fragDepth,extensionDrawBuffers:fe&&!0===o.extensions.drawBuffers,extensionShaderTextureLOD:fe&&!0===o.extensions.shaderTextureLOD,extensionClipCullDistance:fe&&!0===o.extensions.clipCullDistance&&r.has("WEBGL_clip_cull_distance"),extensionMultiDraw:fe&&!0===o.extensions.multiDraw&&r.has("WEBGL_multi_draw"),rendererExtensionFragDepth:d||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:d||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:d||r.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:r.has("KHR_parallel_shader_compile"),customProgramCacheKey:o.customProgramCacheKey()};return ge.vertexUv1s=c.has(1),ge.vertexUv2s=c.has(2),ge.vertexUv3s=c.has(3),c.clear(),ge},getProgramCacheKey:function(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(!function(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}(n,t),function(e,t){s.disableAll(),t.isWebGL2&&s.enable(0);t.supportsVertexTextures&&s.enable(1);t.instancing&&s.enable(2);t.instancingColor&&s.enable(3);t.instancingMorph&&s.enable(4);t.matcap&&s.enable(5);t.envMap&&s.enable(6);t.normalMapObjectSpace&&s.enable(7);t.normalMapTangentSpace&&s.enable(8);t.clearcoat&&s.enable(9);t.iridescence&&s.enable(10);t.alphaTest&&s.enable(11);t.vertexColors&&s.enable(12);t.vertexAlphas&&s.enable(13);t.vertexUv1s&&s.enable(14);t.vertexUv2s&&s.enable(15);t.vertexUv3s&&s.enable(16);t.vertexTangents&&s.enable(17);t.anisotropy&&s.enable(18);t.alphaHash&&s.enable(19);t.batching&&s.enable(20);e.push(s.mask),s.disableAll(),t.fog&&s.enable(0);t.useFog&&s.enable(1);t.flatShading&&s.enable(2);t.logarithmicDepthBuffer&&s.enable(3);t.skinning&&s.enable(4);t.morphTargets&&s.enable(5);t.morphNormals&&s.enable(6);t.morphColors&&s.enable(7);t.premultipliedAlpha&&s.enable(8);t.shadowMapEnabled&&s.enable(9);t.useLegacyLights&&s.enable(10);t.doubleSided&&s.enable(11);t.flipSided&&s.enable(12);t.useDepthPacking&&s.enable(13);t.dithering&&s.enable(14);t.transmission&&s.enable(15);t.sheen&&s.enable(16);t.opaque&&s.enable(17);t.pointsUvs&&s.enable(18);t.decodeVideoTexture&&s.enable(19);t.alphaToCoverage&&s.enable(20);e.push(s.mask)}(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){const t=m[e.type];let n;if(t){const e=Ia[t];n=ca.clone(e.uniforms)}else n=e.uniforms;return n},acquireProgram:function(t,n){let r;for(let e=0,i=u.length;e<i;e++){const t=u[e];if(t.cacheKey===n){r=t,++r.usedTimes;break}}return void 0===r&&(r=new Nl(e,n,t,o),u.push(r)),r},releaseProgram:function(e){if(0===--e.usedTimes){const t=u.indexOf(e);u[t]=u[u.length-1],u.pop(),e.destroy()}},releaseShaderCache:function(e){l.remove(e)},programs:u,dispose:function(){l.dispose()}}}function zl(){let e=new WeakMap;return{get:function(t){let 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 Hl(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder: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 Vl(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 Wl(){const e=[];let t=0;const n=[],r=[],i=[];function o(n,r,i,o,a,s){let l=e[t];return void 0===l?(l={id:n.id,object:n,geometry:r,material:i,groupOrder:o,renderOrder:n.renderOrder,z:a,group:s},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.groupOrder=o,l.renderOrder=n.renderOrder,l.z=a,l.group=s),t++,l}return{opaque:n,transmissive:r,transparent:i,init:function(){t=0,n.length=0,r.length=0,i.length=0},push:function(e,t,a,s,l,c){const u=o(e,t,a,s,l,c);a.transmission>0?r.push(u):!0===a.transparent?i.push(u):n.push(u)},unshift:function(e,t,a,s,l,c){const u=o(e,t,a,s,l,c);a.transmission>0?r.unshift(u):!0===a.transparent?i.unshift(u):n.unshift(u)},finish:function(){for(let n=t,r=e.length;n<r;n++){const t=e[n];if(null===t.id)break;t.id=null,t.object=null,t.geometry=null,t.material=null,t.group=null}},sort:function(e,t){n.length>1&&n.sort(e||Hl),r.length>1&&r.sort(t||Vl),i.length>1&&i.sort(t||Vl)}}}function Gl(){let e=new WeakMap;return{get:function(t,n){const r=e.get(t);let i;return void 0===r?(i=new Wl,e.set(t,[i])):n>=r.length?(i=new Wl,r.push(i)):i=r[n],i},dispose:function(){e=new WeakMap}}}function ql(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new Jr,color:new yo};break;case"SpotLight":n={position:new Jr,direction:new Jr,color:new yo,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Jr,color:new yo,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Jr,skyColor:new yo,groundColor:new yo};break;case"RectAreaLight":n={color:new yo,position:new Jr,halfWidth:new Jr,halfHeight:new Jr}}return e[t.id]=n,n}}}let Xl=0;function Yl(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function Zl(e,t){const n=new ql,r=function(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Sr};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Sr,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let l=0;l<9;l++)i.probe.push(new Jr);const o=new Jr,a=new Oi,s=new Oi;return{setup:function(o,a){let s=0,l=0,c=0;for(let e=0;e<9;e++)i.probe[e].set(0,0,0);let u=0,d=0,h=0,p=0,f=0,m=0,g=0,v=0,y=0,b=0,x=0;o.sort(Yl);const w=!0===a?Math.PI:1;for(let e=0,t=o.length;e<t;e++){const t=o[e],a=t.color,_=t.intensity,E=t.distance,S=t.shadow&&t.shadow.map?t.shadow.map.texture:null;if(t.isAmbientLight)s+=a.r*_*w,l+=a.g*_*w,c+=a.b*_*w;else if(t.isLightProbe){for(let e=0;e<9;e++)i.probe[e].addScaledVector(t.sh.coefficients[e],_);x++}else if(t.isDirectionalLight){const e=n.get(t);if(e.color.copy(t.color).multiplyScalar(t.intensity*w),t.castShadow){const e=t.shadow,n=r.get(t);n.shadowBias=e.bias,n.shadowNormalBias=e.normalBias,n.shadowRadius=e.radius,n.shadowMapSize=e.mapSize,i.directionalShadow[u]=n,i.directionalShadowMap[u]=S,i.directionalShadowMatrix[u]=t.shadow.matrix,m++}i.directional[u]=e,u++}else if(t.isSpotLight){const e=n.get(t);e.position.setFromMatrixPosition(t.matrixWorld),e.color.copy(a).multiplyScalar(_*w),e.distance=E,e.coneCos=Math.cos(t.angle),e.penumbraCos=Math.cos(t.angle*(1-t.penumbra)),e.decay=t.decay,i.spot[h]=e;const o=t.shadow;if(t.map&&(i.spotLightMap[y]=t.map,y++,o.updateMatrices(t),t.castShadow&&b++),i.spotLightMatrix[h]=o.matrix,t.castShadow){const e=r.get(t);e.shadowBias=o.bias,e.shadowNormalBias=o.normalBias,e.shadowRadius=o.radius,e.shadowMapSize=o.mapSize,i.spotShadow[h]=e,i.spotShadowMap[h]=S,v++}h++}else if(t.isRectAreaLight){const e=n.get(t);e.color.copy(a).multiplyScalar(_),e.halfWidth.set(.5*t.width,0,0),e.halfHeight.set(0,.5*t.height,0),i.rectArea[p]=e,p++}else if(t.isPointLight){const e=n.get(t);if(e.color.copy(t.color).multiplyScalar(t.intensity*w),e.distance=t.distance,e.decay=t.decay,t.castShadow){const e=t.shadow,n=r.get(t);n.shadowBias=e.bias,n.shadowNormalBias=e.normalBias,n.shadowRadius=e.radius,n.shadowMapSize=e.mapSize,n.shadowCameraNear=e.camera.near,n.shadowCameraFar=e.camera.far,i.pointShadow[d]=n,i.pointShadowMap[d]=S,i.pointShadowMatrix[d]=t.shadow.matrix,g++}i.point[d]=e,d++}else if(t.isHemisphereLight){const e=n.get(t);e.skyColor.copy(t.color).multiplyScalar(_*w),e.groundColor.copy(t.groundColor).multiplyScalar(_*w),i.hemi[f]=e,f++}}p>0&&(t.isWebGL2?!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=Pa.LTC_FLOAT_1,i.rectAreaLTC2=Pa.LTC_FLOAT_2):(i.rectAreaLTC1=Pa.LTC_HALF_1,i.rectAreaLTC2=Pa.LTC_HALF_2):!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=Pa.LTC_FLOAT_1,i.rectAreaLTC2=Pa.LTC_FLOAT_2):!0===e.has("OES_texture_half_float_linear")?(i.rectAreaLTC1=Pa.LTC_HALF_1,i.rectAreaLTC2=Pa.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=s,i.ambient[1]=l,i.ambient[2]=c;const _=i.hash;_.directionalLength===u&&_.pointLength===d&&_.spotLength===h&&_.rectAreaLength===p&&_.hemiLength===f&&_.numDirectionalShadows===m&&_.numPointShadows===g&&_.numSpotShadows===v&&_.numSpotMaps===y&&_.numLightProbes===x||(i.directional.length=u,i.spot.length=h,i.rectArea.length=p,i.point.length=d,i.hemi.length=f,i.directionalShadow.length=m,i.directionalShadowMap.length=m,i.pointShadow.length=g,i.pointShadowMap.length=g,i.spotShadow.length=v,i.spotShadowMap.length=v,i.directionalShadowMatrix.length=m,i.pointShadowMatrix.length=g,i.spotLightMatrix.length=v+y-b,i.spotLightMap.length=y,i.numSpotLightShadowsWithMaps=b,i.numLightProbes=x,_.directionalLength=u,_.pointLength=d,_.spotLength=h,_.rectAreaLength=p,_.hemiLength=f,_.numDirectionalShadows=m,_.numPointShadows=g,_.numSpotShadows=v,_.numSpotMaps=y,_.numLightProbes=x,i.version=Xl++)},setupView:function(e,t){let n=0,r=0,l=0,c=0,u=0;const d=t.matrixWorldInverse;for(let h=0,p=e.length;h<p;h++){const t=e[h];if(t.isDirectionalLight){const e=i.directional[n];e.direction.setFromMatrixPosition(t.matrixWorld),o.setFromMatrixPosition(t.target.matrixWorld),e.direction.sub(o),e.direction.transformDirection(d),n++}else if(t.isSpotLight){const e=i.spot[l];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(d),e.direction.setFromMatrixPosition(t.matrixWorld),o.setFromMatrixPosition(t.target.matrixWorld),e.direction.sub(o),e.direction.transformDirection(d),l++}else if(t.isRectAreaLight){const e=i.rectArea[c];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(d),s.identity(),a.copy(t.matrixWorld),a.premultiply(d),s.extractRotation(a),e.halfWidth.set(.5*t.width,0,0),e.halfHeight.set(0,.5*t.height,0),e.halfWidth.applyMatrix4(s),e.halfHeight.applyMatrix4(s),c++}else if(t.isPointLight){const e=i.point[r];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(d),r++}else if(t.isHemisphereLight){const e=i.hemi[u];e.direction.setFromMatrixPosition(t.matrixWorld),e.direction.transformDirection(d),u++}}},state:i}}function Kl(e,t){const n=new Zl(e,t),r=[],i=[];return{init:function(){r.length=0,i.length=0},state:{lightsArray:r,shadowsArray:i,lights:n},setupLights:function(e){n.setup(r,e)},setupLightsView:function(e){n.setupView(r,e)},pushLight:function(e){r.push(e)},pushShadow:function(e){i.push(e)}}}function $l(e,t){let n=new WeakMap;return{get:function(r){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const o=n.get(r);let a;return void 0===o?(a=new Kl(e,t),n.set(r,[a])):i>=o.length?(a=new Kl(e,t),o.push(a)):a=o[i],a},dispose:function(){n=new WeakMap}}}class Jl extends wo{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=3200,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,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}}class Ql extends wo{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}function ec(e,t,n){let r=new Ta;const i=new Sr,o=new Sr,a=new qr,s=new Jl({depthPacking:3201}),l=new Ql,c={},u=n.maxTextureSize,d={[Ct]:Rt,[Rt]:Ct,[Pt]:2},h=new ua({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Sr},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),p=h.clone();p.defines.HORIZONTAL_PASS=1;const f=new Fo;f.setAttribute("position",new Oo(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const m=new ra(f,h),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=Tt;let v=this.type;function y(n,r){const o=t.update(m);h.defines.VSM_SAMPLES!==n.blurSamples&&(h.defines.VSM_SAMPLES=n.blurSamples,p.defines.VSM_SAMPLES=n.blurSamples,h.needsUpdate=!0,p.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new Yr(i.x,i.y)),h.uniforms.shadow_pass.value=n.map.texture,h.uniforms.resolution.value=n.mapSize,h.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,o,h,m,null),p.uniforms.shadow_pass.value=n.mapPass.texture,p.uniforms.resolution.value=n.mapSize,p.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,o,p,m,null)}function b(t,n,r,i){let o=null;const a=!0===r.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==a)o=a;else if(o=!0===r.isPointLight?l:s,e.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const e=o.uuid,t=n.uuid;let r=c[e];void 0===r&&(r={},c[e]=r);let i=r[t];void 0===i&&(i=o.clone(),r[t]=i,n.addEventListener("dispose",w)),o=i}if(o.visible=n.visible,o.wireframe=n.wireframe,o.side=i===Ot?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:d[n.side],o.alphaMap=n.alphaMap,o.alphaTest=n.alphaTest,o.map=n.map,o.clipShadows=n.clipShadows,o.clippingPlanes=n.clippingPlanes,o.clipIntersection=n.clipIntersection,o.displacementMap=n.displacementMap,o.displacementScale=n.displacementScale,o.displacementBias=n.displacementBias,o.wireframeLinewidth=n.wireframeLinewidth,o.linewidth=n.linewidth,!0===r.isPointLight&&!0===o.isMeshDistanceMaterial){e.properties.get(o).light=r}return o}function x(n,i,o,a,s){if(!1===n.visible)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===Ot)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,n.matrixWorld);const r=t.update(n),l=n.material;if(Array.isArray(l)){const t=r.groups;for(let c=0,u=t.length;c<u;c++){const u=t[c],d=l[u.materialIndex];if(d&&d.visible){const t=b(n,d,a,s);n.onBeforeShadow(e,n,i,o,r,t,u),e.renderBufferDirect(o,null,r,t,n,u),n.onAfterShadow(e,n,i,o,r,t,u)}}}else if(l.visible){const t=b(n,l,a,s);n.onBeforeShadow(e,n,i,o,r,t,null),e.renderBufferDirect(o,null,r,t,n,null),n.onAfterShadow(e,n,i,o,r,t,null)}}const l=n.children;for(let e=0,t=l.length;e<t;e++)x(l[e],i,o,a,s)}function w(e){e.target.removeEventListener("dispose",w);for(const t in c){const n=c[t],r=e.target.uuid;if(r in n){n[r].dispose(),delete n[r]}}}this.render=function(t,n,s){if(!1===g.enabled)return;if(!1===g.autoUpdate&&!1===g.needsUpdate)return;if(0===t.length)return;const l=e.getRenderTarget(),c=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),h=e.state;h.setBlending(0),h.buffers.color.setClear(1,1,1,1),h.buffers.depth.setTest(!0),h.setScissorTest(!1);const p=v!==Ot&&this.type===Ot,f=v===Ot&&this.type!==Ot;for(let m=0,g=t.length;m<g;m++){const l=t[m],c=l.shadow;if(void 0===c){console.warn("THREE.WebGLShadowMap:",l,"has no shadow.");continue}if(!1===c.autoUpdate&&!1===c.needsUpdate)continue;i.copy(c.mapSize);const d=c.getFrameExtents();if(i.multiply(d),o.copy(c.mapSize),(i.x>u||i.y>u)&&(i.x>u&&(o.x=Math.floor(u/d.x),i.x=o.x*d.x,c.mapSize.x=o.x),i.y>u&&(o.y=Math.floor(u/d.y),i.y=o.y*d.y,c.mapSize.y=o.y)),null===c.map||!0===p||!0===f){const e=this.type!==Ot?{minFilter:gn,magFilter:gn}:{};null!==c.map&&c.map.dispose(),c.map=new Yr(i.x,i.y,e),c.map.texture.name=l.name+".shadowMap",c.camera.updateProjectionMatrix()}e.setRenderTarget(c.map),e.clear();const g=c.getViewportCount();for(let e=0;e<g;e++){const t=c.getViewport(e);a.set(o.x*t.x,o.y*t.y,o.x*t.z,o.y*t.w),h.viewport(a),c.updateMatrices(l,e),r=c.getFrustum(),x(n,s,c.camera,l,this.type)}!0!==c.isPointLightShadow&&this.type===Ot&&y(c,s),c.needsUpdate=!1}v=this.type,g.needsUpdate=!1,e.setRenderTarget(l,c,d)}}function tc(e,t,n){const r=n.isWebGL2;const i=new function(){let t=!1;const n=new qr;let r=null;const i=new qr(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)}}},o=new function(){let t=!1,n=null,r=null,i=null;return{setTest:function(t){t?H(e.DEPTH_TEST):V(e.DEPTH_TEST)},setMask:function(r){n===r||t||(e.depthMask(r),n=r)},setFunc:function(t){if(r!==t){switch(t){case 0:e.depthFunc(e.NEVER);break;case 1:e.depthFunc(e.ALWAYS);break;case 2:e.depthFunc(e.LESS);break;case 3:default:e.depthFunc(e.LEQUAL);break;case 4:e.depthFunc(e.EQUAL);break;case 5:e.depthFunc(e.GEQUAL);break;case 6:e.depthFunc(e.GREATER);break;case 7:e.depthFunc(e.NOTEQUAL)}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}}},a=new function(){let t=!1,n=null,r=null,i=null,o=null,a=null,s=null,l=null,c=null;return{setTest:function(n){t||(n?H(e.STENCIL_TEST):V(e.STENCIL_TEST))},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&&l===r||(e.stencilOp(t,n,r),a=t,s=n,l=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,l=null,c=null}}},s=new WeakMap,l=new WeakMap;let c={},u={},d=new WeakMap,h=[],p=null,f=!1,m=null,g=null,v=null,y=null,b=null,x=null,w=null,_=new yo(0,0,0),E=0,S=!1,M=null,T=null,A=null,O=null,C=null;const R=e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let P=!1,I=0;const L=e.getParameter(e.VERSION);-1!==L.indexOf("WebGL")?(I=parseFloat(/^WebGL (\d)/.exec(L)[1]),P=I>=1):-1!==L.indexOf("OpenGL ES")&&(I=parseFloat(/^OpenGL ES (\d)/.exec(L)[1]),P=I>=2);let k=null,D={};const N=e.getParameter(e.SCISSOR_BOX),U=e.getParameter(e.VIEWPORT),j=(new qr).fromArray(N),F=(new qr).fromArray(U);function B(t,n,i,o){const a=new Uint8Array(4),s=e.createTexture();e.bindTexture(t,s),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let l=0;l<i;l++)!r||t!==e.TEXTURE_3D&&t!==e.TEXTURE_2D_ARRAY?e.texImage2D(n+l,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,a):e.texImage3D(n,0,e.RGBA,1,1,o,0,e.RGBA,e.UNSIGNED_BYTE,a);return s}const z={};function H(t){!0!==c[t]&&(e.enable(t),c[t]=!0)}function V(t){!1!==c[t]&&(e.disable(t),c[t]=!1)}z[e.TEXTURE_2D]=B(e.TEXTURE_2D,e.TEXTURE_2D,1),z[e.TEXTURE_CUBE_MAP]=B(e.TEXTURE_CUBE_MAP,e.TEXTURE_CUBE_MAP_POSITIVE_X,6),r&&(z[e.TEXTURE_2D_ARRAY]=B(e.TEXTURE_2D_ARRAY,e.TEXTURE_2D_ARRAY,1,1),z[e.TEXTURE_3D]=B(e.TEXTURE_3D,e.TEXTURE_3D,1,1)),i.setClear(0,0,0,1),o.setClear(1),a.setClear(0),H(e.DEPTH_TEST),o.setFunc(3),X(!1),Y(1),H(e.CULL_FACE),q(0);const W={[It]:e.FUNC_ADD,[Lt]:e.FUNC_SUBTRACT,[kt]:e.FUNC_REVERSE_SUBTRACT};if(r)W[103]=e.MIN,W[104]=e.MAX;else{const e=t.get("EXT_blend_minmax");null!==e&&(W[103]=e.MIN_EXT,W[104]=e.MAX_EXT)}const G={[Dt]:e.ZERO,[Nt]:e.ONE,[Ut]:e.SRC_COLOR,[Ft]:e.SRC_ALPHA,[Gt]:e.SRC_ALPHA_SATURATE,[Vt]:e.DST_COLOR,[zt]:e.DST_ALPHA,[jt]:e.ONE_MINUS_SRC_COLOR,[Bt]:e.ONE_MINUS_SRC_ALPHA,[Wt]:e.ONE_MINUS_DST_COLOR,[Ht]:e.ONE_MINUS_DST_ALPHA,[qt]:e.CONSTANT_COLOR,[Xt]:e.ONE_MINUS_CONSTANT_COLOR,[Yt]:e.CONSTANT_ALPHA,[Zt]:e.ONE_MINUS_CONSTANT_ALPHA};function q(t,n,r,i,o,a,s,l,c,u){if(0!==t){if(!1===f&&(H(e.BLEND),f=!0),5===t)o=o||n,a=a||r,s=s||i,n===g&&o===b||(e.blendEquationSeparate(W[n],W[o]),g=n,b=o),r===v&&i===y&&a===x&&s===w||(e.blendFuncSeparate(G[r],G[i],G[a],G[s]),v=r,y=i,x=a,w=s),!1!==l.equals(_)&&c===E||(e.blendColor(l.r,l.g,l.b,c),_.copy(l),E=c),m=t,S=!1;else if(t!==m||u!==S){if(g===It&&b===It||(e.blendEquation(e.FUNC_ADD),g=It,b=It),u)switch(t){case 1:e.blendFuncSeparate(e.ONE,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case 2:e.blendFunc(e.ONE,e.ONE);break;case 3:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case 4:e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ZERO,e.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}else switch(t){case 1:e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case 2:e.blendFunc(e.SRC_ALPHA,e.ONE);break;case 3:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case 4:e.blendFunc(e.ZERO,e.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}v=null,y=null,x=null,w=null,_.set(0,0,0),E=0,m=t,S=u}}else!0===f&&(V(e.BLEND),f=!1)}function X(t){M!==t&&(t?e.frontFace(e.CW):e.frontFace(e.CCW),M=t)}function Y(t){0!==t?(H(e.CULL_FACE),t!==T&&(1===t?e.cullFace(e.BACK):2===t?e.cullFace(e.FRONT):e.cullFace(e.FRONT_AND_BACK))):V(e.CULL_FACE),T=t}function Z(t,n,r){t?(H(e.POLYGON_OFFSET_FILL),O===n&&C===r||(e.polygonOffset(n,r),O=n,C=r)):V(e.POLYGON_OFFSET_FILL)}return{buffers:{color:i,depth:o,stencil:a},enable:H,disable:V,bindFramebuffer:function(t,n){return u[t]!==n&&(e.bindFramebuffer(t,n),u[t]=n,r&&(t===e.DRAW_FRAMEBUFFER&&(u[e.FRAMEBUFFER]=n),t===e.FRAMEBUFFER&&(u[e.DRAW_FRAMEBUFFER]=n)),!0)},drawBuffers:function(r,i){let o=h,a=!1;if(r){o=d.get(i),void 0===o&&(o=[],d.set(i,o));const t=r.textures;if(o.length!==t.length||o[0]!==e.COLOR_ATTACHMENT0){for(let n=0,r=t.length;n<r;n++)o[n]=e.COLOR_ATTACHMENT0+n;o.length=t.length,a=!0}}else o[0]!==e.BACK&&(o[0]=e.BACK,a=!0);if(a)if(n.isWebGL2)e.drawBuffers(o);else{if(!0!==t.has("WEBGL_draw_buffers"))throw new Error("THREE.WebGLState: Usage of gl.drawBuffers() require WebGL2 or WEBGL_draw_buffers extension");t.get("WEBGL_draw_buffers").drawBuffersWEBGL(o)}},useProgram:function(t){return p!==t&&(e.useProgram(t),p=t,!0)},setBlending:q,setMaterial:function(t,n){2===t.side?V(e.CULL_FACE):H(e.CULL_FACE);let r=t.side===Rt;n&&(r=!r),X(r),1===t.blending&&!1===t.transparent?q(0):q(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.blendColor,t.blendAlpha,t.premultipliedAlpha),o.setFunc(t.depthFunc),o.setTest(t.depthTest),o.setMask(t.depthWrite),i.setMask(t.colorWrite);const s=t.stencilWrite;a.setTest(s),s&&(a.setMask(t.stencilWriteMask),a.setFunc(t.stencilFunc,t.stencilRef,t.stencilFuncMask),a.setOp(t.stencilFail,t.stencilZFail,t.stencilZPass)),Z(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits),!0===t.alphaToCoverage?H(e.SAMPLE_ALPHA_TO_COVERAGE):V(e.SAMPLE_ALPHA_TO_COVERAGE)},setFlipSided:X,setCullFace:Y,setLineWidth:function(t){t!==A&&(P&&e.lineWidth(t),A=t)},setPolygonOffset:Z,setScissorTest:function(t){t?H(e.SCISSOR_TEST):V(e.SCISSOR_TEST)},activeTexture:function(t){void 0===t&&(t=e.TEXTURE0+R-1),k!==t&&(e.activeTexture(t),k=t)},bindTexture:function(t,n,r){void 0===r&&(r=null===k?e.TEXTURE0+R-1:k);let i=D[r];void 0===i&&(i={type:void 0,texture:void 0},D[r]=i),i.type===t&&i.texture===n||(k!==r&&(e.activeTexture(r),k=r),e.bindTexture(t,n||z[t]),i.type=t,i.texture=n)},unbindTexture:function(){const t=D[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(t){console.error("THREE.WebGLState:",t)}},compressedTexImage3D:function(){try{e.compressedTexImage3D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage2D:function(){try{e.texImage2D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage3D:function(){try{e.texImage3D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},updateUBOMapping:function(t,n){let r=l.get(n);void 0===r&&(r=new WeakMap,l.set(n,r));let i=r.get(t);void 0===i&&(i=e.getUniformBlockIndex(n,t.name),r.set(t,i))},uniformBlockBinding:function(t,n){const r=l.get(n).get(t);s.get(n)!==r&&(e.uniformBlockBinding(n,r,t.__bindingPointIndex),s.set(n,r))},texStorage2D:function(){try{e.texStorage2D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texStorage3D:function(){try{e.texStorage3D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texSubImage2D:function(){try{e.texSubImage2D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texSubImage3D:function(){try{e.texSubImage3D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},compressedTexSubImage2D:function(){try{e.compressedTexSubImage2D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},compressedTexSubImage3D:function(){try{e.compressedTexSubImage3D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},scissor:function(t){!1===j.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),j.copy(t))},viewport:function(t){!1===F.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),F.copy(t))},reset:function(){e.disable(e.BLEND),e.disable(e.CULL_FACE),e.disable(e.DEPTH_TEST),e.disable(e.POLYGON_OFFSET_FILL),e.disable(e.SCISSOR_TEST),e.disable(e.STENCIL_TEST),e.disable(e.SAMPLE_ALPHA_TO_COVERAGE),e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO),e.blendFuncSeparate(e.ONE,e.ZERO,e.ONE,e.ZERO),e.blendColor
2(0,0,0,0),e.colorMask(!0,!0,!0,!0),e.clearColor(0,0,0,0),e.depthMask(!0),e.depthFunc(e.LESS),e.clearDepth(1),e.stencilMask(4294967295),e.stencilFunc(e.ALWAYS,0,4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),e.clearStencil(0),e.cullFace(e.BACK),e.frontFace(e.CCW),e.polygonOffset(0,0),e.activeTexture(e.TEXTURE0),e.bindFramebuffer(e.FRAMEBUFFER,null),!0===r&&(e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),e.bindFramebuffer(e.READ_FRAMEBUFFER,null)),e.useProgram(null),e.lineWidth(1),e.scissor(0,0,e.canvas.width,e.canvas.height),e.viewport(0,0,e.canvas.width,e.canvas.height),c={},k=null,D={},u={},d=new WeakMap,h=[],p=null,f=!1,m=null,g=null,v=null,y=null,b=null,x=null,w=null,_=new yo(0,0,0),E=0,S=!1,M=null,T=null,A=null,O=null,C=null,j.set(0,0,e.canvas.width,e.canvas.height),F.set(0,0,e.canvas.width,e.canvas.height),i.reset(),o.reset(),a.reset()}}}function nc(e,t,n,r,i,o,a){const s=i.isWebGL2,l=t.has("WEBGL_multisampled_render_to_texture")?t.get("WEBGL_multisampled_render_to_texture"):null,c="undefined"!==typeof navigator&&/OculusBrowser/g.test(navigator.userAgent),u=new Sr,d=new WeakMap;let h;const p=new WeakMap;let f=!1;try{f="undefined"!==typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(z){}function m(e,t){return f?new OffscreenCanvas(e,t):Or("canvas")}function g(e,t,n,r){let i=1;const o=B(e);if((o.width>r||o.height>r)&&(i=r/Math.max(o.width,o.height)),i<1||!0===t){if("undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!==typeof VideoFrame&&e instanceof VideoFrame){const r=t?xr:Math.floor,a=r(i*o.width),s=r(i*o.height);void 0===h&&(h=m(a,s));const l=n?m(a,s):h;l.width=a,l.height=s;return l.getContext("2d").drawImage(e,0,0,a,s),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+o.width+"x"+o.height+") to ("+a+"x"+s+")."),l}return"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+o.width+"x"+o.height+")."),e}return e}function v(e){const t=B(e);return br(t.width)&&br(t.height)}function y(e,t){return e.generateMipmaps&&t&&e.minFilter!==gn&&e.minFilter!==bn}function b(t){e.generateMipmap(t)}function x(n,r,i,o){let a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!1===s)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+"'")}let l=r;if(r===e.RED&&(i===e.FLOAT&&(l=e.R32F),i===e.HALF_FLOAT&&(l=e.R16F),i===e.UNSIGNED_BYTE&&(l=e.R8)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.R8UI),i===e.UNSIGNED_SHORT&&(l=e.R16UI),i===e.UNSIGNED_INT&&(l=e.R32UI),i===e.BYTE&&(l=e.R8I),i===e.SHORT&&(l=e.R16I),i===e.INT&&(l=e.R32I)),r===e.RG&&(i===e.FLOAT&&(l=e.RG32F),i===e.HALF_FLOAT&&(l=e.RG16F),i===e.UNSIGNED_BYTE&&(l=e.RG8)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RG8UI),i===e.UNSIGNED_SHORT&&(l=e.RG16UI),i===e.UNSIGNED_INT&&(l=e.RG32UI),i===e.BYTE&&(l=e.RG8I),i===e.SHORT&&(l=e.RG16I),i===e.INT&&(l=e.RG32I)),r===e.RGBA){const t=a?qn:Nr.getTransfer(o);i===e.FLOAT&&(l=e.RGBA32F),i===e.HALF_FLOAT&&(l=e.RGBA16F),i===e.UNSIGNED_BYTE&&(l=t===Xn?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return l!==e.R16F&&l!==e.R32F&&l!==e.RG16F&&l!==e.RG32F&&l!==e.RGBA16F&&l!==e.RGBA32F||t.get("EXT_color_buffer_float"),l}function w(e,t,n){return!0===y(e,n)||e.isFramebufferTexture&&e.minFilter!==gn&&e.minFilter!==bn?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function _(t){return t===gn||t===vn||t===yn?e.NEAREST:e.LINEAR}function E(e){const t=e.target;t.removeEventListener("dispose",E),function(e){const t=r.get(e);if(void 0===t.__webglInit)return;const n=e.source,i=p.get(n);if(i){const r=i[t.__cacheKey];r.usedTimes--,0===r.usedTimes&&M(e),0===Object.keys(i).length&&p.delete(n)}r.remove(e)}(t),t.isVideoTexture&&d.delete(t)}function S(t){const n=t.target;n.removeEventListener("dispose",S),function(t){const n=r.get(t);t.depthTexture&&t.depthTexture.dispose();
2if(t.isWebGLCubeRenderTarget)for(let r=0;r<6;r++){if(Array.isArray(n.__webglFramebuffer[r]))for(let t=0;t<n.__webglFramebuffer[r].length;t++)e.deleteFramebuffer(n.__webglFramebuffer[r][t]);else e.deleteFramebuffer(n.__webglFramebuffer[r]);n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer[r])}else{if(Array.isArray(n.__webglFramebuffer))for(let t=0;t<n.__webglFramebuffer.length;t++)e.deleteFramebuffer(n.__webglFramebuffer[t]);else e.deleteFramebuffer(n.__webglFramebuffer);if(n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer),n.__webglMultisampledFramebuffer&&e.deleteFramebuffer(n.__webglMultisampledFramebuffer),n.__webglColorRenderbuffer)for(let t=0;t<n.__webglColorRenderbuffer.length;t++)n.__webglColorRenderbuffer[t]&&e.deleteRenderbuffer(n.__webglColorRenderbuffer[t]);n.__webglDepthRenderbuffer&&e.deleteRenderbuffer(n.__webglDepthRenderbuffer)}const i=t.textures;for(let o=0,s=i.length;o<s;o++){const t=r.get(i[o]);t.__webglTexture&&(e.deleteTexture(t.__webglTexture),a.memory.textures--),r.remove(i[o])}r.remove(t)}(n)}function M(t){const n=r.get(t);e.deleteTexture(n.__webglTexture);const i=t.source;delete p.get(i)[n.__cacheKey],a.memory.textures--}let T=0;function A(t,i){const o=r.get(t);if(t.isVideoTexture&&function(e){const t=a.render.frame;d.get(e)!==t&&(d.set(e,t),e.update())}(t),!1===t.isRenderTargetTexture&&t.version>0&&o.__version!==t.version){const e=t.image;if(null===e)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==e.complete)return void L(o,t,i);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.bindTexture(e.TEXTURE_2D,o.__webglTexture,e.TEXTURE0+i)}const O={[pn]:e.REPEAT,[fn]:e.CLAMP_TO_EDGE,[mn]:e.MIRRORED_REPEAT},C={[gn]:e.NEAREST,[vn]:e.NEAREST_MIPMAP_NEAREST,[yn]:e.NEAREST_MIPMAP_LINEAR,[bn]:e.LINEAR,[xn]:e.LINEAR_MIPMAP_NEAREST,[wn]:e.LINEAR_MIPMAP_LINEAR},R={[$n]:e.NEVER,[ir]:e.ALWAYS,[Jn]:e.LESS,[er]:e.LEQUAL,[Qn]:e.EQUAL,[rr]:e.GEQUAL,[tr]:e.GREATER,[nr]:e.NOTEQUAL};function P(n,o,a){if(o.type!==Tn||!1!==t.has("OES_texture_float_linear")||o.magFilter!==bn&&o.magFilter!==xn&&o.magFilter!==yn&&o.magFilter!==wn&&o.minFilter!==bn&&o.minFilter!==xn&&o.minFilter!==yn&&o.minFilter!==wn||console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),a?(e.texParameteri(n,e.TEXTURE_WRAP_S,O[o.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,O[o.wrapT]),n!==e.TEXTURE_3D&&n!==e.TEXTURE_2D_ARRAY||e.texParameteri(n,e.TEXTURE_WRAP_R,O[o.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,C[o.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,C[o.minFilter])):(e.texParameteri(n,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(n,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),n!==e.TEXTURE_3D&&n!==e.TEXTURE_2D_ARRAY||e.texParameteri(n,e.TEXTURE_WRAP_R,e.CLAMP_TO_EDGE),o.wrapS===fn&&o.wrapT===fn||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),e.texParameteri(n,e.TEXTURE_MAG_FILTER,_(o.magFilter)),e.texParameteri(n,e.TEXTURE_MIN_FILTER,_(o.minFilter)),o.minFilter!==gn&&o.minFilter!==bn&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),o.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,R[o.compareFunction])),!0===t.has("EXT_texture_filter_anisotropic")){if(o.magFilter===gn)return;if(o.minFilter!==yn&&o.minFilter!==wn)return;if(o.type===Tn&&!1===t.has("OES_texture_float_linear"))return;if(!1===s&&o.type===An&&!1===t.has("OES_texture_half_float_linear"))return;if(o.anisotropy>1||r.get(o).__currentAnisotropy){const a=t.get("EXT_texture_filter_anisotropic");e.texParameterf(n,a.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,i.getMaxAnisotropy())),r.get(o).__currentAnisotropy=o.anisotropy}}}function I(t,n){let r=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",E));const i=n.source;let o=p.get(i);void 0===o&&(o={},p.set(i,o));const s=function(e){const t=[];
vendor: 6,958 bytes, line 2
2return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}(n);if(s!==t.__cacheKey){void 0===o[s]&&(o[s]={texture:e.createTexture(),usedTimes:0},a.memory.textures++,r=!0),o[s].usedTimes++;const i=o[t.__cacheKey];void 0!==i&&(o[t.__cacheKey].usedTimes--,0===i.usedTimes&&M(n)),t.__cacheKey=s,t.__webglTexture=o[s].texture}return r}function L(t,a,l){let c=e.TEXTURE_2D;(a.isDataArrayTexture||a.isCompressedArrayTexture)&&(c=e.TEXTURE_2D_ARRAY),a.isData3DTexture&&(c=e.TEXTURE_3D);const u=I(t,a),d=a.source;n.bindTexture(c,t.__webglTexture,e.TEXTURE0+l);const h=r.get(d);if(d.version!==h.__version||!0===u){n.activeTexture(e.TEXTURE0+l);const t=Nr.getPrimaries(Nr.workingColorSpace),r=a.colorSpace===zn?null:Nr.getPrimaries(a.colorSpace),p=a.colorSpace===zn||t===r?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,a.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,a.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,a.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,p);const f=function(e){return!s&&(e.wrapS!==fn||e.wrapT!==fn||e.minFilter!==gn&&e.minFilter!==bn)}(a)&&!1===v(a.image);let m=g(a.image,f,!1,i.maxTextureSize);m=F(a,m);const _=v(m)||s,E=o.convert(a.format,a.colorSpace);let S,M=o.convert(a.type),T=x(a.internalFormat,E,M,a.colorSpace,a.isVideoTexture);P(c,a,_);const A=a.mipmaps,O=s&&!0!==a.isVideoTexture&&36196!==T,C=void 0===h.__version||!0===u,R=d.dataReady,I=w(a,m,_);if(a.isDepthTexture)T=e.DEPTH_COMPONENT,s?T=a.type===Tn?e.DEPTH_COMPONENT32F:a.type===Mn?e.DEPTH_COMPONENT24:a.type===On?e.DEPTH24_STENCIL8:e.DEPTH_COMPONENT16:a.type===Tn&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),a.format===Rn&&T===e.DEPTH_COMPONENT&&a.type!==En&&a.type!==Mn&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),a.type=Mn,M=o.convert(a.type)),a.format===Pn&&T===e.DEPTH_COMPONENT&&(T=e.DEPTH_STENCIL,a.type!==On&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),a.type=On,M=o.convert(a.type))),C&&(O?n.texStorage2D(e.TEXTURE_2D,1,T,m.width,m.height):n.texImage2D(e.TEXTURE_2D,0,T,m.width,m.height,0,E,M,null));else if(a.isDataTexture)if(A.length>0&&_){O&&C&&n.texStorage2D(e.TEXTURE_2D,I,T,A[0].width,A[0].height);for(let t=0,r=A.length;t<r;t++)S=A[t],O?R&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,S.width,S.height,E,M,S.data):n.texImage2D(e.TEXTURE_2D,t,T,S.width,S.height,0,E,M,S.data);a.generateMipmaps=!1}else O?(C&&n.texStorage2D(e.TEXTURE_2D,I,T,m.width,m.height),R&&n.texSubImage2D(e.TEXTURE_2D,0,0,0,m.width,m.height,E,M,m.data)):n.texImage2D(e.TEXTURE_2D,0,T,m.width,m.height,0,E,M,m.data);else if(a.isCompressedTexture)if(a.isCompressedArrayTexture){O&&C&&n.texStorage3D(e.TEXTURE_2D_ARRAY,I,T,A[0].width,A[0].height,m.depth);for(let t=0,r=A.length;t<r;t++)S=A[t],a.format!==Cn?null!==E?O?R&&n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,S.width,S.height,m.depth,E,S.data,0,0):n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,t,T,S.width,S.height,m.depth,0,S.data,0,0):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):O?R&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,S.width,S.height,m.depth,E,M,S.data):n.texImage3D(e.TEXTURE_2D_ARRAY,t,T,S.width,S.height,m.depth,0,E,M,S.data)}else{O&&C&&n.texStorage2D(e.TEXTURE_2D,I,T,A[0].width,A[0].height);for(let t=0,r=A.length;t<r;t++)S=A[t],a.format!==Cn?null!==E?O?R&&n.compressedTexSubImage2D(e.TEXTURE_2D,t,0,0,S.width,S.height,E,S.data):n.compressedTexImage2D(e.TEXTURE_2D,t,T,S.width,S.height,0,S.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):O?R&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,S.width,S.height,E,M,S.data):n.texImage2D(e.TEXTURE_2D,t,T,S.width,S.height,0,E,M,S.data)}else if(a.isDataArrayTexture)O?(C&&n.texStorage3D(e.TEXTURE_2D_ARRAY,I,T,m.width,m.height,m.depth),R&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,m.width,m.height,m.depth,E,M,m.data)):n.texImage3D(e.TEXTURE_2D_ARRAY,0,T,m.width,m.height,m.depth,0,E,M,m.data);else if(a.isData3DTexture)O?(C&&n.texStorage3D(e.TEXTURE_3D,I,T,m.width,m.height,m.depth),R&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,m.width,m.height,m.depth,E,M,m.data)):n.texImage3D(e.TEXTURE_3D,0,T,m.width,m.height,m.depth,0,E,M,m.data);else if(a.isFramebufferTexture){if(C)if(O)n.texStorage2D(e.TEXTURE_2D,I,T,m.width,m.height);else{let t=m.width,r=m.height;for(let i=0;i<I;i++)n.texImage2D(e.TEXTURE_2D,i,T,t,r,0,E,M,null),t>>=1,r>>=1}}else if(A.length>0&&_){if(O&&C){const t=B(A[0]);n.texStorage2D(e.TEXTURE_2D,I,T,t.width,t.height)}for(let t=0,r=A.length;t<r;t++)S=A[t],O?R&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,E,M,S):n.texImage2D(e.TEXTURE_2D,t,T,E,M,S);a.generateMipmaps=!1}else if(O){if(C){const t=B(m);n.texStorage2D(e.TEXTURE_2D,I,T,t.width,t.height)}R&&n.texSubImage2D(e.TEXTURE_2D,0,0,0,E,M,m)}else n.texImage2D(e.TEXTURE_2D,0,T,E,M,m);y(a,_)&&b(c),h.__version=d.version,a.onUpdate&&a.onUpdate(a)}t.__version=a.version}function k(t,i,a,s,c,u){const d=o.convert(a.format,a.colorSpace),h=o.convert(a.type),p=x(a.internalFormat,d,h,a.colorSpace);if(!r.get(i).__hasExternalTextures){const t=Math.max(1,i.width>>u),r=Math.max(1,i.height>>u);c===e.TEXTURE_3D||c===e.TEXTURE_2D_ARRAY?n.texImage3D(c,u,p,t,r,i.depth,0,d,h,null):n.texImage2D(c,u,p,t,r,0,d,h,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),j(i)?l.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,s,c,r.get(a).__webglTexture,0,U(i)):(c===e.TEXTURE_2D||c>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&c<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,s,c,r.get(a).__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function D(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer&&!n.stencilBuffer){let i=!0===s?e.DEPTH_COMPONENT24:e.DEPTH_COMPONENT16;if(r||j(n)){const t=n.depthTexture;t&&t.isDepthTexture&&(t.type===Tn?i=e.DEPTH_COMPONENT32F:t.type===Mn&&(i=e.DEPTH_COMPONENT24));const r=U(n);j(n)?l.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,r,i,n.width,n.height):e.renderbufferStorageMultisample(e.RENDERBUFFER,r,i,n.width,n.height)}else e.renderbufferStorage(e.RENDERBUFFER,i,n.width,n.height);e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t)}else if(n.depthBuffer&&n.stencilBuffer){const i=U(n);r&&!1===j(n)?e.renderbufferStorageMultisample(e.RENDERBUFFER,i,e.DEPTH24_STENCIL8,n.width,n.height):j(n)?l.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,i,e.DEPTH24_STENCIL8,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.RENDERBUFFER,t)}else{const t=n.textures;for(let i=0;i<t.length;
2i++){const a=t[i],s=o.convert(a.format,a.colorSpace),c=o.convert(a.type),u=x(a.internalFormat,s,c,a.colorSpace),d=U(n);r&&!1===j(n)?e.renderbufferStorageMultisample(e.RENDERBUFFER,d,u,n.width,n.height):j(n)?l.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,d,u,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,u,n.width,n.height)}}e.bindRenderbuffer(e.RENDERBUFFER,null)}function N(t){const i=r.get(t),o=!0===t.isWebGLCubeRenderTarget;if(t.depthTexture&&!i.__autoAllocateDepthBuffer){if(o)throw new Error("target.depthTexture not supported in Cube render targets");!function(t,i){if(i&&i.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(e.FRAMEBUFFER,t),!i.depthTexture||!i.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");r.get(i.depthTexture).__webglTexture&&i.depthTexture.image.width===i.width&&i.depthTexture.image.height===i.height||(i.depthTexture.image.width=i.width,i.depthTexture.image.height=i.height,i.depthTexture.needsUpdate=!0),A(i.depthTexture,0);const o=r.get(i.depthTexture).__webglTexture,a=U(i);if(i.depthTexture.format===Rn)j(i)?l.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,o,0,a):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,o,0);else{if(i.depthTexture.format!==Pn)throw new Error("Unknown depthTexture format");j(i)?l.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,o,0,a):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,o,0)}}(i.__webglFramebuffer,t)}else if(o){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]=e.createRenderbuffer(),D(i.__webglDepthbuffer[r],t,!1)}else n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer=e.createRenderbuffer(),D(i.__webglDepthbuffer,t,!1);n.bindFramebuffer(e.FRAMEBUFFER,null)}function U(e){return Math.min(i.maxSamples,e.samples)}function j(e){const n=r.get(e);return s&&e.samples>0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function F(e,n){const r=e.colorSpace,i=e.format,o=e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||e.format===sr||r!==Vn&&r!==zn&&(Nr.getTransfer(r)===Xn?!1===s?!0===t.has("EXT_sRGB")&&i===Cn?(e.format=sr,e.minFilter=bn,e.generateMipmaps=!1):n=Br.sRGBToLinear(n):i===Cn&&o===_n||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",r)),n}function B(e){return"undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement?(u.width=e.naturalWidth||e.width,u.height=e.naturalHeight||e.height):"undefined"!==typeof VideoFrame&&e instanceof VideoFrame?(u.width=e.displayWidth,u.height=e.displayHeight):(u.width=e.width,u.height=e.height),u}this.allocateTextureUnit=function(){const e=T;return e>=i.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+i.maxTextures),T+=1,e},this.resetTextureUnits=function(){T=0},this.setTexture2D=A,this.setTexture2DArray=function(t,i){const o=r.get(t);t.version>0&&o.__version!==t.version?L(o,t,i):n.bindTexture(e.TEXTURE_2D_ARRAY,o.__webglTexture,e.TEXTURE0+i)},this.setTexture3D=function(t,i){const o=r.get(t);t.version>0&&o.__version!==t.version?L(o,t,i):n.bindTexture(e.TEXTURE_3D,o.__webglTexture,e.TEXTURE0+i)},this.setTextureCube=function(t,a){const l=r.get(t);t.version>0&&l.__version!==t.version?function(t,a,l){if(6!==a.image.length)return;const c=I(t,a),u=a.source;n.bindTexture(e.TEXTURE_CUBE_MAP,t.__webglTexture,e.TEXTURE0+l);const d=r.get(u);if(u.version!==d.__version||!0===c){n.activeTexture(e.TEXTURE0+l);
vendor: 17,492 bytes, line 2
2const t=Nr.getPrimaries(Nr.workingColorSpace),r=a.colorSpace===zn?null:Nr.getPrimaries(a.colorSpace),h=a.colorSpace===zn||t===r?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,a.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,a.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,a.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,h);const p=a.isCompressedTexture||a.image[0].isCompressedTexture,f=a.image[0]&&a.image[0].isDataTexture,m=[];for(let e=0;e<6;e++)m[e]=p||f?f?a.image[e].image:a.image[e]:g(a.image[e],!1,!0,i.maxCubemapSize),m[e]=F(a,m[e]);const _=m[0],E=v(_)||s,S=o.convert(a.format,a.colorSpace),M=o.convert(a.type),T=x(a.internalFormat,S,M,a.colorSpace),A=s&&!0!==a.isVideoTexture,O=void 0===d.__version||!0===c,C=u.dataReady;let R,I=w(a,_,E);if(P(e.TEXTURE_CUBE_MAP,a,E),p){A&&O&&n.texStorage2D(e.TEXTURE_CUBE_MAP,I,T,_.width,_.height);for(let t=0;t<6;t++){R=m[t].mipmaps;for(let r=0;r<R.length;r++){const i=R[r];a.format!==Cn?null!==S?A?C&&n.compressedTexSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r,0,0,i.width,i.height,S,i.data):n.compressedTexImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r,T,i.width,i.height,0,i.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):A?C&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r,0,0,i.width,i.height,S,M,i.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r,T,i.width,i.height,0,S,M,i.data)}}}else{if(R=a.mipmaps,A&&O){R.length>0&&I++;const t=B(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,I,T,t.width,t.height)}for(let t=0;t<6;t++)if(f){A?C&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,S,M,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,T,m[t].width,m[t].height,0,S,M,m[t].data);for(let r=0;r<R.length;r++){const i=R[r].image[t].image;A?C&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r+1,0,0,i.width,i.height,S,M,i.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r+1,T,i.width,i.height,0,S,M,i.data)}}else{A?C&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,S,M,m[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,T,S,M,m[t]);for(let r=0;r<R.length;r++){const i=R[r];A?C&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r+1,0,0,S,M,i.image[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r+1,T,S,M,i.image[t])}}}y(a,E)&&b(e.TEXTURE_CUBE_MAP),d.__version=u.version,a.onUpdate&&a.onUpdate(a)}t.__version=a.version}(l,t,a):n.bindTexture(e.TEXTURE_CUBE_MAP,l.__webglTexture,e.TEXTURE0+a)},this.rebindTextures=function(t,n,i){const o=r.get(t);void 0!==n&&k(o.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),void 0!==i&&N(t)},this.setupRenderTarget=function(t){const l=t.texture,c=r.get(t),u=r.get(l);t.addEventListener("dispose",S);const d=t.textures,h=!0===t.isWebGLCubeRenderTarget,p=d.length>1,f=v(t)||s;if(p||(void 0===u.__webglTexture&&(u.__webglTexture=e.createTexture()),u.__version=l.version,a.memory.textures++),h){c.__webglFramebuffer=[];for(let t=0;t<6;t++)if(s&&l.mipmaps&&l.mipmaps.length>0){c.__webglFramebuffer[t]=[];for(let n=0;n<l.mipmaps.length;n++)c.__webglFramebuffer[t][n]=e.createFramebuffer()}else c.__webglFramebuffer[t]=e.createFramebuffer()}else{if(s&&l.mipmaps&&l.mipmaps.length>0){c.__webglFramebuffer=[];for(let t=0;t<l.mipmaps.length;t++)c.__webglFramebuffer[t]=e.createFramebuffer()}else c.__webglFramebuffer=e.createFramebuffer();if(p)if(i.drawBuffers)for(let t=0,n=d.length;t<n;t++){const n=r.get(d[t]);void 0===n.__webglTexture&&(n.__webglTexture=e.createTexture(),a.memory.textures++)}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");if(s&&t.samples>0&&!1===j(t)){c.__webglMultisampledFramebuffer=e.createFramebuffer(),c.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,c.__webglMultisampledFramebuffer);for(let n=0;n<d.length;n++){const r=d[n];c.__webglColorRenderbuffer[n]=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,c.__webglColorRenderbuffer[n]);const i=o.convert(r.format,r.colorSpace),a=o.convert(r.type),s=x(r.internalFormat,i,a,r.colorSpace,!0===t.isXRRenderTarget),l=U(t);e.renderbufferStorageMultisample(e.RENDERBUFFER,l,s,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+n,e.RENDERBUFFER,c.__webglColorRenderbuffer[n])}e.bindRenderbuffer(e.RENDERBUFFER,null),t.depthBuffer&&(c.__webglDepthRenderbuffer=e.createRenderbuffer(),D(c.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(e.FRAMEBUFFER,null)}}if(h){n.bindTexture(e.TEXTURE_CUBE_MAP,u.__webglTexture),P(e.TEXTURE_CUBE_MAP,l,f);for(let n=0;n<6;n++)if(s&&l.mipmaps&&l.mipmaps.length>0)for(let r=0;r<l.mipmaps.length;r++)k(c.__webglFramebuffer[n][r],t,l,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,r);else k(c.__webglFramebuffer[n],t,l,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,0);y(l,f)&&b(e.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(p){for(let i=0,o=d.length;i<o;i++){const o=d[i],a=r.get(o);n.bindTexture(e.TEXTURE_2D,a.__webglTexture),P(e.TEXTURE_2D,o,f),k(c.__webglFramebuffer,t,o,e.COLOR_ATTACHMENT0+i,e.TEXTURE_2D,0),y(o,f)&&b(e.TEXTURE_2D)}n.unbindTexture()}else{let r=e.TEXTURE_2D;if((t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&(s?r=t.isWebGL3DRenderTarget?e.TEXTURE_3D:e.TEXTURE_2D_ARRAY:console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")),n.bindTexture(r,u.__webglTexture),P(r,l,f),s&&l.mipmaps&&l.mipmaps.length>0)for(let n=0;n<l.mipmaps.length;n++)k(c.__webglFramebuffer[n],t,l,e.COLOR_ATTACHMENT0,r,n);else k(c.__webglFramebuffer,t,l,e.COLOR_ATTACHMENT0,r,0);y(l,f)&&b(r),n.unbindTexture()}t.depthBuffer&&N(t)},this.updateRenderTargetMipmap=function(t){const i=v(t)||s,o=t.textures;for(let a=0,s=o.length;a<s;a++){const s=o[a];if(y(s,i)){const i=t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:e.TEXTURE_2D,o=r.get(s).__webglTexture;n.bindTexture(i,o),b(i),n.unbindTexture()}}},this.updateMultisampleRenderTarget=function(t){if(s&&t.samples>0&&!1===j(t)){const i=t.textures,o=t.width,a=t.height;let s=e.COLOR_BUFFER_BIT;const l=[],u=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,d=r.get(t),h=i.length>1;if(h)for(let t=0;t<i.length;t++)n.bindFramebuffer(e.FRAMEBUFFER,d.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,null),n.bindFramebuffer(e.FRAMEBUFFER,d.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,null,0);n.bindFramebuffer(e.READ_FRAMEBUFFER,d.__webglMultisampledFramebuffer),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,d.__webglFramebuffer);for(let n=0;n<i.length;n++){l.push(e.COLOR_ATTACHMENT0+n),t.depthBuffer&&l.push(u);const p=void 0!==d.__ignoreDepthValues&&d.__ignoreDepthValues;if(!1===p&&(t.depthBuffer&&(s|=e.DEPTH_BUFFER_BIT),t.stencilBuffer&&(s|=e.STENCIL_BUFFER_BIT)),h&&e.framebufferRenderbuffer(e.READ_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.RENDERBUFFER,d.__webglColorRenderbuffer[n]),!0===p&&(e.invalidateFramebuffer(e.READ_FRAMEBUFFER,[u]),e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,[u])),h){const t=r.get(i[n]).__webglTexture;e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0)}e.blitFramebuffer(0,0,o,a,0,0,o,a,s,e.NEAREST),c&&e.invalidateFramebuffer(e.READ_FRAMEBUFFER,l)}if(n.bindFramebuffer(e.READ_FRAMEBUFFER,null),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),h)for(let t=0;t<i.length;t++){n.bindFramebuffer(e.FRAMEBUFFER,d.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,d.__webglColorRenderbuffer[t]);const o=r.get(i[t]).__webglTexture;n.bindFramebuffer(e.FRAMEBUFFER,d.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,o,0)}n.bindFramebuffer(e.DRAW_FRAMEBUFFER,d.__webglMultisampledFramebuffer)}},this.setupDepthRenderbuffer=N,this.setupFrameBufferTexture=k,this.useMultisampledRTT=j}function rc(e,t,n){const r=n.isWebGL2;return{convert:function(n){let i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn;const a=Nr.getTransfer(o);if(n===_n)return e.UNSIGNED_BYTE;if(1017===n)return e.UNSIGNED_SHORT_4_4_4_4;if(1018===n)return e.UNSIGNED_SHORT_5_5_5_1;if(1010===n)return e.BYTE;if(1011===n)return e.SHORT;if(n===En)return e.UNSIGNED_SHORT;if(n===Sn)return e.INT;if(n===Mn)return e.UNSIGNED_INT;if(n===Tn)return e.FLOAT;if(n===An)return r?e.HALF_FLOAT:(i=t.get("OES_texture_half_float"),null!==i?i.HALF_FLOAT_OES:null);if(1021===n)return e.ALPHA;if(n===Cn)return e.RGBA;if(1024===n)return e.LUMINANCE;if(1025===n)return e.LUMINANCE_ALPHA;if(n===Rn)return e.DEPTH_COMPONENT;if(n===Pn)return e.DEPTH_STENCIL;if(n===sr)return i=t.get("EXT_sRGB"),null!==i?i.SRGB_ALPHA_EXT:null;if(n===In)return e.RED;if(1029===n)return e.RED_INTEGER;if(1030===n)return e.RG;if(1031===n)return e.RG_INTEGER;if(1033===n)return e.RGBA_INTEGER;if(n===Ln||n===kn||n===Dn||n===Nn)if(a===Xn){if(i=t.get("WEBGL_compressed_texture_s3tc_srgb"),null===i)return null;if(n===Ln)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===kn)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===Dn)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===Nn)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(i=t.get("WEBGL_compressed_texture_s3tc"),null===i)return null;if(n===Ln)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===kn)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===Dn)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===Nn)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(35840===n||35841===n||35842===n||35843===n){if(i=t.get("WEBGL_compressed_texture_pvrtc"),null===i)return null;if(35840===n)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(35841===n)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(35842===n)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(35843===n)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(36196===n)return i=t.get("WEBGL_compressed_texture_etc1"),null!==i?i.COMPRESSED_RGB_ETC1_WEBGL:null;if(37492===n||37496===n){if(i=t.get("WEBGL_compressed_texture_etc"),null===i)return null;if(37492===n)return a===Xn?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(37496===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC}if(37808===n||37809===n||37810===n||37811===n||37812===n||37813===n||37814===n||37815===n||37816===n||37817===n||37818===n||37819===n||37820===n||37821===n){if(i=t.get("WEBGL_compressed_texture_astc"),null===i)return null;if(37808===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(37809===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(37810===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(37811===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(37812===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(37813===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(37814===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(37815===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(37816===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(37817===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(37818===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(37819===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(37820===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(37821===n)return a===Xn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}if(n===Un||36494===n||36495===n){if(i=t.get("EXT_texture_compression_bptc"),null===i)return null;if(n===Un)return a===Xn?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(36494===n)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(36495===n)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}if(36283===n||36284===n||36285===n||36286===n){if(i=t.get("EXT_texture_compression_rgtc"),null===i)return null;if(n===Un)return i.COMPRESSED_RED_RGTC1_EXT;if(36284===n)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(36285===n)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(36286===n)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}return n===On?r?e.UNSIGNED_INT_24_8:(i=t.get("WEBGL_depth_texture"),null!==i?i.UNSIGNED_INT_24_8_WEBGL:null):void 0!==e[n]?e[n]:null}}}class ic extends ma{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(),this.isArrayCamera=!0,this.cameras=e}}class oc extends to{constructor(){super(),this.isGroup=!0,this.type="Group"}}const ac={type:"move"};class sc{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new oc,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new oc,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Jr,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Jr),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new oc,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Jr,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Jr),this._grip}dispatchEvent(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(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(e,t,n){let r=null,i=null,o=null;const a=this._targetRay,s=this._grip,l=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState){if(l&&e.hand){o=!0;for(const o of e.hand.values()){const e=t.getJointPose(o,n),r=this._getHandJoint(l,o);null!==e&&(r.matrix.fromArray(e.transform.matrix),r.matrix.decompose(r.position,r.rotation,r.scale),r.matrixWorldNeedsUpdate=!0,r.jointRadius=e.radius),r.visible=null!==e}const r=l.joints["index-finger-tip"],i=l.joints["thumb-tip"],a=r.position.distanceTo(i.position),s=.02,c=.005;l.inputState.pinching&&a>s+c?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&a<=s-c&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==s&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),null!==i&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1));null!==a&&(r=t.getPose(e.targetRaySpace,n),null===r&&null!==i&&(r=i),null!==r&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,r.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(r.linearVelocity)):a.hasLinearVelocity=!1,r.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(r.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(ac)))}return null!==a&&(a.visible=null!==r),null!==s&&(s.visible=null!==i),null!==l&&(l.visible=null!==o),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){const n=new oc;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class lc{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(null===this.texture){const r=new Gr;e.properties.get(r).__webglTexture=t.texture,t.depthNear==n.depthNear&&t.depthFar==n.depthFar||(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=r}}render(e,t){if(null!==this.texture){if(null===this.mesh){const e=t.cameras[0].viewport,n=new ua({extensions:{fragDepth:!0},vertexShader:"\nvoid main() {\n\n\tgl_Position = vec4( position, 1.0 );\n\n}",fragmentShader:"\nuniform sampler2DArray depthColor;\nuniform float depthWidth;\nuniform float depthHeight;\n\nvoid main() {\n\n\tvec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight );\n\n\tif ( coord.x >= 1.0 ) {\n\n\t\tgl_FragDepthEXT = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r;\n\n\t} else {\n\n\t\tgl_FragDepthEXT = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r;\n\n\t}\n\n}",uniforms:{depthColor:{value:this.texture},depthWidth:{value:e.z},depthHeight:{value:e.w}}});this.mesh=new ra(new Ca(20,20),n)}e.render(this.mesh,t)}}reset(){this.texture=null,this.mesh=null}}class cc extends ur{constructor(e,t){super();const n=this;let r=null,i=1,o=null,a="local-floor",s=1,l=null,c=null,u=null,d=null,h=null,p=null;const f=new lc,m=t.getContextAttributes();let g=null,v=null;const y=[],b=[],x=new Sr;let w=null;const _=new ma;_.layers.enable(1),_.viewport=new qr;const E=new ma;
vendor: 8,497 bytes, line 2
2E.layers.enable(2),E.viewport=new qr;const S=[_,E],M=new ic;M.layers.enable(1),M.layers.enable(2);let T=null,A=null;function O(e){const t=b.indexOf(e.inputSource);if(-1===t)return;const n=y[t];void 0!==n&&(n.update(e.inputSource,e.frame,l||o),n.dispatchEvent({type:e.type,data:e.inputSource}))}function C(){r.removeEventListener("select",O),r.removeEventListener("selectstart",O),r.removeEventListener("selectend",O),r.removeEventListener("squeeze",O),r.removeEventListener("squeezestart",O),r.removeEventListener("squeezeend",O),r.removeEventListener("end",C),r.removeEventListener("inputsourceschange",R);for(let e=0;e<y.length;e++){const t=b[e];null!==t&&(b[e]=null,y[e].disconnect(t))}T=null,A=null,f.reset(),e.setRenderTarget(g),h=null,d=null,u=null,r=null,v=null,D.stop(),n.isPresenting=!1,e.setPixelRatio(w),e.setSize(x.width,x.height,!1),n.dispatchEvent({type:"sessionend"})}function R(e){for(let t=0;t<e.removed.length;t++){const n=e.removed[t],r=b.indexOf(n);r>=0&&(b[r]=null,y[r].disconnect(n))}for(let t=0;t<e.added.length;t++){const n=e.added[t];let r=b.indexOf(n);if(-1===r){for(let e=0;e<y.length;e++){if(e>=b.length){b.push(n),r=e;break}if(null===b[e]){b[e]=n,r=e;break}}if(-1===r)break}const i=y[r];i&&i.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=y[e];return void 0===t&&(t=new sc,y[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=y[e];return void 0===t&&(t=new sc,y[e]=t),t.getGripSpace()},this.getHand=function(e){let t=y[e];return void 0===t&&(t=new sc,y[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 l||o},this.setReferenceSpace=function(e){l=e},this.getBaseLayer=function(){return null!==d?d:h},this.getBinding=function(){return u},this.getFrame=function(){return p},this.getSession=function(){return r},this.setSession=async function(c){if(r=c,null!==r){if(g=e.getRenderTarget(),r.addEventListener("select",O),r.addEventListener("selectstart",O),r.addEventListener("selectend",O),r.addEventListener("squeeze",O),r.addEventListener("squeezestart",O),r.addEventListener("squeezeend",O),r.addEventListener("end",C),r.addEventListener("inputsourceschange",R),!0!==m.xrCompatible&&await t.makeXRCompatible(),w=e.getPixelRatio(),e.getSize(x),void 0===r.renderState.layers||!1===e.capabilities.isWebGL2){const n={antialias:void 0!==r.renderState.layers||m.antialias,alpha:!0,depth:m.depth,stencil:m.stencil,framebufferScaleFactor:i};h=new XRWebGLLayer(r,t,n),r.updateRenderState({baseLayer:h}),e.setPixelRatio(1),e.setSize(h.framebufferWidth,h.framebufferHeight,!1),v=new Yr(h.framebufferWidth,h.framebufferHeight,{format:Cn,type:_n,colorSpace:e.outputColorSpace,stencilBuffer:m.stencil})}else{let n=null,o=null,a=null;m.depth&&(a=m.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,n=m.stencil?Pn:Rn,o=m.stencil?On:Mn);const s={colorFormat:t.RGBA8,depthFormat:a,scaleFactor:i};u=new XRWebGLBinding(r,t),d=u.createProjectionLayer(s),r.updateRenderState({layers:[d]}),e.setPixelRatio(1),e.setSize(d.textureWidth,d.textureHeight,!1),v=new Yr(d.textureWidth,d.textureHeight,{format:Cn,type:_n,depthTexture:new ps(d.textureWidth,d.textureHeight,o,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:m.stencil,colorSpace:e.outputColorSpace,samples:m.antialias?4:0});e.properties.get(v).__ignoreDepthValues=d.ignoreDepthValues}v.isXRRenderTarget=!0,this.setFoveation(s),l=null,o=await r.requestReferenceSpace(a),D.setContext(r),D.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(null!==r)return r.environmentBlendMode};const P=new Jr,I=new Jr;function L(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(null===r)return;null!==f.texture&&(e.near=f.depthNear,e.far=f.depthFar),M.near=E.near=_.near=e.near,M.far=E.far=_.far=e.far,T===M.near&&A===M.far||(r.updateRenderState({depthNear:M.near,depthFar:M.far}),T=M.near,A=M.far,_.near=T,_.far=A,E.near=T,E.far=A,_.updateProjectionMatrix(),E.updateProjectionMatrix(),e.updateProjectionMatrix());const t=e.parent,n=M.cameras;L(M,t);for(let r=0;r<n.length;r++)L(n[r],t);2===n.length?function(e,t,n){P.setFromMatrixPosition(t.matrixWorld),I.setFromMatrixPosition(n.matrixWorld);const r=P.distanceTo(I),i=t.projectionMatrix.elements,o=n.projectionMatrix.elements,a=i[14]/(i[10]-1),s=i[14]/(i[10]+1),l=(i[9]+1)/i[5],c=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(o[8]+1)/o[0],h=a*u,p=a*d,f=r/(-u+d),m=f*-u;t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(m),e.translateZ(f),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert();const g=a+f,v=s+f,y=h-m,b=p+(r-m),x=l*s/v*g,w=c*s/v*g;e.projectionMatrix.makePerspective(y,b,x,w,g,v),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}(M,_,E):M.projectionMatrix.copy(_.projectionMatrix),function(e,t,n){null===n?e.matrix.copy(t.matrixWorld):(e.matrix.copy(n.matrixWorld),e.matrix.invert(),e.matrix.multiply(t.matrixWorld));e.matrix.decompose(e.position,e.quaternion,e.scale),e.updateMatrixWorld(!0),e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse),e.isPerspectiveCamera&&(e.fov=2*fr*Math.atan(1/e.projectionMatrix.elements[5]),e.zoom=1)}(e,M,t)},this.getCamera=function(){return M},this.getFoveation=function(){if(null!==d||null!==h)return s},this.setFoveation=function(e){s=e,null!==d&&(d.fixedFoveation=e),null!==h&&void 0!==h.fixedFoveation&&(h.fixedFoveation=e)},this.hasDepthSensing=function(){return null!==f.texture};let k=null;const D=new Aa;D.setAnimationLoop((function(t,i){if(c=i.getViewerPose(l||o),p=i,null!==c){const t=c.views;null!==h&&(e.setRenderTargetFramebuffer(v,h.framebuffer),e.setRenderTarget(v));let n=!1;t.length!==M.cameras.length&&(M.cameras.length=0,n=!0);for(let r=0;r<t.length;r++){const i=t[r];let o=null;if(null!==h)o=h.getViewport(i);else{const t=u.getViewSubImage(d,i);o=t.viewport,0===r&&(e.setRenderTargetTextures(v,t.colorTexture,d.ignoreDepthValues?void 0:t.depthStencilTexture),e.setRenderTarget(v))}let a=S[r];void 0===a&&(a=new ma,a.layers.enable(r),a.viewport=new qr,S[r]=a),a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.quaternion,a.scale),a.projectionMatrix.fromArray(i.projectionMatrix),a.projectionMatrixInverse.copy(a.projectionMatrix).invert(),a.viewport.set(o.x,o.y,o.width,o.height),0===r&&(M.matrix.copy(a.matrix),M.matrix.decompose(M.position,M.quaternion,M.scale)),!0===n&&M.cameras.push(a)}const i=r.enabledFeatures;if(i&&i.includes("depth-sensing")){const n=u.getDepthInformation(t[0]);n&&n.isValid&&n.texture&&f.init(e,n,r.renderState)}}for(let e=0;e<y.length;e++){const t=b[e],n=y[e];null!==t&&void 0!==n&&n.update(t,i,l||o)}f.render(e,M),k&&k(t,i),i.detectedPlanes&&n.dispatchEvent({type:"planesdetected",data:i}),p=null})),this.setAnimationLoop=function(e){k=e},this.dispose=function(){}}}const uc=new ji,dc=new Oi;function hc(e,t){function n(e,t){!0===e.matrixAutoUpdate&&e.updateMatrix(),t.value.copy(e.matrix)}function r(r,i){r.opacity.value=i.opacity,i.color&&r.diffuse.value.copy(i.color),i.emissive&&r.emissive.value.copy(i.emissive).multiplyScalar(i.emissiveIntensity),i.map&&(r.map.value=i.map,n(i.map,r.mapTransform)),i.alphaMap&&(r.alphaMap.value=i.alphaMap,n(i.alphaMap,r.alphaMapTransform)),i.bumpMap&&(r.bumpMap.value=i.bumpMap,n(i.bumpMap,r.bumpMapTransform),r.bumpScale.value=i.bumpScale,i.side===Rt&&(r.bumpScale.value*=-1)),i.normalMap&&(r.normalMap.value=i.normalMap,n(i.normalMap,r.normalMapTransform),r.normalScale.value.copy(i.normalScale),i.side===Rt&&r.normalScale.value.negate()),i.displacementMap&&(r.displacementMap.value=i.displacementMap,n(i.displacementMap,r.displacementMapTransform),r.displacementScale.value=i.displacementScale,r.displacementBias.value=i.displacementBias),i.emissiveMap&&(r.emissiveMap.value=i.emissiveMap,n(i.emissiveMap,r.emissiveMapTransform)),i.specularMap&&(r.specularMap.value=i.specularMap,n(i.specularMap,r.specularMapTransform)),i.alphaTest>0&&(r.alphaTest.value=i.alphaTest);const o=t.get(i),a=o.envMap,s=o.envMapRotation;
vendor: 4,117 bytes, line 2
2if(a&&(r.envMap.value=a,uc.copy(s),uc.x*=-1,uc.y*=-1,uc.z*=-1,a.isCubeTexture&&!1===a.isRenderTargetTexture&&(uc.y*=-1,uc.z*=-1),r.envMapRotation.value.setFromMatrix4(dc.makeRotationFromEuler(uc)),r.flipEnvMap.value=a.isCubeTexture&&!1===a.isRenderTargetTexture?-1:1,r.reflectivity.value=i.reflectivity,r.ior.value=i.ior,r.refractionRatio.value=i.refractionRatio),i.lightMap){r.lightMap.value=i.lightMap;const t=!0===e._useLegacyLights?Math.PI:1;r.lightMapIntensity.value=i.lightMapIntensity*t,n(i.lightMap,r.lightMapTransform)}i.aoMap&&(r.aoMap.value=i.aoMap,r.aoMapIntensity.value=i.aoMapIntensity,n(i.aoMap,r.aoMapTransform))}return{refreshFogUniforms:function(t,n){n.color.getRGB(t.fogColor.value,la(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)},refreshMaterialUniforms:function(e,i,o,a,s){i.isMeshBasicMaterial||i.isMeshLambertMaterial?r(e,i):i.isMeshToonMaterial?(r(e,i),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}(e,i)):i.isMeshPhongMaterial?(r(e,i),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}(e,i)):i.isMeshStandardMaterial?(r(e,i),function(e,r){e.metalness.value=r.metalness,r.metalnessMap&&(e.metalnessMap.value=r.metalnessMap,n(r.metalnessMap,e.metalnessMapTransform));e.roughness.value=r.roughness,r.roughnessMap&&(e.roughnessMap.value=r.roughnessMap,n(r.roughnessMap,e.roughnessMapTransform));const i=t.get(r).envMap;i&&(e.envMapIntensity.value=r.envMapIntensity)}(e,i),i.isMeshPhysicalMaterial&&function(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform)));t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===Rt&&e.clearcoatNormalScale.value.negate()));t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform)));t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor));t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform)));e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform));t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}(e,i,s)):i.isMeshMatcapMaterial?(r(e,i),function(e,t){t.matcap&&(e.matcap.value=t.matcap)}
2(e,i)):i.isMeshDepthMaterial?r(e,i):i.isMeshDistanceMaterial?(r(e,i),function(e,n){const r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}(e,i)):i.isMeshNormalMaterial?r(e,i):i.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}(e,i),i.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(e,i)):i.isPointsMaterial?function(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=.5*i,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform));t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform));t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,i,o,a):i.isSpriteMaterial?function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform));t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform));t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,i):i.isShadowMaterial?(e.color.value.copy(i.color),e.opacity.value=i.opacity):i.isShaderMaterial&&(i.uniformsNeedUpdate=!1)}}}function pc(e,t,n,r){let i={},o={},a=[];const s=n.isWebGL2?e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(e,t,n,r){const i=e.value,o=t+"_"+n;if(void 0===r[o])return r[o]="number"===typeof i||"boolean"===typeof i?i:i.clone(),!0;{const e=r[o];if("number"===typeof i||"boolean"===typeof i){if(e!==i)return r[o]=i,!0}else if(!1===e.equals(i))return e.copy(i),!0}return!1}function c(e){const t={boundary:0,storage:0};return"number"===typeof e||"boolean"===typeof e?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",e),t}function u(t){const n=t.target;n.removeEventListener("dispose",u);const r=a.indexOf(n.__bindingPointIndex);a.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete o[n.id]}return{bind:function(e,t){const n=t.program;r.uniformBlockBinding(e,n)},update:function(n,d){let h=i[n.id];void 0===h&&(!function(e){const t=e.uniforms;let n=0;const r=16;for(let o=0,a=t.length;o<a;o++){const e=Array.isArray(t[o])?t[o]:[t[o]];for(let t=0,i=e.length;t<i;t++){const i=e[t],o=Array.isArray(i.value)?i.value:[i.value];for(let e=0,t=o.length;e<t;e++){const t=c(o[e]),a=n%r;0!==a&&r-a<t.boundary&&(n+=r-a),i.__data=new Float32Array(t.storage/Float32Array.BYTES_PER_ELEMENT),i.__offset=n,n+=t.storage}}}const i=n%r;i>0&&(n+=r-i);e.__size=n,e.__cache={}}(n),h=function(t){const n=function(){for(let e=0;e<s;e++)if(-1===a.indexOf(e))return a.push(e),e;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}();t.__bindingPointIndex=n;const r=e.createBuffer(),i=t.__size,o=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,i,o),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}(n),i[n.id]=h,n.addEventListener("dispose",u));const p=d.program;r.updateUBOMapping(n,p);const f=t.render.frame;o[n.id]!==f&&(!function(t){const n=i[t.id],r=t.uniforms,o=t.__cache;e.bindBuffer(e.UNIFORM_BUFFER,n);for(let i=0,a=r.length;i<a;i++){const t=Array.isArray(r[i])?r[i]:[r[i]];for(let n=0,r=t.length;n<r;n++){const r=t[n];if(!0===l(r,i,n,o)){const t=r.__offset,n=Array.isArray(r.value)?r.value:[r.value];let i=0;for(let o=0;o<n.length;o++){const a=n[o],s=c(a);"number"===typeof a||"boolean"===typeof a?(r.__data[0]=a,e.bufferSubData(e.UNIFORM_BUFFER,t+i,r.__data)):a.isMatrix3?(r.__data[0]=a.elements[0],r.__data[1]=a.elements[1],r.__data[2]=a.elements[2],r.__data[3]=0,r.__data[4]=a.elements[3],r.__data[5]=a.elements[4],r.__data[6]=a.elements[5],r.__data[7]=0,r.__data[8]=a.elements[6],r.__data[9]=a.elements[7],r.__data[10]=a.elements[8],r.__data[11]=0):(a.toArray(r.__data,i),i+=s.storage/Float32Array.BYTES_PER_ELEMENT)}e.bufferSubData(e.UNIFORM_BUFFER,t,r.__data)}}}e.bindBuffer(e.UNIFORM_BUFFER,null)}(n),o[n.id]=f)},dispose:function(){for(const t in i)e.deleteBuffer(i[t]);a=[],i={},o={}}}}class fc{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{canvas:t=Cr(),context:n=null,depth:r=!0,stencil:i=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:l=!1,powerPreference:c="default",failIfMajorPerformanceCaveat:u=!1}=e;let d;
2this.isWebGLRenderer=!0,d=null!==n?n.getContextAttributes().alpha:o;const h=new Uint32Array(4),p=new Int32Array(4);let f=null,m=null;const g=[],v=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Hn,this._useLegacyLights=!1,this.toneMapping=Qt,this.toneMappingExposure=1;const y=this;let b=!1,x=0,w=0,_=null,E=-1,S=null;const M=new qr,T=new qr;let A=null;const O=new yo(0);let C=0,R=t.width,P=t.height,I=1,L=null,k=null;const D=new qr(0,0,R,P),N=new qr(0,0,R,P);let U=!1;const j=new Ta;let F=!1,B=!1,z=null;const H=new Oi,V=new Sr,W=new Jr,G={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function q(){return null===_?I:1}let X,Y,Z,K,$,J,Q,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,he,pe,fe,me,ge,ve=n;function ye(e,n){for(let r=0;r<e.length;r++){const i=e[r],o=t.getContext(i,n);if(null!==o)return o}return null}try{const e={alpha:!0,depth:r,stencil:i,antialias:a,premultipliedAlpha:s,preserveDrawingBuffer:l,powerPreference:c,failIfMajorPerformanceCaveat:u};if("setAttribute"in t&&t.setAttribute("data-engine","three.js r".concat(yt)),t.addEventListener("webglcontextlost",we,!1),t.addEventListener("webglcontextrestored",_e,!1),t.addEventListener("webglcontextcreationerror",Ee,!1),null===ve){const t=["webgl2","webgl","experimental-webgl"];if(!0===y.isWebGL1Renderer&&t.shift(),ve=ye(t,e),null===ve)throw ye(t)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}"undefined"!==typeof WebGLRenderingContext&&ve instanceof WebGLRenderingContext&&console.warn("THREE.WebGLRenderer: WebGL 1 support was deprecated in r153 and will be removed in r163."),void 0===ve.getShaderPrecisionFormat&&(ve.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(Ue){throw console.error("THREE.WebGLRenderer: "+Ue.message),Ue}function be(){X=new os(ve),Y=new Fa(ve,X,e),X.init(Y),fe=new rc(ve,X,Y),Z=new tc(ve,X,Y),K=new ls(ve),$=new zl,J=new nc(ve,X,Z,$,Y,fe,K),Q=new za(y),ee=new is(y),te=new Oa(ve,Y),me=new Ua(ve,X,te,Y),ne=new as(ve,te,K,me),re=new hs(ve,ne,te,K),de=new ds(ve,Y,J),le=new Ba($),ie=new Bl(y,Q,ee,X,Y,me,le),oe=new hc(y,$),ae=new Gl,se=new $l(X,Y),ue=new Na(y,Q,ee,Z,re,d,s),ce=new ec(y,re,Y),ge=new pc(ve,K,Y,Z),he=new ja(ve,X,K,Y),pe=new ss(ve,X,K,Y),K.programs=ie.programs,y.capabilities=Y,y.extensions=X,y.properties=$,y.renderLists=ae,y.shadowMap=ce,y.state=Z,y.info=K}be();const xe=new cc(y,ve);function we(e){e.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),b=!0}function _e(){console.log("THREE.WebGLRenderer: Context Restored."),b=!1;const e=K.autoReset,t=ce.enabled,n=ce.autoUpdate,r=ce.needsUpdate,i=ce.type;be(),K.autoReset=e,ce.enabled=t,ce.autoUpdate=n,ce.needsUpdate=r,ce.type=i}function Ee(e){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",e.statusMessage)}function Se(e){const t=e.target;t.removeEventListener("dispose",Se),function(e){(function(e){const t=$.get(e).programs;void 0!==t&&(t.forEach((function(e){ie.releaseProgram(e)})),e.isShaderMaterial&&ie.releaseShaderCache(e))})(e),$.remove(e)}(t)}function Me(e,t,n){!0===e.transparent&&2===e.side&&!1===e.forceSinglePass?(e.side=Rt,e.needsUpdate=!0,ke(e,t,n),e.side=Ct,e.needsUpdate=!0,ke(e,t,n),e.side=2):ke(e,t,n)}this.xr=xe,this.getContext=function(){return ve},this.getContextAttributes=function(){return ve.getContextAttributes()},this.forceContextLoss=function(){const e=X.get("WEBGL_lose_context");e&&e.loseContext()},this.forceContextRestore=function(){const e=X.get("WEBGL_lose_context");e&&e.restoreContext()},this.getPixelRatio=function(){return I},this.setPixelRatio=function(e){void 0!==e&&(I=e,this.setSize(R,P,!1))},this.getSize=function(e){return e.set(R,P)},this.setSize=function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];xe.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(R=e,P=n,t.width=Math.floor(e*I),t.height=Math.floor(n*I),!0===r&&(t.style.width=e+"px",t.style.height=n+"px"),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(R*I,P*I).floor()},this.setDrawingBufferSize=function(e,n,r){R=e,P=n,I=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.getCurrentViewport=function(e){return e.copy(M)},this.getViewport=function(e){return e.copy(D)},this.setViewport=function(e,t,n,r){e.isVector4?D.set(e.x,e.y,e.z,e.w):D.set(e,t,n,r),Z.viewport(M.copy(D).multiplyScalar(I).round())}
2,this.getScissor=function(e){return e.copy(N)},this.setScissor=function(e,t,n,r){e.isVector4?N.set(e.x,e.y,e.z,e.w):N.set(e,t,n,r),Z.scissor(T.copy(N).multiplyScalar(I).round())},this.getScissorTest=function(){return U},this.setScissorTest=function(e){Z.setScissorTest(U=e)},this.setOpaqueSort=function(e){L=e},this.setTransparentSort=function(e){k=e},this.getClearColor=function(e){return e.copy(ue.getClearColor())},this.setClearColor=function(){ue.setClearColor.apply(ue,arguments)},this.getClearAlpha=function(){return ue.getClearAlpha()},this.setClearAlpha=function(){ue.setClearAlpha.apply(ue,arguments)},this.clear=function(){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=0;if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]){let e=!1;if(null!==_){const t=_.texture.format;e=1033===t||1031===t||1029===t}if(e){const e=_.texture.type,t=e===_n||e===Mn||e===En||e===On||1017===e||1018===e,n=ue.getClearColor(),r=ue.getClearAlpha(),i=n.r,o=n.g,a=n.b;t?(h[0]=i,h[1]=o,h[2]=a,h[3]=r,ve.clearBufferuiv(ve.COLOR,0,h)):(p[0]=i,p[1]=o,p[2]=a,p[3]=r,ve.clearBufferiv(ve.COLOR,0,p))}else n|=ve.COLOR_BUFFER_BIT}e&&(n|=ve.DEPTH_BUFFER_BIT),t&&(n|=ve.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),ve.clear(n)},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",we,!1),t.removeEventListener("webglcontextrestored",_e,!1),t.removeEventListener("webglcontextcreationerror",Ee,!1),ae.dispose(),se.dispose(),$.dispose(),Q.dispose(),ee.dispose(),re.dispose(),me.dispose(),ge.dispose(),ie.dispose(),xe.dispose(),xe.removeEventListener("sessionstart",Ae),xe.removeEventListener("sessionend",Oe),z&&(z.dispose(),z=null),Ce.stop()},this.renderBufferDirect=function(e,t,n,r,i,o){null===t&&(t=G);const a=i.isMesh&&i.matrixWorld.determinant()<0,s=function(e,t,n,r,i){!0!==t.isScene&&(t=G);J.resetTextureUnits();const o=t.fog,a=r.isMeshStandardMaterial?t.environment:null,s=null===_?y.outputColorSpace:!0===_.isXRRenderTarget?_.texture.colorSpace:Vn,l=(r.isMeshStandardMaterial?ee:Q).get(r.envMap||a),c=!0===r.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,u=!!n.attributes.tangent&&(!!r.normalMap||r.anisotropy>0),d=!!n.morphAttributes.position,h=!!n.morphAttributes.normal,p=!!n.morphAttributes.color;let f=Qt;r.toneMapped&&(null!==_&&!0!==_.isXRRenderTarget||(f=y.toneMapping));const g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,v=void 0!==g?g.length:0,b=$.get(r),x=m.state.lights;if(!0===F&&(!0===B||e!==S)){const t=e===S&&r.id===E;le.setState(r,e,t)}let w=!1;r.version===b.__version?b.needsLights&&b.lightsStateVersion!==x.state.version||b.outputColorSpace!==s||i.isBatchedMesh&&!1===b.batching?w=!0:i.isBatchedMesh||!0!==b.batching?i.isInstancedMesh&&!1===b.instancing?w=!0:i.isInstancedMesh||!0!==b.instancing?i.isSkinnedMesh&&
vendor: 10,627 bytes, line 2
2!1===b.skinning?w=!0:i.isSkinnedMesh||!0!==b.skinning?i.isInstancedMesh&&!0===b.instancingColor&&null===i.instanceColor||i.isInstancedMesh&&!1===b.instancingColor&&null!==i.instanceColor||i.isInstancedMesh&&!0===b.instancingMorph&&null===i.morphTexture||i.isInstancedMesh&&!1===b.instancingMorph&&null!==i.morphTexture||b.envMap!==l||!0===r.fog&&b.fog!==o?w=!0:void 0===b.numClippingPlanes||b.numClippingPlanes===le.numPlanes&&b.numIntersection===le.numIntersection?(b.vertexAlphas!==c||b.vertexTangents!==u||b.morphTargets!==d||b.morphNormals!==h||b.morphColors!==p||b.toneMapping!==f||!0===Y.isWebGL2&&b.morphTargetsCount!==v)&&(w=!0):w=!0:w=!0:w=!0:w=!0:(w=!0,b.__version=r.version);let M=b.currentProgram;!0===w&&(M=ke(r,t,i));let T=!1,A=!1,O=!1;const C=M.getUniforms(),R=b.uniforms;Z.useProgram(M.program)&&(T=!0,A=!0,O=!0);r.id!==E&&(E=r.id,A=!0);if(T||S!==e){C.setValue(ve,"projectionMatrix",e.projectionMatrix),C.setValue(ve,"viewMatrix",e.matrixWorldInverse);const t=C.map.cameraPosition;void 0!==t&&t.setValue(ve,W.setFromMatrixPosition(e.matrixWorld)),Y.logarithmicDepthBuffer&&C.setValue(ve,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&C.setValue(ve,"isOrthographic",!0===e.isOrthographicCamera),S!==e&&(S=e,A=!0,O=!0)}if(i.isSkinnedMesh){C.setOptional(ve,i,"bindMatrix"),C.setOptional(ve,i,"bindMatrixInverse");const e=i.skeleton;e&&(Y.floatVertexTextures?(null===e.boneTexture&&e.computeBoneTexture(),C.setValue(ve,"boneTexture",e.boneTexture,J)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}i.isBatchedMesh&&(C.setOptional(ve,i,"batchingTexture"),C.setValue(ve,"batchingTexture",i._matricesTexture,J));const L=n.morphAttributes;(void 0!==L.position||void 0!==L.normal||void 0!==L.color&&!0===Y.isWebGL2)&&de.update(i,n,M);(A||b.receiveShadow!==i.receiveShadow)&&(b.receiveShadow=i.receiveShadow,C.setValue(ve,"receiveShadow",i.receiveShadow));r.isMeshGouraudMaterial&&null!==r.envMap&&(R.envMap.value=l,R.flipEnvMap.value=l.isCubeTexture&&!1===l.isRenderTargetTexture?-1:1);A&&(C.setValue(ve,"toneMappingExposure",y.toneMappingExposure),b.needsLights&&(D=O,(k=R).ambientLightColor.needsUpdate=D,k.lightProbe.needsUpdate=D,k.directionalLights.needsUpdate=D,k.directionalLightShadows.needsUpdate=D,k.pointLights.needsUpdate=D,k.pointLightShadows.needsUpdate=D,k.spotLights.needsUpdate=D,k.spotLightShadows.needsUpdate=D,k.rectAreaLights.needsUpdate=D,k.hemisphereLights.needsUpdate=D),o&&!0===r.fog&&oe.refreshFogUniforms(R,o),oe.refreshMaterialUniforms(R,r,I,P,z),yl.upload(ve,De(b),R,J));var k,D;r.isShaderMaterial&&!0===r.uniformsNeedUpdate&&(yl.upload(ve,De(b),R,J),r.uniformsNeedUpdate=!1);r.isSpriteMaterial&&C.setValue(ve,"center",i.center);if(C.setValue(ve,"modelViewMatrix",i.modelViewMatrix),C.setValue(ve,"normalMatrix",i.normalMatrix),C.setValue(ve,"modelMatrix",i.matrixWorld),r.isShaderMaterial||r.isRawShaderMaterial){const e=r.uniformsGroups;for(let t=0,n=e.length;t<n;t++)if(Y.isWebGL2){const n=e[t];ge.update(n,M),ge.bind(n,M)}else console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.")}return M}(e,t,n,r,i);Z.setMaterial(r,a);let l=n.index,c=1;if(!0===r.wireframe){if(l=ne.getWireframeAttribute(n),void 0===l)return;c=2}const u=n.drawRange,d=n.attributes.position;let h=u.start*c,p=(u.start+u.count)*c;null!==o&&(h=Math.max(h,o.start*c),p=Math.min(p,(o.start+o.count)*c)),null!==l?(h=Math.max(h,0),p=Math.min(p,l.count)):void 0!==d&&null!==d&&(h=Math.max(h,0),p=Math.min(p,d.count));const f=p-h;if(f<0||f===1/0)return;let g;me.setup(i,r,s,n,l);let v=he;if(null!==l&&(g=te.get(l),v=pe,v.setIndex(g)),i.isMesh)!0===r.wireframe?(Z.setLineWidth(r.wireframeLinewidth*q()),v.setMode(ve.LINES)):v.setMode(ve.TRIANGLES);else if(i.isLine){let e=r.linewidth;void 0===e&&(e=1),Z.setLineWidth(e*q()),i.isLineSegments?v.setMode(ve.LINES):i.isLineLoop?v.setMode(ve.LINE_LOOP):v.setMode(ve.LINE_STRIP)}else i.isPoints?v.setMode(ve.POINTS):i.isSprite&&v.setMode(ve.TRIANGLES);if(i.isBatchedMesh)v.renderMultiDraw(i._multiDrawStarts,i._multiDrawCounts,i._multiDrawCount);else if(i.isInstancedMesh)v.renderInstances(h,f,i.count);else if(n.isInstancedBufferGeometry){const e=void 0!==n._maxInstanceCount?n._maxInstanceCount:1/0,t=Math.min(n.instanceCount,e);v.renderInstances(h,f,t)}else v.render(h,f)},this.compile=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;null===n&&(n=e),m=se.get(n),m.init(),v.push(m),n.traverseVisible((function(e){e.isLight&&e.layers.test(t.layers)&&(m.pushLight(e),e.castShadow&&m.pushShadow(e))})),e!==n&&e.traverseVisible((function(e){e.isLight&&e.layers.test(t.layers)&&(m.pushLight(e),e.castShadow&&m.pushShadow(e))})),m.setupLights(y._useLegacyLights);const r=new Set;return e.traverse((function(e){const t=e.material;if(t)if(Array.isArray(t))for(let i=0;i<t.length;i++){const o=t[i];Me(o,n,e),r.add(o)}else Me(t,n,e),r.add(t)})),v.pop(),m=null,r},this.compileAsync=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=this.compile(e,t,n);return new Promise((t=>{function n(){r.forEach((function(e){$.get(e).currentProgram.isReady()&&r.delete(e)})),0!==r.size?setTimeout(n,10):t(e)}null!==X.get("KHR_parallel_shader_compile")?n():setTimeout(n,10)}))};let Te=null;function Ae(){Ce.stop()}function Oe(){Ce.start()}const Ce=new Aa;function Re(e,t,n,r){if(!1===e.visible)return;if(e.layers.test(t.layers))if(e.isGroup)n=e.renderOrder;else if(e.isLOD)!0===e.autoUpdate&&e.update(t);else if(e.isLight)m.pushLight(e),e.castShadow&&m.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||j.intersectsSprite(e)){r&&W.setFromMatrixPosition(e.matrixWorld).applyMatrix4(H);const t=re.update(e),i=e.material;i.visible&&f.push(e,t,i,n,W.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||j.intersectsObject(e))){const t=re.update(e),i=e.material;if(r&&(void 0!==e.boundingSphere?(null===e.boundingSphere&&e.computeBoundingSphere(),W.copy(e.boundingSphere.center)):(null===t.boundingSphere&&t.computeBoundingSphere(),W.copy(t.boundingSphere.center)),W.applyMatrix4(e.matrixWorld).applyMatrix4(H)),Array.isArray(i)){const r=t.groups;for(let o=0,a=r.length;o<a;o++){const a=r[o],s=i[a.materialIndex];s&&s.visible&&f.push(e,t,s,n,W.z,a)}}else i.visible&&f.push(e,t,i,n,W.z,null)}const i=e.children;for(let o=0,a=i.length;o<a;o++)Re(i[o],t,n,r)}function Pe(e,t,n,r){const i=e.opaque,o=e.transmissive,a=e.transparent;m.setupLightsView(n),!0===F&&le.setGlobalState(y.clippingPlanes,n),o.length>0&&function(e,t,n,r){const i=!0===n.isScene?n.overrideMaterial:null;if(null!==i)return;const o=Y.isWebGL2;null===z&&(z=new Yr(1,1,{generateMipmaps:!0,type:X.has("EXT_color_buffer_half_float")?An:_n,minFilter:wn,samples:o?4:0}));y.getDrawingBufferSize(V),o?z.setSize(V.x,V.y):z.setSize(xr(V.x),xr(V.y));const a=y.getRenderTarget();y.setRenderTarget(z),y.getClearColor(O),C=y.getClearAlpha(),C<1&&y.setClearColor(16777215,.5);y.clear();const s=y.toneMapping;y.toneMapping=Qt,Ie(e,n,r),J.updateMultisampleRenderTarget(z),J.updateRenderTargetMipmap(z);let l=!1;for(let c=0,u=t.length;c<u;c++){const e=t[c],i=e.object,o=e.geometry,a=e.material,s=e.group;if(2===a.side&&i.layers.test(r.layers)){const e=a.side;a.side=Rt,a.needsUpdate=!0,Le(i,n,r,o,a,s),a.side=e,a.needsUpdate=!0,l=!0}}!0===l&&(J.updateMultisampleRenderTarget(z),J.updateRenderTargetMipmap(z));y.setRenderTarget(a),y.setClearColor(O,C),y.toneMapping=s}(i,o,t,n),r&&Z.viewport(M.copy(r)),i.length>0&&Ie(i,t,n),o.length>0&&Ie(o,t,n),a.length>0&&Ie(a,t,n),Z.buffers.depth.setTest(!0),Z.buffers.depth.setMask(!0),Z.buffers.color.setMask(!0),Z.setPolygonOffset(!1)}function Ie(e,t,n){const r=!0===t.isScene?t.overrideMaterial:null;for(let i=0,o=e.length;i<o;i++){const o=e[i],a=o.object,s=o.geometry,l=null===r?o.material:r,c=o.group;a.layers.test(n.layers)&&Le(a,t,n,s,l,c)}}function Le(e,t,n,r,i,o){e.onBeforeRender(y,t,n,r,i,o),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),i.onBeforeRender(y,t,n,r,e,o),!0===i.transparent&&2===i.side&&!1===i.forceSinglePass?(i.side=Rt,i.needsUpdate=!0,y.renderBufferDirect(n,t,r,i,e,o),i.side=Ct,i.needsUpdate=!0,y.renderBufferDirect(n,t,r,i,e,o),i.side=2):y.renderBufferDirect(n,t,r,i,e,o),e.onAfterRender(y,t,n,r,i,o)}function ke(e,t,n){!0!==t.isScene&&(t=G);const r=$.get(e),i=m.state.lights,o=m.state.shadowsArray,a=i.state.version,s=ie.getParameters(e,i.state,o,t,n),l=ie.getProgramCacheKey(s);let c=r.programs;r.environment=e.isMeshStandardMaterial?t.environment:null,r.fog=t.fog,r.envMap=(e.isMeshStandardMaterial?ee:Q).get(e.envMap||r.environment),r.envMapRotation=null!==r.environment&&null===e.envMap?t.environmentRotation:e.envMapRotation,void 0===c&&(e.addEventListener("dispose",Se),c=new Map,r.programs=c);let u=c.get(l);if(void 0!==u){if(r.currentProgram===u&&r.lightsStateVersion===a)return Ne(e,s),u}else s.uniforms=ie.getUniforms(e),e.onBuild(n,s,y),e.onBeforeCompile(s,y),u=ie.acquireProgram(s,l),c.set(l,u),r.uniforms=s.uniforms;const d=r.uniforms;return(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(d.clippingPlanes=le.uniform),Ne(e,s),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.spotLightMatrix.value=i.state.spotLightMatrix,d.spotLightMap.value=i.state.spotLightMap,d.pointShadowMap.value=i.state.pointShadowMap,d.pointShadowMatrix.value=i.state.pointShadowMatrix),r.currentProgram=u,r.uniformsList=null,u}function De(e){if(null===e.uniformsList){const t=e.currentProgram.getUniforms();e.uniformsList=yl.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function Ne(e,t){const n=$.get(e);
vendor: 4,352 bytes, line 2
2n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}Ce.setAnimationLoop((function(e){Te&&Te(e)})),"undefined"!==typeof self&&Ce.setContext(self),this.setAnimationLoop=function(e){Te=e,xe.setAnimationLoop(e),null===e?Ce.stop():Ce.start()},xe.addEventListener("sessionstart",Ae),xe.addEventListener("sessionend",Oe),this.render=function(e,t){if(void 0!==t&&!0!==t.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!0===b)return;!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),null===t.parent&&!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),!0===xe.enabled&&!0===xe.isPresenting&&(!0===xe.cameraAutoUpdate&&xe.updateCamera(t),t=xe.getCamera()),!0===e.isScene&&e.onBeforeRender(y,e,t,_),m=se.get(e,v.length),m.init(),v.push(m),H.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),j.setFromProjectionMatrix(H),B=this.localClippingEnabled,F=le.init(this.clippingPlanes,B),f=ae.get(e,g.length),f.init(),g.push(f),Re(e,t,0,y.sortObjects),f.finish(),!0===y.sortObjects&&f.sort(L,k),this.info.render.frame++,!0===F&&le.beginShadows();const n=m.state.shadowsArray;if(ce.render(n,e,t),!0===F&&le.endShadows(),!0===this.info.autoReset&&this.info.reset(),!1!==xe.enabled&&!1!==xe.isPresenting&&!1!==xe.hasDepthSensing()||ue.render(f,e),m.setupLights(y._useLegacyLights),t.isArrayCamera){const n=t.cameras;for(let t=0,r=n.length;t<r;t++){const r=n[t];Pe(f,e,r,r.viewport)}}else Pe(f,e,t);null!==_&&(J.updateMultisampleRenderTarget(_),J.updateRenderTargetMipmap(_)),!0===e.isScene&&e.onAfterRender(y,e,t),me.resetDefaultState(),E=-1,S=null,v.pop(),m=v.length>0?v[v.length-1]:null,g.pop(),f=g.length>0?g[g.length-1]:null},this.getActiveCubeFace=function(){return x},this.getActiveMipmapLevel=function(){return w},this.getRenderTarget=function(){return _},this.setRenderTargetTextures=function(e,t,n){$.get(e.texture).__webglTexture=t,$.get(e.depthTexture).__webglTexture=n;const r=$.get(e);r.__hasExternalTextures=!0,r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||!0===X.has("WEBGL_multisampled_render_to_texture")&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),r.__useRenderToTexture=!1)},this.setRenderTargetFramebuffer=function(e,t){const n=$.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;_=e,x=t,w=n;let r=!0,i=null,o=!1,a=!1;if(e){const s=$.get(e);void 0!==s.__useDefaultFramebuffer?(Z.bindFramebuffer(ve.FRAMEBUFFER,null),r=!1):void 0===s.__webglFramebuffer?J.setupRenderTarget(e):s.__hasExternalTextures&&J.rebindTextures(e,$.get(e.texture).__webglTexture,$.get(e.depthTexture).__webglTexture);const l=e.texture;(l.isData3DTexture||l.isDataArrayTexture||l.isCompressedArrayTexture)&&(a=!0);const c=$.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(i=Array.isArray(c[t])?c[t][n]:c[t],o=!0):i=Y.isWebGL2&&e.samples>0&&!1===J.useMultisampledRTT(e)?$.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,M.copy(e.viewport),T.copy(e.scissor),A=e.scissorTest}else M.copy(D).multiplyScalar(I).floor(),T.copy(N).multiplyScalar(I).floor(),A=U;if(Z.bindFramebuffer(ve.FRAMEBUFFER,i)&&Y.drawBuffers&&r&&Z.drawBuffers(e,i),Z.viewport(M),Z.scissor(T),Z.setScissorTest(A),o){const r=$.get(e.texture);ve.framebufferTexture2D(ve.FRAMEBUFFER,ve.COLOR_ATTACHMENT0,ve.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(a){const r=$.get(e.texture),i=t||0;ve.framebufferTextureLayer(ve.FRAMEBUFFER,ve.COLOR_ATTACHMENT0,r.__webglTexture,n||0,i)}E=-1},this.readRenderTargetPixels=function(e,t,n,r,i,o,a){if(!e||!e.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let s=$.get(e).__webglFramebuffer;
2if(e.isWebGLCubeRenderTarget&&void 0!==a&&(s=s[a]),s){Z.bindFramebuffer(ve.FRAMEBUFFER,s);try{const a=e.texture,s=a.format,l=a.type;if(s!==Cn&&fe.convert(s)!==ve.getParameter(ve.IMPLEMENTATION_COLOR_READ_FORMAT))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const c=l===An&&(X.has("EXT_color_buffer_half_float")||Y.isWebGL2&&X.has("EXT_color_buffer_float"));if(l!==_n&&fe.convert(l)!==ve.getParameter(ve.IMPLEMENTATION_COLOR_READ_TYPE)&&(l!==Tn||!(Y.isWebGL2||X.has("OES_texture_float")||X.has("WEBGL_color_buffer_float")))&&!c)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&ve.readPixels(t,n,r,i,fe.convert(s),fe.convert(l),o)}finally{const e=null!==_?$.get(_).__webglFramebuffer:null;Z.bindFramebuffer(ve.FRAMEBUFFER,e)}}},this.copyFramebufferToTexture=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Math.pow(2,-n),i=Math.floor(t.image.width*r),o=Math.floor(t.image.height*r);J.setTexture2D(t,0),ve.copyTexSubImage2D(ve.TEXTURE_2D,n,0,0,e.x,e.y,i,o),Z.unbindTexture()},this.copyTextureToTexture=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const i=t.image.width,o=t.image.height,a=fe.convert(n.format),s=fe.convert(n.type);J.setTexture2D(n,0),ve.pixelStorei(ve.UNPACK_FLIP_Y_WEBGL,n.flipY),ve.pixelStorei(ve.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.premultiplyAlpha),ve.pixelStorei(ve.UNPACK_ALIGNMENT,n.unpackAlignment),t.isDataTexture?ve.texSubImage2D(ve.TEXTURE_2D,r,e.x,e.y,i,o,a,s,t.image.data):t.isCompressedTexture?ve.compressedTexSubImage2D(ve.TEXTURE_2D,r,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,a,t.mipmaps[0].data):ve.texSubImage2D(ve.TEXTURE_2D,r,e.x,e.y,a,s,t.image),0===r&&n.generateMipmaps&&ve.generateMipmap(ve.TEXTURE_2D),Z.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(y.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const o=Math.round(e.max.x-e.min.x),a=Math.round(e.max.y-e.min.y),s=e.max.z-e.min.z+1,l=fe.convert(r.format),c=fe.convert(r.type);let u;if(r.isData3DTexture)J.setTexture3D(r,0),u=ve.TEXTURE_3D;else{if(!r.isDataArrayTexture&&!r.isCompressedArrayTexture)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");J.setTexture2DArray(r,0),u=ve.TEXTURE_2D_ARRAY}ve.pixelStorei(ve.UNPACK_FLIP_Y_WEBGL,r.flipY),ve.pixelStorei(ve.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r.premultiplyAlpha),ve.pixelStorei(ve.UNPACK_ALIGNMENT,r.unpackAlignment);const d=ve.getParameter(ve.UNPACK_ROW_LENGTH),h=ve.getParameter(ve.UNPACK_IMAGE_HEIGHT),p=ve.getParameter(ve.UNPACK_SKIP_PIXELS),f=ve.getParameter(ve.UNPACK_SKIP_ROWS),m=ve.getParameter(ve.UNPACK_SKIP_IMAGES),g=n.isCompressedTexture?n.mipmaps[i]:n.image;ve.pixelStorei(ve.UNPACK_ROW_LENGTH,g.width),ve.pixelStorei(ve.UNPACK_IMAGE_HEIGHT,g.height),ve.pixelStorei(ve.UNPACK_SKIP_PIXELS,e.min.x),ve.pixelStorei(ve.UNPACK_SKIP_ROWS,e.min.y),ve.pixelStorei(ve.UNPACK_SKIP_IMAGES,e.min.z),n.isDataTexture||n.isData3DTexture?ve.texSubImage3D(u,i,t.x,t.y,t.z,o,a,s,l,c,g.data):r.isCompressedArrayTexture?ve.compressedTexSubImage3D(u,i,t.x,t.y,t.z,o,a,s,l,g.data):ve.texSubImage3D(u,i,t.x,t.y,t.z,o,a,s,l,c,g),ve.pixelStorei(ve.UNPACK_ROW_LENGTH,d),ve.pixelStorei(ve.UNPACK_IMAGE_HEIGHT,h),ve.pixelStorei(ve.UNPACK_SKIP_PIXELS,p),ve.pixelStorei(ve.UNPACK_SKIP_ROWS,f),ve.pixelStorei(ve.UNPACK_SKIP_IMAGES,m),0===i&&r.generateMipmaps&&ve.generateMipmap(u),Z.unbindTexture()},this.initTexture=function(e){e.isCubeTexture?J.setTextureCube(e,0):e.isData3DTexture?J.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?J.setTexture2DArray(e,0):J.setTexture2D(e,0),Z.unbindTexture()},this.resetState=function(){x=0,w=0,_=null,Z.reset(),me.reset()},"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return lr}get outputColorSpace(){return this._outputColorSpace}
vendor: 7,658 bytes, line 2
2set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===Wn?"display-p3":"srgb",t.unpackColorSpace=Nr.workingColorSpace===Gn?"display-p3":"srgb"}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}(class extends fc{}).prototype.isWebGL1Renderer=!0;class mc extends to{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new ji,this.environmentRotation=new ji,this.overrideMaterial=null,"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(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()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentRotation.copy(e.environmentRotation),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),t.object.environmentRotation=this.environmentRotation.toArray(),t}}class gc{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.usage=or,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=mr()}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}get updateRange(){return Pr("THREE.InterleavedBuffer: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let r=0,i=this.stride;r<i;r++)this.array[e+r]=t.array[n+r];return this}set(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(e,t),this}clone(e){void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=mr()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const t=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),n=new this.constructor(t,this.stride);return n.setUsage(this.usage),n}onUpload(e){return this.onUploadCallback=e,this}toJSON(e){return void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=mr()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const vc=new Jr;class yc{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.isInterleavedBufferAttribute=!0,this.name="",this.data=e,this.itemSize=t,this.offset=n,this.normalized=r}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let t=0,n=this.data.count;t<n;t++)vc.fromBufferAttribute(this,t),vc.applyMatrix4(e),this.setXYZ(t,vc.x,vc.y,vc.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)vc.fromBufferAttribute(this,t),vc.applyNormalMatrix(e),this.setXYZ(t,vc.x,vc.y,vc.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)vc.fromBufferAttribute(this,t),vc.transformDirection(e),this.setXYZ(t,vc.x,vc.y,vc.z);return this}getComponent(e,t){let n=this.array[e*this.data.stride+this.offset+t];return this.normalized&&(n=wr(n,this.array)),n}setComponent(e,t,n){return this.normalized&&(n=_r(n,this.array)),this.data.array[e*this.data.stride+this.offset+t]=n,this}setX(e,t){return this.normalized&&(t=_r(t,this.array)),this.data.array[e*this.data.stride+this.offset]=t,this}setY(e,t){return this.normalized&&(t=_r(t,this.array)),this.data.array[e*this.data.stride+this.offset+1]=t,this}setZ(e,t){return this.normalized&&(t=_r(t,this.array)),this.data.array[e*this.data.stride+this.offset+2]=t,this}setW(e,t){return this.normalized&&(t=_r(t,this.array)),this.data.array[e*this.data.stride+this.offset+3]=t,this}getX(e){let t=this.data.array[e*this.data.stride+this.offset];return this.normalized&&(t=wr(t,this.array)),t}getY(e){let t=this.data.array[e*this.data.stride+this.offset+1];return this.normalized&&(t=wr(t,this.array)),t}getZ(e){let t=this.data.array[e*this.data.stride+this.offset+2];return this.normalized&&(t=wr(t,this.array)),t}getW(e){let t=this.data.array[e*this.data.stride+this.offset+3];return this.normalized&&(t=wr(t,this.array)),t}setXY(e,t,n){return e=e*this.data.stride+this.offset,this.normalized&&(t=_r(t,this.array),n=_r(n,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this}setXYZ(e,t,n,r){return e=e*this.data.stride+this.offset,this.normalized&&(t=_r(t,this.array),n=_r(n,this.array),r=_r(r,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=r,this}setXYZW(e,t,n,r,i){return e=e*this.data.stride+this.offset,this.normalized&&(t=_r(t,this.array),n=_r(n,this.array),r=_r(r,this.array),i=_r(i,this.array)),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(e){if(void 0===e){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.");const e=[];for(let t=0;t<this.count;t++){const n=t*this.data.stride+this.offset;for(let t=0;t<this.itemSize;t++)e.push(this.data.array[n+t])}return new Oo(new this.array.constructor(e),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 yc(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(void 0===e){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.");const e=[];for(let t=0;t<this.count;t++){const n=t*this.data.stride+this.offset;for(let t=0;t<this.itemSize;t++)e.push(this.data.array[n+t])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:e,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}}}
2const bc=new Jr,xc=new qr,wc=new qr,_c=new Jr,Ec=new Oi,Sc=new Jr,Mc=new bi,Tc=new Oi,Ac=new Ai;class Oc extends ra{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode=ln,this.bindMatrix=new Oi,this.bindMatrixInverse=new Oi,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const e=this.geometry;null===this.boundingBox&&(this.boundingBox=new ti),this.boundingBox.makeEmpty();const t=e.getAttribute("position");for(let n=0;n<t.count;n++)this.getVertexPosition(n,Sc),this.boundingBox.expandByPoint(Sc)}computeBoundingSphere(){const e=this.geometry;null===this.boundingSphere&&(this.boundingSphere=new bi),this.boundingSphere.makeEmpty();const t=e.getAttribute("position");for(let n=0;n<t.count;n++)this.getVertexPosition(n,Sc),this.boundingSphere.expandByPoint(Sc)}copy(e,t){return super.copy(e,t),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone()),null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),this}raycast(e,t){const n=this.material,r=this.matrixWorld;void 0!==n&&(null===this.boundingSphere&&this.computeBoundingSphere(),Mc.copy(this.boundingSphere),Mc.applyMatrix4(r),!1!==e.ray.intersectsSphere(Mc)&&(Tc.copy(r).invert(),Ac.copy(e.ray).applyMatrix4(Tc),null!==this.boundingBox&&!1===Ac.intersectsBox(this.boundingBox)||this._computeIntersections(e,t,Ac)))}getVertexPosition(e,t){return super.getVertexPosition(e,t),this.applyBoneTransform(e,t),t}bind(e,t){this.skeleton=e,void 0===t&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new qr,t=this.geometry.attributes.skinWeight;for(let n=0,r=t.count;n<r;n++){e.fromBufferAttribute(t,n);const r=1/e.manhattanLength();r!==1/0?e.multiplyScalar(r):e.set(1,0,0,0),t.setXYZW(n,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),this.bindMode===ln?this.bindMatrixInverse.copy(this.matrixWorld).invert():"detached"===this.bindMode?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}applyBoneTransform(e,t){const n=this.skeleton,r=this.geometry;xc.fromBufferAttribute(r.attributes.skinIndex,e),wc.fromBufferAttribute(r.attributes.skinWeight,e),bc.copy(t).applyMatrix4(this.bindMatrix),t.set(0,0,0);for(let i=0;i<4;i++){const e=wc.getComponent(i);if(0!==e){const r=xc.getComponent(i);Ec.multiplyMatrices(n.bones[r].matrixWorld,n.boneInverses[r]),t.addScaledVector(_c.copy(bc).applyMatrix4(Ec),e)}}return t.applyMatrix4(this.bindMatrixInverse)}}class Cc extends to{constructor(){super(),this.isBone=!0,this.type="Bone"}}class Rc extends Gr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;super(null,arguments.length>5?arguments[5]:void 0,arguments.length>6?arguments[6]:void 0,arguments.length>7?arguments[7]:void 0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:gn,arguments.length>9&&void 0!==arguments[9]?arguments[9]:gn,arguments.length>3?arguments[3]:void 0,arguments.length>4?arguments[4]:void 0,arguments.length>10?arguments[10]:void 0,arguments.length>11?arguments[11]:void 0),this.isDataTexture=!0,this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const Pc=new Oi,Ic=new Oi;class Lc{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.uuid=mr(),this.bones=e.slice(0),this.boneInverses=t,this.boneMatrices=null,this.boneTexture=null,this.init()}init(){const e=this.bones,t=this.boneInverses;if(this.boneMatrices=new Float32Array(16*e.length),0===t.length)this.calculateInverses();else if(e.length!==t.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(let e=0,t=this.bones.length;e<t;e++)this.boneInverses.push(new Oi)}}calculateInverses(){this.boneInverses.length=0;for(let e=0,t=this.bones.length;e<t;e++){const t=new Oi;this.bones[e]&&t.copy(this.bones[e].matrixWorld).invert(),this.boneInverses.push(t)}}pose(){for(let e=0,t=this.bones.length;e<t;e++){const t=this.bones[e];t&&t.matrixWorld.copy(this.boneInverses[e]).invert()}for(let e=0,t=this.bones.length;e<t;e++){const t=this.bones[e];t&&(t.parent&&t.parent.isBone?(t.matrix.copy(t.parent.matrixWorld).invert(),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))}}update(){const e=this.bones,t=this.boneInverses,n=this.boneMatrices,r=this.boneTexture;for(let i=0,o=e.length;i<o;i++){const r=e[i]?e[i].matrixWorld:Ic;Pc.multiplyMatrices(r,t[i]),Pc.toArray(n,16*i)}null!==r&&(r.needsUpdate=!0)}clone(){return new Lc(this.bones,this.boneInverses)}computeBoneTexture(){let e=Math.sqrt(4*this.bones.length);e=4*Math.ceil(e/4),e=Math.max(e,4);const t=new Float32Array(e*e*4);t.set(this.boneMatrices);const n=new Rc(t,e,e,Cn,Tn);return n.needsUpdate=!0,this.boneMatrices=t,this.boneTexture=n,this}getBoneByName(e){for(let t=0,n=this.bones.length;t<n;t++){const n=this.bones[t];if(n.name===e)return n}}dispose(){null!==this.boneTexture&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,t){this.uuid=e.uuid;
vendor: 4,998 bytes, line 2
2for(let n=0,r=e.bones.length;n<r;n++){const r=e.bones[n];let i=t[r];void 0===i&&(console.warn("THREE.Skeleton: No bone found with UUID:",r),i=new Cc),this.bones.push(i),this.boneInverses.push((new Oi).fromArray(e.boneInverses[n]))}return this.init(),this}toJSON(){const e={metadata:{version:4.6,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};e.uuid=this.uuid;const t=this.bones,n=this.boneInverses;for(let r=0,i=t.length;r<i;r++){const i=t[r];e.bones.push(i.uuid);const o=n[r];e.boneInverses.push(o.toArray())}return e}}class kc extends Oo{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;super(e,t,n),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=r}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){const e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}const Dc=new Oi,Nc=new Oi,Uc=[],jc=new ti,Fc=new Oi,Bc=new ra,zc=new bi;class Hc extends ra{constructor(e,t,n){super(e,t),this.isInstancedMesh=!0,this.instanceMatrix=new kc(new Float32Array(16*n),16),this.instanceColor=null,this.morphTexture=null,this.count=n,this.boundingBox=null,this.boundingSphere=null;for(let r=0;r<n;r++)this.setMatrixAt(r,Fc)}computeBoundingBox(){const e=this.geometry,t=this.count;null===this.boundingBox&&(this.boundingBox=new ti),null===e.boundingBox&&e.computeBoundingBox(),this.boundingBox.makeEmpty();for(let n=0;n<t;n++)this.getMatrixAt(n,Dc),jc.copy(e.boundingBox).applyMatrix4(Dc),this.boundingBox.union(jc)}computeBoundingSphere(){const e=this.geometry,t=this.count;null===this.boundingSphere&&(this.boundingSphere=new bi),null===e.boundingSphere&&e.computeBoundingSphere(),this.boundingSphere.makeEmpty();for(let n=0;n<t;n++)this.getMatrixAt(n,Dc),zc.copy(e.boundingSphere).applyMatrix4(Dc),this.boundingSphere.union(zc)}copy(e,t){return super.copy(e,t),this.instanceMatrix.copy(e.instanceMatrix),null!==e.instanceColor&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone()),null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),this}getColorAt(e,t){t.fromArray(this.instanceColor.array,3*e)}getMatrixAt(e,t){t.fromArray(this.instanceMatrix.array,16*e)}getMorphAt(e,t){const n=t.morphTargetInfluences,r=this.morphTexture.source.data.data,i=e*(n.length+1)+1;for(let o=0;o<n.length;o++)n[o]=r[i+o]}raycast(e,t){const n=this.matrixWorld,r=this.count;if(Bc.geometry=this.geometry,Bc.material=this.material,void 0!==Bc.material&&(null===this.boundingSphere&&this.computeBoundingSphere(),zc.copy(this.boundingSphere),zc.applyMatrix4(n),!1!==e.ray.intersectsSphere(zc)))for(let i=0;i<r;i++){this.getMatrixAt(i,Dc),Nc.multiplyMatrices(n,Dc),Bc.matrixWorld=Nc,Bc.raycast(e,Uc);for(let e=0,n=Uc.length;e<n;e++){const n=Uc[e];n.instanceId=i,n.object=this,t.push(n)}Uc.length=0}}setColorAt(e,t){null===this.instanceColor&&(this.instanceColor=new kc(new Float32Array(3*this.instanceMatrix.count),3)),t.toArray(this.instanceColor.array,3*e)}setMatrixAt(e,t){t.toArray(this.instanceMatrix.array,16*e)}setMorphAt(e,t){const n=t.morphTargetInfluences,r=n.length+1;null===this.morphTexture&&(this.morphTexture=new Rc(new Float32Array(r*this.count),r,this.count,In,Tn));const i=this.morphTexture.source.data.data;let o=0;for(let l=0;l<n.length;l++)o+=n[l];const a=this.geometry.morphTargetsRelative?1:1-o,s=r*e;i[s]=a,i.set(n,s+1)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}class Vc extends wo{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new yo(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const Wc=new Jr,Gc=new Jr,qc=new Oi,Xc=new Ai,Yc=new bi;class Zc extends to{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Fo,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Vc;super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(null===e.index){const t=e.attributes.position,n=[0];for(let e=1,r=t.count;e<r;e++)Wc.fromBufferAttribute(t,e-1),Gc.fromBufferAttribute(t,e),n[e]=n[e-1],n[e]+=Wc.distanceTo(Gc);e.setAttribute("lineDistance",new Po(n,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(e,t){const n=this.geometry,r=this.matrixWorld,i=e.params.Line.threshold,o=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Yc.copy(n.boundingSphere),Yc.applyMatrix4(r),Yc.radius+=i,!1===e.ray.intersectsSphere(Yc)
vendor: 6,786 bytes, line 2
2)return;qc.copy(r).invert(),Xc.copy(e.ray).applyMatrix4(qc);const a=i/((this.scale.x+this.scale.y+this.scale.z)/3),s=a*a,l=new Jr,c=new Jr,u=new Jr,d=new Jr,h=this.isLineSegments?2:1,p=n.index,f=n.attributes.position;if(null!==p){for(let n=Math.max(0,o.start),r=Math.min(p.count,o.start+o.count)-1;n<r;n+=h){const r=p.getX(n),i=p.getX(n+1);l.fromBufferAttribute(f,r),c.fromBufferAttribute(f,i);if(Xc.distanceSqToSegment(l,c,d,u)>s)continue;d.applyMatrix4(this.matrixWorld);const o=e.ray.origin.distanceTo(d);o<e.near||o>e.far||t.push({distance:o,point:u.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else{for(let n=Math.max(0,o.start),r=Math.min(f.count,o.start+o.count)-1;n<r;n+=h){l.fromBufferAttribute(f,n),c.fromBufferAttribute(f,n+1);if(Xc.distanceSqToSegment(l,c,d,u)>s)continue;d.applyMatrix4(this.matrixWorld);const r=e.ray.origin.distanceTo(d);r<e.near||r>e.far||t.push({distance:r,point:u.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}}const Kc=new Jr,$c=new Jr;class Jc extends Zc{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(null===e.index){const t=e.attributes.position,n=[];for(let e=0,r=t.count;e<r;e+=2)Kc.fromBufferAttribute(t,e),$c.fromBufferAttribute(t,e+1),n[e]=0===e?0:n[e-1],n[e+1]=n[e]+Kc.distanceTo($c);e.setAttribute("lineDistance",new Po(n,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class Qc extends Zc{constructor(e,t){super(e,t),this.isLineLoop=!0,this.type="LineLoop"}}class eu extends wo{constructor(e){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new yo(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}const tu=new Oi,nu=new Ai,ru=new bi,iu=new Jr;class ou extends to{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Fo,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new eu;super(),this.isPoints=!0,this.type="Points",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}raycast(e,t){const n=this.geometry,r=this.matrixWorld,i=e.params.Points.threshold,o=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),ru.copy(n.boundingSphere),ru.applyMatrix4(r),ru.radius+=i,!1===e.ray.intersectsSphere(ru))return;tu.copy(r).invert(),nu.copy(e.ray).applyMatrix4(tu);const a=i/((this.scale.x+this.scale.y+this.scale.z)/3),s=a*a,l=n.index,c=n.attributes.position;if(null!==l){for(let n=Math.max(0,o.start),i=Math.min(l.count,o.start+o.count);n<i;n++){const i=l.getX(n);iu.fromBufferAttribute(c,i),au(iu,i,s,r,e,t,this)}}else{for(let n=Math.max(0,o.start),i=Math.min(c.count,o.start+o.count);n<i;n++)iu.fromBufferAttribute(c,n),au(iu,n,s,r,e,t,this)}}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}}function au(e,t,n,r,i,o,a){const s=nu.distanceSqToPoint(e);if(s<n){const n=new Jr;nu.closestPointToPoint(e,n),n.applyMatrix4(r);const l=i.ray.origin.distanceTo(n);if(l<i.near||l>i.far)return;o.push({distance:l,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,object:a})}}class su{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,t){const n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.arcLengthDivisions;if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let n,r=this.getPoint(0),i=0;t.push(0);for(let o=1;o<=e;o++)n=this.getPoint(o/e),i+=n.distanceTo(r),t.push(i),r=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const n=this.getLengths();let r=0;const i=n.length;let o;o=t||e*n[i-1];let a,s=0,l=i-1;for(;s<=l;)if(r=Math.floor(s+(l-s)/2),a=n[r]-o,a<0)s=r+1;else{if(!(a>0)){l=r;break}l=r-1}if(r=l,n[r]===o)return r/(i-1);const c=n[r];return(r+(o-c)/(n[r+1]-c))/(i-1)}getTangent(e,t){const n=1e-4;let r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);const o=this.getPoint(r),a=this.getPoint(i),s=t||(o.isVector2?new Sr:new Jr);return s.copy(a).sub(o).normalize(),s}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){const n=new Jr,r=[],i=[],o=[],a=new Jr,s=new Oi;for(let h=0;h<=e;h++){const t=h/e;r[h]=this.getTangentAt(t,new Jr)}i[0]=new Jr,o[0]=new Jr;let l=Number.MAX_VALUE;const c=Math.abs(r[0].x),u=Math.abs(r[0].y),d=Math.abs(r[0].z);c<=l&&(l=c,n.set(1,0,0)),u<=l&&(l=u,n.set(0,1,0)),d<=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(let h=1;h<=e;h++){if(i[h]=i[h-1].clone(),o[h]=o[h-1].clone(),a.crossVectors(r[h-1],r[h]),a.length()>Number.EPSILON){a.normalize();const e=Math.acos(gr(r[h-1].dot(r[h]),-1,1));i[h].applyMatrix4(s.makeRotationAxis(a,e))}o[h].crossVectors(r[h],i[h])}if(!0===t){let t=Math.acos(gr(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(a.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),o[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:o}}clone(){return(new this.constructor).copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.t
vendor: 4,562 bytes, line 2
2ype,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class lu extends su{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2*Math.PI,a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=o,this.aClockwise=a,this.aRotation=s}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Sr,n=2*Math.PI;let r=this.aEndAngle-this.aStartAngle;const i=Math.abs(r)<Number.EPSILON;for(;r<0;)r+=n;for(;r>n;)r-=n;r<Number.EPSILON&&(r=i?0:n),!0!==this.aClockwise||i||(r===n?r=-n:r-=n);const o=this.aStartAngle+e*r;let a=this.aX+this.xRadius*Math.cos(o),s=this.aY+this.yRadius*Math.sin(o);if(0!==this.aRotation){const e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=a-this.aX,r=s-this.aY;a=n*e-r*t+this.aX,s=n*t+r*e+this.aY}return t.set(a,s)}copy(e){return super.copy(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}toJSON(){const e=super.toJSON();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}fromJSON(e){return super.fromJSON(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}}function cu(){let 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){let l=(t-e)/o-(n-e)/(o+a)+(n-t)/a,c=(n-t)/a-(r-t)/(a+s)+(r-n)/s;l*=a,c*=a,i(t,n,l,c)},calc:function(i){const o=i*i;return e+t*i+n*o+r*(o*i)}}}const uu=new Jr,du=new cu,hu=new cu,pu=new cu;class fu extends su{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"centripetal",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;super(),this.isCatmullRomCurve3=!0,this.type="CatmullRomCurve3",this.points=e,this.closed=t,this.curveType=n,this.tension=r}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Jr,n=this.points,r=n.length,i=(r-(this.closed?0:1))*e;let o,a,s=Math.floor(i),l=i-s;this.closed?s+=s>0?0:(Math.floor(Math.abs(s)/r)+1)*r:0===l&&s===r-1&&(s=r-2,l=1),this.closed||s>0?o=n[(s-1)%r]:(uu.subVectors(n[0],n[1]).add(n[0]),o=uu);const c=n[s%r],u=n[(s+1)%r];if(this.closed||s+2<r?a=n[(s+2)%r]:(uu.subVectors(n[r-1],n[r-2]).add(n[r-1]),a=uu),"centripetal"===this.curveType||"chordal"===this.curveType){const e="chordal"===this.curveType?.5:.25;let t=Math.pow(o.distanceToSquared(c),e),n=Math.pow(c.distanceToSquared(u),e),r=Math.pow(u.distanceToSquared(a),e);n<1e-4&&(n=1),t<1e-4&&(t=n),r<1e-4&&(r=n),du.initNonuniformCatmullRom(o.x,c.x,u.x,a.x,t,n,r),hu.initNonuniformCatmullRom(o.y,c.y,u.y,a.y,t,n,r),pu.initNonuniformCatmullRom(o.z,c.z,u.z,a.z,t,n,r)}else"catmullrom"===this.curveType&&(du.initCatmullRom(o.x,c.x,u.x,a.x,this.tension),hu.initCatmullRom(o.y,c.y,u.y,a.y,this.tension),pu.initCatmullRom(o.z,c.z,u.z,a.z,this.tension));return t.set(du.calc(l),hu.calc(l),pu.calc(l)),t}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push(n.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){const n=this.points[t];e.points.push(n.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push((new Jr).fromArray(n))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}}function mu(e,t,n,r,i){const o=.5*(r-t),a=.5*(i-n),s=e*e;
vendor: 8,253 bytes, line 2
2return(2*n-2*r+o+a)*(e*s)+(-3*n+3*r-2*o-a)*s+o*e+n}function gu(e,t,n,r){return function(e,t){const 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 vu(e,t,n,r,i){return function(e,t){const n=1-e;return n*n*n*t}(e,t)+function(e,t){const 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)}class yu extends su{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Sr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Sr,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Sr,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Sr;super(),this.isCubicBezierCurve=!0,this.type="CubicBezierCurve",this.v0=e,this.v1=t,this.v2=n,this.v3=r}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Sr,n=this.v0,r=this.v1,i=this.v2,o=this.v3;return t.set(vu(e,n.x,r.x,i.x,o.x),vu(e,n.y,r.y,i.y,o.y)),t}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class bu extends su{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Sr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Sr;super(),this.isLineCurve=!0,this.type="LineCurve",this.v1=e,this.v2=t}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Sr;return 1===e?t.copy(this.v2):(t.copy(this.v2).sub(this.v1),t.multiplyScalar(e).add(this.v1)),t}getPointAt(e,t){return this.getPoint(e,t)}getTangent(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Sr).subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class xu extends su{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Sr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Sr,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Sr;super(),this.isQuadraticBezierCurve=!0,this.type="QuadraticBezierCurve",this.v0=e,this.v1=t,this.v2=n}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Sr,n=this.v0,r=this.v1,i=this.v2;return t.set(gu(e,n.x,r.x,i.x),gu(e,n.y,r.y,i.y)),t}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class wu extends su{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(),this.isSplineCurve=!0,this.type="SplineCurve",this.points=e}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Sr,n=this.points,r=(n.length-1)*e,i=Math.floor(r),o=r-i,a=n[0===i?i:i-1],s=n[i],l=n[i>n.length-2?n.length-1:i+1],c=n[i>n.length-3?n.length-1:i+2];return t.set(mu(o,a.x,s.x,l.x,c.x),mu(o,a.y,s.y,l.y,c.y)),t}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push(n.clone())}return this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){const n=this.points[t];e.points.push(n.toArray())}return e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push((new Sr).fromArray(n))}return this}}var _u=Object.freeze({__proto__:null,ArcCurve:class extends lu{constructor(e,t,n,r,i,o){super(e,t,n,n,r,i,o),this.isArcCurve=!0,this.type="ArcCurve"}},CatmullRomCurve3:fu,CubicBezierCurve:yu,CubicBezierCurve3:class extends su{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Jr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Jr,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Jr,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Jr;super(),this.isCubicBezierCurve3=!0,this.type="CubicBezierCurve3",this.v0=e,this.v1=t,this.v2=n,this.v3=r}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Jr,n=this.v0,r=this.v1,i=this.v2,o=this.v3;return t.set(vu(e,n.x,r.x,i.x,o.x),vu(e,n.y,r.y,i.y,o.y),vu(e,n.z,r.z,i.z,o.z)),t}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}},EllipseCurve:lu,LineCurve:bu,LineCurve3:class extends su{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Jr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Jr;super(),this.isLineCurve3=!0,this.type="LineCurve3",this.v1=e,this.v2=t}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Jr;return 1===e?t.copy(this.v2):(t.copy(this.v2).sub(this.v1),t.multiplyScalar(e).add(this.v1)),t}getPointAt(e,t){return this.getPoint(e,t)}getTangent(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Jr).subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}},QuadraticBezierCurve:xu,QuadraticBezierCurve3:class extends su{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Jr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Jr,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Jr;super(),this.isQuadraticBezierCurve3=!0,this.type="QuadraticBezierCurve3",this.v0=e,this.v1=t,this.v2=n}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Jr,n=this.v0,r=this.v1,i=this.v2;return t.set(gu(e,n.x,r.x,i.x),gu(e,n.y,r.y,i.y),gu(e,n.z,r.z,i.z)),t}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}},SplineCurve:wu});class Eu extends su{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(e){this.curves.push(e)}closePath(){const e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);if(!e.equals(t)){const n=!0===e.isVector2?"LineCurve":"LineCurve3";this.curves.push(new _u[n](t,e))}return this}getPoint(e,t){const n=e*this.getLength(),r=this.getCurveLengths();let i=0;for(;i<r.length;){if(r[i]>=n){const e=r[i]-n,o=this.curves[i],a=o.getLength(),s=0===a?0:1-e/a;return o.getPointAt(s,t)}i++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let n=0,r=this.curves.length;n<r;n++)t+=this.curves[n].getLength(),e.push(t);return this.cacheLengths=e,e}getSpacedPoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:40;const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t}getPoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12;const t=[];let n;for(let r=0,i=this.curves;r<i.length;r++){const o=i[r],a=o.isEllipseCurve?2*e:o.isLineCurve||o.isLineCurve3?1:o.isS
vendor: 4,303 bytes, line 2
2plineCurve?e*o.points.length:e,s=o.getPoints(a);for(let e=0;e<s.length;e++){const r=s[e];n&&n.equals(r)||(t.push(r),n=r)}}return this.autoClose&&t.length>1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){const n=e.curves[t];this.curves.push(n.clone())}return this.autoClose=e.autoClose,this}toJSON(){const e=super.toJSON();e.autoClose=this.autoClose,e.curves=[];for(let t=0,n=this.curves.length;t<n;t++){const n=this.curves[t];e.curves.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.autoClose=e.autoClose,this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){const n=e.curves[t];this.curves.push((new _u[n.type]).fromJSON(n))}return this}}class Su extends Eu{constructor(e){super(),this.type="Path",this.currentPoint=new Sr,e&&this.setFromPoints(e)}setFromPoints(e){this.moveTo(e[0].x,e[0].y);for(let t=1,n=e.length;t<n;t++)this.lineTo(e[t].x,e[t].y);return this}moveTo(e,t){return this.currentPoint.set(e,t),this}lineTo(e,t){const n=new bu(this.currentPoint.clone(),new Sr(e,t));return this.curves.push(n),this.currentPoint.set(e,t),this}quadraticCurveTo(e,t,n,r){const i=new xu(this.currentPoint.clone(),new Sr(e,t),new Sr(n,r));return this.curves.push(i),this.currentPoint.set(n,r),this}bezierCurveTo(e,t,n,r,i,o){const a=new yu(this.currentPoint.clone(),new Sr(e,t),new Sr(n,r),new Sr(i,o));return this.curves.push(a),this.currentPoint.set(i,o),this}splineThru(e){const t=[this.currentPoint.clone()].concat(e),n=new wu(t);return this.curves.push(n),this.currentPoint.copy(e[e.length-1]),this}arc(e,t,n,r,i,o){const a=this.currentPoint.x,s=this.currentPoint.y;return this.absarc(e+a,t+s,n,r,i,o),this}absarc(e,t,n,r,i,o){return this.absellipse(e,t,n,n,r,i,o),this}ellipse(e,t,n,r,i,o,a,s){const l=this.currentPoint.x,c=this.currentPoint.y;return this.absellipse(e+l,t+c,n,r,i,o,a,s),this}absellipse(e,t,n,r,i,o,a,s){const l=new lu(e,t,n,r,i,o,a,s);if(this.curves.length>0){const e=l.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(l);const c=l.getPoint(1);return this.currentPoint.copy(c),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class Mu extends Fo{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:32,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:2*Math.PI;super(),this.type="CylinderGeometry",this.parameters={radiusTop:e,radiusBottom:t,height:n,radialSegments:r,heightSegments:i,openEnded:o,thetaStart:a,thetaLength:s};const l=this;r=Math.floor(r),i=Math.floor(i);const c=[],u=[],d=[],h=[];let p=0;const f=[],m=n/2;let g=0;function v(n){const i=p,o=new Sr,f=new Jr;let v=0;const y=!0===n?e:t,b=!0===n?1:-1;for(let e=1;e<=r;e++)u.push(0,m*b,0),d.push(0,b,0),h.push(.5,.5),p++;const x=p;for(let e=0;e<=r;e++){const t=e/r*s+a,n=Math.cos(t),i=Math.sin(t);f.x=y*i,f.y=m*b,f.z=y*n,u.push(f.x,f.y,f.z),d.push(0,b,0),o.x=.5*n+.5,o.y=.5*i*b+.5,h.push(o.x,o.y),p++}for(let e=0;e<r;e++){const t=i+e,r=x+e;!0===n?c.push(r,r+1,t):c.push(r+1,r,t),v+=3}l.addGroup(g,v,!0===n?1:2),g+=v}!function(){const o=new Jr,v=new Jr;let y=0;const b=(t-e)/n;for(let l=0;l<=i;l++){const c=[],g=l/i,y=g*(t-e)+e;for(let e=0;e<=r;e++){const t=e/r,i=t*s+a,l=Math.sin(i),f=Math.cos(i);v.x=y*l,v.y=-g*n+m,v.z=y*f,u.push(v.x,v.y,v.z),o.set(l,b,f).normalize(),d.push(o.x,o.y,o.z),h.push(t,1-g),c.push(p++)}f.push(c)}for(let e=0;e<r;e++)for(let t=0;t<i;t++){const n=f[t][e],r=f[t+1][e],i=f[t+1][e+1],o=f[t][e+1];c.push(n,r,o),c.push(r,i,o),y+=6}l.addGroup(g,y,0),g+=y}(),!1===o&&(e>0&&v(!0),t>0&&v(!1)),this.setIndex(c),this.setAttribute("position",new Po(u,3)),this.setAttribute("normal",new Po(d,3)),this.setAttribute("uv",new Po(h,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}
2static fromJSON(e){return new Mu(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class Tu extends Su{constructor(e){super(e),this.uuid=mr(),this.type="Shape",this.holes=[]}getPointsHoles(e){const t=[];for(let n=0,r=this.holes.length;n<r;n++)t[n]=this.holes[n].getPoints(e);return t}extractPoints(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}}copy(e){super.copy(e),this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){const n=e.holes[t];this.holes.push(n.clone())}return this}toJSON(){const e=super.toJSON();e.uuid=this.uuid,e.holes=[];for(let t=0,n=this.holes.length;t<n;t++){const n=this.holes[t];e.holes.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.uuid=e.uuid,this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){const n=e.holes[t];this.holes.push((new Su).fromJSON(n))}return this}}const Au=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;const r=t&&t.length,i=r?t[0]*n:e.length;let o=Ou(e,0,i,n,!0);const a=[];if(!o||o.next===o.prev)return a;let s,l,c,u,d,h,p;if(r&&(o=function(e,t,n,r){const i=[];let o,a,s,l,c;for(o=0,a=t.length;o<a;o++)s=t[o]*r,l=o<a-1?t[o+1]*r:e.length,c=Ou(e,s,l,r,!1),c===c.next&&(c.steiner=!0),i.push(Fu(c));for(i.sort(Du),o=0;o<i.length;o++)n=Nu(i[o],n);return n}(e,t,o,n)),e.length>80*n){s=c=e[0],l=u=e[1];for(let t=n;t<i;t+=n)d=e[t],h=e[t+1],d<s&&(s=d),h<l&&(l=h),d>c&&(c=d),h>u&&(u=h);p=Math.max(c-s,u-l),p=0!==p?32767/p:0}return Ru(o,a,n,s,l,p,0),a};function Ou(e,t,n,r,i){let o,a;if(i===function(e,t,n,r){let i=0;for(let 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=Zu(o,e[o],e[o+1],a);else for(o=n-r;o>=t;o-=r)a=Zu(o,e[o],e[o+1],a);return a&&Vu(a,a.next)&&(Ku(a),a=a.next),a}function Cu(e,t){if(!e)return e;t||(t=e);let n,r=e;do{if(n=!1,r.steiner||!Vu(r,r.next)&&0!==Hu(r.prev,r,r.next))r=r.next;else{if(Ku(r),r=t=r.prev,r===r.next)break;n=!0}}while(n||r!==t);return t}function Ru(e,t,n,r,i,o,a){if(!e)return;!a&&o&&function(e,t,n,r){let i=e;do{0===i.z&&(i.z=ju(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){let t,n,r,i,o,a,s,l,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,r);t++);for(l=c;s>0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--),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);let s,l,c=e;for(;e.prev!==e.next;)if(s=e.prev,l=e.next,o?Iu(e,r,i,o):Pu(e))t.push(s.i/n|0),t.push(e.i/n|0),t.push(l.i/n|0),Ku(e),e=l.next,c=l.next;else if((e=l)===c){a?1===a?Ru(e=Lu(Cu(e),t,n),t,n,r,i,o,2):2===a&&ku(e,t,n,r,i,o):Ru(Cu(e),t,n,r,i,o,1);break}}function Pu(e){const t=e.prev,n=e,r=e.next;if(Hu(t,n,r)>=0)return!1;const i=t.x,o=n.x,a=r.x,s=t.y,l=n.y,c=r.y,u=i<o?i<a?i:a:o<a?o:a,d=s<l?s<c?s:c:l<c?l:c,h=i>o?i>a?i:a:o>a?o:a,p=s>l?s>c?s:c:l>c?l:c;let f=r.next;for(;f!==t;){if(f.x>=u&&f.x<=h&&f.y>=d&&f.y<=p&&Bu(i,s,o,l,a,c,f.x,f.y)&&Hu(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function Iu(e,t,n,r){const i=e.prev,o=e,a=e.next;if(Hu(i,o,a)>=0)return!1;const s=i.x,l=o.x,c=a.x,u=i.y,d=o.y,h=a.y,p=s<l?s<c?s:c:l<c?l:c,f=u<d?u<h?u:h:d<h?d:h,m=s>l?s>c?s:c:l>c?l:c,g=u>d?u>h?u:h:d>h?d:h,v=ju(p,f,t,n,r),y=ju(m,g,t,n,r);let b=e.prevZ,x=e.nextZ;for(;b&&b.z>=v&&x&&x.z<=y;){if(b.x>=p&&b.x<=m&&b.y>=f&&b.y<=g&&b!==i&&b!==a&&Bu(s,u,l,d,c,h,b.x,b.y)&&Hu(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,x.x>=p&&x.x<=m&&x.y>=f&&x.y<=g&&x!==i&&x!==a&&Bu(s,u,l,d,c,h,x.x,x.y)&&Hu(x.prev,x,x.next)>=0)return!1;x=x.nextZ}for(;b&&b.z>=v;){if(b.x>=p&&b.x<=m&&b.y>=f&&b.y<=g&&b!==i&&b!==a&&Bu(s,u,l,d,c,h,b.x,b.y)&&Hu(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;x&&x.z<=y;){if(x.x>=p&&x.x<=m&&x.y>=f&&x.y<=g&&x!==i&&x!==a&&Bu(s,u,l,d,c,h,x.x,x.y)&&Hu(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function Lu(e,t,n){let r=e;do{const i=r.prev,o=r.next.next;!Vu(i,o)&&Wu(i,r,r.next,o)&&Xu(i,o)&&Xu(o,i)&&(t.push(i.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),Ku(r),Ku(r.next),r=e=o),r=r.next}while(r!==e);return Cu(r)}function ku(e,t,n,r,i,o){let a=e;do{let e=a.next.next;for(;e!==a.prev;){if(a.i!==e.i&&zu(a,e)){let s=Yu(a,e);return a=Cu(a,a.next),s=Cu(s,s.next),Ru(a,t,n,r,i,o,0),void Ru(s,t,n,r,i,o,0)}e=e.next}a=a.next}while(a!==e)}function Du(e,t){return e.x-t.x}function Nu(e,t){const n=function(e,t){let n,r=t,i=-1/0;
2const o=e.x,a=e.y;do{if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){const e=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(e<=o&&e>i&&(i=e,n=r.x<r.next.x?r:r.next,e===o))return n}r=r.next}while(r!==t);if(!n)return null;const s=n,l=n.x,c=n.y;let u,d=1/0;r=n;do{o>=r.x&&r.x>=l&&o!==r.x&&Bu(a<c?o:i,a,l,c,a<c?i:o,a,r.x,r.y)&&(u=Math.abs(a-r.y)/(o-r.x),Xu(r,e)&&(u<d||u===d&&(r.x>n.x||r.x===n.x&&Uu(n,r)))&&(n=r,d=u)),r=r.next}while(r!==s);return n}(e,t);if(!n)return t;const r=Yu(n,e);return Cu(r,r.next),Cu(n,n.next)}function Uu(e,t){return Hu(e.prev,e,t.prev)<0&&Hu(t.next,e,e.next)<0}function ju(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Fu(e){let 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 Bu(e,t,n,r,i,o,a,s){return(i-a)*(t-s)>=(e-a)*(o-s)&&(e-a)*(r-s)>=(n-a)*(t-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function zu(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Wu(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Xu(e,t)&&Xu(t,e)&&function(e,t){let n=e,r=!1;const 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)&&(Hu(e.prev,e,t.prev)||Hu(e,t.prev,t))||Vu(e,t)&&Hu(e.prev,e,e.next)>0&&Hu(t.prev,t,t.next)>0)}function Hu(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Vu(e,t){return e.x===t.x&&e.y===t.y}function Wu(e,t,n,r){const i=qu(Hu(e,t,n)),o=qu(Hu(e,t,r)),a=qu(Hu(n,r,e)),s=qu(Hu(n,r,t));return i!==o&&a!==s||(!(0!==i||!Gu(e,n,t))||(!(0!==o||!Gu(e,r,t))||(!(0!==a||!Gu(n,e,r))||!(0!==s||!Gu(n,t,r)))))}function Gu(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 qu(e){return e>0?1:e<0?-1:0}function Xu(e,t){return Hu(e.prev,e,e.next)<0?Hu(e,t,e.next)>=0&&Hu(e,e.prev,t)>=0:Hu(e,t,e.prev)<0||Hu(e,e.next,t)<0}function Yu(e,t){const n=new $u(e.i,e.x,e.y),r=new $u(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 Zu(e,t,n,r){const i=new $u(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 Ku(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 $u(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}class Ju{static area(e){const t=e.length;let n=0;for(let 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}static isClockWise(e){return Ju.area(e)<0}static triangulateShape(e,t){const n=[],r=[],i=[];Qu(e),ed(n,e);let o=e.length;t.forEach(Qu);for(let s=0;s<t.length;s++)r.push(o),o+=t[s].length,ed(n,t[s]);const a=Au(n,r);for(let s=0;s<a.length;s+=3)i.push(a.slice(s,s+3));return i}}function Qu(e){const t=e.length;t>2&&e[t-1].equals(e[0])&&e.pop()}function ed(e,t){for(let n=0;n<t.length;n++)e.push(t[n].x),e.push(t[n].y)}class td extends Fo{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Tu([new Sr(.5,.5),new Sr(-.5,.5),new Sr(-.5,-.5),new Sr(.5,-.5)]),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),this.type="ExtrudeGeometry",this.parameters={shapes:e,options:t},e=Array.isArray(e)?e:[e];const n=this,r=[],i=[];for(let a=0,s=e.length;a<s;a++){o(e[a])}function o(e){const o=[],a=void 0!==t.curveSegments?t.curveSegments:12,s=void 0!==t.steps?t.steps:1,l=void 0!==t.depth?t.depth:1;let c=void 0===t.bevelEnabled||t.bevelEnabled,u=void 0!==t.bevelThickness?t.bevelThickness:.2,d=void 0!==t.bevelSize?t.bevelSize:u-.1,h=void 0!==t.bevelOffset?t.bevelOffset:0,p=void 0!==t.bevelSegments?t.bevelSegments:3;const f=t.extrudePath,m=void 0!==t.UVGenerator?t.UVGenerator:nd;let g,v,y,b,x,w=!1;f&&(g=f.getSpacedPoints(s),w=!0,c=!1,v=f.computeFrenetFrames(s,!1),y=new Jr,b=new Jr,x=new Jr),c||(p=0,u=0,d=0,h=0);const _=e.extractPoints(a);let E=_.shape;const S=_.holes;if(!Ju.isClockWise(E)){E=E.reverse();for(let e=0,t=S.length;e<t;e++){const t=S[e];Ju.isClockWise(t)&&(S[e]=t.reverse())}}const M=Ju.triangulateShape(E,S),T=E;for(let t=0,n=S.length;t<n;t++){const e=S[t];E=E.concat(e)}function A(e,t,n){return t||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().addScaledVector(t,n)}const O=E.length,C=M.length;function R(e,t,n){let r,i,o;
vendor: 20,682 bytes, line 2
2const a=e.x-t.x,s=e.y-t.y,l=n.x-e.x,c=n.y-e.y,u=a*a+s*s,d=a*c-s*l;if(Math.abs(d)>Number.EPSILON){const d=Math.sqrt(u),h=Math.sqrt(l*l+c*c),p=t.x-s/d,f=t.y+a/d,m=((n.x-c/h-p)*c-(n.y+l/h-f)*l)/(a*c-s*l);r=p+a*m-e.x,i=f+s*m-e.y;const g=r*r+i*i;if(g<=2)return new Sr(r,i);o=Math.sqrt(g/2)}else{let e=!1;a>Number.EPSILON?l>Number.EPSILON&&(e=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(e=!0):Math.sign(s)===Math.sign(c)&&(e=!0),e?(r=-s,i=a,o=Math.sqrt(u)):(r=a,i=s,o=Math.sqrt(u/2))}return new Sr(r/o,i/o)}const P=[];for(let t=0,n=T.length,r=n-1,i=t+1;t<n;t++,r++,i++)r===n&&(r=0),i===n&&(i=0),P[t]=R(T[t],T[r],T[i]);const I=[];let L,k=P.concat();for(let t=0,n=S.length;t<n;t++){const e=S[t];L=[];for(let t=0,n=e.length,r=n-1,i=t+1;t<n;t++,r++,i++)r===n&&(r=0),i===n&&(i=0),L[t]=R(e[t],e[r],e[i]);I.push(L),k=k.concat(L)}for(let t=0;t<p;t++){const e=t/p,n=u*Math.cos(e*Math.PI/2),r=d*Math.sin(e*Math.PI/2)+h;for(let t=0,i=T.length;t<i;t++){const e=A(T[t],P[t],r);U(e.x,e.y,-n)}for(let t=0,i=S.length;t<i;t++){const e=S[t];L=I[t];for(let t=0,i=e.length;t<i;t++){const i=A(e[t],L[t],r);U(i.x,i.y,-n)}}}const D=d+h;for(let t=0;t<O;t++){const e=c?A(E[t],k[t],D):E[t];w?(b.copy(v.normals[0]).multiplyScalar(e.x),y.copy(v.binormals[0]).multiplyScalar(e.y),x.copy(g[0]).add(b).add(y),U(x.x,x.y,x.z)):U(e.x,e.y,0)}for(let t=1;t<=s;t++)for(let e=0;e<O;e++){const n=c?A(E[e],k[e],D):E[e];w?(b.copy(v.normals[t]).multiplyScalar(n.x),y.copy(v.binormals[t]).multiplyScalar(n.y),x.copy(g[t]).add(b).add(y),U(x.x,x.y,x.z)):U(n.x,n.y,l/s*t)}for(let t=p-1;t>=0;t--){const e=t/p,n=u*Math.cos(e*Math.PI/2),r=d*Math.sin(e*Math.PI/2)+h;for(let t=0,i=T.length;t<i;t++){const e=A(T[t],P[t],r);U(e.x,e.y,l+n)}for(let t=0,i=S.length;t<i;t++){const e=S[t];L=I[t];for(let t=0,i=e.length;t<i;t++){const i=A(e[t],L[t],r);w?U(i.x,i.y+g[s-1].y,g[s-1].x+n):U(i.x,i.y,l+n)}}}function N(e,t){let n=e.length;for(;--n>=0;){const r=n;let i=n-1;i<0&&(i=e.length-1);for(let e=0,n=s+2*p;e<n;e++){const n=O*e,o=O*(e+1);F(t+r+n,t+i+n,t+i+o,t+r+o)}}}function U(e,t,n){o.push(e),o.push(t),o.push(n)}function j(e,t,i){B(e),B(t),B(i);const o=r.length/3,a=m.generateTopUV(n,r,o-3,o-2,o-1);z(a[0]),z(a[1]),z(a[2])}function F(e,t,i,o){B(e),B(t),B(o),B(t),B(i),B(o);const a=r.length/3,s=m.generateSideWallUV(n,r,a-6,a-3,a-2,a-1);z(s[0]),z(s[1]),z(s[3]),z(s[1]),z(s[2]),z(s[3])}function B(e){r.push(o[3*e+0]),r.push(o[3*e+1]),r.push(o[3*e+2])}function z(e){i.push(e.x),i.push(e.y)}!function(){const e=r.length/3;if(c){let e=0,t=O*e;for(let n=0;n<C;n++){const e=M[n];j(e[2]+t,e[1]+t,e[0]+t)}e=s+2*p,t=O*e;for(let n=0;n<C;n++){const e=M[n];j(e[0]+t,e[1]+t,e[2]+t)}}else{for(let e=0;e<C;e++){const t=M[e];j(t[2],t[1],t[0])}for(let e=0;e<C;e++){const t=M[e];j(t[0]+O*s,t[1]+O*s,t[2]+O*s)}}n.addGroup(e,r.length/3-e,0)}(),function(){const e=r.length/3;let t=0;N(T,t),t+=T.length;for(let n=0,r=S.length;n<r;n++){const e=S[n];N(e,t),t+=e.length}n.addGroup(e,r.length/3-e,1)}()}this.setAttribute("position",new Po(r,3)),this.setAttribute("uv",new Po(i,2)),this.computeVertexNormals()}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON();return function(e,t,n){if(n.shapes=[],Array.isArray(e))for(let r=0,i=e.length;r<i;r++){const t=e[r];n.shapes.push(t.uuid)}else n.shapes.push(e.uuid);n.options=Object.assign({},t),void 0!==t.extrudePath&&(n.options.extrudePath=t.extrudePath.toJSON());return n}(this.parameters.shapes,this.parameters.options,e)}static fromJSON(e,t){const n=[];for(let i=0,o=e.shapes.length;i<o;i++){const r=t[e.shapes[i]];n.push(r)}const r=e.options.extrudePath;return void 0!==r&&(e.options.extrudePath=(new _u[r.type]).fromJSON(r)),new td(n,e.options)}}const nd={generateTopUV:function(e,t,n,r,i){const o=t[3*n],a=t[3*n+1],s=t[3*r],l=t[3*r+1],c=t[3*i],u=t[3*i+1];return[new Sr(o,a),new Sr(s,l),new Sr(c,u)]},generateSideWallUV:function(e,t,n,r,i,o){const a=t[3*n],s=t[3*n+1],l=t[3*n+2],c=t[3*r],u=t[3*r+1],d=t[3*r+2],h=t[3*i],p=t[3*i+1],f=t[3*i+2],m=t[3*o],g=t[3*o+1],v=t[3*o+2];return Math.abs(s-u)<Math.abs(a-c)?[new Sr(a,1-l),new Sr(c,1-d),new Sr(h,1-f),new Sr(m,1-v)]:[new Sr(s,1-l),new Sr(u,1-d),new Sr(p,1-f),new Sr(g,1-v)]}};class rd extends Fo{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Tu([new Sr(0,.5),new Sr(-.5,-.5),new Sr(.5,-.5)]),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;super(),this.type="ShapeGeometry",this.parameters={shapes:e,curveSegments:t};const n=[],r=[],i=[],o=[];let a=0,s=0;if(!1===Array.isArray(e))l(e);else for(let c=0;c<e.length;c++)l(e[c]),this.addGroup(a,s,c),a+=s,s=0;function l(e){const a=r.length/3,l=e.extractPoints(t);let c=l.shape;const u=l.holes;!1===Ju.isClockWise(c)&&(c=c.reverse());for(let t=0,n=u.length;t<n;t++){const e=u[t];!0===Ju.isClockWise(e)&&(u[t]=e.reverse())}const d=Ju.triangulateShape(c,u);for(let t=0,n=u.length;t<n;t++){const e=u[t];c=c.concat(e)}for(let t=0,n=c.length;t<n;t++){const e=c[t];r.push(e.x,e.y,0),i.push(0,0,1),o.push(e.x,e.y)}for(let t=0,r=d.length;t<r;t++){const e=d[t],r=e[0]+a,i=e[1]+a,o=e[2]+a;n.push(r,i,o),s+=3}}this.setIndex(n),this.setAttribute("position",new Po(r,3)),this.setAttribute("normal",new Po(i,3)),this.setAttribute("uv",new Po(o,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON();return function(e,t){if(t.shapes=[],Array.isArray(e))for(let n=0,r=e.length;n<r;n++){const r=e[n];t.shapes.push(r.uuid)}else t.shapes.push(e.uuid);return t}(this.parameters.shapes,e)}static fromJSON(e,t){const n=[];for(let r=0,i=e.shapes.length;r<i;r++){const i=t[e.shapes[r]];n.push(i)}return new rd(n,e.curveSegments)}}class id extends wo{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new yo(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 yo(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new Sr(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new ji,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(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.envMapRotation.copy(e.envMapRotation),this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class od extends id{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new Sr(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return gr(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new yo(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new yo(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new yo(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!==e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!==e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!==e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!==e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!==e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,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.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class ad extends wo{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new yo(16777215),this.specular=new yo(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new yo(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new Sr(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new ji,this.combine=Kt,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(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.envMapRotation.copy(e.envMapRotation),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.flatShading=e.flatShading,this.fog=e.fog,this}}function sd(e,t,n){return!e||!n&&e.constructor===t?e:"number"===typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)}function ld(e){const t=e.length,n=new Array(t);for(let r=0;r!==t;++r)n[r]=r;return n.sort((function(t,n){return e[t]-e[n]})),n}function cd(e,t,n){const r=e.length,i=new e.constructor(r);for(let o=0,a=0;a!==r;++o){const r=n[o]*t;for(let n=0;n!==t;++n)i[a++]=e[r+n]}return i}function ud(e,t,n,r){let i=1,o=e[0];for(;void 0!==o&&void 0===o[r];)o=e[i++];if(void 0===o)return;let a=o[r];if(void 0!==a)if(Array.isArray(a))do{a=o[r],void 0!==a&&(t.push(o.time),n.push.apply(n,a)),o=e[i++]}while(void 0!==o);else if(void 0!==a.toArray)do{a=o[r],void 0!==a&&(t.push(o.time),a.toArray(n,n.length)),o=e[i++]}while(void 0!==o);else do{a=o[r],void 0!==a&&(t.push(o.time),n.push(a)),o=e[i++]}while(void 0!==o)}class dd{constructor(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,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let n=this._cachedIndex,r=t[n],i=t[n-1];e:{t:{let o;n:{r:if(!(e<r)){for(let o=n+2;;){if(void 0===r){if(e<i)break r;return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}if(n===o)break;if(i=r,r=t[++n],e<r)break t}o=t.length;break n}if(e>=i)break e;{const a=t[1];e<a&&(n=2,i=a);for(let o=n-2;;){if(void 0===i)return this._cachedIndex=0,this.copySampleValue_(0);if(n===o)break;if(r=i,i=t[--n-1],e>=i)break t}o=n,n=0}}for(;n<o;){const r=n+o>>>1;e<t[r]?o=r:n=r+1}if(r=t[n],i=t[n-1],void 0===i)return this._cachedIndex=0,this.copySampleValue_(0);if(void 0===r)return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}this._cachedIndex=n,this.intervalChanged_(n,i,r)}return this.interpolate_(n,i,e,r)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){const t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r;for(let o=0;o!==r;++o)t[o]=n[i+o];return t}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}class hd extends dd{constructor(e,t,n,r){super(e,t,n,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:2400,endingEnd:2400}}intervalChanged_(e,t,n){const r=this.parameterPositions;let 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:i=r.length-2,a=t+r[i]-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}const l=.5*(n-t),c=this.valueSize;this._weightPrev=l/(t-a),this._weightNext=l/(s-n),this._offsetPrev=i*c,this._offsetNext=o*c}interpolate_(e,t,n,r){const i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=e*a,l=s-a,c=this._offsetPrev,u=this._offsetNext,d=this._weightPrev,h=this._weightNext,p=(n-t)/(r-t),f=p*p,m=f*p,g=-d*m+2*d*f-d*p,v=(1+d)*m+(-1.5-2*d)*f+(-.5+d)*p+1,y=(-1-h)*m+(1.5+h)*f+.5*p,b=h*m-h*f;for(let x=0;x!==a;++x)i[x]=g*o[c+x]+v*o[l+x]+y*o[s+x]+b*o[u+x];return i}}class pd extends dd{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=e*a,l=s-a,c=(n-t)/(r-t),u=1-c;for(let d=0;d!==a;++d)i[d]=o[l+d]*u+o[s+d]*c;return i}}class fd extends dd{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e){return this.copySampleValue_(e-1)}}class md{constructor(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=sd(t,this.TimeBufferType),this.values=sd(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}static toJSON(e){const t=e.constructor;let n;if(t.toJSON!==this.toJSON)n=t.toJSON(e);else{n={name:e.name,times:sd(e.times,Array),values:sd(e.values,Array)};const t=e.getInterpolation();t!==e.DefaultInterpolation&&(n.interpolation=t)}return n.type=e.ValueTypeName,n}InterpolantFactoryMethodDiscrete(e){return new fd(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new pd(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new hd(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let t;switch(e){case jn:t=this.InterpolantFactoryMethodDiscrete;break;case Fn:t=this.InterpolantFactoryMethodLinear;break;case Bn:t=this.InterpolantFactoryMethodSmooth}if(void 0===t){const t="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(e===this.DefaultInterpolation)throw new Error(t);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",t),this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return jn;case this.InterpolantFactoryMethodLinear:return Fn;case this.InterpolantFactoryMethodSmooth:return Bn}}getValueSize(){return this.values.length/this.times.length}shift(e){if(0!==e){const t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]+=e}return this}scale(e){if(1!==e){const t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]*=e}return this}trim(e,t){const n=this.times,r=n.length;let i=0,o=r-1;for(;i!==r&&n[i]<e;)++i;for(;-1!==o&&n[o]>t;)--o;if(++o,0!==i||o!==r){i>=o&&(o=Math.max(o,1),i=o-1);const e=this.getValueSize();this.times=n.slice(i,o),this.values=this.values.slice(i*e,o*e)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==i;a++){const t=n[a];if("number"===typeof t&&isNaN(t)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,t),e=!1;break}if(null!==o&&o>t){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,t,o),e=!1;break}o=t}if(void 0!==r&&function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(r))for(let a=0,s=r.length;a!==s;++a){const t=r[a];if(isNaN(t)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,t),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===Bn,i=e.length-1;let o=1;for(let a=1;a<i;++a){let i=!1;const s=e[a];if(s!==e[a+1]&&(1!==a||s!==e[0]))if(r)i=!0;else{const e=a*n,r=e-n,o=e+n;for(let a=0;a!==n;++a){const n=t[e+a];if(n!==t[r+a]||n!==t[o+a]){i=!0;break}}}if(i){if(a!==o){e[o]=e[a];const r=a*n,i=o*n;for(let e=0;e!==n;++e)t[i+e]=t[r+e]}++o}}if(i>0){e[o]=e[i];for(let e=i*n,r=o*n,a=0;a!==n;++a)t[r+a]=t[e+a];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*n)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),n=new(0,this.constructor)(this.name,e,t);return n.createInterpolant=this.createInterpolant,n}}md.prototype.TimeBufferType=Float32Array,md.prototype.ValueBufferType=Float32Array,md.prototype.DefaultInterpolation=Fn;class gd extends md{}gd.prototype.ValueTypeName="bool",gd.prototype.ValueBufferType=Array,gd.prototype.DefaultInterpolation=jn,gd.prototype.InterpolantFactoryMethodLinear=void 0,gd.prototype.InterpolantFactoryMethodSmooth=void 0;class vd extends md{}vd.prototype.ValueTypeName="color";class yd extends md{}yd.prototype.ValueTypeName="number";class bd extends dd{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=(n-t)/(r-t);let l=e*a;for(let c=l+a;l!==c;l+=4)$r.slerpFlat(i,0,o,l-a,o,l,s);return i}}class xd extends md{InterpolantFactoryMethodLinear(e){return new bd(this.times,this.values,this.getValueSize(),e)}}xd.prototype.ValueTypeName="quaternion",xd.prototype.DefaultInterpolation=Fn,xd.prototype.InterpolantFactoryMethodSmooth=void 0;class wd extends md{}wd.prototype.ValueTypeName="string",wd.prototype.ValueBufferType=Array,wd.prototype.DefaultInterpolation=jn,wd.prototype.InterpolantFactoryMethodLinear=void 0,wd.prototype.InterpolantFactoryMethodSmooth=void 0;class _d extends md{}_d.prototype.ValueTypeName="vector";class Ed{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments
vendor: 5,160 bytes, line 2
2[1]:-1,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2500;this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=mr(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,r=1/(e.fps||1);for(let o=0,a=n.length;o!==a;++o)t.push(Sd(n[o]).scale(r));const i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i}static toJSON(e){const t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let i=0,o=n.length;i!==o;++i)t.push(md.toJSON(n[i]));return r}static CreateFromMorphTargetSequence(e,t,n,r){const i=t.length,o=[];for(let a=0;a<i;a++){let e=[],s=[];e.push((a+i-1)%i,a,(a+1)%i),s.push(0,1,0);const l=ld(e);e=cd(e,1,l),s=cd(s,1,l),r||0!==e[0]||(e.push(i),s.push(s[0])),o.push(new yd(".morphTargetInfluences["+t[a].name+"]",e,s).scale(1/n))}return new this(e,-1,o)}static findByName(e,t){let n=e;if(!Array.isArray(e)){const t=e;n=t.geometry&&t.geometry.animations||t.animations}for(let r=0;r<n.length;r++)if(n[r].name===t)return n[r];return null}static CreateClipsFromMorphTargetSequences(e,t,n){const r={},i=/^([\w-]*?)([\d]+)$/;for(let a=0,s=e.length;a<s;a++){const t=e[a],n=t.name.match(i);if(n&&n.length>1){const e=n[1];let i=r[e];i||(r[e]=i=[]),i.push(t)}}const o=[];for(const a in r)o.push(this.CreateFromMorphTargetSequence(a,r[a],t,n));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(e,t,n,r,i){if(0!==n.length){const o=[],a=[];ud(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;let s=e.length||-1;const l=e.hierarchy||[];for(let c=0;c<l.length;c++){const e=l[c].keys;if(e&&0!==e.length)if(e[0].morphTargets){const t={};let n;for(n=0;n<e.length;n++)if(e[n].morphTargets)for(let r=0;r<e[n].morphTargets.length;r++)t[e[n].morphTargets[r]]=-1;for(const i in t){const t=[],o=[];for(let r=0;r!==e[n].morphTargets.length;++r){const r=e[n];t.push(r.time),o.push(r.morphTarget===i?1:0)}r.push(new yd(".morphTargetInfluence["+i+"]",t,o))}s=t.length*o}else{const i=".bones["+t[c].name+"]";n(_d,i+".position",e,"pos",r),n(xd,i+".quaternion",e,"rot",r),n(_d,i+".scale",e,"scl",r)}}if(0===r.length)return null;return new this(i,s,r,a)}resetDuration(){let e=0;for(let t=0,n=this.tracks.length;t!==n;++t){const n=this.tracks[t];e=Math.max(e,n.times[n.times.length-1])}return this.duration=e,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let t=0;t<this.tracks.length;t++)e=e&&this.tracks[t].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){const e=[];for(let t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function Sd(e){if(void 0===e.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const t=function(e){switch(e.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return yd;case"vector":case"vector2":case"vector3":case"vector4":return _d;case"color":return vd;case"quaternion":return xd;case"bool":case"boolean":return gd;case"string":return wd}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+e)}(e.type);if(void 0===e.times){const t=[],n=[];ud(e.keys,t,n,"value"),e.times=t,e.values=n}return void 0!==t.parse?t.parse(e):new t(e.name,e.times,e.values,e.interpolation)}const Md={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={}}};class Td{constructor(e,t,n){const r=this;let i,o=!1,a=0,s=0;const l=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){s++,!1===o&&void 0!==r.onStart&&r.onStart(e,a,s),o=!0},this.itemEnd=function(e){a++,void 0!==r.onProgress&&r.onProgress(e,a,s),a===s&&(o=!1,void 0!==r.onLoad&&r.onLoad())},this.itemError=function(e){void 0!==r.onError&&r.onError(e)},this.resolveURL=function(e){return i?i(e):e},this.setURLModifier=function(e){return i=e,this},this.addHandler=function(e,t){return l.push(e,t),this},this.removeHandler=function(e){const t=l.indexOf(e);return-1!==t&&l.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=l.length;t<n;t+=2){const n=l[t],r=l[t+1];if(n.global&&(n.lastIndex=0),n.test(e))return r}return null}}}const Ad=new Td;class Od{constructor(e){this.manager=void 0!==e?e:Ad,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,t){const n=this;return new Promise((function(r,i){n.load(e,r,t,i)}))}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}Od.DEFAULT_MATERIAL_NAME="__DEFAULT";const Cd={};
vendor: 3,649 bytes, line 2
2class Rd extends Error{constructor(e,t){super(e),this.response=t}}class Pd extends Od{constructor(e){super(e)}load(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=Md.get(e);if(void 0!==i)return this.manager.itemStart(e),setTimeout((()=>{t&&t(i),this.manager.itemEnd(e)}),0),i;if(void 0!==Cd[e])return void Cd[e].push({onLoad:t,onProgress:n,onError:r});Cd[e]=[],Cd[e].push({onLoad:t,onProgress:n,onError:r});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,s=this.responseType;fetch(o).then((t=>{if(200===t.status||0===t.status){if(0===t.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"===typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;const n=Cd[e],r=t.body.getReader(),i=t.headers.get("Content-Length")||t.headers.get("X-File-Size"),o=i?parseInt(i):0,a=0!==o;let s=0;const l=new ReadableStream({start(e){!function t(){r.read().then((r=>{let{done:i,value:l}=r;if(i)e.close();else{s+=l.byteLength;const r=new ProgressEvent("progress",{lengthComputable:a,loaded:s,total:o});for(let e=0,t=n.length;e<t;e++){const t=n[e];t.onProgress&&t.onProgress(r)}e.enqueue(l),t()}}))}()}});return new Response(l)}throw new Rd('fetch for "'.concat(t.url,'" responded with ').concat(t.status,": ").concat(t.statusText),t)})).then((e=>{switch(s){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then((e=>(new DOMParser).parseFromString(e,a)));case"json":return e.json();default:if(void 0===a)return e.text();{const t=/charset="?([^;"\s]*)"?/i.exec(a),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then((e=>r.decode(e)))}}})).then((t=>{Md.add(e,t);const n=Cd[e];delete Cd[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];r.onLoad&&r.onLoad(t)}})).catch((t=>{const n=Cd[e];if(void 0===n)throw this.manager.itemError(e),t;delete Cd[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];r.onError&&r.onError(t)}this.manager.itemError(e)})).finally((()=>{this.manager.itemEnd(e)})),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class Id extends Od{constructor(e){super(e)}load(e,t,n,r){void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,o=Md.get(e);if(void 0!==o)return i.manager.itemStart(e),setTimeout((function(){t&&t(o),i.manager.itemEnd(e)}),0),o;const a=Or("img");function s(){c(),Md.add(e,this),t&&t(this),i.manager.itemEnd(e)}function l(t){c(),r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)}function c(){a.removeEventListener("load",s,!1),a.removeEventListener("error",l,!1)}return a.addEventListener("load",s,!1),a.addEventListener("error",l,!1),"data:"!==e.slice(0,5)&&void 0!==this.crossOrigin&&(a.crossOrigin=this.crossOrigin),i.manager.itemStart(e),a.src=e,a}}class Ld extends Od{constructor(e){super(e)}load(e,t,n,r){const i=this,o=new Rc,a=new Pd(this.manager);return a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setPath(this.path),a.setWithCredentials(i.withCredentials),a.load(e,(function(e){let n;try{n=i.parse(e)}catch(a){if(void 0===r)return void console.error(a);r(a)}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:fn,o.wrapT=void 0!==n.wrapT?n.wrapT:fn,o.magFilter=void 0!==n.magFilter?n.magFilter:bn,o.minFilter=void 0!==n.minFilter?n.minFilter:bn,o.anisotropy=void 0!==n.anisotropy?n.anisotropy:1,void 0!==n.colorSpace&&(o.colorSpace
vendor: 5,506 bytes, line 2
2=n.colorSpace),void 0!==n.flipY&&(o.flipY=n.flipY),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=wn),1===n.mipmapCount&&(o.minFilter=bn),void 0!==n.generateMipmaps&&(o.generateMipmaps=n.generateMipmaps),o.needsUpdate=!0,t&&t(o,n)}),n,r),o}}class kd extends Od{constructor(e){super(e)}load(e,t,n,r){const i=new Gr,o=new Id(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,(function(e){i.image=e,i.needsUpdate=!0,void 0!==t&&t(i)}),n,r),i}}class Dd extends to{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;super(),this.isLight=!0,this.type="Light",this.color=new yo(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(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}}const Nd=new Oi,Ud=new Jr,jd=new Jr;class Fd{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Sr(512,512),this.map=null,this.mapPass=null,this.matrix=new Oi,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Ta,this._frameExtents=new Sr(1,1),this._viewportCount=1,this._viewports=[new qr(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,n=this.matrix;Ud.setFromMatrixPosition(e.matrixWorld),t.position.copy(Ud),jd.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(jd),t.updateMatrixWorld(),Nd.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Nd),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(Nd)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const 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}}class Bd extends Fd{constructor(){super(new ma(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,n=2*fr*e.angle*this.focus,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()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class zd extends Dd{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Math.PI/3,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2;super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(to.DEFAULT_UP),this.updateMatrix(),this.target=new to,this.distance=n,this.angle=r,this.penumbra=i,this.decay=o,this.map=null,this.shadow=new Bd}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),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}}const Hd=new Oi,Vd=new Jr,Wd=new Jr;class Gd extends Fd{constructor(){super(new ma(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Sr(4,2),this._viewportCount=6,this._viewports=[new qr(2,1,1,1),new qr(0,1,1,1),new qr(3,1,1,1),new qr(1,1,1,1),new qr(3,0,1,1),new qr(1,0,1,1)],this._cubeDirections=[new Jr(1,0,0),new Jr(-1,0,0),new Jr(0,0,1),new Jr(0,0,-1),new Jr(0,1,0),new Jr(0,-1,0)],this._cubeUps=[new Jr(0,1,0),new Jr(0,1,0),new Jr(0,1,0),new Jr(0,1,0),new Jr(0,0,1),new Jr(0,0,-1)]}updateMatrices(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.camera,r=this.matrix,i=e.distance||n.far;i!==n.far&&(n.far=i,n.updateProjectionMatrix()),Vd.setFromMatrixPosition(e.matrixWorld),n.position.copy(Vd),Wd.copy(n.position),Wd.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(Wd),n.updateMatrixWorld(),r.makeTranslation(-Vd.x,-Vd.y,-Vd.z),Hd.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Hd)}}class qd extends Dd{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=r,this.shadow=new Gd}get power(){return 4*this.intensity*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class Xd extends Fd{constructor(){super(new Ha(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}
vendor: 4,516 bytes, line 2
2}class Yd extends Dd{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(to.DEFAULT_UP),this.updateMatrix(),this.target=new to,this.shadow=new Xd}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class Zd{static decodeText(e){if("undefined"!==typeof TextDecoder)return(new TextDecoder).decode(e);let t="";for(let n=0,r=e.length;n<r;n++)t+=String.fromCharCode(e[n]);try{return decodeURIComponent(escape(t))}catch(gB){return t}}static extractUrlBase(e){const t=e.lastIndexOf("/");return-1===t?"./":e.slice(0,t+1)}static resolveURL(e,t){return"string"!==typeof e||""===e?"":(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}}class Kd extends Od{constructor(e){super(e),this.isImageBitmapLoader=!0,"undefined"===typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"===typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,o=Md.get(e);if(void 0!==o)return i.manager.itemStart(e),o.then?void o.then((n=>{t&&t(n),i.manager.itemEnd(e)})).catch((e=>{r&&r(e)})):(setTimeout((function(){t&&t(o),i.manager.itemEnd(e)}),0),o);const a={};a.credentials="anonymous"===this.crossOrigin?"same-origin":"include",a.headers=this.requestHeader;const s=fetch(e,a).then((function(e){return e.blob()})).then((function(e){return createImageBitmap(e,Object.assign(i.options,{colorSpaceConversion:"none"}))})).then((function(n){return Md.add(e,n),t&&t(n),i.manager.itemEnd(e),n})).catch((function(t){r&&r(t),Md.remove(e),i.manager.itemError(e),i.manager.itemEnd(e)}));Md.add(e,s),i.manager.itemStart(e)}}const $d="\\[\\]\\.:\\/",Jd=new RegExp("["+$d+"]","g"),Qd="[^"+$d+"]",eh="[^"+$d.replace("\\.","")+"]",th=new RegExp("^"+/((?:WC+[\/:])*)/.source.replace("WC",Qd)+/(WCOD+)?/.source.replace("WCOD",eh)+/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Qd)+/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Qd)+"$"),nh=["material","materials","bones","map"];class rh{constructor(e,t,n){this.path=t,this.parsedPath=n||rh.parseTrackName(t),this.node=rh.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new rh.Composite(e,t,n):new rh(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(Jd,"")}static parseTrackName(e){const t=th.exec(e);if(null===t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const 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){const e=n.nodeName.substring(r+1);-1!==nh.indexOf(e)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(void 0===t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){const n=function(e){for(let r=0;r<e.length;r++){const i=e[r];if(i.name===t||i.uuid===t)return i;const o=n(i.children);if(o)return o}return null},r=n(e.children);if(r)return r}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)e[t++]=n[r]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++]}_setValue_array_setNeedsUpdate(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.needsUpdate=!0}
vendor: 4,981 bytes, line 2
2_setValue_array_setMatrixWorldNeedsUpdate(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let e=this.node;const t=this.parsedPath,n=t.objectName,r=t.propertyName;let i=t.propertyIndex;if(e||(e=rh.findNode(this.rootNode,t.nodeName),this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e)return void console.warn("THREE.PropertyBinding: No target node found for track: "+this.path+".");if(n){let r=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(let t=0;t<e.length;t++)if(e[t].name===r){r=t;break}break;case"map":if("map"in e){e=e.map;break}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.map)return void console.error("THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.",this);e=e.material.map;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!==r){if(void 0===e[r])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,e);e=e[r]}}const o=e[r];if(void 0===o){const n=t.nodeName;return void console.error("THREE.PropertyBinding: Trying to update property for track: "+n+"."+r+" but it wasn't found.",e)}let a=this.Versioning.None;this.targetObject=e,void 0!==e.needsUpdate?a=this.Versioning.NeedsUpdate:void 0!==e.matrixWorldNeedsUpdate&&(a=this.Versioning.MatrixWorldNeedsUpdate);let s=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.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])}s=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=i}else void 0!==o.fromArray&&void 0!==o.toArray?(s=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(s=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=r;this.getValue=this.GetterByBindingType[s],this.setValue=this.SetterByBindingTypeAndVersioning[s][a]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}rh.Composite=class{constructor(e,t,n){const r=n||rh.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();const n=this._targetGroup.nCachedObjects_,r=this._bindings[n];void 0!==r&&r.getValue(e,t)}setValue(e,t){const n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},rh.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},rh.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},rh.prototype.GetterByBindingType=[rh.prototype._getValue_direct,rh.prototype._getValue_array,rh.prototype._getValue_arrayElement,rh.prototype._getValue_toArray],rh.prototype.SetterByBindingTypeAndVersioning=[[rh.prototype._setValue_direct,rh.prototype._setValue_direct_setNeedsUpdate,rh.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[rh.prototype._setValue_array,rh.prototype._setValue_array_setNeedsUpdate,rh.prototype._setValue_array_setMatr
2ixWorldNeedsUpdate],[rh.prototype._setValue_arrayElement,rh.prototype._setValue_arrayElement_setNeedsUpdate,rh.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[rh.prototype._setValue_fromArray,rh.prototype._setValue_fromArray_setNeedsUpdate,rh.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];const ih=new Oi;class oh{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0;this.ray=new Ai(e,t),this.near=n,this.far=r,this.camera=null,this.layers=new Fi,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(e,t){this.ray.set(e,t)}setFromCamera(e,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.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: "+t.type)}setFromXRController(e){return ih.identity().extractRotation(e.matrixWorld),this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(0,0,-1).applyMatrix4(ih),this}intersectObject(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return sh(e,this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1]),t.sort(ah),t}intersectObjects(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let r=0,i=e.length;r<i;r++)sh(e[r],this,n,t);return n.sort(ah),n}}function ah(e,t){return e.distance-t.distance}function sh(e,t,n,r){if(e.layers.test(t.layers)&&e.raycast(t,n),!0===r){const r=e.children;for(let e=0,i=r.length;e<i;e++)sh(r[e],t,n,!0)}}class lh{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.radius=e,this.phi=t,this.theta=n,this}set(e,t,n){return this.radius=e,this.phi=t,this.theta=n,this}copy(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}makeSafe(){const e=1e-6;return this.phi=Math.max(e,Math.min(Math.PI-e,this.phi)),this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,t,n){return this.radius=Math.sqrt(e*e+t*t+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,n),this.phi=Math.acos(gr(t/this.radius,-1,1))),this}clone(){return(new this.constructor).copy(this)}}const ch=new Sr;class uh{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Sr(1/0,1/0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Sr(-1/0,-1/0);this.isBox2=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const n=ch.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y}getCenter(e){return this.isEmpty()?e.set(0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y)}containsBox(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}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(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)}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,ch).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const dh=new Jr,hh=new Jr;class ph{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Jr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Jr;this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){dh.subVectors(e,this.start),hh.subVectors(this.end,this.start);const n=hh.dot(hh);let r=hh.dot(dh)/n;return t&&(r=gr(r,0,1)),r}closestPointToPoint(e,t,n){const r=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(r).add(this.start)}
2applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return(new this.constructor).copy(this)}}"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:yt}})),"undefined"!==typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=yt);function fh(e){let{minZoom:t,maxZoom:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{minZoom:0,maxZoom:Number.MAX_SAFE_INTEGER},r=Math.max(t,Math.min(e,n));return r<10&&(r=10-1.5*(10-r)),Math.pow(1.62,r-15.54)}function mh(e){let{minZoom:t,maxZoom:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{minZoom:0,maxZoom:Number.MAX_SAFE_INTEGER},r=function(e,t){return Math.log(t)/Math.log(e)}(1.62,e)+15.54;return r<10&&(r=10-(10-r)/1.5),Math.max(t,Math.min(r,n))}function gh(e){let t,n;return e>=15?(t=-3e3,n=3e3):e>=10?(t=-2e4,n=2e4):e>=5?(t=-5e5,n=5e5):e>=1.5?(t=-6e6,n=6e6):e>=0&&(t=-1e8,n=1e8),{near:t,far:n}}function vh(e,t,n){var r,i,o,a=e.x-t.x,s=e.y-t.y,l=n.x-e.x,c=n.y-e.y,u=a*a+s*s,d=a*c-s*l;if(Math.abs(d)>Number.EPSILON){var h=Math.sqrt(u),p=Math.sqrt(l*l+c*c),f=t.x-s/h,m=t.y+a/h,g=((n.x-c/p-f)*c-(n.y+l/p-m)*l)/(a*c-s*l),v=(r=f+a*g-e.x)*r+(i=m+s*g-e.y)*i;if(v<=2)return new Sr(r,i);o=Math.sqrt(v/2)}else{var y=!1;a>Number.EPSILON?l>Number.EPSILON&&(y=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(y=!0):Math.sign(s)===Math.sign(c)&&(y=!0),y?(r=-s,i=a,o=Math.sqrt(u)):(r=a,i=s,o=Math.sqrt(u/2))}return new Sr(r/o,i/o)}function yh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;let n=e.extractPoints(1).shape;var r;(r=n).length>2&&r[r.length-1].equals(r[0])&&r.pop();const i=n,o=[];for(let s=0,l=i.length,c=l-1,u=s+1;s<l;s++,c++,u++)c===l&&(c=0),u===l&&(u=0),o[s]=vh(i[s],i[c],i[u]);const a=o.map(((e,n)=>e.multiplyScalar(t).add(i[n])));return new Tu(a)}function bh(e){if(!e)return 0;const t=e.length;let n=0;for(let r=t-1,i=0;i<t;r=i++)n+=e[r][0]*e[i][1]-e[i][0]*e[r][1];return.5*n}function xh(e){return bh(e)<0}function wh(e,t,n){const r=new ph(t,n),i=new Jr;return r.closestPointToPoint(e,!0,i),e.distanceTo(i)}const _h=new Map;function Eh(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o="".concat(e," - ").concat(t," - ").concat(n," - ").concat(r," - ").concat(i);if(!_h.has(o))switch(e){case"basic":{const e=new ua({vertexShader:"\n            void main() {\n              gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n            }",fragmentShader:"\n            uniform vec3 color;\n            uniform float alpha;\n\n            void main() {\n              gl_FragColor = vec4(color, alpha);\n\n              #include <tonemapping_fragment>\n              #include <colorspace_fragment>\n            }",uniforms:{color:{value:new yo(t)},alpha:{value:1}},side:Rt,transparent:n,vertexColors:r,polygonOffset:!!i,polygonOffsetFactor:-1,polygonOffsetUnits:-i,userData:{type:o}});_h.set(o,e);break}case"lambert":{const e=new ua({vertexShader:"\n            varying vec3 vColor;\n            varying vec3 vNormal;\n\n            #ifndef USE_COLOR\n              uniform vec3 color;\n            #endif\n\n            void main() {\n              vColor = color;\n              vNormal = normalize(normalMatrix * normal);\n              gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n            }",fragmentShader:"\n            varying vec3 vColor;\n            varying vec3 vNormal;\n\n            uniform vec3 skyColor;\n            uniform vec3 groundColor;\n            uniform float brightness;\n            uniform float alpha;\n\n            void main() {\n              float verticalFactor = 0.5 * (vNormal.y + 1.0);\n              vec3 baseColor = mix(groundColor, skyColor, verticalFactor);\n              vec3 finalColor = brightness * baseColor * vColor;\n              gl_FragColor = vec4(finalColor, alpha);\n\n              #include <tonemapping_fragment>\n              #include <colorspace_fragment>\n            }",uniforms:{color:{value:new yo(t)},skyColor:{value:new yo("#ffffff")},groundColor:{value:new yo("#eeeeee")},brightness:{value:1.17},alpha:{value:1}},side:Ct,transparent:n,vertexColors:r,polygonOffset:!!i,polygonOffsetFactor:-1,polygonOffsetUnits:-i,userData:{type:o}});_h.set(o,e);break}}return _h.get(o)}var Sh,Mh,Th,Ah,Oh,Ch,Rh,Ph,Ih,Lh,kh,Dh,Nh,Uh,jh,Fh,Bh,zh=Object.defineProperty,Hh=Object.defineProperties,Vh=Object.getOwnPropertyDescriptors,Wh=Object.getOwnPropertySymbols,Gh=Object.prototype.hasOwnProperty,qh=Object.prototype.propertyIsEnumerable,Xh=(e,t,n)=>t in e?zh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yh=(e,t)=>{for(var n in t||(t={}
2))Gh.call(t,n)&&Xh(e,n,t[n]);if(Wh)for(var n of Wh(t))qh.call(t,n)&&Xh(e,n,t[n]);return e},Zh=(e,t)=>Hh(e,Vh(t)),Kh=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},$h=(e,t,n)=>(Kh(e,t,"read from private field"),n?n.call(e):t.get(e)),Jh=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Qh=(e,t,n,r)=>(Kh(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);const ep={floor:!1,floorColor:"#606060",floorMinZoom:0,floorMaxZoom:1e3,roof:!1,roofColor:"#202020",roofHeight:2.5,roofMinZoom:0,roofMaxZoom:1e3,walls:!1,wallsColor:"#a0a0a0",wallsTopColor:null,wallsInsideColor:null,wallsHeight:2.5,wallsWidth:.1,wallsMinZoom:0,wallsMaxZoom:1e3,solid:!1,priority:0};class tp{constructor(e){let{styles:t,mapProjection:n,originGeometry:r,doors:i=[],userData:o={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Jh(this,Sh,null),Jh(this,Mh,null),Jh(this,Th,null),Jh(this,Ah,null),Jh(this,Oh,null),Jh(this,Ch,null),Jh(this,Rh,(function(){var e,t,n,r;const{styles:i,doors:o,userData:a,originGeometry:s}=$h(this,Mh),l=$h(this,Th),c=a.category.endsWith("-walls");let u=null,d=null;if((i.floor||i.roof||!c)&&(u=$h(this,Ih).call(this,$h(this,Sh)),d=new rd(u),d.deleteAttribute("normal"),d.deleteAttribute("uv"),d.toNonIndexed(),d.rotateX(Er.degToRad(90))),i.floor){const e=i.floorMinZoom>0||i.floorMaxZoom<1e3,t=Eh("basic",i.floorColor,e);t.depthWrite=!1;const n=new ra(d,t);n.matrixAutoUpdate=!1,n.updateMatrix(),n.renderOrder=e?-i.priority:i.priority,n.userData=Zh(Yh({},a),{part:"floor",minZoom:i.floorMinZoom,maxZoom:i.floorMaxZoom}),l.add(n),Qh(this,Ah,n)}if(i.roof){const e=i.roofMinZoom>0||i.roofMaxZoom<1e3,t=Eh("basic",i.roofColor,e,!1,i.priority),n=d.clone();n.translate(0,i.roofHeight+.01,0);const r=new ra(n,t);r.matrixAutoUpdate=!1,r.updateMatrix(),r.renderOrder=e?-i.priority:i.priority,r.userData=Zh(Yh({},a),{part:"roof",minZoom:i.roofMinZoom,maxZoom:i.roofMaxZoom}),l.add(r),Qh(this,Oh,r)}if(i.walls){let d=null;try{d=c?$h(this,Bh).call(this,$h(this,Sh)):$h(this,jh).call(this,u,{doors:o,wallsWidth:i.wallsWidth,solid:i.solid})}catch(h){console.log("Walls skipped for the ".concat(a.id))}if(d){const o=i.wallsMinZoom>0||i.wallsMaxZoom<1e3,h=i.wallsColor.toLowerCase(),p=null!=(t=null==(e=i.wallsTopColor)?void 0:e.toLowerCase())?t:h,f=null!=(r=null==(n=i.wallsInsideColor)?void 0:n.toLowerCase())?r:h,m=p!==h,g=f!==h&&(c&&s||i.walls&&!i.solid)&&["unit","fixture"].includes(a.type),v=(c||i.walls&&!i.solid)&&(m||g),y=Eh("lambert",h,o,v,i.priority),b=new td(d,{curveSegments:1,steps:1,depth:i.wallsHeight,bevelEnabled:!1}),x=[];if(g){const e=(c&&s?$h(this,Ih).call(this,s):u).map((e=>e.extractPoints(1).shape)),t=b.getAttribute("position");for(let n=0;n<t.count;n++){const r=t.getX(n),i=t.getY(n),o=new Jr(r,i,0),a=e.some((e=>{for(let t=0;t<e.length;t++){const n=t,r=t+1<e.length?t+1:0,i=new Jr(...e[n],0),a=new Jr(...e[r],0);if(wh(o,i,a)<.01)return!0}return!1}));x.push(!a)}}if(v){const e=new yo(h),t=new yo(p),n=new yo(f),r=[],i=b.getAttribute("normal");for(let o=0;o<i.count;o++)m&&-1===i.getZ(o)?r.push(t.r,t.g,t.b):g&&x[o]?r.push(n.r,n.g,n.b):r.push(e.r,e.g,e.b);b.setAttribute("color",new Po(r,3))}b.deleteAttribute("uv"),b.rotateX(Er.degToRad(90)),b.translate(0,i.wallsHeight,0);const w=new ra(b,y);w.renderOrder=o?-i.priority:i.priority,w.userData=Zh(Yh({},a),{part:"walls",minZoom:i.wallsMinZoom,maxZoom:i.wallsMaxZoom}),l.add(w),Qh(this,Ch,w)}}})),Jh(this,Ph,(function(e){if(!$h(this,Ah))return;const{styles:t}=$h(this,Mh),n=t.floorMinZoom>0||t.floorMaxZoom<1e3;$h(this,Ah).material=Eh("basic",e,n),$h(this,Ah).material.depthWrite=!1})),Jh(this,Ih,(function(e){let{type:t,coordinates:n}=e;const r=$h(this,Mh).mapProjection,i=e=>$h(this,Lh).call(this,e,r);switch(t){case"Polygon":{const e=i(n[0]),t=n.slice(1).map((e=>i(e)));return[$h(this,kh).call(this,e,t)]}case"MultiPolygon":return n.map((e=>{const t=i(e[0]),n=e.slice(1).map(i);return $h(this,kh).call(this,t,n)}));default:throw new Error("Expect Polygon or MultiPolygon geometry")}})),Jh(this,Lh,(function(e,t){let n=e.map((e=>t.projectToOrigin(e)));return xh(n)||(n=n.reverse()),n.pop(),n})),Jh(this,kh,(function(e,t){const n=$h(this,Dh).call(this,e);return t.length&&(n.holes=t.map((e=>$h(this,Nh).call(this,e)))),n})),Jh(this,Dh,(function(e){return new Tu(e.map((e=>{let[t,n]=e;return new Sr(t,n)})))})),Jh(this,Nh,(function(e){return new Su(e.map((e=>{let[t,n]=e;return new Sr(t,n)})))})),Jh(this,Uh,(function(e,t){let{width:n}=t;const[r,i]=e,o=i.clone().sub(r).normalize(),a=-o.y*n,s=o.x*n;r.addScaledVector(o.clone().negate(),n),i.addScaledVector(o.clone(),n);const l=new Tu;return l.moveTo(r.x-a,r.y-s),l.lineTo(r.x+a,r.y+s),l.lineTo(i.x+a,i.y+s),l.lineTo(i.x-a,i.y-s),l})),Jh(this,jh,(function(e,t){let{doors:n,wallsWidth:r,solid:i}=t;const o=$h(this,Mh).mapProjection,a=n.reduce(((e,t)=>{const n=t.geometry.coordinates;for(let i=0;i<n.length-1;i++){const t=new Sr(...o.projectToOrigin(n[i])),a=new Sr(...o.projectToOrigin(n[i+1]));if(0===i){const e=a.clone().sub(t).normalize();t.addScaledVector(e,3*r)}if(i===n.length-2){const e=a.clone().sub(t).normalize();a.addScaledVector(e.negate(),3*r)}e.push([t,a])}return e}),[]);return e.flatMap((e=>$h(this,Fh).call(this,e,{doors:a,wallsWidth:r,solid:i})))}
2)),Jh(this,Fh,(function(e,t){let{doors:n=[],wallsWidth:r,solid:i}=t;const o=[];if(o.push({regions:[e.extractPoints().shape.map((e=>{let{x:t,y:n}=e;return[t,n]}))],inverted:!1,part:"external"}),i&&e.holes.length&&e.holes.forEach((e=>{o.push({regions:[e.getPoints().map((e=>{let{x:t,y:n}=e;return[t,n]}))],inverted:!1,part:"hole"})})),!i){const t=yh(e,-r);o.push({regions:[t.extractPoints().shape.map((e=>{let{x:t,y:n}=e;return[t,n]}))],inverted:!1,part:"internal"}),n.forEach((e=>{o.push({regions:[$h(this,Uh).call(this,e,{width:r+.1}).extractPoints().shape.map((e=>{let{x:t,y:n}=e;return[t,n]}))],inverted:!1,part:"door"})}))}let a=vt.segments(o[0]);for(let d=1;d<o.length;d++){const e=o[d];try{const t=vt.segments(e),n=vt.combine(a,t);a=vt.selectDifference(n)}catch(gB){const{id:n,type:r}=$h(this,Mh).userData;console.warn('Failed to make a "'.concat(e.part,'" of the "').concat(r,'" ').concat(n))}}const s=vt.polygon(a),{type:l,coordinates:c}=vt.polygonToGeoJSON(s),u=e=>{if(bh(e[0])<.05)return null;const t=e[0].map((e=>{let[t,n]=e;return new Sr(t,n)})),n=e.slice(1).map((e=>new Su(e.map((e=>{let[t,n]=e;return new Sr(t,n)}))))),r=new Tu(t);return r.holes=n,r};return"Polygon"===l?[u(c)].filter(Boolean):"MultiPolygon"===l?c.map(u).filter(Boolean):null})),Jh(this,Bh,(function(e){let{type:t,coordinates:n}=e;const r=$h(this,Mh).mapProjection,i=e=>e.map((e=>r.projectToOrigin(e))),o=(e,t)=>{const n=new Tu(e.map((e=>{let[t,n]=e;return new Sr(t,n)})));return n.holes=t.map((e=>new Su(e.map((e=>{let[t,n]=e;return new Sr(t,n)}))))),n};switch(t){case"Polygon":{const e=i(n[0]),t=n.slice(1).map((e=>i(e)));return[o(e,t)]}case"MultiPolygon":return n.map((e=>{const t=i(e[0]),n=e.slice(1).map(i);return o(t,n)}));default:throw new Error("Expects the Polygon or MultiPolygon geometry")}})),Qh(this,Mh,{styles:Yh(Yh({},ep),t),mapProjection:n,doors:i,originGeometry:r,userData:o}),Qh(this,Th,new oc),Qh(this,Sh,e),$h(this,Rh).call(this)}get threeObject(){return $h(this,Th)}set floorColor(e){e&&$h(this,Ph).call(this,e)}resetFloorColor(){$h(this,Ph).call(this,$h(this,Mh).styles.floorColor)}dispose(){Qh(this,Sh,null),Qh(this,Mh,null),Qh(this,Th,null),Qh(this,Ah,null),Qh(this,Oh,null),Qh(this,Ch,null)}}function np(e){let t,n,r,i=-1,o=0;for(let c=0;c<e.length;++c){const a=e[c];if(void 0===t&&(t=a.array.constructor),t!==a.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(void 0===n&&(n=a.itemSize),n!==a.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(void 0===r&&(r=a.normalized),r!==a.normalized)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;if(-1===i&&(i=a.gpuType),i!==a.gpuType)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."),null;o+=a.count*n}const a=new t(o),s=new Oo(a,n,r);let l=0;for(let c=0;c<e.length;++c){const t=e[c];if(t.isInterleavedBufferAttribute){const e=l/n;for(let r=0,i=t.count;r<i;r++)for(let o=0;o<n;o++){const n=t.getComponent(r,o);s.setComponent(r+e,o,n)}}else a.set(t.array,l);l+=t.count*n}return void 0!==i&&(s.gpuType=i),s}function rp(e,t){if(0===t)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),e;if(2===t||1===t){let n=e.getIndex();if(null===n){const t=[],r=e.getAttribute("position");if(void 0===r)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),e;for(let e=0;e<r.count;e++)t.push(e);e.setIndex(t),n=e.getIndex()}const r=n.count-2,i=[];if(2===t)for(let e=1;e<=r;e++)i.push(n.getX(0)),i.push(n.getX(e)),i.push(n.getX(e+1));else for(let e=0;e<r;e++)e%2===0?(i.push(n.getX(e)),i.push(n.getX(e+1)),i.push(n.getX(e+2))):(i.push(n.getX(e+2)),i.push(n.getX(e+1)),i.push(n.getX(e)));i.length/3!==r&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const o=e.clone();return o.setIndex(i),o.clearGroups(),o}return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",t),e}Sh=new WeakMap,Mh=new WeakMap,Th=new WeakMap,Ah=new WeakMap,Oh=new WeakMap,Ch=new WeakMap,Rh=new WeakMap,Ph=new WeakMap,Ih=new WeakMap,Lh=new WeakMap,kh=new WeakMap,Dh=new WeakMap,Nh=new WeakMap,Uh=new WeakMap,jh=new WeakMap,Fh=new WeakMap,Bh=new WeakMap;
2var ip={exports:{}};!function(e){var t={single_source_shortest_paths:function(e,n,r){var i={},o={};o[n]=0;var a,s,l,c,u,d,h,p=t.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(l in s=(a=p.pop()).value,c=a.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],h=o[l],("undefined"===typeof o[l]||h>d)&&(o[l]=d,p.push(l,d),i[l]=s));if("undefined"!==typeof r&&"undefined"===typeof o[r]){var f=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(f)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var i=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,i={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=e.sorter||r.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t}(ip);var op=ip.exports;class ap{constructor(){this.name="",this.minZoom=0,this.maxZoom=20,this.bounds=[],this.center=[]}fetchTile(e,t,n){return null}getMetaData(){}}class sp extends ap{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://a.tile.openstreetmap.org/";super(),this.imageLoader=new Id,this.address=e,this.format="png",this.maxZoom=19}fetchTile(e,t,n){return new Promise(((r,i)=>{const o=this.address+e+"/"+t+"/"+n+"."+this.format;this.imageLoader.load(o,(e=>{r(e)}),void 0,(e=>{console.error(e),i()}))}))}}function lp(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(gB){o(gB)}}function s(e){try{l(r.throw(e))}catch(gB){o(gB)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}class cp extends Fo{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:10;super();const a=[],s=[],l=[],c=[];cp.buildPlane(e,t,n,r,a,s,l,c),i&&cp.buildSkirt(e,t,n,r,o,a,s,l,c),this.setIndex(a),this.setAttribute("position",new Po(s,3)),this.setAttribute("normal",new Po(l,3)),this.setAttribute("uv",new Po(c,2))}static buildPlane(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0;const l=e/2,c=t/2,u=n+1,d=r+1,h=e/n,p=t/r;for(let f=0;f<d;f++){const e=f*p-c;for(let t=0;t<u;t++){const i=t*h-l;o.push(i,0,e),a.push(0,1,0),s.push(t/n,1-f/r)}}for(let f=0;f<r;f++)for(let e=0;e<n;e++){const t=e+u*f,n=e+u*(f+1),r=e+1+u*(f+1),o=e+1+u*f;i.push(t,n,o,n,r,o)}}static buildSkirt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0;const c=e/2,u=t/2,d=n+1,h=r+1,p=e/n,f=t/r;let m=a.length/3;for(let v=0;v<d;v++){const e=v*p-c,t=-u;a.push(e,-i,t),s.push(0,1,0),l.push(v/n,1)}for(let v=0;v<n;v++){const e=v,t=v+1,n=v+m,r=v+m+1;o.push(t,n,e,t,r,n)}m=a.length/3;for(let v=0;v<d;v++){const e=v*p-c,t=r*f-u;a.push(e,-i,t),s.push(0,1,0),l.push(v/n,0)}let g=d*h-n-1;for(let v=0;v<n;v++){const e=g+v,t=g+v+1,n=v+m,r=v+m+1;o.push(e,n,t,n,r,t)}m=a.length/3;for(let v=0;v<h;v++){const e=v*f-u,t=-c;a.push(t,-i,e),s.push(0,1,0),l.push(0,1-v/r)}for(let v=0;v<r;v++){const e=v*h,t=(v+1)*h,n=v+m,r=v+m+1;o.push(e,n,t,n,r,t)}m=a.length/3;for(let v=0;v<h;v++){const e=v*f-u,t=n*p-c;a.push(t,-i,e),s.push(0,1,0),l.push(1,1-v/r)}for(let v=0;v<r;v++){const e=v*h+r,t=(v+1)*h+r,n=v+m,i=v+m+1;o.push(t,n,e,t,i,n)}}}class up{static createOffscreenCanvas(e,t){if(window.OffscreenCanvas)return new window.OffscreenCanvas(e,t);{let n=document.createElement("canvas");return n.width=e,n.height=t,n}}}class dp extends ra{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dp.root,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;super(arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,arguments.length>7&&void 0!==arguments[7]?arguments[7]:null),this.mapView=null,this.parentNode=null,this.nodesLoaded=0,this.subdivided=!1,this.childrenCache=null,this.cacheChild=!1,this.isMesh=!0,this.mapView=t,this.parentNode=e,this.location=n,this.level=r,this.x=i,this.y=o,this.initialize()}initialize(){}createChildNodes(){}subdivide(){var e,t;const n=Math.min(this.mapView.provider.maxZoom,null!==(t=null===(e=this.mapView.heightProvider)||void 0===e?void 0:e.maxZoom)&&void 0!==t?t:1/0);this.children.length>0||this.level+1>n||null!==this.parentNode&&this.parentNode.nodesLoaded<dp.childrens||(this.subdivided=!0,this.cacheChild&&null!==this.childrenCache?(this.isMesh=!1,this.children=this.childrenCache):this.createChildNodes())}simplify(){this.cacheChild&&this.children.length>0&&(this.childrenCache=this.children),this.subdivided=!1,this.isMesh=!0,this.children=[]}loadTexture(){return lp(this,void 0,void 0,(function*(){try{const e=yield this.mapView.provider.fetchTile(this.level,this.x,this.y),t=new Gr(e);t.generateMipmaps=!1,t.format=Cn,t.magFilter=bn,t.minFilter=bn,t.needsUpdate=!0,this.material.map=t,this.nodeReady()}catch(gB){const t=up.createOffscreenCanvas(1,1),n=t.getContext("2d");n.fillStyle="white",n.fillRect(0,0,1,1);const r=new Gr(t);r.generateMipmaps=!1,r.needsUpdate=!0,this.material.map=r,this.nodeReady()}}))}nodeReady(){if(null!==this.parentNode){if(this.parentNode.nodesLoaded++,this.parentNode.nodesLoaded>=dp.childrens){!0===this.parentNode.subdivided&&(this.parentNode.isMesh=!1);for(let e=0;e<this.parentNode.children.length;e++)this.parentNode.children[e].visible=!0}}else this.visible=!0;this.mapView.onRenderRequired&&this.mapView.onRenderRequired()}getNeighborsDirection(e){return null}getNeighbors(){return[]}}dp.baseGeometry=null,dp.baseScale=null,dp.childrens=4,dp.root=-1,dp.topLeft=0,dp.topRight=1,dp.bottomLeft=2,dp.bottomRight=3;class hp{static get(e,t){navigator.geolocation.getCurrentPosition((function(t){e(t.coords,t.timestamp)}),t)}static datumsToSpherical(e,t){const n=t*hp.EARTH_ORIGIN/180;let r=Math.log(Math.tan((90+e)*Math.PI/360))/(Math.PI/180);return r=r*hp.EARTH_ORIGIN/180,new Sr(n,r)}static sphericalToDatums(e,t){const n=e/hp.EARTH_ORIGIN*180;let r=t/hp.EARTH_ORIGIN*180;
2return r=180/Math.PI*(2*Math.atan(Math.exp(r*Math.PI/180))-Math.PI/2),{latitude:r,longitude:n}}static quadtreeToDatums(e,t,n){const r=Math.pow(2,e),i=t/r*360-180;return{latitude:Math.atan(Math.sinh(Math.PI*(1-2*n/r)))/Math.PI*180,longitude:i}}}hp.EARTH_RADIUS=6378137,hp.EARTH_PERIMETER=2*Math.PI*hp.EARTH_RADIUS,hp.EARTH_ORIGIN=hp.EARTH_PERIMETER/2;class pp extends dp{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:dp.root,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,pp.geometry,new _o({wireframe:!1,depthWrite:!1})),this.matrixAutoUpdate=!1,this.isMesh=!0,this.visible=!1}initialize(){super.initialize(),this.loadTexture()}createChildNodes(){const e=this.level+1,t=2*this.x,n=2*this.y,r=Object.getPrototypeOf(this).constructor;let i=new r(this,this.mapView,dp.topLeft,e,t,n);i.scale.set(.5,1,.5),i.position.set(-.25,0,-.25),this.add(i),i.updateMatrix(),i.updateMatrixWorld(!0),i=new r(this,this.mapView,dp.topRight,e,t+1,n),i.scale.set(.5,1,.5),i.position.set(.25,0,-.25),this.add(i),i.updateMatrix(),i.updateMatrixWorld(!0),i=new r(this,this.mapView,dp.bottomLeft,e,t,n+1),i.scale.set(.5,1,.5),i.position.set(-.25,0,.25),this.add(i),i.updateMatrix(),i.updateMatrixWorld(!0),i=new r(this,this.mapView,dp.bottomRight,e,t+1,n+1),i.scale.set(.5,1,.5),i.position.set(.25,0,.25),this.add(i),i.updateMatrix(),i.updateMatrixWorld(!0)}raycast(e,t){return!0===this.isMesh&&super.raycast(e,t)}}pp.geometry=new cp(1,1,1,1,!1),pp.baseGeometry=pp.geometry,pp.baseScale=new Jr(hp.EARTH_PERIMETER,1,hp.EARTH_PERIMETER);class fp extends Fo{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:10,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=!(arguments.length>7&&void 0!==arguments[7])||arguments[7];super();const l=[],c=[],u=[],d=[];cp.buildPlane(e,t,n,r,l,c,u,d);const h=a.data;for(let p=0,f=0;p<h.length&&f<c.length;p+=4,f+=3){const e=.1*(65536*h[p]+256*h[p+1]+h[p+2])-1e4;c[f+1]=e}i&&cp.buildSkirt(e,t,n,r,o,l,c,u,d),this.setIndex(l),this.setAttribute("position",new Po(c,3)),this.setAttribute("normal",new Po(u,3)),this.setAttribute("uv",new Po(d,2)),s&&this.computeNormals(n,r)}computeNormals(e,t){const n=this.getAttribute("position");if(void 0!==n){let r=this.getAttribute("normal");const i=t*e;for(let e=0;e<i;e++)r.setXYZ(e,0,0,0);const o=new Jr,a=new Jr,s=new Jr,l=new Jr,c=new Jr,u=new Jr,d=new Jr,h=new Jr,p=t*e*6;for(let e=0;e<p;e+=3){const t=this.index.getX(e+0),i=this.index.getX(e+1),p=this.index.getX(e+2);o.fromBufferAttribute(n,t),a.fromBufferAttribute(n,i),s.fromBufferAttribute(n,p),d.subVectors(s,a),h.subVectors(o,a),d.cross(h),l.fromBufferAttribute(r,t),c.fromBufferAttribute(r,i),u.fromBufferAttribute(r,p),l.add(d),c.add(d),u.add(d),r.setXYZ(t,l.x,l.y,l.z),r.setXYZ(i,c.x,c.y,c.z),r.setXYZ(p,u.x,u.y,u.z)}this.normalizeNormals(),r.needsUpdate=!0}}}class mp extends dp{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:dp.root,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:mp.geometry,arguments.length>7&&void 0!==arguments[7]?arguments[7]:new ad({wireframe:!1,color:16777215})),this.heightLoaded=!1,this.textureLoaded=!1,this.geometrySize=16,this.geometryNormals=!1,this.isMesh=!0,this.visible=!1,this.matrixAutoUpdate=!1}initialize(){super.initialize(),this.loadTexture(),this.loadHeightGeometry()}loadTexture(){return lp(this,void 0,void 0,(function*(){const e=new Gr;e.image=yield this.mapView.provider.fetchTile(this.level,this.x,this.y),e.generateMipmaps=!1,e.format=Cn,e.magFilter=bn,e.minFilter=bn,e.needsUpdate=!0,this.material.map=e,this.material.needsUpdate=!0,this.textureLoaded=!0,this.nodeReady()}))}nodeReady(){this.heightLoaded&&this.textureLoaded&&(this.visible=!0,super.nodeReady())}createChildNodes(){const e=this.level+1,t=Object.getPrototypeOf(this).constructor,n=2*this.x,r=2*this.y;let i=new t(this,this.mapView,dp.topLeft,e,n,r);i.scale.set(.5,1,.5),i.position.set(-.25,0,-.25),this.add(i),i.updateMatrix(),i.updateMatrixWorld(!0),i=new t(this,this.mapView,dp.topRight,e,n+1,r),i.scale.set(.5,1,.5),i.position.set(.25,0,-.25),this.add(i),i.updateMatrix(),i.updateMatrixWorld(!0),i=new t(this,this.mapView,dp.bottomLeft,e,n,r+1),i.scale.set(.5,1,.5),i.position.set(-.25,0,.25),this.add(i),i.updateMatrix(),i.updateMatrixWorld(!0),i=new t(this,this.mapView,dp.bottomRight,e,n+1,r+1),i.scale.set(.5,1,.5),i.position.set(.25,0,.25),this.add(i),i.updateMatrix(),i.updateMatrixWorld(!0)}loadHeightGeometry(){return lp(this,void 0,void 0,(function*(){if(null===this.mapView.heightProvider)throw new Error("GeoThree: MapView.heightProvider provider is null.");const e=yield this.mapView.heightProvider.fetchTile(this.level,this.x,this.y),t=up.createOffscreenCanvas(this.geometrySize+1,this.geometrySize+1),n=t.getContext("2d");n.imageSmoothingEnabled=!1,n.drawImage(e,0,0,mp.tileSize,mp.tileSize,0,0,t.width,t.height);const r=n.getImageData(0,0,t.width,t.height);this.geometry=new fp(1,1,this.geometrySize,this.geometrySize,!0,10,r,!0),this.heightLoaded=!0,this.nodeReady()}))}raycast(e,t){return!0===this.isMesh&&super.raycast(e,t)}}mp.tileSize=256,mp.geometry=new cp(1,1,1,1),mp.baseGeometry=pp.geometry,mp.baseScale=new Jr(hp.EARTH_PERIMETER,1,hp.EARTH_PERIMETER);class gp extends Fo{constructor(e,t,n,r,i,o,a){super();const s=o+a;let l=0;const c=[],u=new Jr,d=new Jr,h=[],p=[],f=[],m=[];for(let g=0;g<=n;g++){const s=[],h=g/n;for(let n=0;n<=t;n++){const c=n/t;
2u.x=-e*Math.cos(r+c*i)*Math.sin(o+h*a),u.y=e*Math.cos(o+h*a),u.z=e*Math.sin(r+c*i)*Math.sin(o+h*a),p.push(u.x,u.y,u.z),d.set(u.x,u.y,u.z).normalize(),f.push(d.x,d.y,d.z),m.push(c,1-h),s.push(l++)}c.push(s)}for(let g=0;g<n;g++)for(let e=0;e<t;e++){const t=c[g][e+1],r=c[g][e],i=c[g+1][e],a=c[g+1][e+1];(0!==g||o>0)&&h.push(t,r,a),(g!==n-1||s<Math.PI)&&h.push(r,i,a)}this.setIndex(h),this.setAttribute("position",new Po(p,3)),this.setAttribute("normal",new Po(f,3)),this.setAttribute("uv",new Po(m,2))}}class vp extends dp{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dp.root,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;super(e,t,n,r,i,o,vp.createGeometry(r,i,o),new _o({wireframe:!1})),this.applyScaleNode(),this.matrixAutoUpdate=!1,this.isMesh=!0,this.visible=!1}initialize(){super.initialize(),this.loadTexture()}static createGeometry(e,t,n){const r=Math.pow(2,e),i=Math.floor(vp.segments*(40/(e+1))/40),o=1/r*2*Math.PI,a=t*o,s=1/r*Math.PI;return new gp(1,i,i,a,o,n*s,s)}applyScaleNode(){this.geometry.computeBoundingBox();const e=this.geometry.boundingBox.clone().getCenter(new Jr),t=new Oi;t.compose(new Jr(-e.x,-e.y,-e.z),new $r,new Jr(hp.EARTH_RADIUS,hp.EARTH_RADIUS,hp.EARTH_RADIUS)),this.geometry.applyMatrix4(t),this.position.copy(e),this.updateMatrix(),this.updateMatrixWorld()}updateMatrix(){this.matrix.setPosition(this.position),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(this.matrixWorldNeedsUpdate||e)&&(this.matrixWorld.copy(this.matrix),this.matrixWorldNeedsUpdate=!1)}createChildNodes(){const e=this.level+1,t=2*this.x,n=2*this.y,r=Object.getPrototypeOf(this).constructor;let i=new r(this,this.mapView,dp.topLeft,e,t,n);this.add(i),i.updateMatrix(),i.updateMatrixWorld(!0),i=new r(this,this.mapView,dp.topRight,e,t+1,n),this.add(i),i.updateMatrix(),i.updateMatrixWorld(!0),i=new r(this,this.mapView,dp.bottomLeft,e,t,n+1),this.add(i),i.updateMatrix(),i.updateMatrixWorld(!0),i=new r(this,this.mapView,dp.bottomRight,e,t+1,n+1),this.add(i),i.updateMatrix(),i.updateMatrixWorld(!0)}raycast(e,t){return!0===this.isMesh&&super.raycast(e,t)}}vp.baseGeometry=new gp(hp.EARTH_RADIUS,64,64,0,2*Math.PI,0,Math.PI),vp.baseScale=new Jr(1,1,1),vp.segments=80;class yp extends mp{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dp.root,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;const a=yp.prepareMaterial(new ad({map:yp.emptyTexture,color:16777215}));super(e,t,n,r,i,o,yp.geometry,a),this.frustumCulled=!1}static prepareMaterial(e){return e.userData={heightMap:{value:yp.emptyTexture}},e.onBeforeCompile=t=>{for(const n in e.userData)t.uniforms[n]=e.userData[n];t.vertexShader="\n\t\t\tuniform sampler2D heightMap;\n\t\t\t"+t.vertexShader,t.vertexShader=t.vertexShader.replace("#include <fog_vertex>","\n\t\t\t#include <fog_vertex>\n\t\n\t\t\t// Calculate height of the title\n\t\t\tvec4 _theight = texture2D(heightMap, vUv);\n\t\t\tfloat _height = ((_theight.r * 255.0 * 65536.0 + _theight.g * 255.0 * 256.0 + _theight.b * 255.0) * 0.1) - 10000.0;\n\t\t\tvec3 _transformed = position + _height * normal;\n\t\n\t\t\t// Vertex position based on height\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4(_transformed, 1.0);\n\t\t\t")},e}loadTexture(){return lp(this,void 0,void 0,(function*(){const e=yield this.mapView.provider.fetchTile(this.level,this.x,this.y),t=new Gr(e);t.generateMipmaps=!1,t.format=Cn,t.magFilter=bn,t.minFilter=bn,t.needsUpdate=!0,this.material.map=t,this.material.needsUpdate=!0,this.textureLoaded=!0,this.nodeReady(),yield this.loadHeightGeometry()}))}loadHeightGeometry(){return lp(this,void 0,void 0,(function*(){if(null===this.mapView.heightProvider)throw new Error("GeoThree: MapView.heightProvider provider is null.");const e=new Gr;e.image=yield this.mapView.heightProvider.fetchTile(this.level,this.x,this.y),e.generateMipmaps=!1,e.format=Cn,e.magFilter=gn,e.minFilter=gn,e.needsUpdate=!0,this.material.userData.heightMap.value=e,this.material.map=e,this.material.needsUpdate=!0,this.heightLoaded=!0,this.nodeReady()}))}raycast(e,t){if(!0===this.isMesh){this.geometry=pp.geometry;const n=super.raycast(e,t);return this.geometry=yp.geometry,n}return!1}}yp.emptyTexture=new Gr,yp.geometrySize=256,yp.geometry=new cp(1,1,yp.geometrySize,yp.geometrySize,!0),yp.baseGeometry=pp.geometry,yp.baseScale=new Jr(hp.EARTH_PERIMETER,1,hp.EARTH_PERIMETER);class bp{constructor(){this.subdivisionRays=1,this.thresholdUp=.6,this.thresholdDown=.15,this.raycaster=new oh,this.mouse=new Sr,this.powerDistance=!1,this.scaleDistance=!0}updateLOD(e,t,n,r){const i=[];for(let o=0;o<this.subdivisionRays;o++)this.mouse.set(2*Math.random()-1,2*Math.random()-1),this.raycaster.setFromCamera(this.mouse,t),this.raycaster.intersectObjects(e.children,!0,i);for(let o=0;o<i.length;o++){const e=i[o].object;let t=i[o].distance;if(this.powerDistance&&(t=Math.pow(2*t,e.level)),this.scaleDistance){const n=e.matrixWorld.elements;t=new Jr(n[0],n[1],n[2]).length()/t}if(t>this.thresholdUp)return void e.subdivide();if(t<this.thresholdDown&&null!==e.parentNode)return void e.parentNode.simplify()}}}class xp{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:257;this.gridSize=e;const t=e-1;if(t&t-1)throw new Error("Expected grid size to be 2^n+1, got ".concat(e,"."));this.numTriangles=t*t*2-2,this.numParentTriangles=this.numTriangles-t*t,this.indices=new Uint32Array(this.gridSize*this.gridSize),this.coords=new Uint16Array(4*this.numTriangles);for(let n=0;n<this.numTriangles;n++){let e=n+2,r=0,i=0,o=0,a=0,s=0,l=0;for(1&e?o=a=s=t:r=i=l=t;(e>>=1)>1;){const t=r+o>>1,n=i+a>>1;1&e?(o=r,a=i,r=s,i=l):(r=o,i=a,o=s,a=l),s=t,l=n}const c=4*n;this.coords[c+0]=r,this.coords[c+1]=i,this.coords[c+2]=o,this.coords[c+3]=a}}createTile(e){return new wp(e,this)}}class wp{constructor(e,t){const n=t.gridSize;if(e.length!==n*n)throw new Error("Expected terrain data of length ".concat(n*n," (").concat(n," x ").concat(n,"), got ").concat(e.length,"."));this.terrain=e,this.martini=t,this.errors=new Float32Array(e.length),this.update()}update(){const{numTriangles:e,numParentTriangles:t,coords:n,gridSize:r}=this.martini,{terrain:i,errors:o}=this;for(let a=e-1;a>=0;a--){const e=4*a,s=n[e+0],l=n[e+1],c=n[e+2],u=n[e+3],d=s+c>>1,h=l+u>>1,p=d+h-l,f=h+s-d,m=(i[l*r+s]+i[u*r+c])/2,g=h*r+d,v=Math.abs(m-i[g]);if(o[g]=Math.max(o[g],v),a<t){const e=(l+f>>1)*r+(s+p>>1),t=(u+f>>1)*r+(c+p>>1);o[g]=Math.max(o[g],o[e],o[t])}}}getMesh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{gridSize:n,indices:r}=this.martini,{errors:i}=this;let o=0,a=0;const s=n-1;let l,c,u=0;const d=[],h=[],p=[],f=[];function m(g,v,y,b,x,w){const _=g+y>>1,E=v+b>>1;Math.abs(g-x)+Math.abs(v-w)>1&&i[E*n+_]>e?(m(x,w,g,v,_,E),m(y,b,x,w,_,E)):(l=v*n+g,c=b*n+y,u=w*n+x,0===r[l]&&(t&&(0===g?d.push(o):g===s&&h.push(o),0===v?p.push(o):v===s&&f.push(o)),r[l]=++o),0===r[c]&&(t&&(0===y?d.push(o):y===s&&h.push(o),0===b?p.push(o):b===s&&f.push(o)),r[c]=++o),0===r[u]&&(t&&(0===x?d.push(o):x===s&&h.push(o),0===w?p.push(o):w===s&&f.push(o)),r[u]=++o),a++)}r.fill(0),m(0,0,s,s,s,0),m(s,s,0,0,0,s);let g=2*o,v=3*a;t&&(g+=2*(d.length+h.length+p.length+f.length),v+=3*(2*(d.length-1)+2*(h.length-1)+2*(p.length-1)+2*(f.length-1)));const y=new Uint16Array(g),b=new Uint32Array(v);let x=0;function w(t,o,a,s,l,c){const u=t+a>>1,d=o+s>>1;
2if(Math.abs(t-l)+Math.abs(o-c)>1&&i[d*n+u]>e)w(l,c,t,o,u,d),w(a,s,l,c,u,d);else{const e=r[o*n+t]-1,i=r[s*n+a]-1,u=r[c*n+l]-1;y[2*e]=t,y[2*e+1]=o,y[2*i]=a,y[2*i+1]=s,y[2*u]=l,y[2*u+1]=c,b[x++]=e,b[x++]=i,b[x++]=u}}if(w(0,0,s,s,s,0),w(s,s,0,0,0,s),t){d.sort(((e,t)=>y[2*e+1]-y[2*t+1])),h.sort(((e,t)=>y[2*t+1]-y[2*e+1])),p.sort(((e,t)=>y[2*t]-y[2*e])),f.sort(((e,t)=>y[2*e]-y[2*t]));let _=2*o;function E(e){const t=e.length;for(let n=0;n<t-1;n++){const t=e[n],r=e[n+1],i=_/2,o=(_+2)/2;y[_++]=y[2*t],y[_++]=y[2*t+1],b[x++]=t,b[x++]=i,b[x++]=r,b[x++]=i,b[x++]=o,b[x++]=r}y[_++]=y[2*e[t-1]],y[_++]=y[2*e[t-1]+1]}E(d),E(h),E(p),E(f)}return{vertices:y,triangles:b,numVerticesWithoutSkirts:o}}}class _p extends mp{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dp.root,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,{elevationDecoder:a=null,meshMaxError:s=10,exageration:l=1}=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};super(e,t,n,r,i,o,_p.geometry,_p.prepareMaterial(new ad({map:_p.emptyTexture,color:16777215,side:2}),r,l)),this.elevationDecoder={rScaler:256,gScaler:1,bScaler:1/256,offset:-32768},this.exageration=1,this.meshMaxError=10,a&&(this.elevationDecoder=a),this.meshMaxError=s,this.exageration=l,this.frustumCulled=!1}static prepareMaterial(e,t){return e.userData={heightMap:{value:_p.emptyTexture},drawNormals:{value:0},drawBlack:{value:0},zoomlevel:{value:t},computeNormals:{value:1},drawTexture:{value:1}},e.onBeforeCompile=t=>{for(let n in e.userData)t.uniforms[n]=e.userData[n];t.vertexShader="\n\t\t\t\tuniform bool computeNormals;\n\t\t\t\tuniform float zoomlevel;\n\t\t\t\tuniform sampler2D heightMap;\n\t\t\t\t"+t.vertexShader,t.fragmentShader="\n\t\t\t\tuniform bool drawNormals;\n\t\t\t\tuniform bool drawTexture;\n\t\t\t\tuniform bool drawBlack;\n\t\t\t\t"+t.fragmentShader,t.fragmentShader=t.fragmentShader.replace("#include <dithering_fragment>","\n\t\t\t\tif(drawBlack) {\n\t\t\t\t\tgl_FragColor = vec4( 0.0,0.0,0.0, 1.0 );\n\t\t\t\t} else if(drawNormals) {\n\t\t\t\t\tgl_FragColor = vec4( ( 0.5 * vNormal + 0.5 ), 1.0 );\n\t\t\t\t} else if (!drawTexture) {\n\t\t\t\t\tgl_FragColor = vec4( 0.0,0.0,0.0, 0.0 );\n\t\t\t\t}"),t.vertexShader=t.vertexShader.replace("#include <fog_vertex>","\n\t\t\t\t#include <fog_vertex>\n\n\t\t\t\t// queried pixels:\n\t\t\t\t// +-----------+\n\t\t\t\t// |   |   |   |\n\t\t\t\t// | a | b | c |\n\t\t\t\t// |   |   |   |\n\t\t\t\t// +-----------+\n\t\t\t\t// |   |   |   |\n\t\t\t\t// | d | e | f |\n\t\t\t\t// |   |   |   |\n\t\t\t\t// +-----------+\n\t\t\t\t// |   |   |   |\n\t\t\t\t// | g | h | i |\n\t\t\t\t// |   |   |   |\n\t\t\t\t// +-----------+\n\n\t\t\t\tif (computeNormals) {\n\t\t\t\t\tfloat e = getElevation(vUv, 0.0);\n\t\t\t\t\tivec2 size = textureSize(heightMap, 0);\n\t\t\t\t\tfloat offset = 1.0 / float(size.x);\n\t\t\t\t\tfloat a = getElevation(vUv + vec2(-offset, -offset), 0.0);\n\t\t\t\t\tfloat b = getElevation(vUv + vec2(0, -offset), 0.0);\n\t\t\t\t\tfloat c = getElevation(vUv + vec2(offset, -offset), 0.0);\n\t\t\t\t\tfloat d = getElevation(vUv + vec2(-offset, 0), 0.0);\n\t\t\t\t\tfloat f = getElevation(vUv + vec2(offset, 0), 0.0);\n\t\t\t\t\tfloat g = getElevation(vUv + vec2(-offset, offset), 0.0);\n\t\t\t\t\tfloat h = getElevation(vUv + vec2(0, offset), 0.0);\n\t\t\t\t\tfloat i = getElevation(vUv + vec2(offset,offset), 0.0);\n\n\n\t\t\t\t\tfloat normalLength = 500.0 / zoomlevel;\n\n\t\t\t\t\tvec3 v0 = vec3(0.0, 0.0, 0.0);\n\t\t\t\t\tvec3 v1 = vec3(0.0, normalLength, 0.0);\n\t\t\t\t\tvec3 v2 = vec3(normalLength, 0.0, 0.0);\n\t\t\t\t\tv0.z = (e + d + g + h) / 4.0;\n\t\t\t\t\tv1.z = (e+ b + a + d) / 4.0;\n\t\t\t\t\tv2.z = (e+ h + i + f) / 4.0;\n\t\t\t\t\tvNormal = (normalize(cross(v2 - v0, v1 - v0))).rbg;\n\t\t\t\t}\n\t\t\t\t")},e}static getTerrain(e,t,n){const{rScaler:r,bScaler:i,gScaler:o,offset:a}=n,s=t+1,l=new Float32Array(s*s);for(let c=0,u=0;u<t;u++)for(let n=0;n<t;n++,c++){const t=4*c,n=e[t+0],s=e[t+1],d=e[t+2];l[c+u]=n*r+s*o+d*i+a}for(let c=s*(s-1),u=0;u<s-1;u++,c++)l[c]=l[c-s];for(let c=s-1,u=0;u<s;u++,c+=s)l[c]=l[c-1];return l}static getMeshAttributes(e,t,n,r,i){const o=n+1,a=e.length/2,s=new Float32Array(3*a),l=new Float32Array(2*a),[c,u,d,h]=r||[0,0,n,n],p=(d-c)/n,f=(h-u)/n;for(let m=0;m<a;m++){const r=e[2*m],a=e[2*m+1],u=a*o+r;s[3*m+0]=r*p+c,s[3*m+1]=-t[u]*i,s[3*m+2]=-a*f+h,l[2*m+0]=r/n,l[2*m+1]=a/n}return{position:{value:s,size:3},uv:{value:l,size:2}}}onHeightImage(e){return lp(this,void 0,void 0,(function*(){const t=e.width,n=t+1;var r=up.createOffscreenCanvas(t,t),i=r.getContext("2d");i.imageSmoothingEnabled=!1,i.drawImage(e,0,0,t,t,0,0,r.width,r.height);var o=i.getImageData(0,0,r.width,r.height).data;const a=_p.getTerrain(o,t,this.elevationDecoder),s=new xp(n).createTile(a),{vertices:l,triangles:c}
2=s.getMesh("function"===typeof this.meshMaxError?this.meshMaxError(this.level):this.meshMaxError),u=_p.getMeshAttributes(l,a,t,[-.5,-.5,.5,.5],this.exageration);this.geometry=new Fo,this.geometry.setIndex(new Ro(c,1)),this.geometry.setAttribute("position",new Po(u.position.value,u.position.size)),this.geometry.setAttribute("uv",new Po(u.uv.value,u.uv.size)),this.geometry.rotateX(Math.PI);var d=new Gr(e);d.generateMipmaps=!1,d.format=Cn,d.magFilter=gn,d.minFilter=gn,d.needsUpdate=!0,this.material.userData.heightMap.value=d,this.material.map=d,this.material.needsUpdate=!0}))}loadHeightGeometry(){return lp(this,void 0,void 0,(function*(){if(null===this.mapView.heightProvider)throw new Error("GeoThree: MapView.heightProvider provider is null.");this.onHeightImage(yield this.mapView.heightProvider.fetchTile(this.level,this.x,this.y)),this.heightLoaded=!0,this.nodeReady()}))}}_p.geometrySize=16,_p.emptyTexture=new Gr,_p.geometry=new cp(1,1,1,1),_p.tileSize=256;class Ep extends ra{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ep.PLANAR,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new sp,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;super(void 0,new _o({transparent:!0,opacity:0})),this.lod=null,this.provider=null,this.heightProvider=null,this.root=null,this.zoomLevel=0,this.onRenderRequired=()=>{},this.onBeforeRender=(e,t,n,r,i,o)=>{this.lod.updateLOD(this,n,e,t)},this.lod=new bp,this.provider=t,this.heightProvider=n,this.onRenderRequired=r,this.setRoot(e)}setZoom(e){const t=Math.round(e);this.zoomLevel!==t&&(this.zoomLevel=t,this.onRenderRequired())}setRoot(e){if("number"===typeof e){if(!Ep.mapModes.has(e))throw new Error("Map mode "+e+" does is not registered.");e=new(Ep.mapModes.get(e))(null,this)}null!==this.root&&(this.remove(this.root),this.root=null),this.root=e,null!==this.root&&(this.geometry=this.root.constructor.baseGeometry,this.scale.copy(this.root.constructor.baseScale),this.root.mapView=this,this.add(this.root))}setProvider(e){e!==this.provider&&(this.provider=e,this.clear())}setHeightProvider(e){e!==this.heightProvider&&(this.heightProvider=e,this.clear())}clear(){return this.traverse((function(e){e.childrenCache&&(e.childrenCache=null),e.initialize&&e.initialize()})),this}getMetaData(){this.provider.getMetaData()}raycast(e,t){return!1}}Ep.PLANAR=200,Ep.SPHERICAL=201,Ep.HEIGHT=202,Ep.HEIGHT_SHADER=203,Ep.MARTINI=204,Ep.mapModes=new Map([[Ep.PLANAR,pp],[Ep.SPHERICAL,vp],[Ep.HEIGHT,mp],[Ep.HEIGHT_SHADER,yp],[Ep.MARTINI,_p]]);const Sp=new Jr,Mp=new Jr;class Tp{constructor(){this.subdivideDistance=50,this.simplifyDistance=300}updateLOD(e,t,n,r){t.getWorldPosition(Sp),e.children[0].traverse((t=>{t.getWorldPosition(Mp);let n=Sp.distanceTo(Mp);n/=Math.pow(2,e.provider.maxZoom-t.level),n<this.subdivideDistance?t.subdivide():n>this.simplifyDistance&&t.parentNode&&t.parentNode.simplify()}))}}new Oi,new Jr,new Ta,new Jr;const Ap=new Oi,Op=new Ta,Cp=new Jr;class Rp extends Tp{constructor(){super(...arguments),this.pointOnly=!1}updateLOD(e,t,n,r){Ap.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),Op.setFromProjectionMatrix(Ap),e.children[0].traverse((t=>{t.getWorldPosition(Cp);(this.pointOnly?Op.containsPoint(Cp):Op.intersectsObject(t))&&(t.level<e.zoomLevel?t.subdivide():t.level>e.zoomLevel&&t.parentNode?t.parentNode.simplify():t.level===e.zoomLevel&&(t.isMesh=!0))}))}}class Pp{static get(e,t,n){const r=new XMLHttpRequest;return r.overrideMimeType("text/plain"),r.open("GET",e,!0),void 0!==t&&(r.onload=function(){t(r.response)}),void 0!==n&&(r.onerror=n),r.send(null),r}static getRaw(e,t,n){var r=new XMLHttpRequest;return r.responseType="arraybuffer",r.open("GET",e,!0),void 0!==t&&(r.onload=function(){t(r.response)}),void 0!==n&&(r.onerror=n),r.send(null),r}static request(e,t,n,r,i,o,a){const s=new XMLHttpRequest;if(s.overrideMimeType("text/plain"),s.open(t,e,!0),null!==n&&void 0!==n)for(const l in n)s.setRequestHeader(l,n[l]);return void 0!==i&&(s.onload=function(e){i(function(e){try{return JSON.parse(e)}catch(gB){return e}}(s.response),s)}),void 0!==o&&(s.onerror=o),void 0!==a&&(s.onprogress=a),void 0!==r?s.send(r):s.send(null),s}}class Ip extends ap{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ip.AERIAL;super(),this.maxZoom=19,this.format="jpeg",this.mapSize=512,this.subdomain="t1",this.apiKey=e,this.type=t,this.maxZoom=19}getMetaData(){const e="http://dev.virtualearth.net/REST/V1/Imagery/Metadata/RoadOnDemand?output=json&include=ImageryProviders&ke
2y="+this.apiKey;Pp.get(e,(function(e){JSON.parse(e)}))}static quadKey(e,t,n){let r="";for(let i=e;i>0;i--){const e=1<<i-1;let o=0;0!==(t&e)&&o++,0!==(n&e)&&(o+=2),r+=o}return r}fetchTile(e,t,n){return new Promise(((r,i)=>{const o=document.createElement("img");o.onload=function(){r(o)},o.onerror=function(){i()},o.crossOrigin="Anonymous",o.src="http://ecn."+this.subdomain+".tiles.virtualearth.net/tiles/"+this.type+Ip.quadKey(e,t,n)+".jpeg?g=1173"}))}}Ip.AERIAL="a",Ip.ROAD="r",Ip.AERIAL_LABELS="h",Ip.OBLIQUE="o",Ip.OBLIQUE_LABELS="b";(class extends ap{constructor(e,t,n,r,i,o){super(),this.appId=void 0!==e?e:"",this.appCode=void 0!==t?t:"",this.style=void 0!==n?n:"base",this.scheme=void 0!==r?r:"normal.day",this.format=void 0!==i?i:"png",this.size=void 0!==o?o:512,this.version="newest",this.server=1}nextServer(){this.server=this.server%4===0?1:this.server+1}getMetaData(){}fetchTile(e,t,n){return this.nextServer(),new Promise(((r,i)=>{const o=document.createElement("img");o.onload=function(){r(o)},o.onerror=function(){i()},o.crossOrigin="Anonymous",o.src="https://"+this.server+"."+this.style+".maps.api.here.com/maptile/2.1/maptile/"+this.version+"/"+this.scheme+"/"+e+"/"+t+"/"+n+"/"+this.size+"/"+this.format+"?app_id="+this.appId+"&app_code="+this.appCode}))}}).PATH="/maptile/2.1/";class Lp extends ap{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lp.STYLE,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"png",i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"v4";super(),this.imageLoader=new Id,this.apiToken=e,this.format=r,this.useHDPI=i,this.mode=n,this.mapId=t,this.style=t,this.version=o}getMetaData(){const e=Lp.ADDRESS+this.version+"/"+this.mapId+".json?access_token="+this.apiToken;Pp.get(e,(e=>{const t=JSON.parse(e);this.name=t.name,this.minZoom=t.minZoom,this.maxZoom=t.maxZoom,this.bounds=t.bounds,this.center=t.center}))}fetchTile(e,t,n){return new Promise(((r,i)=>{const o=this.mode===Lp.STYLE?"".concat(Lp.ADDRESS,"styles/v1/").concat(this.style,"/tiles/").concat(e,"/").concat(t,"/").concat(n).concat(this.useHDPI?"@2x?access_token=":"?access_token=").concat(this.apiToken):"".concat(Lp.ADDRESS,"v4/").concat(this.mapId,"/").concat(e,"/").concat(t,"/").concat(n).concat(this.useHDPI?"@2x.":".").concat(this.format,"?access_token=").concat(this.apiToken);this.imageLoader.load(o,(e=>{r(e)}),void 0,(e=>{console.error(e),i()}))}))}}Lp.ADDRESS="https://api.mapbox.com/",Lp.STYLE=100,Lp.MAP_ID=101;class kp extends ap{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mb",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;super(),this.imageLoader=new Id,this.provider=e,this.minZoom=t}fetchTile(e,t,n){return e<this.minZoom?Promise.reject():new Promise(((r,i)=>{const o="https://dev-tiles.point-consulting.workers.dev/".concat(this.provider,"/").concat(e,"/").concat(t,"/").concat(n);this.imageLoader.load(o,r,void 0,i)}))}}function Dp(e){let[t,n]=e;const{x:r,y:i}=hp.datumsToSpherical(t,n);return[r,-i]}function Np(e,t){const[n,r]=Dp(e),[i,o]=Dp(t),a=Math.abs(i-n),s=Math.abs(o-r),l=Math.sqrt(a*a+s*s);return Math.round(10*l)/10}function Up(e,t){const[n,r]=e,[i,o]=t,a=Math.abs(i-n),s=Math.abs(o-r);return a*a+s*s}
2function jp(e,t,n){const r=e instanceof Sr?e:new Sr(e[0],e[1]),i=t instanceof Sr?t:new Sr(t[0],t[1]),o=n instanceof Sr?n:new Sr(n[0],n[1]),a=o.clone().sub(i),s=r.clone().sub(i),l=a.length(),c=s.dot(a),u=a.multiplyScalar(c/l**2).add(i),d=i.x<o.x?i.x:o.x,h=i.x>o.x?i.x:o.x,p=i.y<o.y?i.y:o.y,f=i.y>o.y?i.y:o.y;if(u.x<d||h<u.x||u.y<p||f<u.y){const e=r.distanceTo(i),t=r.distanceTo(o);return{closestPoint:e<t?i:o,distance:e<t?e:t}}return{closestPoint:u,distance:r.distanceTo(u)}}const Fp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const{routes:n}=Xk;if(!n.routePoints.length)return null;const{ordinal:r,latLng:i}=e;if(!n.levelRoutePoints[r])return null;const[o,a]=n.levelRoutePoints[r],s=o+a-1;let l=1/0,c=null;for(let h=o;h<=s;h++){if(t.includes(h))continue;const e=n.routePoints[h],r=(u=i,d={lat:e[0],lng:e[1]},Math.pow(d.lat-u.lat,2)+Math.pow(d.lng-u.lng,2));r<l&&(l=r,c=h)}var u,d;return c};function Bp(e,t){const n=e[0],r=e[1];let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const e=t[o][0],s=t[o][1],l=t[a][0],c=t[a][1];s>r!==c>r&&n<(l-e)*(r-s)/(c-s)+e&&(i=!i)}return i}var zp=Object.defineProperty,Hp=Object.defineProperties,Vp=Object.getOwnPropertyDescriptors,Wp=Object.getOwnPropertySymbols,Gp=Object.prototype.hasOwnProperty,qp=Object.prototype.propertyIsEnumerable,Xp=(e,t,n)=>t in e?zp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yp=(e,t)=>{for(var n in t||(t={}))Gp.call(t,n)&&Xp(e,n,t[n]);if(Wp)for(var n of Wp(t))qp.call(t,n)&&Xp(e,n,t[n]);return e},Zp=(e,t)=>Hp(e,Vp(t));const Kp=(e,t,n)=>{const r=null==n?void 0:n.reduce(((n,r)=>{var i;switch(r.type){case"skipUnits":{const{destinations:t,units:i}=r;if(!Array.isArray(i)||Array.isArray(t)&&!t.includes(e.occupantId))break;i.forEach((e=>{var t;const r=Xk.units.get(e);null==(t=null==r?void 0:r.routePoints)||t.forEach((e=>n.add(e)))}));break}case"skipRoutePoints":{const{destinations:t,routePoints:i}=r;if(!Array.isArray(i)||Array.isArray(t)&&!t.includes(e.occupantId))break;i.forEach((e=>n.add(e)));break}case"excludeElevatorsByDefault":if(!t)for(const e of Xk.units.values())"elevator"===e.category&&(null==(i=e.routePoints)||i.forEach((e=>n.add(e))));break;case"limitToSection":break;default:console.warn('Route rule "'.concat(r.type,'" not found'))}return n}),new Set);return((e,t)=>Xk.routes.links.reduce(((n,r,i)=>(n[i]=Yp({},r.reduce(((n,r)=>(null==t?void 0:t.has(r.i))?n:Array.isArray(r.d)?e?n:Zp(Yp({},n),{[r.i]:r.d[0]}):Zp(Yp({},n),{[r.i]:r.d})),{})),n)),{}))(t,r)},$p=(e,t,n)=>{const r=function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const o=Fp(e,i);if(!Number.isFinite(o))return null;try{return op.find_path(n,o.toString(),t.toString()),o}catch(gB){return r([...i,o])}};return r()},Jp=(e,t,n)=>{var r,i;const{latLng:o,ordinal:a}=e,{routes:s}=Xk,{levelRoutePolygons:l}=s,c=null==(i=null==(r=null==t?void 0:t.occupant)?void 0:r.routePoints)?void 0:i[0];if(!c)return Fp(e);const u=[o.lat,o.lng],d=null==l?void 0:l[a],h=null==d?void 0:d.filter((e=>{let{polygon:t}=e;return Bp(u,t)})),p=null==h?void 0:h.flatMap((e=>{let{routePoints:t}=e;return t})),f=p?Array.from(new Set(p)):null;if(!f)return $p(e,c,n);const m=h.some((e=>{let{isRoom:t}=e;return t}))?f:f.filter((e=>{const t=Xk.routes.links[e];return t.length>1&&t.every((e=>Number.isFinite(e.d)))})),g=m.map((e=>{const t=Xk.routes.routePoints[Number(e)];return{routePoint:e,distance:Up(u,t)}})).sort(((e,t)=>e.distance-t.distance));for(const{routePoint:v}of g)try{const e=op.find_path(n,v.toString(),c.toString());let t=v;return e.map(Number).forEach((e=>{m.includes(e)&&(t=e)})),t}catch(gB){continue}return(null==h?void 0:h.length)?null:$p(e,c,n)},Qp=(e,t)=>{const{routes:n}=Xk;return Array.isArray(e.occupant.routePoints)&&0!==e.occupant.routePoints.length?t?e.occupant.routePoints.reduce(((e,r)=>{let{minDistance:i,closestRoutePoint:o}=e;const a=n.routePoints[r],s=Np([t.latLng.lat,t.latLng.lng],a);return s<i?{minDistance:s,closestRoutePoint:r}:{minDistance:i,closestRoutePoint:o}}),{minDistance:1/0,closestRoutePoint:null}).closestRoutePoint:e.occupant.routePoints[0]:null},ef=e=>{const t=Object.entries(Xk.routes.levelRoutePoints).find((t=>{let[n,r]=t;const[i,o]=r;return i<=e&&e<i+o}));return t?t[0]:null},tf=(e,t,n,r)=>{const i="__your-location__"===e.occupantId?Jp(e,t,r):Qp(e,t);if(!Number.isFinite(i))throw new Error("Can't find the route point or links for the POI \"".concat(e.occupantId?e.occupantId:"undefined",'"'));const o="__your-location__"===t.occupantId?Jp(t,e,r):Qp(t,e);if(!Number.isFinite(o))throw new Error("Can't find the route point or links for the POI \"".concat(t.occupantId?t.occupantId:"undefined",'"'));const a=op.find_path(r,i.toString(),o.toString());let s=a.reduce(((e,t,n)=>{const r=0===n,i=n===a.length-1,o=r?null:a[n-1],s=i?null:a[n+1];if(!o||!s)return e.push(t),e;
2const l=ef(o),c=ef(t),u=ef(s);return c!==l&&c!==u?(console.warn("Connection restored for the points ".concat(o," and ").concat(s)),e):(e.push(t),e)}),[]);if("__your-location__"===e.occupantId&&s.length>=2){const t=s,{latLng:n}=e,r=[n.lat,n.lng];for(let e=0;e<t.length-1;e++){const n=Xk.routes.routePoints[Number(t[e])],i=Xk.routes.routePoints[Number(t[e+1])],{distance:o}=jp(r,n,i);o<1e-7&&(s=t.slice(e+1))}}return s},nf=e=>{const t=Object.entries(Xk.routes.levelRoutePoints).find((t=>{let[n,r]=t;const[i,o]=r;return i<=e&&e<i+o}));return t?t[0]:null};var rf=Object.defineProperty,of=Object.defineProperties,af=Object.getOwnPropertyDescriptors,sf=Object.getOwnPropertySymbols,lf=Object.prototype.hasOwnProperty,cf=Object.prototype.propertyIsEnumerable,uf=(e,t,n)=>t in e?rf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,df=(e,t)=>{for(var n in t||(t={}))lf.call(t,n)&&uf(e,n,t[n]);if(sf)for(var n of sf(t))cf.call(t,n)&&uf(e,n,t[n]);return e},hf=(e,t)=>of(e,af(t));const pf=e=>{const t=Object.entries(Xk.routes.levelRoutePoints).find((t=>{let[n,r]=t;const[i,o]=r;return i<=e&&e<i+o}));return t?parseInt(t[0],10):null};var ff=Object.defineProperty,mf=Object.getOwnPropertySymbols,gf=Object.prototype.hasOwnProperty,vf=Object.prototype.propertyIsEnumerable,yf=(e,t,n)=>t in e?ff(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bf=(e,t)=>{for(var n in t||(t={}))gf.call(t,n)&&yf(e,n,t[n]);if(mf)for(var n of mf(t))vf.call(t,n)&&yf(e,n,t[n]);return e};const xf=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{debug:r=!1,avoidStairs:i=!1,extraTimeOptions:o=[],routeRules:a}=n,s=((e,t,n,r)=>{const i=[];i.push(Kp(t,n,r)),!n&&(null==r?void 0:r.some((e=>{let{type:t}=e;return"excludeElevatorsByDefault"===t})))&&i.push(Kp(t,n,r.filter((e=>"excludeElevatorsByDefault"!==e.type))));for(const a of i)try{return tf(e,t,0,a)}catch(o){if(i.indexOf(a)===i.length-1)throw o}})(e,t,i,a),l=function(e){if(!e)return null;const{routePoints:t,levelRoutePoints:n}=Xk.routes,r=Object.entries(n).map((e=>{let[t,[n,r]]=e;return{ordinal:parseInt(t),start:n,end:n+r}}));return e.map((e=>{const[n,i]=t[e],{ordinal:o}=r.find((t=>{let{start:n,end:r}=t;return n<=e&&e<r}));return{lat:n,lng:i,ordinal:o,point:parseInt(e)}}))}(s),c=(u=s).reduce(((e,t,n)=>{if(n+1===u.length)return e;const r=Xk.routes.links[Number(t)],i=u[n+1],o=r.find((e=>e.i.toString()===i));return o?Array.isArray(o.d)?e+o.d[0]:e+o.d:e}),0);var u;const d=((e,t,n)=>{var r,i,o,a,s,l;const{units:c,occupants:u,levels:d}=Xk,h=u.filter((e=>e.isPoint)),p=new RegExp(/^(escalator|elevator|stairs|shuttle|the walkway)/i),f=[...h,...c.values()].filter((e=>e.category&&(p.test(e.category)||p.test(e.category.name)))).filter((e=>null!==e.routePoints)),m=e=>{const t=f.find((t=>t.routePoints&&t.routePoints.includes(Number(e))));return t||console.warn("The route point ".concat(e||""," was not found in the Units or Points geo data")),t},g=e.reduce(((t,r,i)=>{var o;let a=t;const s=nf(r),l=i>0?e[i-1]:null;if(s===(l?nf(l):s))return a;const c=m(r);if(!c)return a;const u=m(l)||{},{levelId:h,id:p,name:f,category:g}=u,{levelId:v}=c,y=d.get(v),b=null!=(o=null==y?void 0:y.name)?o:"",x=f||(null==g?void 0:g.name)||g||"",w=p;return n&&console.log(l,r,u,c),[...a,{routePoint:r,level:h,targetLevel:v,targetLevelName:b,targetName:x,targetId:w,isTransitionPoint:!0,transition:[u,c]}]}),[]),v=e[e.length-1],y=null!=(i=null==(r=t.occupant)?void 0:r.levelId)?i:null;return[...g,{routePoint:v,level:y,targetLevel:y,targetName:null!=(s=null==(a=null==(o=t.occupant)?void 0:o.display)?void 0:a.name)?s:"",targetId:null==(l=t.occupant)?void 0:l.id,isTransitionPoint:!1}]})(s,t,r),h=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=((e,t)=>t.map(((n,r)=>{const i=0===r,o=r===t.length-1,a=i?0:e.indexOf(t[r-1].routePoint),s=o?e.length:e.indexOf(n.routePoint);return e.slice(a,s)})))(e,t);let o=[];if(n){const e=n.reduce(((e,t)=>(t.routes&&t.routes.forEach((t=>{e.push(t.start),e.push(t.end)})),e)),[]);o=Xk.occupants.filter((t=>e.includes(t.id))).map((e=>e.routePoints[0].toString()))}const a=t.map(((e,t)=>{const n=i[t],{result:r}=n.reduce(((e,t,r)=>{const{state:i,coordinates:a,result:s}=e,l=Xk.routes.routePoints[Number(t)],c=o.includes(t);if(n.length===r+1)return hf(df({},e),{result:[...s,{type:i,coordinates:[...a,l]}]});switch(i){case"init":return hf(df({},e),{state:c?"extraTime":"regular",coordinates:[l]});case"regular":return c?{state:"extraTime",coordinates:[l],result:[...s,{type:"regular",coordinates:[...a,l]}]}:hf(df({},e),{coordinates:[...a,l]});case"extraTime":return c?{state:"regular",coordinates:[l],result:[...s,{type:"extraTime",coordinates:[...a,l]}]}:hf(df({},e),{coordinates:[...a,l]});default:return e}}),{state:"init",coordinates:[],result:[]});return{ordinal:pf(i[t][0]),points:r}}));return r&&(console.log(e.map((e=>({point:e,ordinal:pf(e)})))),console.log(t)),a}(s,d,o,r);if("__your-location__"===e.occupantId&&h[0].points[0].coordinates[0][0]!==e.latLng.lat&&h[0].points[0].coordinates[0][1]!==e.latLng.lng){const t=h[0].points[0].coordinates,n=[e.latLng.lat,e.latLng.lng];t.unshift(n)}return h.forEach(((e,t)=>{d[t]=bf(bf({},d[t]),e)})),{path:s,coordinates:l,length:c,steps:d}},wf=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=[];for(let i=0;i<e.length-1;i++){const r=e[i],o=e[i+1];if(r.occupantId===o.occupantId)continue;const a=xf(r,o,t);n.push(a)}const r=n.reduce(((e,n,r)=>{var i;return n.steps.forEach((e=>{e.routeIdx=r})),0===r?e:{length:e.length+n.length,path:[...e.path,...n.path.slice(1)],coordinates:[...e.coordinates,...n.coordinates.slice(1)],steps:[...e.steps,...n.steps],startStepIdx:null!=(i=t.startStepIdx)?i:0}}),n[0]);return r},_f=(e,t)=>{const n=(e=>{const t=Xk.occupants.filter((e=>e.isPoint)),n=[...Xk.units,...t];return e.map((e=>{const t={name:e.name,ids:[]},{categories:r,includeIds:i,excludeIds:o}=e;if(r){const e=r.reduce(((e,t)=>[...e,...n.filter((e=>"object"===typeof e.category?e.category.name===t:e.category===t)).map((e=>({id:e.id,routePoints:e.routePoints||[]}))).filter((e=>e.routePoints&&e.routePoints.length>0))]),[]);t.ids=[...t.ids,...e]}if(i){const e=n.filter((e=>i.includes(e.id))).map((e=>({id:e.id,routePoints:e.routePoints||[]}))).filter((e=>e.routePoints&&e.routePoints.length>0));t.ids=[...t.ids,...e]}return o&&(t.ids=t.ids.filter((e=>!o.includes(e.id)))),t}))})(t),r=n.reduce(((t,n)=>{const r=n.ids.filter((t=>t.routePoints.some((t=>e.includes(t.toString())))));return r&&r.length>0?[...t,{name:n.name,ids:r.map((e=>e.id))}]:t}),[]);return r};function Ef(e,t){const n=Math.min(e[0],t[0]),r=Math.min(e[1],t[1]);
vendor: 70,099 bytes, line 2
2return[n+Math.abs(t[0]-e[0])/2,r+Math.abs(t[1]-e[1])/2]}var Sf="object"==typeof e&&e&&e.Object===Object&&e,Mf="object"==typeof self&&self&&self.Object===Object&&self,Tf=Sf||Mf||Function("return this")(),Af=Tf.Symbol,Of=Object.prototype,Cf=Of.hasOwnProperty,Rf=Of.toString,Pf=Af?Af.toStringTag:void 0;var If=Object.prototype.toString;var Lf="[object Null]",kf="[object Undefined]",Df=Af?Af.toStringTag:void 0;function Nf(e){return null==e?void 0===e?kf:Lf:Df&&Df in Object(e)?function(e){var t=Cf.call(e,Pf),n=e[Pf];try{e[Pf]=void 0;var r=!0}catch(gB){}var i=Rf.call(e);return r&&(t?e[Pf]=n:delete e[Pf]),i}(e):function(e){return If.call(e)}(e)}function Uf(e){return null!=e&&"object"==typeof e}var jf="[object Symbol]";function Ff(e){return"symbol"==typeof e||Uf(e)&&Nf(e)==jf}var Bf=NaN;function zf(e){return"number"==typeof e?e:Ff(e)?Bf:+e}function Hf(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}var Vf=Array.isArray,Wf=1/0,Gf=Af?Af.prototype:void 0,qf=Gf?Gf.toString:void 0;function Xf(e){if("string"==typeof e)return e;if(Vf(e))return Hf(e,Xf)+"";if(Ff(e))return qf?qf.call(e):"";var t=e+"";return"0"==t&&1/e==-Wf?"-0":t}function Yf(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Xf(n),r=Xf(r)):(n=zf(n),r=zf(r)),i=e(n,r)}return i}}var Zf=Yf((function(e,t){return e+t}),0),Kf=/\s/;function $f(e){for(var t=e.length;t--&&Kf.test(e.charAt(t)););return t}var Jf=/^\s+/;function Qf(e){return e?e.slice(0,$f(e)+1).replace(Jf,""):e}function em(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var tm=NaN,nm=/^[-+]0x[0-9a-f]+$/i,rm=/^0b[01]+$/i,im=/^0o[0-7]+$/i,om=parseInt;function am(e){if("number"==typeof e)return e;if(Ff(e))return tm;if(em(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=em(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qf(e);var n=rm.test(e);return n||im.test(e)?om(e.slice(2),n?2:8):nm.test(e)?tm:+e}var sm=1/0,lm=17976931348623157e292;function cm(e){return e?(e=am(e))===sm||e===-sm?(e<0?-1:1)*lm:e===e?e:0:0===e?e:0}function um(e){var t=cm(e),n=t%1;return t===t?n?t-n:t:0}function dm(e){return e}var hm="[object AsyncFunction]",pm="[object Function]",fm="[object GeneratorFunction]",mm="[object Proxy]";function gm(e){if(!em(e))return!1;var t=Nf(e);return t==pm||t==fm||t==hm||t==mm}var vm=Tf["__core-js_shared__"],ym=function(){var e=/[^.]+$/.exec(vm&&vm.keys&&vm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var bm=Function.prototype.toString;function xm(e){if(null!=e){try{return bm.call(e)}catch(gB){}try{return e+""}catch(gB){}}return""}var wm=/^\[object .+?Constructor\]$/,_m=Function.prototype,Em=Object.prototype,Sm=_m.toString,Mm=Em.hasOwnProperty,Tm=RegExp("^"+Sm.call(Mm).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Am(e){return!(!em(e)||function(e){return!!ym&&ym in e}(e))&&(gm(e)?Tm:wm).test(xm(e))}function Om(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Am(n)?n:void 0}var Cm=Om(Tf,"WeakMap"),Rm=Cm&&new Cm,Pm=Rm?function(e,t){return Rm.set(e,t),e}:dm,Im=Object.create,Lm=function(){function e(){}return function(t){if(!em(t))return{};if(Im)return Im(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function km(e){return function(){var t=arguments;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]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Lm(e.prototype),r=e.apply(n,t);return em(r)?r:n}}var Dm=1;function Nm(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)}var Um=Math.max;function jm(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,l=t.length,c=Um(o-a,0),u=Array(l+c),d=!r;++s<l;)u[s]=t[s];for(;++i<a;)(d||i<o)&&(u[n[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u}var Fm=Math.max;function Bm(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,l=-1,c=t.length,u=Fm(o-s,0),d=Array(u+c),h=!r;++i<u;)d[i]=e[i];for(var p=i;++l<c;)d[p+l]=t[l];for(;++a<s;)(h||i<o)&&(d[p+n[a]]=e[i++]);return d}function zm(){}var Hm=4294967295;function Vm(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Hm,this.__views__=[]}function Wm(){}Vm.prototype=Lm(zm.prototype),Vm.prototype.constructor=Vm;var Gm=Rm?function(e){return Rm.get(e)}:Wm,qm={},Xm=Object.prototype.hasOwnProperty;function Ym(e){for(var t=e.name+"",n=qm[t],r=Xm.call(qm,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Zm(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Km(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function $m(e){if(e instanceof Vm)return e.clone();var t=new Zm(e.__wrapped__,e.__chain__);return t.__actions__=Km(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}Zm.prototype=Lm(zm.prototype),Zm.prototype.constructor=Zm;var Jm=Object.prototype.hasOwnProperty;function Qm(e){if(Uf(e)&&!Vf(e)&&!(e instanceof Vm)){if(e instanceof Zm)return e;if(Jm.call(e,"__wrapped__"))return $m(e)}return new Zm(e)}function eg(e){var t=Ym(e),n=Qm[t];if("function"!=typeof n||!(t in Vm.prototype))return!1;if(e===n)return!0;var r=Gm(n);return!!r&&e===r[0]}Qm.prototype=zm.prototype,Qm.prototype.constructor=Qm;var tg=Date.now;function ng(e){var t=0,n=0;return function(){var r=tg(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var rg=ng(Pm),ig=/\{\n\/\* \[wrapped with (.+)\] \*/,og=/,? & /;var ag=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function sg(e){return function(){return e}}var lg=function(){try{var e=Om(Object,"defineProperty");return e({},"",{}),e}catch(gB){}}(),cg=lg?function(e,t){return lg(e,"toString",{configurable:!0,enumerable:!1,value:sg(t),writable:!0})}:dm,ug=ng(cg);function dg(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function hg(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function pg(e){return e!==e}function fg(e,t,n){return t===t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):hg(e,pg,n)}function mg(e,t){return!!(null==e?0:e.length)&&fg(e,t,0)>-1}var gg=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function vg(e,t,n){var r=t+"";return ug(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ag,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return dg(gg,(function(n){var r="_."+n[0];t&n[1]&&!mg(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ig);return t?t[1].split(og):[]}(r),n)))}var yg=1,bg=2,xg=4,wg=8,_g=32,Eg=64;function Sg(e,t,n,r,i,o,a,s,l,c){var u=t&wg;t|=u?_g:Eg,(t&=~(u?Eg:_g))&xg||(t&=~(yg|bg));var d=[e,t,i,u?o:void 0,u?a:void 0,u?void 0:o,u?void 0:a,s,l,c],h=n.apply(void 0,d);return eg(e)&&rg(h,d),h.placeholder=r,vg(h,e,t)}function Mg(e){return e.placeholder}var Tg=9007199254740991,Ag=/^(?:0|[1-9]\d*)$/;function Og(e,t){var n=typeof e;return!!(t=null==t?Tg:t)&&("number"==n||"symbol"!=n&&Ag.test(e))&&e>-1&&e%1==0&&e<t}var Cg=Math.min;var Rg="__lodash_placeholder__";function Pg(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==Rg||(e[n]=Rg,o[i++]=n)}return o}var Ig=1,Lg=2,kg=8,Dg=16,Ng=128,Ug=512;function jg(e,t,n,r,i,o,a,s,l,c){var u=t&Ng,d=t&Ig,h=t&Lg,p=t&(kg|Dg),f=t&Ug,m=h?void 0:km(e);return function g(){for(var v=arguments.length,y=Array(v),b=v;b--;)y[b]=arguments[b];if(p)var x=Mg(g),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,x);if(r&&(y=jm(y,r,i,p)),o&&(y=Bm(y,o,a,p)),v-=w,p&&v<c){var _=Pg(y,x);return Sg(e,t,jg,g.placeholder,n,y,_,s,l,c-v)}var E=d?n:this,S=h?E[e]:e;return v=y.length,s?y=function(e,t){for(var n=e.length,r=Cg(t.length,n),i=Km(e);r--;){var o=t[r];e[r]=Og(o,n)?i[o]:void 0}return e}(y,s):f&&v>1&&y.reverse(),u&&l<v&&(y.length=l),this&&this!==Tf&&this instanceof g&&(S=m||km(S)),S.apply(E,y)}}var Fg=1;var Bg="__lodash_placeholder__",zg=1,Hg=2,Vg=4,Wg=8,Gg=128,qg=256,Xg=Math.min;var Yg="Expected a function",Zg=1,Kg=2,$g=8,Jg=16,Qg=32,ev=64,tv=Math.max;function nv(e,t,n,r,i,o,a,s){var l=t&Kg;if(!l&&"function"!=typeof e)throw new TypeError(Yg);var c=r?r.length:0;if(c||(t&=~(Qg|ev),r=i=void 0),a=void 0===a?a:tv(um(a),0),s=void 0===s?s:um(s),c-=i?i.length:0,t&ev){var u=r,d=i;r=i=void 0}var h=l?void 0:Gm(e),p=[e,t,n,r,i,u,d,o,a,s];if(h&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<(zg|Hg|Gg),a=r==Gg&&n==Wg||r==Gg&&n==qg&&e[7].length<=t[8]||r==(Gg|qg)&&t[7].length<=t[8]&&n==Wg;if(!o&&!a)return e;r&zg&&(e[2]=t[2],i|=n&zg?0:Vg);var s=t[3];if(s){var l=e[3];e[3]=l?jm(l,s,t[4]):s,e[4]=l?Pg(e[3],Bg):t[4]}(s=t[5])&&(l=e[5],e[5]=l?Bm(l,s,t[6]):s,e[6]=l?Pg(e[5],Bg):t[6]),(s=t[7])&&(e[7]=s),r&Gg&&(e[8]=null==e[8]?t[8]:Xg(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(p,h),e=p[0],t=p[1],n=p[2],r=p[3],i=p[4],!(s=p[9]=void 0===p[9]?l?0:e.length:tv(p[9]-c,0))&&t&($g|Jg)&&(t&=~($g|Jg)),t&&t!=Zg)f=t==$g||t==Jg?function(e,t,n){var r=km(e);return function i(){for(var o=arguments.length,a=Array(o),s=o,l=Mg(i);s--;)a[s]=arguments[s];var c=o<3&&a[0]!==l&&a[o-1]!==l?[]:Pg(a,l);return(o-=c.length)<n?Sg(e,t,jg,i.placeholder,void 0,a,c,void 0,void 0,n-o):Nm(this&&this!==Tf&&this instanceof i?r:e,this,a)}}(e,t,s):t!=Qg&&t!=(Zg|Qg)||i.length?jg.apply(void 0,p):function(e,t,n,r){var i=t&Fg,o=km(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=r.length,u=Array(c+s),d=this&&this!==Tf&&this instanceof t?o:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++a];return Nm(d,i?n:this,u)}}(e,t,n,r);else var f=function(e,t,n){var r=t&Dm,i=km(e);return function t(){return(this&&this!==Tf&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return vg((h?Pm:rg)(f,p),e,t)}var rv=128;function iv(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,nv(e,rv,void 0,void 0,void 0,void 0,t)}function ov(e,t,n){"__proto__"==t&&lg?lg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function av(e,t){return e===t||e!==e&&t!==t}var sv=Object.prototype.hasOwnProperty;function lv(e,t,n){var r=e[t];sv.call(e,t)&&av(r,n)&&(void 0!==n||t in e)||ov(e,t,n)}function cv(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?ov(n,s,l):lv(n,s,l)}return n}var uv=Math.max;function dv(e,t,n){return t=uv(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=uv(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),Nm(e,this,s)}}function hv(e,t){return ug(dv(e,t,dm),e+"")}var pv=9007199254740991;function fv(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=pv}function mv(e){return null!=e&&fv(e.length)&&!gm(e)}function gv(e,t,n){if(!em(n))return!1;var r=typeof t;return!!("number"==r?mv(n)&&Og(t,n.length):"string"==r&&t in n)&&av(n[t],e)}function vv(e){return hv((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&gv(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}var yv=Object.prototype;function bv(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||yv)}function xv(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function wv(e){return Uf(e)&&"[object Arguments]"==Nf(e)}var _v=Object.prototype,Ev=_v.hasOwnProperty,Sv=_v.propertyIsEnumerable,Mv=wv(function(){return arguments}())?wv:function(e){return Uf(e)&&Ev.call(e,"callee")&&!Sv.call(e,"callee")};function Tv(){return!1}var Av="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ov=Av&&"object"==typeof r&&r&&!r.nodeType&&r,Cv=Ov&&Ov.exports===Av?Tf.Buffer:void 0,Rv=(Cv?Cv.isBuffer:void 0)||Tv,Pv={};function Iv(e){return function(t){return e(t)}}Pv["[object Float32Array]"]=Pv["[object Float64Array]"]=Pv["[object Int8Array]"]=Pv["[object Int16Array]"]=Pv["[object Int32Array]"]=Pv["[object Uint8Array]"]=Pv["[object Uint8ClampedArray]"]=Pv["[object Uint16Array]"]=Pv["[object Uint32Array]"]=!0,Pv["[object Arguments]"]=Pv["[object Array]"]=Pv["[object ArrayBuffer]"]=Pv["[object Boolean]"]=Pv["[object DataView]"]=Pv["[object Date]"]=Pv["[object Error]"]=Pv["[object Function]"]=Pv["[object Map]"]=Pv["[object Number]"]=Pv["[object Object]"]=Pv["[object RegExp]"]=Pv["[object Set]"]=Pv["[object String]"]=Pv["[object WeakMap]"]=!1;var Lv="object"==typeof exports&&exports&&!exports.nodeType&&exports,kv=Lv&&"object"==typeof r&&r&&!r.nodeType&&r,Dv=kv&&kv.exports===Lv&&Sf.process,Nv=function(){try{var e=kv&&kv.require&&kv.require("util").types;return e||Dv&&Dv.binding&&Dv.binding("util")}catch(gB){}}(),Uv=Nv&&Nv.isTypedArray,jv=Uv?Iv(Uv):function(e){return Uf(e)&&fv(e.length)&&!!Pv[Nf(e)]},Fv=Object.prototype.hasOwnProperty;function Bv(e,t){var n=Vf(e),r=!n&&Mv(e),i=!n&&!r&&Rv(e),o=!n&&!r&&!i&&jv(e),a=n||r||i||o,s=a?xv(e.length,String):[],l=s.length;for(var c in e)!t&&!Fv.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Og(c,l))||s.push(c);return s}function zv(e,t){return function(n){return e(t(n))}}var Hv=zv(Object.keys,Object),Vv=Object.prototype.hasOwnProperty;function Wv(e){if(!bv(e))return Hv(e);var t=[];for(var n in Object(e))Vv.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Gv(e){return mv(e)?Bv(e):Wv(e)}var qv=Object.prototype.hasOwnProperty,Xv=vv((function(e,t){if(bv(t)||mv(t))cv(t,Gv(t),e);else for(var n in t)qv.call(t,n)&&lv(e,n,t[n])}));var Yv=Object.prototype.hasOwnProperty;function Zv(e){if(!em(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=bv(e),n=[];for(var r in e)("constructor"!=r||!t&&Yv.call(e,r))&&n.push(r);return n}function Kv(e){return mv(e)?Bv(e,!0):Zv(e)}var $v=vv((function(e,t){cv(t,Kv(t),e)})),Jv=vv((function(e,t,n,r){cv(t,Kv(t),e,r)})),Qv=vv((function(e,t,n,r){cv(t,Gv(t),e,r)})),ey=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ty=/^\w*$/;function ny(e,t){if(Vf(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ff(e))||(ty.test(e)||!ey.test(e)||null!=t&&e in Object(t))}var ry=Om(Object,"create");var iy=Object.prototype.hasOwnProperty;var oy=Object.prototype.hasOwnProperty;function ay(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])}}function sy(e,t){for(var n=e.length;n--;)if(av(e[n][0],t))return n;return-1}ay.prototype.clear=function(){this.__data__=ry?ry(null):{},this.size=0},ay.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ay.prototype.get=function(e){var t=this.__data__;if(ry){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return iy.call(t,e)?t[e]:void 0},ay.prototype.has=function(e){var t=this.__data__;return ry?void 0!==t[e]:oy.call(t,e)},ay.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ry&&void 0===t?"__lodash_hash_undefined__":t,this};var ly=Array.prototype.splice;function cy(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])}}cy.prototype.clear=function(){this.__data__=[],this.size=0},cy.prototype.delete=function(e){var t=this.__data__,n=sy(t,e);return!(n<0)&&(n==t.length-1?t.pop():ly.call(t,n,1),--this.size,!0)},cy.prototype.get=function(e){var t=this.__data__,n=sy(t,e);return n<0?void 0:t[n][1]},cy.prototype.has=function(e){return sy(this.__data__,e)>-1},cy.prototype.set=function(e,t){var n=this.__data__,r=sy(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var uy=Om(Tf,"Map");function dy(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function hy(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])}}hy.prototype.clear=function(){this.size=0,this.__data__={hash:new ay,map:new(uy||cy),string:new ay}},hy.prototype.delete=function(e){var t=dy(this,e).delete(e);return this.size-=t?1:0,t},hy.prototype.get=function(e){return dy(this,e).get(e)},hy.prototype.has=function(e){return dy(this,e).has(e)},hy.prototype.set=function(e,t){var n=dy(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var py="Expected a function";function fy(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(py);var n=function(){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(fy.Cache||hy),n}fy.Cache=hy;var my=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gy=/\\(\\)?/g,vy=function(e){var t=fy(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(my,(function(e,n,r,i){t.push(r?i.replace(gy,"$1"):n||e)})),t}));function yy(e){return null==e?"":Xf(e)}function by(e,t){return Vf(e)?e:ny(e,t)?[e]:vy(yy(e))}var xy=1/0;function wy(e){if("string"==typeof e||Ff(e))return e;var t=e+"";return"0"==t&&1/e==-xy?"-0":t}function _y(e,t){for(var n=0,r=(t=by(t,e)).length;null!=e&&n<r;)e=e[wy(t[n++])];return n&&n==r?e:void 0}function Ey(e,t,n){var r=null==e?void 0:_y(e,t);return void 0===r?n:r}function Sy(e,t){for(var n=-1,r=t.length,i=Array(r),o=null==e;++n<r;)i[n]=o?void 0:Ey(e,t[n]);return i}function My(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Ty=Af?Af.isConcatSpreadable:void 0;function Ay(e){return Vf(e)||Mv(e)||!!(Ty&&e&&e[Ty])}function Oy(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Ay),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?Oy(s,t-1,n,r,i):My(i,s):r||(i[i.length]=s)}return i}function Cy(e){return(null==e?0:e.length)?Oy(e,1):[]}function Ry(e){return ug(dv(e,void 0,Cy),e+"")}var Py=Ry(Sy),Iy=zv(Object.getPrototypeOf,Object),Ly="[object Object]",ky=Function.prototype,Dy=Object.prototype,Ny=ky.toString,Uy=Dy.hasOwnProperty,jy=Ny.call(Object);function Fy(e){if(!Uf(e)||Nf(e)!=Ly)return!1;var t=Iy(e);if(null===t)return!0;var n=Uy.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ny.call(n)==jy}var By="[object DOMException]",zy="[object Error]";function Hy(e){if(!Uf(e))return!1;var t=Nf(e);return t==zy||t==By||"string"==typeof e.message&&"string"==typeof e.name&&!Fy(e)}var Vy=hv((function(e,t){try{return Nm(e,void 0,t)}catch(gB){return Hy(gB)?gB:new Error(gB)}})),Wy="Expected a function";function Gy(e,t){var n;if("function"!=typeof t)throw new TypeError(Wy);return e=um(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var qy=hv((function(e,t,n){var r=1;if(n.length){var i=Pg(n,Mg(qy));r|=32}return nv(e,r,t,n,i)}));qy.placeholder={};var Xy=Ry((function(e,t){return dg(t,(function(t){t=wy(t),ov(e,t,qy(e[t],e))})),e})),Yy=hv((function(e,t,n){var r=3;if(n.length){var i=Pg(n,Mg(Yy));r|=32}return nv(t,r,e,n,i)}));function Zy(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 Ky(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Zy(e,t,n)}Yy.placeholder={};var $y=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Jy(e){return $y.test(e)}var Qy="\\ud800-\\udfff",eb="["+Qy+"]",tb="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",nb="\\ud83c[\\udffb-\\udfff]",rb="[^"+Qy+"]",ib="(?:\\ud83c[\\udde6-\\uddff]){2}",ob="[\\ud800-\\udbff][\\udc00-\\udfff]",ab="(?:"+tb+"|"+nb+")"+"?",sb="[\\ufe0e\\ufe0f]?",lb=sb+ab+("(?:\\u200d(?:"+[rb,ib,ob].join("|")+")"+sb+ab+")*"),cb="(?:"+[rb+tb+"?",tb,ib,ob,eb].join("|")+")",ub=RegExp(nb+"(?="+nb+")|"+cb+lb,"g");function db(e){return Jy(e)?function(e){return e.match(ub)||[]}(e):function(e){return e.split("")}(e)}function hb(e){return function(t){var n=Jy(t=yy(t))?db(t):void 0,r=n?n[0]:t.charAt(0),i=n?Ky(n,1).join(""):t.slice(1);return r[e]()+i}}var pb=hb("toUpperCase");function fb(e){return pb(yy(e).toLowerCase())}function mb(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function gb(e){return function(t){return null==e?void 0:e[t]}}var vb=gb({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),yb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bb=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function xb(e){return(e=yy(e))&&e.replace(yb,vb).replace(bb,"")}var wb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var _b=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Eb="\\ud800-\\udfff",Sb="\\u2700-\\u27bf",Mb="a-z\\xdf-\\xf6\\xf8-\\xff",Tb="A-Z\\xc0-\\xd6\\xd8-\\xde",Ab="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ob="["+Ab+"]",Cb="\\d+",Rb="["+Sb+"]",Pb="["+Mb+"]",Ib="[^"+Eb+Ab+Cb+Sb+Mb+Tb+"]",Lb="(?:\\ud83c[\\udde6-\\uddff]){2}",kb="[\\ud800-\\udbff][\\udc00-\\udfff]",Db="["+Tb+"]",Nb="(?:"+Pb+"|"+Ib+")",Ub="(?:"+Db+"|"+Ib+")",jb="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Fb="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Bb="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",zb="[\\ufe0e\\ufe0f]?",Hb=zb+Bb+("(?:\\u200d(?:"+["[^"+Eb+"]",Lb,kb].join("|")+")"+zb+Bb+")*"),Vb="(?:"+[Rb,Lb,kb].join("|")+")"+Hb,Wb=RegExp([Db+"?"+Pb+"+"+jb+"(?="+[Ob,Db,"$"].join("|")+")",Ub+"+"+Fb+"(?="+[Ob,Db+Nb,"$"].join("|")+")",Db+"?"+Nb+"+"+jb,Db+"+"+Fb,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cb,Vb].join("|"),"g");function Gb(e,t,n){return e=yy(e),void 0===(t=n?void 0:t)?function(e){return _b.test(e)}(e)?function(e){return e.match(Wb)||[]}(e):function(e){return e.match(wb)||[]}(e):e.match(t)||[]}var qb=RegExp("['\u2019]","g");function Xb(e){return function(t){return mb(Gb(xb(t).replace(qb,"")),e,"")}}var Yb=Xb((function(e,t,n){return t=t.toLowerCase(),e+(n?fb(t):t)}));var Zb=Tf.isFinite,Kb=Math.min;function $b(e){var t=Math[e];return function(e,n){if(e=am(e),(n=null==n?0:Kb(um(n),292))&&Zb(e)){var r=(yy(e)+"e").split("e");return+((r=(yy(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Jb=$b("ceil");function Qb(e){var t=Qm(e);return t.__chain__=!0,t}var ex=Math.ceil,tx=Math.max;function nx(e,t,n){return e===e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function rx(e){var t=this.__data__=new cy(e);this.size=t.size}function ix(e,t){return e&&cv(t,Gv(t),e)}rx.prototype.clear=function(){this.__data__=new cy,this.size=0},rx.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},rx.prototype.get=function(e){return this.__data__.get(e)},rx.prototype.has=function(e){return this.__data__.has(e)},rx.prototype.set=function(e,t){var n=this.__data__;if(n instanceof cy){var r=n.__data__;if(!uy||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new hy(r)}return n.set(e,t),this.size=n.size,this};var ox="object"==typeof exports&&exports&&!exports.nodeType&&exports,ax=ox&&"object"==typeof r&&r&&!r.nodeType&&r,sx=ax&&ax.exports===ox?Tf.Buffer:void 0,lx=sx?sx.allocUnsafe:void 0;function cx(e,t){if(t)return e.slice();var n=e.length,r=lx?lx(n):new e.constructor(n);return e.copy(r),r}function ux(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 dx(){return[]}var hx=Object.prototype.propertyIsEnumerable,px=Object.getOwnPropertySymbols,fx=px?function(e){return null==e?[]:(e=Object(e),ux(px(e),(function(t){return hx.call(e,t)})))}:dx;var mx=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)My(t,fx(e)),e=Iy(e);return t}:dx;function gx(e,t,n){var r=t(e);return Vf(e)?r:My(r,n(e))}function vx(e){return gx(e,Gv,fx)}function yx(e){return gx(e,Kv,mx)}var bx=Om(Tf,"DataView"),xx=Om(Tf,"Promise"),wx=Om(Tf,"Set"),_x="[object Map]",Ex="[object Promise]",Sx="[object Set]",Mx="[object WeakMap]",Tx="[object DataView]",Ax=xm(bx),Ox=xm(uy),Cx=xm(xx),Rx=xm(wx),Px=xm(Cm),Ix=Nf;(bx&&Ix(new bx(new ArrayBuffer(1)))!=Tx||uy&&Ix(new uy)!=_x||xx&&Ix(xx.resolve())!=Ex||wx&&Ix(new wx)!=Sx||Cm&&Ix(new Cm)!=Mx)&&(Ix=function(e){var t=Nf(e),n="[object Object]"==t?e.constructor:void 0,r=n?xm(n):"";if(r)switch(r){case Ax:return Tx;case Ox:return _x;case Cx:return Ex;case Rx:return Sx;case Px:return Mx}return t});var Lx=Ix,kx=Object.prototype.hasOwnProperty;var Dx=Tf.Uint8Array;function Nx(e){var t=new e.constructor(e.byteLength);return new Dx(t).set(new Dx(e)),t}var Ux=/\w*$/;var jx=Af?Af.prototype:void 0,Fx=jx?jx.valueOf:void 0;function Bx(e,t){var n=t?Nx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var zx="[object Boolean]",Hx="[object Date]",Vx="[object Map]",Wx="[object Number]",Gx="[object RegExp]",qx="[object Set]",Xx="[object String]",Yx="[object Symbol]",Zx="[object ArrayBuffer]",Kx="[object DataView]",$x="[object Float32Array]",Jx="[object Float64Array]",Qx="[object Int8Array]",ew="[object Int16Array]",tw="[object Int32Array]",nw="[object Uint8Array]",rw="[object Uint8ClampedArray]",iw="[object Uint16Array]",ow="[object Uint32Array]";function aw(e,t,n){var r,i=e.constructor;switch(t){case Zx:return Nx(e);case zx:case Hx:return new i(+e);case Kx:return function(e,t){var n=t?Nx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case $x:case Jx:case Qx:case ew:case tw:case nw:case rw:case iw:case ow:return Bx(e,n);case Vx:return new i;case Wx:case Xx:return new i(e);case Gx:return function(e){var t=new e.constructor(e.source,Ux.exec(e));return t.lastIndex=e.lastIndex,t}(e);case qx:return new i;case Yx:return r=e,Fx?Object(Fx.call(r)):{}}}function sw(e){return"function"!=typeof e.constructor||bv(e)?{}:Lm(Iy(e))}var lw=Nv&&Nv.isMap,cw=lw?Iv(lw):function(e){return Uf(e)&&"[object Map]"==Lx(e)};var uw=Nv&&Nv.isSet,dw=uw?Iv(uw):function(e){return Uf(e)&&"[object Set]"==Lx(e)},hw=1,pw=2,fw=4,mw="[object Arguments]",gw="[object Function]",vw="[object GeneratorFunction]",yw="[object Object]",bw={};function xw(e,t,n,r,i,o){var a,s=t&hw,l=t&pw,c=t&fw;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!em(e))return e;var u=Vf(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&kx.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Km(e,a)}else{var d=Lx(e),h=d==gw||d==vw;if(Rv(e))return cx(e,s);if(d==yw||d==mw||h&&!i){if(a=l||h?{}:sw(e),!s)return l?function(e,t){return cv(e,mx(e),t)}(e,function(e,t){return e&&cv(t,Kv(t),e)}(a,e)):function(e,t){return cv(e,fx(e),t)}(e,ix(a,e))}else{if(!bw[d])return i?e:{};a=aw(e,d,s)}}o||(o=new rx);var p=o.get(e);if(p)return p;o.set(e,a),dw(e)?e.forEach((function(r){a.add(xw(r,t,n,r,e,o))})):cw(e)&&e.forEach((function(r,i){a.set(i,xw(r,t,n,i,e,o))}));var f=u?void 0:(c?l?yx:vx:l?Kv:Gv)(e);return dg(f||e,(function(r,i){f&&(r=e[i=r]),lv(a,i,xw(r,t,n,i,e,o))})),a}bw[mw]=bw["[object Array]"]=bw["[object ArrayBuffer]"]=bw["[object DataView]"]=bw["[object Boolean]"]=bw["[object Date]"]=bw["[object Float32Array]"]=bw["[object Float64Array]"]=bw["[object Int8Array]"]=bw["[object Int16Array]"]=bw["[object Int32Array]"]=bw["[object Map]"]=bw["[object Number]"]=bw[yw]=bw["[object RegExp]"]=bw["[object Set]"]=bw["[object String]"]=bw["[object Symbol]"]=bw["[object Uint8Array]"]=bw["[object Uint8ClampedArray]"]=bw["[object Uint16Array]"]=bw["[object Uint32Array]"]=!0,bw["[object Error]"]=bw[gw]=bw["[object WeakMap]"]=!1;function ww(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new hy;++t<n;)this.add(e[t])}function _w(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Ew(e,t){return e.has(t)}ww.prototype.add=ww.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ww.prototype.has=function(e){return this.__data__.has(e)};var Sw=1,Mw=2;function Tw(e,t,n,r,i,o){var a=n&Sw,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=n&Mw?new ww:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var f=e[d],m=t[d];if(r)var g=a?r(m,f,d,t,e,o):r(f,m,d,e,t,o);if(void 0!==g){if(g)continue;h=!1;break}if(p){if(!_w(t,(function(e,t){if(!Ew(p,t)&&(f===e||i(f,e,n,r,o)))return p.push(t)}))){h=!1;break}}else if(f!==m&&!i(f,m,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function Aw(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ow(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Cw=1,Rw=2,Pw="[object Boolean]",Iw="[object Date]",Lw="[object Error]",kw="[object Map]",Dw="[object Number]",Nw="[object RegExp]",Uw="[object Set]",jw="[object String]",Fw="[object Symbol]",Bw="[object ArrayBuffer]",zw="[object DataView]",Hw=Af?Af.prototype:void 0,Vw=Hw?Hw.valueOf:void 0;var Ww=1,Gw=Object.prototype.hasOwnProperty;var qw=1,Xw="[object Arguments]",Yw="[object Array]",Zw="[object Object]",Kw=Object.prototype.hasOwnProperty;function $w(e,t,n,r,i,o){var a=Vf(e),s=Vf(t),l=a?Yw:Lx(e),c=s?Yw:Lx(t),u=(l=l==Xw?Zw:l)==Zw,d=(c=c==Xw?Zw:c)==Zw,h=l==c;if(h&&Rv(e)){if(!Rv(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new rx),a||jv(e)?Tw(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case zw:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Bw:return!(e.byteLength!=t.byteLength||!o(new Dx(e),new Dx(t)));case Pw:case Iw:case Dw:return av(+e,+t);case Lw:return e.name==t.name&&e.message==t.message;case Nw:case jw:return e==t+"";case kw:var s=Aw;case Uw:var l=r&Cw;if(s||(s=Ow),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=Rw,a.set(e,t);var u=Tw(s(e),s(t),r,i,o,a);return a.delete(e),u;case Fw:if(Vw)return Vw.call(e)==Vw.call(t)}return!1}(e,t,l,n,r,i,o);if(!(n&qw)){var p=u&&Kw.call(e,"__wrapped__"),f=d&&Kw.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,g=f?t.value():t;return o||(o=new rx),i(m,g,n,r,o)}}return!!h&&(o||(o=new rx),function(e,t,n,r,i,o){var a=n&Ww,s=vx(e),l=s.length;if(l!=vx(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Gw.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var m=e[u=s[c]],g=t[u];if(r)var v=a?r(g,m,u,t,e,o):r(m,g,u,e,t,o);if(!(void 0===v?m===g||i(m,g,n,r,o):v)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o))}function Jw(e,t,n,r,i){return e===t||(null==e||null==t||!Uf(e)&&!Uf(t)?e!==e&&t!==t:$w(e,t,n,r,Jw,i))}var Qw=1,e_=2;function t_(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new rx;if(r)var h=r(c,u,l,e,t,d);if(!(void 0===h?Jw(u,c,Qw|e_,r,d):h))return!1}}return!0}function n_(e){return e===e&&!em(e)}function r_(e){for(var t=Gv(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,n_(i)]}return t}function i_(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function o_(e){var t=r_(e);return 1==t.length&&t[0][2]?i_(t[0][0],t[0][1]):function(n){return n===e||t_(n,e,t)}}function a_(e,t){return null!=e&&t in Object(e)}function s_(e,t,n){for(var r=-1,i=(t=by(t,e)).length,o=!1;++r<i;){var a=wy(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&fv(i)&&Og(a,i)&&(Vf(e)||Mv(e))}function l_(e,t){return null!=e&&s_(e,t,a_)}var c_=1,u_=2;function d_(e,t){return ny(e)&&n_(t)?i_(wy(e),t):function(n){var r=Ey(n,e);return void 0===r&&r===t?l_(n,e):Jw(t,r,c_|u_)}}function h_(e){return function(t){return null==t?void 0:t[e]}}function p_(e){return ny(e)?h_(wy(e)):function(e){return function(t){return _y(t,e)}}(e)}function f_(e){return"function"==typeof e?e:null==e?dm:"object"==typeof e?Vf(e)?d_(e[0],e[1]):o_(e):p_(e)}function m_(e,t,n){var r=n.length;if(null==e)return!r;for(e=Object(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function g_(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function v_(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}var y_=v_();function b_(e,t){return e&&y_(e,t,Gv)}function x_(e,t){return function(n,r){if(null==n)return n;if(!mv(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}var w_=x_(b_);function __(e,t,n,r){return w_(e,(function(e,i,o){t(r,e,n(e),o)})),r}function E_(e,t){return function(n,r){var i=Vf(n)?g_:__,o=t?t():{};return i(n,e,f_(r),o)}}var S_=Object.prototype.hasOwnProperty,M_=E_((function(e,t,n){S_.call(e,n)?++e[n]:ov(e,n,1)}));function T_(e,t,n){var r=nv(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=T_.placeholder,r}T_.placeholder={};function A_(e,t,n){var r=nv(e,16,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=A_.placeholder,r}A_.placeholder={};var O_=function(){return Tf.Date.now()},C_="Expected a function",R_=Math.max,P_=Math.min;function I_(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(C_);function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function m(){var e=O_();if(f(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?P_(n,o-(e-c)):n}(e))}function g(e){return s=void 0,h&&r?p(e):(r=i=void 0,a)}function v(){var e=O_(),n=f(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=am(t)||0,em(n)&&(u=!!n.leading,o=(d="maxWait"in n)?R_(am(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:g(O_())},v}var L_=Object.prototype,k_=L_.hasOwnProperty,D_=hv((function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&gv(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=Kv(o),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(void 0===u||av(u,L_[c])&&!k_.call(e,c))&&(e[c]=o[c])}return e}));function N_(e,t,n){(void 0!==n&&!av(e[t],n)||void 0===n&&!(t in e))&&ov(e,t,n)}function U_(e){return Uf(e)&&mv(e)}function j_(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}function F_(e){return cv(e,Kv(e))}function B_(e,t,n,r,i){e!==t&&y_(t,(function(o,a){if(i||(i=new rx),em(o))!function(e,t,n,r,i,o,a){var s=j_(e,n),l=j_(t,n),c=a.get(l);if(c)N_(e,n,c);else{var u=o?o(s,l,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=Vf(l),p=!h&&Rv(l),f=!h&&!p&&jv(l);u=l,h||p||f?Vf(s)?u=s:U_(s)?u=Km(s):p?(d=!1,u=cx(l,!0)):f?(d=!1,u=Bx(l,!0)):u=[]:Fy(l)||Mv(l)?(u=s,Mv(s)?u=F_(s):em(s)&&!gm(s)||(u=sw(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),N_(e,n,u)}}(e,t,a,n,B_,r,i);else{var s=r?r(j_(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),N_(e,a,s)}}),Kv)}function z_(e,t,n,r,i,o){return em(e)&&em(t)&&(o.set(t,e),B_(e,t,void 0,z_,o),o.delete(t)),e}var H_=vv((function(e,t,n,r){B_(e,t,n,r)})),V_=hv((function(e){return e.push(void 0,z_),Nm(H_,void 0,e)}));function W_(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout((function(){e.apply(void 0,n)}),t)}var G_=hv((function(e,t){return W_(e,1,t)})),q_=hv((function(e,t,n){return W_(e,am(t)||0,n)}));function X_(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var Y_=200;function Z_(e,t,n,r){var i=-1,o=mg,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Hf(t,Iv(n))),r?(o=X_,a=!1):t.length>=Y_&&(o=Ew,a=!1,t=new ww(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d===d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}var K_=hv((function(e,t){return U_(e)?Z_(e,Oy(t,1,U_,!0)):[]}));function $_(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var J_=hv((function(e,t){var n=$_(t);return U_(n)&&(n=void 0),U_(e)?Z_(e,Oy(t,1,U_,!0),f_(n)):[]})),Q_=hv((function(e,t){var n=$_(t);return U_(n)&&(n=void 0),U_(e)?Z_(e,Oy(t,1,U_,!0),void 0,n):[]})),eE=Yf((function(e,t){return e/t}),1);function tE(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Zy(e,r?0:o,r?o+1:i):Zy(e,r?o+1:0,r?i:o)}function nE(e){return"function"==typeof e?e:dm}function rE(e,t){return(Vf(e)?dg:w_)(e,nE(t))}function iE(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}var oE=v_(!0);function aE(e,t){return e&&oE(e,t,Gv)}var sE=x_(aE,!0);function lE(e,t){return(Vf(e)?iE:sE)(e,nE(t))}function cE(e){return function(t){var n=Lx(t);return"[object Map]"==n?Aw(t):"[object Set]"==n?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return Hf(t,(function(t){return[t,e[t]]}))}(t,e(t))}}var uE=cE(Gv),dE=cE(Kv),hE=gb({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),pE=/[&<>"']/g,fE=RegExp(pE.source);function mE(e){return(e=yy(e))&&fE.test(e)?e.replace(pE,hE):e}var gE=/[\\^$.*+?()[\]{}|]/g,vE=RegExp(gE.source);function yE(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function bE(e,t){var n=!0;return w_(e,(function(e,r,i){return n=!!t(e,r,i)})),n}var xE=4294967295;function wE(e){return e?nx(um(e),0,xE):0}function _E(e,t){var n=[];return w_(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function EE(e){return function(t,n,r){var i=Object(t);if(!mv(t)){var o=f_(n);t=Gv(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}var SE=Math.max;function ME(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:um(n);return i<0&&(i=SE(r+i,0)),hg(e,f_(t),i)}var TE=EE(ME);function AE(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}var OE=Math.max,CE=Math.min;function RE(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=um(n),i=n<0?OE(r+i,0):CE(i,r-1)),hg(e,f_(t),i,!0)}var PE=EE(RE);function IE(e){return e&&e.length?e[0]:void 0}function LE(e,t){var n=-1,r=mv(e)?Array(e.length):[];return w_(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function kE(e,t){return(Vf(e)?Hf:LE)(e,f_(t))}var DE=1/0;var NE=1/0;var UE=$b("floor");function jE(e){return Ry((function(t){var n=t.length,r=n,i=Zm.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new TypeError("Expected a function");if(i&&!a&&"wrapper"==Ym(o))var a=new Zm([],!0)}for(r=a?r:n;++r<n;){var s=Ym(o=t[r]),l="wrapper"==s?Gm(o):void 0;a=l&&eg(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[Ym(l[0])].apply(a,l[3]):1==o.length&&eg(o)?a[s]():a.thru(o)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&Vf(r))return a.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}var FE=jE(),BE=jE(!0);function zE(e,t){return ux(t,(function(t){return gm(e[t])}))}var HE=Object.prototype.hasOwnProperty,VE=E_((function(e,t,n){HE.call(e,n)?e[n].push(t):ov(e,n,[t])}));function WE(e,t){return e>t}function GE(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=am(t),n=am(n)),e(t,n)}}var qE=GE(WE),XE=GE((function(e,t){return e>=t})),YE=Object.prototype.hasOwnProperty;function ZE(e,t){return null!=e&&YE.call(e,t)}var KE=Math.max,$E=Math.min;var JE="[object String]";function QE(e){return"string"==typeof e||!Vf(e)&&Uf(e)&&Nf(e)==JE}function eS(e,t){return Hf(t,(function(t){return e[t]}))}function tS(e){return null==e?[]:eS(e,Gv(e))}var nS=Math.max;var rS=Math.max;var iS=Math.min;function oS(e,t,n){for(var r=n?X_:mg,i=e[0].length,o=e.length,a=o,s=Array(o),l=1/0,c=[];a--;){var u=e[a];a&&t&&(u=Hf(u,Iv(t))),l=iS(u.length,l),s[a]=!n&&(t||i>=120&&u.length>=120)?new ww(a&&u):void 0}u=e[0];var d=-1,h=s[0];e:for(;++d<i&&c.length<l;){var p=u[d],f=t?t(p):p;if(p=n||0!==p?p:0,!(h?Ew(h,f):r(c,f,n))){for(a=o;--a;){var m=s[a];if(!(m?Ew(m,f):r(e[a],f,n)))continue e}h&&h.push(f),c.push(p)}}return c}function aS(e){return U_(e)?e:[]}var sS=hv((function(e){var t=Hf(e,aS);return t.length&&t[0]===e[0]?oS(t):[]})),lS=hv((function(e){var t=$_(e),n=Hf(e,aS);return t===$_(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?oS(n,f_(t)):[]})),cS=hv((function(e){var t=$_(e),n=Hf(e,aS);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?oS(n,void 0,t):[]}));function uS(e,t){return function(n,r){return function(e,t,n,r){return b_(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}var dS=Object.prototype.toString,hS=uS((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dS.call(t)),e[t]=n}),sg(dm)),pS=Object.prototype,fS=pS.hasOwnProperty,mS=pS.toString,gS=uS((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=mS.call(t)),fS.call(e,t)?e[t].push(n):e[t]=[n]}),f_);function vS(e,t){return t.length<2?e:_y(e,Zy(t,0,-1))}function yS(e,t,n){var r=null==(e=vS(e,t=by(t,e)))?e:e[wy($_(t))];return null==r?void 0:Nm(r,e,n)}var bS=hv(yS),xS=hv((function(e,t,n){var r=-1,i="function"==typeof t,o=mv(e)?Array(e.length):[];return w_(e,(function(e){o[++r]=i?Nm(t,e,n):yS(e,t,n)})),o}));var wS=Nv&&Nv.isArrayBuffer,_S=wS?Iv(wS):function(e){return Uf(e)&&"[object ArrayBuffer]"==Nf(e)};var ES=Nv&&Nv.isDate,SS=ES?Iv(ES):function(e){return Uf(e)&&"[object Date]"==Nf(e)};var MS=Object.prototype.hasOwnProperty;var TS=Tf.isFinite;function AS(e){return"number"==typeof e&&e==um(e)}var OS="[object Number]";function CS(e){return"number"==typeof e||Uf(e)&&Nf(e)==OS}var RS=vm?gm:Tv;function PS(e){return null==e}var IS=Nv&&Nv.isRegExp,LS=IS?Iv(IS):function(e){return Uf(e)&&"[object RegExp]"==Nf(e)},kS=9007199254740991;var DS=Array.prototype.join;var NS=Xb((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),US=E_((function(e,t,n){ov(e,n,t)}));var jS=Math.max,FS=Math.min;var BS=Xb((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),zS=hb("toLowerCase");function HS(e,t){return e<t}var VS=GE(HS),WS=GE((function(e,t){return e<=t}));function GS(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a===a&&!Ff(a):n(a,s)))var s=a,l=o}return l}function qS(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}var XS=NaN;function YS(e,t){var n=null==e?0:e.length;return n?qS(e,t)/n:XS}var ZS=vv((function(e,t,n){B_(e,t,n)})),KS=hv((function(e,t){return function(n){return yS(n,e,t)}})),$S=hv((function(e,t){return function(n){return yS(e,n,t)}}));function JS(e,t,n){var r=Gv(t),i=zE(t,r),o=!(em(n)&&"chain"in n)||!!n.chain,a=gm(e);return dg(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Km(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,My([this.value()],arguments))})})),e}var QS=Yf((function(e,t){return e*t}),1),eM="Expected a function";function tM(e){if("function"!=typeof e)throw new TypeError(eM);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var nM="[object Map]",rM="[object Set]",iM=Af?Af.iterator:void 0;function oM(e){if(!e)return[];if(mv(e))return QE(e)?db(e):Km(e);if(iM&&e[iM])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[iM]());var t=Lx(e);return(t==nM?Aw:t==rM?Ow:tS)(e)}function aM(e,t){var n=e.length;if(n)return Og(t+=t<0?n:0,n)?e[t]:void 0}function sM(e,t){return null==(e=vS(e,t=by(t,e)))||delete e[wy($_(t))]}function lM(e){return Fy(e)?void 0:e}var cM=Ry((function(e,t){var n={};if(null==e)return n;var r=!1;t=Hf(t,(function(t){return t=by(t,e),r||(r=t.length>1),t})),cv(e,yx(e),n),r&&(n=xw(n,7,lM));for(var i=t.length;i--;)sM(n,t[i]);return n}));function uM(e,t,n,r){if(!em(e))return e;for(var i=-1,o=(t=by(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=wy(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=em(u)?u:Og(t[i+1])?[]:{})}lv(s,l,c),s=s[l]}return e}function dM(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=_y(e,a);n(s,a)&&uM(o,by(a,e),s)}return o}function hM(e,t){if(null==e)return{};var n=Hf(yx(e),(function(e){return[e]}));return t=f_(t),dM(e,n,(function(e,n){return t(e,n[0])}))}function pM(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e===e,o=Ff(e),a=void 0!==t,s=null===t,l=t===t,c=Ff(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}function fM(e,t,n){t=t.length?Hf(t,(function(e){return Vf(e)?function(t){return _y(t,1===e.length?e[0]:e)}:e})):[dm];var r=-1;t=Hf(t,Iv(f_));var i=LE(e,(function(e,n,i){var o=Hf(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=pM(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function mM(e){return Ry((function(t){return t=Hf(t,Iv(f_)),hv((function(n){var r=this;return e(t,(function(e){return Nm(e,r,n)}))}))}))}var gM=mM(Hf),vM=hv,yM=Math.min,bM=vM((function(e,t){var n=(t=1==t.length&&Vf(t[0])?Hf(t[0],Iv(f_)):Hf(Oy(t,1),Iv(f_))).length;return hv((function(r){for(var i=-1,o=yM(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Nm(e,this,r)}))})),xM=mM(yE),wM=mM(_w),_M=9007199254740991,EM=Math.floor;function SM(e,t){var n="";if(!e||t<1||t>_M)return n;do{t%2&&(n+=e),(t=EM(t/2))&&(e+=e)}while(t);return n}var MM=h_("length"),TM="\\ud800-\\udfff",AM="["+TM+"]",OM="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",CM="\\ud83c[\\udffb-\\udfff]",RM="[^"+TM+"]",PM="(?:\\ud83c[\\udde6-\\uddff]){2}",IM="[\\ud800-\\udbff][\\udc00-\\udfff]",LM="(?:"+OM+"|"+CM+")"+"?",kM="[\\ufe0e\\ufe0f]?",DM=kM+LM+("(?:\\u200d(?:"+[RM,PM,IM].join("|")+")"+kM+LM+")*"),NM="(?:"+[RM+OM+"?",OM,PM,IM,AM].join("|")+")",UM=RegExp(CM+"(?="+CM+")|"+NM+DM,"g");function jM(e){return Jy(e)?function(e){for(var t=UM.lastIndex=0;UM.test(e);)++t;return t}(e):MM(e)}var FM=Math.ceil;function BM(e,t){var n=(t=void 0===t?" ":Xf(t)).length;if(n<2)return n?SM(t,e):t;var r=SM(t,FM(e/jM(t)));return Jy(t)?Ky(db(r),0,e).join(""):r.slice(0,e)}var zM=Math.ceil,HM=Math.floor;var VM=/^\s+/,WM=Tf.parseInt;var GM=hv((function(e,t){return nv(e,32,void 0,t,Pg(t,Mg(GM)))}));GM.placeholder={};var qM=hv((function(e,t){return nv(e,64,void 0,t,Pg(t,Mg(qM)))}));qM.placeholder={};var XM=E_((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var YM=Ry((function(e,t){return null==e?{}:function(e,t){return dM(e,t,(function(t,n){return l_(e,n)}))}(e,t)}));function ZM(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}var KM=Array.prototype.splice;function $M(e,t,n,r){var i=r?ZM:fg,o=-1,a=t.length,s=e;for(e===t&&(t=Km(t)),n&&(s=Hf(e,Iv(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&KM.call(s,l,1),KM.call(e,l,1);return e}function JM(e,t){return e&&e.length&&t&&t.length?$M(e,t):e}var QM=hv(JM);var eT=Array.prototype.splice;function tT(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Og(i)?eT.call(e,i,1):sM(e,i)}}return e}var nT=Ry((function(e,t){var n=null==e?0:e.length,r=Sy(e,t);return tT(e,Hf(t,(function(e){return Og(e,n)?+e:e})).sort(pM)),r})),rT=Math.floor,iT=Math.random;function oT(e,t){return e+rT(iT()*(t-e+1))}var aT=parseFloat,sT=Math.min,lT=Math.random;var cT=Math.ceil,uT=Math.max;function dT(e){return function(t,n,r){return r&&"number"!=typeof r&&gv(t,n,r)&&(n=r=void 0),t=cm(t),void 0===n?(n=t,t=0):n=cm(n),function(e,t,n,r){for(var i=-1,o=uT(cT((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}(t,n,r=void 0===r?t<n?1:-1:cm(r),e)}}var hT=dT(),pT=dT(!0),fT=Ry((function(e,t){return nv(e,256,void 0,void 0,void 0,t)}));function mT(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function gT(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}var vT=Array.prototype.reverse;function yT(e){return null==e?e:vT.call(e)}var bT=$b("round");function xT(e){var t=e.length;return t?e[oT(0,t-1)]:void 0}function wT(e){return xT(tS(e))}function _T(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=oT(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}function ET(e,t){return _T(Km(e),nx(t,0,e.length))}function ST(e,t){var n=tS(e);return _T(n,nx(t,0,n.length))}function MT(e){return _T(Km(e))}function TT(e){return _T(tS(e))}var AT=Xb((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function OT(e,t){var n;return w_(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}var CT=hv((function(e,t){if(null==e)return[];var n=t.length;return n>1&&gv(e,t[0],t[1])?t=[]:n>2&&gv(t[0],t[1],t[2])&&(t=[t[0]]),fM(e,Oy(t,1),[])})),RT=4294967294,PT=Math.floor,IT=Math.min;function LT(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!==t,s=null===t,l=Ff(t),c=void 0===t;i<o;){var u=PT((i+o)/2),d=n(e[u]),h=void 0!==d,p=null===d,f=d===d,m=Ff(d);if(a)var g=r||f;else g=c?f&&(r||h):s?f&&h&&(r||!p):l?f&&h&&!p&&(r||!m):!p&&!m&&(r?d<=t:d<t);g?i=u+1:o=u}return IT(o,RT)}var kT=2147483647;function DT(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=kT){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Ff(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return LT(e,t,dm,n)}function NT(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!av(s,l)){var l=s;o[i++]=0===a?0:a}}return o}var UT=Math.max;var jT=Xb((function(e,t,n){return e+(n?" ":"")+pb(t)}));var FT=Yf((function(e,t){return e-t}),0);var BT=Object.prototype,zT=BT.hasOwnProperty;function HT(e,t,n,r){return void 0===e||av(e,BT[n])&&!zT.call(r,n)?t:e}var VT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function WT(e){return"\\"+VT[e]}var GT=/<%=([\s\S]+?)%>/g,qT={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:GT,variable:"",imports:{_:{escape:mE}}},XT=/\b__p \+= '';/g,YT=/\b(__p \+=) '' \+/g,ZT=/(__e\(.*?\)|\b__t\)) \+\n'';/g,KT=/[()=,{}\[\]\/\s]/,$T=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,JT=/($^)/,QT=/['\n\r\u2028\u2029\\]/g,eA=Object.prototype.hasOwnProperty;var tA="Expected a function";function nA(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError(tA);return em(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),I_(e,t,{leading:r,maxWait:t,trailing:i})}function rA(e,t){return t(e)}var iA=4294967295,oA=Math.min;function aA(e,t){var n=e;return n instanceof Vm&&(n=n.value()),mb(t,(function(e,t){return t.func.apply(t.thisArg,My([e],t.args))}),n)}function sA(){return aA(this.__wrapped__,this.__actions__)}var lA=9007199254740991;function cA(e,t){for(var n=e.length;n--&&fg(t,e[n],0)>-1;);return n}function uA(e,t){for(var n=-1,r=e.length;++n<r&&fg(t,e[n],0)>-1;);return n}var dA=/^\s+/;var hA=/\w*$/;var pA=gb({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),fA=/&(?:amp|lt|gt|quot|#39);/g,mA=RegExp(fA.source);var gA=wx&&1/Ow(new wx([,-0]))[1]==1/0?function(e){return new wx(e)}:Wm,vA=200;function yA(e,t,n){var r=-1,i=mg,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=X_;else if(o>=vA){var c=t?null:gA(e);if(c)return Ow(c);a=!1,i=Ew,l=new ww}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var bA=hv((function(e){return yA(Oy(e,1,U_,!0))})),xA=hv((function(e){var t=$_(e);return U_(t)&&(t=void 0),yA(Oy(e,1,U_,!0),f_(t))})),wA=hv((function(e){var t=$_(e);return t="function"==typeof t?t:void 0,yA(Oy(e,1,U_,!0),void 0,t)}));var _A=0;var EA=Math.max;function SA(e){if(!e||!e.length)return[];var t=0;return e=ux(e,(function(e){if(U_(e))return t=EA(e.length,t),!0})),xv(t,(function(t){return Hf(e,h_(t))}))}function MA(e,t){if(!e||!e.length)return[];var n=SA(e);return null==t?n:Hf(n,(function(e){return Nm(t,void 0,e)}))}function TA(e,t,n,r){return uM(e,t,n(_y(e,t)),r)}var AA=Xb((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}));var OA=hv((function(e,t){return U_(e)?Z_(e,t):[]}));var CA=Ry((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Sy(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vm&&Og(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:rA,args:[i],thisArg:void 0}),new Zm(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));function RA(e,t,n){var r=e.length;if(r<2)return r?yA(e[0]):[];for(var i=-1,o=Array(r);++i<r;)for(var a=e[i],s=-1;++s<r;)s!=i&&(o[i]=Z_(o[i]||a,e[s],t,n));return yA(Oy(o,1),t,n)}var PA=hv((function(e){return RA(ux(e,U_))})),IA=hv((function(e){var t=$_(e);return U_(t)&&(t=void 0),RA(ux(e,U_),f_(t))})),LA=hv((function(e){var t=$_(e);return t="function"==typeof t?t:void 0,RA(ux(e,U_),void 0,t)})),kA=hv(SA);function DA(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}var NA=hv((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,MA(e,n)})),UA={chunk:function(e,t,n){t=(n?gv(e,t,n):void 0===t)?1:tx(um(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,o=0,a=Array(ex(r/t));i<r;)a[o++]=Zy(e,i,i+=t);return a},compact:function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},concat:function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return My(Vf(n)?Km(n):[n],Oy(t,1))},difference:K_,differenceBy:J_,differenceWith:Q_,drop:function(e,t,n){var r=null==e?0:e.length;return r?Zy(e,(t=n||void 0===t?1:um(t))<0?0:t,r):[]},dropRight:function(e,t,n){var r=null==e?0:e.length;return r?Zy(e,0,(t=r-(t=n||void 0===t?1:um(t)))<0?0:t):[]},dropRightWhile:function(e,t){return e&&e.length?tE(e,f_(t),!0,!0):[]},dropWhile:function(e,t){return e&&e.length?tE(e,f_(t),!0):[]},fill:function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&gv(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=um(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:um(r))<0&&(r+=i),r=n>r?0:wE(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},findIndex:ME,findLastIndex:RE,first:IE,flatten:Cy,flattenDeep:function(e){return(null==e?0:e.length)?Oy(e,NE):[]},flattenDepth:function(e,t){return(null==e?0:e.length)?Oy(e,t=void 0===t?1:um(t)):[]},fromPairs:function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},head:IE,indexOf:function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:um(n);return i<0&&(i=rS(r+i,0)),fg(e,t,i)},initial:function(e){return(null==e?0:e.length)?Zy(e,0,-1):[]},intersection:sS,intersectionBy:lS,intersectionWith:cS,join:function(e,t){return null==e?"":DS.call(e,t)},last:$_,lastIndexOf:function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=um(n))<0?jS(r+i,0):FS(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):hg(e,pg,i,!0)},nth:function(e,t){return e&&e.length?aM(e,um(t)):void 0},pull:QM,pullAll:JM,pullAllBy:function(e,t,n){return e&&e.length&&t&&t.length?$M(e,t,f_(n)):e},pullAllWith:function(e,t,n){return e&&e.length&&t&&t.length?$M(e,t,void 0,n):e},pullAt:nT,remove:function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=f_(t);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return tT(e,i),n},reverse:yT,slice:function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&gv(e,t,n)?(t=0,n=r):(t=null==t?0:um(t),n=void 0===n?r:um(n)),Zy(e,t,n)):[]},sortedIndex:function(e,t){return DT(e,t)},sortedIndexBy:function(e,t,n){return LT(e,t,f_(n))},sortedIndexOf:function(e,t){var n=null==e?0:e.length;if(n){var r=DT(e,t);if(r<n&&av(e[r],t))return r}return-1},sortedLastIndex:function(e,t){return DT(e,t,!0)},sortedLastIndexBy:function(e,t,n){return LT(e,t,f_(n),!0)},sortedLastIndexOf:function(e,t){if(null==e?0:e.length){var n=DT(e,t,!0)-1;if(av(e[n],t))return n}return-1},sortedUniq:function(e){return e&&e.length?NT(e):[]},sortedUniqBy:function(e,t){return e&&e.length?NT(e,f_(t)):[]},tail:function(e){var t=null==e?0:e.length;return t?Zy(e,1,t):[]},take:function(e,t,n){return e&&e.length?Zy(e,0,(t=n||void 0===t?1:um(t))<0?0:t):[]},takeRight:function(e,t,n){var r=null==e?0:e.length;return r?Zy(e,(t=r-(t=n||void 0===t?1:um(t)))<0?0:t,r):[]},takeRightWhile:function(e,t){return e&&e.length?tE(e,f_(t),!1,!0):[]},takeWhile:function(e,t){return e&&e.length?tE(e,f_(t)):[]},union:bA,unionBy:xA,unionWith:wA,uniq:function(e){return e&&e.length?yA(e):[]},uniqBy:function(e,t){return e&&e.length?yA(e,f_(t)):[]},uniqWith:function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?yA(e,void 0,t):[]},unzip:SA,unzipWith:MA,without:OA,xor:PA,xorBy:IA,xorWith:LA,zip:kA,zipObject:function(e,t){return DA(e||[],t||[],lv)},zipObjectDeep:function(e,t){return DA(e||[],t||[],uM)},zipWith:NA},jA={countBy:M_,each:rE,eachRight:lE,every:function(e,t,n){var r=Vf(e)?yE:bE;return n&&gv(e,t,n)&&(t=void 0),r(e,f_(t))},filter:function(e,t){return(Vf(e)?ux:_E)(e,f_(t))},find:TE,findLast:PE,flatMap:function(e,t){return Oy(kE(e,t),1)},flatMapDeep:function(e,t){return Oy(kE(e,t),DE)},flatMapDepth:function(e,t,n){return n=void 0===n?1:um(n),Oy(kE(e,t),n)},forEach:rE,forEachRight:lE,groupBy:VE,includes:function(e,t,n,r){e=mv(e)?e:tS(e),n=n&&!r?um(n):0;var i=e.length;return n<0&&(n=nS(i+n,0)),QE(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&fg(e,t,n)>-1},invokeMap:xS,keyBy:US,map:kE,orderBy:function(e,t,n,r){return null==e?[]:(Vf(t)||(t=null==t?[]:[t]),Vf(n=r?void 0:n)||(n=null==n?[]:[n]),fM(e,t,n))},partition:XM,reduce:function(e,t,n){var r=Vf(e)?mb:mT,i=arguments.length<3;return r(e,f_(t),n,i,w_)},reduceRight:function(e,t,n){var r=Vf(e)?gT:mT,i=arguments.length<3;return r(e,f_(t),n,i,sE)},reject:function(e,t){return(Vf(e)?ux:_E)(e,tM(f_(t)))},sample:function(e){return(Vf(e)?xT:wT)(e)},sampleSize:function(e,t,n){return t=(n?gv(e,t,n):void 0===t)?1:um(t),(Vf(e)?ET:ST)(e,t)},shuffle:function(e){return(Vf(e)?MT:TT)(e)},size:function(e){if(null==e)return 0;if(mv(e))return QE(e)?jM(e):e.length;var t=Lx(e);return"[object Map]"==t||"[object Set]"==t?e.size:Wv(e).length},some:function(e,t,n){var r=Vf(e)?_w:OT;return n&&gv(e,t,n)&&(t=void 0),r(e,f_(t))},sortBy:CT},FA=O_,BA={after:function(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=um(e),function(){if(--e<1)return t.apply(this,arguments)}},ary:iv,before:Gy,bind:qy,bindKey:Yy,curry:T_,curryRight:A_,debounce:I_,defer:G_,delay:q_,flip:function(e){return nv(e,512)},memoize:fy,negate:tM,once:function(e){return Gy(2,e)},overArgs:bM,partial:GM,partialRight:qM,rearg:fT,rest:function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return hv(e,t=void 0===t?t:um(t))},spread:function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:UT(um(t),0),hv((function(n){var r=n[t],i=Ky(n,0,t);return r&&My(i,r),Nm(e,this,i)}))},throttle:nA,unary:function(e){return iv(e,1)},wrap:function(e,t){return GM(nE(t),e)}},zA={castArray:function(){if(!arguments.length)return[];var e=arguments[0];return Vf(e)?e:[e]},clone:function(e){return xw(e,4)},cloneDeep:function(e){return xw(e,5)},cloneDeepWith:function(e,t){return xw(e,5,t="function"==typeof t?t:void 0)},cloneWith:function(e,t){return xw(e,4,t="function"==typeof t?t:void 0)},conformsTo:function(e,t){return null==t||m_(e,t,Gv(t))},eq:av,gt:qE,gte:XE,isArguments:Mv,isArray:Vf,isArrayBuffer:_S,isArrayLike:mv,isArrayLikeObject:U_,isBoolean:function(e){return!0===e||!1===e||Uf(e)&&"[object Boolean]"==Nf(e)},isBuffer:Rv,isDate:SS,isElement:function(e){return Uf(e)&&1===e.nodeType&&!Fy(e)},isEmpty:function(e){if(null==e)return!0;if(mv(e)&&(Vf(e)||"string"==typeof e||"function"==typeof e.splice||Rv(e)||jv(e)||Mv(e)))return!e.length;var t=Lx(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(bv(e))return!Wv(e).length;for(var n in e)if(MS.call(e,n))return!1;return!0},isEqual:function(e,t){return Jw(e,t)},isEqualWith:function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Jw(e,t,void 0,n):!!r},isError:Hy,isFinite:function(e){return"number"==typeof e&&TS(e)},isFunction:gm,isInteger:AS,isLength:fv,isMap:cw,isMatch:function(e,t){return e===t||t_(e,t,r_(t))},isMatchWith:function(e,t,n){return n="function"==typeof n?n:void 0,t_(e,t,r_(t),n)},isNaN:function(e){return CS(e)&&e!=+e},isNative:function(e){if(RS(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Am(e)},isNil:PS,isNull:function(e){return null===e},isNumber:CS,isObject:em,isObjectLike:Uf,isPlainObject:Fy,isRegExp:LS,isSafeInteger:function(e){return AS(e)&&e>=-9007199254740991&&e<=kS},isSet:dw,isString:QE,isSymbol:Ff,isTypedArray:jv,isUndefined:function(e){return void 0===e},isWeakMap:function(e){return Uf(e)&&"[object WeakMap]"==Lx(e)},isWeakSet:function(e){return Uf(e)&&"[object WeakSet]"==Nf(e)},lt:VS,lte:WS,toArray:oM,toFinite:cm,toInteger:um,toLength:wE,toNumber:am,toPlainObject:F_,toSafeInteger:function(e){return e?nx(um(e),-9007199254740991,lA):0===e?e:0},toString:yy},HA={add:Zf,ceil:Jb,divide:eE,floor:UE,max:function(e){return e&&e.length?GS(e,dm,WE):void 0},maxBy:function(e,t){return e&&e.length?GS(e,f_(t),WE):void 0},mean:function(e){return YS(e,dm)},meanBy:function(e,t){return YS(e,f_(t))},min:function(e){return e&&e.length?GS(e,dm,HS):void 0},minBy:function(e,t){return e&&e.length?GS(e,f_(t),HS):void 0},multiply:QS,round:bT,subtract:FT,sum:function(e){return e&&e.length?qS(e,dm):0},sumBy:function(e,t){return e&&e.length?qS(e,f_(t)):0}},VA=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=am(n))===n?n:0),void 0!==t&&(t=(t=am(t))===t?t:0),nx(am(e),t,n)},WA=function(e,t,n){return t=cm(t),void 0===n?(n=t,t=0):n=cm(n),function(e,t,n){return e>=$E(t,n)&&e<KE(t,n)}(e=am(e),t,n)},GA=function(e,t,n){if(n&&"boolean"!=typeof n&&gv(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=cm(e),void 0===t?(t=e,e=0):t=cm(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=lT();return sT(e+i*(t-e+aT("1e-"+((i+"").length-1))),t)}return oT(e,t)},qA={assign:Xv,assignIn:$v,assignInWith:Jv,assignWith:Qv,at:Py,create:function(e,t){var n=Lm(e);return null==t?n:ix(n,t)},defaults:D_,defaultsDeep:V_,entries:uE,entriesIn:dE,extend:$v,extendWith:Jv,findKey:function(e,t){return AE(e,f_(t),b_)},findLastKey:function(e,t){return AE(e,f_(t),aE)},forIn:function(e,t){return null==e?e:y_(e,nE(t),Kv)},forInRight:function(e,t){return null==e?e:oE(e,nE(t),Kv)},forOwn:function(e,t){return e&&b_(e,nE(t))},forOwnRight:function(e,t){return e&&aE(e,nE(t))},functions:function(e){return null==e?[]:zE(e,Gv(e))},functionsIn:function(e){return null==e?[]:zE(e,Kv(e))},get:Ey,has:function(e,t){return null!=e&&s_(e,t,ZE)},hasIn:l_,invert:hS,invertBy:gS,invoke:bS,keys:Gv,keysIn:Kv,mapKeys:function(e,t){var n={};return t=f_(t),b_(e,(function(e,r,i){ov(n,t(e,r,i),e)})),n},mapValues:function(e,t){var n={};return t=f_(t),b_(e,(function(e,r,i){ov(n,r,t(e,r,i))})),n},merge:ZS,mergeWith:H_,omit:cM,omitBy:function(e,t){return hM(e,tM(f_(t)))},pick:YM,pickBy:hM,result:function(e,t,n){var r=-1,i=(t=by(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[wy(t[r])];void 0===o&&(r=i,o=n),e=gm(o)?o.call(e):o}return e},set:function(e,t,n){return null==e?e:uM(e,t,n)},setWith:function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:uM(e,t,n,r)},toPairs:uE,toPairsIn:dE,transform:function(e,t,n){var r=Vf(e),i=r||Rv(e)||jv(e);if(t=f_(t),null==n){var o=e&&e.constructor;n=i?r?new o:[]:em(e)&&gm(o)?Lm(Iy(e)):{}}return(i?dg:b_)(e,(function(e,r,i){return t(n,e,r,i)})),n},unset:function(e,t){return null==e||sM(e,t)},update:function(e,t,n){return null==e?e:TA(e,t,nE(n))},updateWith:function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:TA(e,t,nE(n),r)},values:tS,valuesIn:function(e){return null==e?[]:eS(e,Kv(e))}},XA={at:CA,chain:Qb,commit:function(){return new Zm(this.value(),this.__chain__)},lodash:Qm,next:function(){void 0===this.__values__&&(this.__values__=oM(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},plant:function(e){for(var t,n=this;n instanceof zm;){var r=$m(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},reverse:function(){var e=this.__wrapped__;if(e instanceof Vm){var t=e;return this.__actions__.length&&(t=new Vm(this)),(t=t.reverse()).__actions__.push({func:rA,args:[yT],thisArg:void 0}),new Zm(t,this.__chain__)}return this.thru(yT)},tap:function(e,t){return t(e),e},thru:rA,toIterator:function(){return this},toJSON:sA,value:sA,valueOf:sA,wrapperChain:function(){return Qb(this)}},YA={camelCase:Yb,capitalize:fb,deburr:xb,endsWith:function(e,t,n){e=yy(e),t=Xf(t);var r=e.length,i=n=void 0===n?r:nx(um(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},escape:mE,escapeRegExp:function(e){return(e=yy(e))&&vE.test(e)?e.replace(gE,"\\$&"):e},kebabCase:NS,lowerCase:BS,lowerFirst:zS,pad:function(e,t,n){e=yy(e);var r=(t=um(t))?jM(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return BM(HM(i),n)+e+BM(zM(i),n)},padEnd:function(e,t,n){e=yy(e);var r=(t=um(t))?jM(e):0;return t&&r<t?e+BM(t-r,n):e},padStart:function(e,t,n){e=yy(e);var r=(t=um(t))?jM(e):0;return t&&r<t?BM(t-r,n)+e:e},parseInt:function(e,t,n){return n||null==t?t=0:t&&(t=+t),WM(yy(e).replace(VM,""),t||0)},repeat:function(e,t,n){return t=(n?gv(e,t,n):void 0===t)?1:um(t),SM(yy(e),t)},replace:function(){var e=arguments,t=yy(e[0]);return e.length<3?t:t.replace(e[1],e[2])},snakeCase:AT,split:function(e,t,n){return n&&"number"!=typeof n&&gv(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=yy(e))&&("string"==typeof t||null!=t&&!LS(t))&&!(t=Xf(t))&&Jy(e)?Ky(db(e),0,n):e.split(t,n):[]},startCase:jT,startsWith:function(e,t,n){return e=yy(e),n=null==n?0:nx(um(n),0,e.length),t=Xf(t),e.slice(n,n+t.length)==t},template:function(e,t,n){var r=qT.imports._.templateSettings||qT;n&&gv(e,t,n)&&(t=void 0),e=yy(e),t=Jv({},t,r,HT);var i,o,a=Jv({},t.imports,r.imports,HT),s=Gv(a),l=eS(a,s),c=0,u=t.interpolate||JT,d="__p += '",h=RegExp((t.escape||JT).source+"|"+u.source+"|"+(u===GT?$T:JT).source+"|"+(t.evaluate||JT).source+"|$","g"),p=eA.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(h,(function(t,n,r,a,s,l){return r||(r=a),d+=e.slice(c,l).replace(QT,WT),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var f=eA.call(t,"variable")&&t.variable;if(f){if(KT.test(f))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(XT,""):d).replace(YT,"$1").replace(ZT,"$1;"),d="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
2\n")+d+"return __p\n}";var m=Vy((function(){return Function(s,p+"return "+d).apply(void 0,l)}));if(m.source=d,Hy(m))throw m;return m},templateSettings:qT,toLower:function(e){return yy(e).toLowerCase()},toUpper:function(e){return yy(e).toUpperCase()},trim:function(e,t,n){if((e=yy(e))&&(n||void 0===t))return Qf(e);if(!e||!(t=Xf(t)))return e;var r=db(e),i=db(t);return Ky(r,uA(r,i),cA(r,i)+1).join("")},trimEnd:function(e,t,n){if((e=yy(e))&&(n||void 0===t))return e.slice(0,$f(e)+1);if(!e||!(t=Xf(t)))return e;var r=db(e);return Ky(r,0,cA(r,db(t))+1).join("")},trimStart:function(e,t,n){if((e=yy(e))&&(n||void 0===t))return e.replace(dA,"");if(!e||!(t=Xf(t)))return e;var r=db(e);return Ky(r,uA(r,db(t))).join("")},truncate:function(e,t){var n=30,r="...";if(em(t)){var i="separator"in t?t.separator:i;n="length"in t?um(t.length):n,r="omission"in t?Xf(t.omission):r}var o=(e=yy(e)).length;if(Jy(e)){var a=db(e);o=a.length}if(n>=o)return e;var s=n-jM(r);if(s<1)return r;var l=a?Ky(a,0,s).join(""):e.slice(0,s);if(void 0===i)return l+r;if(a&&(s+=l.length-s),LS(i)){if(e.slice(s).search(i)){var c,u=l;for(i.global||(i=RegExp(i.source,yy(hA.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var d=c.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(Xf(i),s)!=s){var h=l.lastIndexOf(i);h>-1&&(l=l.slice(0,h))}return l+r},unescape:function(e){return(e=yy(e))&&mA.test(e)?e.replace(fA,pA):e},upperCase:AA,upperFirst:pb,words:Gb},ZA={attempt:Vy,bindAll:Xy,cond:function(e){var t=null==e?0:e.length,n=f_;return e=t?Hf(e,(function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]})):[],hv((function(n){for(var r=-1;++r<t;){var i=e[r];if(Nm(i[0],this,n))return Nm(i[1],this,n)}}))},conforms:function(e){return function(e){var t=Gv(e);return function(n){return m_(n,e,t)}}(xw(e,1))},constant:sg,defaultTo:function(e,t){return null==e||e!==e?t:e},flow:FE,flowRight:BE,identity:dm,iteratee:function(e){return f_("function"==typeof e?e:xw(e,1))},matches:function(e){return o_(xw(e,1))},matchesProperty:function(e,t){return d_(e,xw(t,1))},method:KS,methodOf:$S,mixin:JS,noop:Wm,nthArg:function(e){return e=um(e),hv((function(t){return aM(t,e)}))},over:gM,overEvery:xM,overSome:wM,property:p_,propertyOf:function(e){return function(t){return null==e?void 0:_y(e,t)}},range:hT,rangeRight:pT,stubArray:dx,stubFalse:Tv,stubObject:function(){return{}},stubString:function(){return""},stubTrue:function(){return!0},times:function(e,t){if((e=um(e))<1||e>9007199254740991)return[];var n=iA,r=oA(e,iA);t=nE(t),e-=iA;for(var i=xv(r,t);++n<e;)t(n);return i},toPath:function(e){return Vf(e)?Hf(e,wy):Ff(e)?[e]:Km(vy(yy(e)))},uniqueId:function(e){var t=++_A;return yy(e)+t}};var KA=Math.max,$A=Math.min;var JA=Math.min;var QA=4294967295,eO=Array.prototype,tO=Object.prototype.hasOwnProperty,nO=Af?Af.iterator:void 0,rO=Math.max,iO=Math.min,oO=function(e){return function(t,n,r){if(null==r){var i=em(n),o=i&&Gv(n),a=o&&o.length&&zE(n,o);(a?a.length:i)||(r=n,n=t,t=this)}return e(t,n,r)}}(JS);Qm.after=BA.after,Qm.ary=BA.ary,Qm.assign=qA.assign,Qm.assignIn=qA.assignIn,Qm.assignInWith=qA.assignInWith,Qm.assignWith=qA.assignWith,Qm.at=qA.at,Qm.before=BA.before,Qm.bind=BA.bind,Qm.bindAll=ZA.bindAll,Qm.bindKey=BA.bindKey,Qm.castArray=zA.castArray,Qm.chain=XA.chain,Qm.chunk=UA.chunk,Qm.compact=UA.compact,Qm.concat=UA.concat,Qm.cond=ZA.cond,Qm.conforms=ZA.conforms,Qm.constant=ZA.constant,Qm.countBy=jA.countBy,Qm.create=qA.create,Qm.curry=BA.curry,Qm.curryRight=BA.curryRight,Qm.debounce=BA.debounce,Qm.defaults=qA.defaults,Qm.defaultsDeep=qA.defaultsDeep,Qm.defer=BA.defer,Qm.delay=BA.delay,Qm.difference=UA.difference,Qm.differenceBy=UA.differenceBy,Qm.differenceWith=UA.differenceWith,Qm.drop=UA.drop,Qm.dropRight=UA.dropRight,Qm.dropRightWhile=UA.dropRightWhile,Qm.dropWhile=UA.dropWhile,Qm.fill=UA.fill,Qm.filter=jA.filter,Qm.flatMap=jA.flatMap,Qm.flatMapDeep=jA.flatMapDeep,Qm.flatMapDepth=jA.flatMapDepth,Qm.flatten=UA.flatten,Qm.flattenDeep=UA.flattenDeep,Qm.flattenDepth=UA.flattenDepth,Qm.flip=BA.flip,Qm.flow=ZA.flow,Qm.flowRight=ZA.flowRight,Qm.fromPairs=UA.fromPairs,Qm.functions=qA.functions,Qm.functionsIn=qA.functionsIn,Qm.groupBy=jA.groupBy,Qm.initial=UA.initial,Qm.intersection=UA.intersection,Qm.intersectionBy=UA.intersectionBy,Qm.intersectionWith=UA.intersectionWith,Qm.invert=qA.invert,Qm.invertBy=qA.invertBy,Qm.invokeMap=jA.invokeMap,Qm.iteratee=ZA.iteratee,Qm.keyBy=jA.keyBy,Qm.keys=Gv,Qm.keysIn=qA.keysIn,Qm.map=jA.map,Qm.mapKeys=qA.mapKeys,Qm.mapValues=qA.mapValues,Qm.matches=ZA.matches,Qm.matchesProperty=ZA.matchesProperty,Qm.memoize=BA.memoize,Qm.merge=qA.merge,Qm.mergeWith=qA.mergeWith,Qm.method=ZA.method,Qm.methodOf=ZA.methodOf,Qm.mixin=oO,Qm.negate=tM,Qm.nthArg=ZA.nthArg,Qm.omit=qA.omit,Qm.omitBy=qA.omitBy,Qm.once=BA.once,Qm.orderBy=jA.orderBy,Qm.over=ZA.over,Qm.overArgs=BA.overArgs,Qm.overEvery=ZA.overEvery,Qm.overS
2ome=ZA.overSome,Qm.partial=BA.partial,Qm.partialRight=BA.partialRight,Qm.partition=jA.partition,Qm.pick=qA.pick,Qm.pickBy=qA.pickBy,Qm.property=ZA.property,Qm.propertyOf=ZA.propertyOf,Qm.pull=UA.pull,Qm.pullAll=UA.pullAll,Qm.pullAllBy=UA.pullAllBy,Qm.pullAllWith=UA.pullAllWith,Qm.pullAt=UA.pullAt,Qm.range=ZA.range,Qm.rangeRight=ZA.rangeRight,Qm.rearg=BA.rearg,Qm.reject=jA.reject,Qm.remove=UA.remove,Qm.rest=BA.rest,Qm.reverse=UA.reverse,Qm.sampleSize=jA.sampleSize,Qm.set=qA.set,Qm.setWith=qA.setWith,Qm.shuffle=jA.shuffle,Qm.slice=UA.slice,Qm.sortBy=jA.sortBy,Qm.sortedUniq=UA.sortedUniq,Qm.sortedUniqBy=UA.sortedUniqBy,Qm.split=YA.split,Qm.spread=BA.spread,Qm.tail=UA.tail,Qm.take=UA.take,Qm.takeRight=UA.takeRight,Qm.takeRightWhile=UA.takeRightWhile,Qm.takeWhile=UA.takeWhile,Qm.tap=XA.tap,Qm.throttle=BA.throttle,Qm.thru=rA,Qm.toArray=zA.toArray,Qm.toPairs=qA.toPairs,Qm.toPairsIn=qA.toPairsIn,Qm.toPath=ZA.toPath,Qm.toPlainObject=zA.toPlainObject,Qm.transform=qA.transform,Qm.unary=BA.unary,Qm.union=UA.union,Qm.unionBy=UA.unionBy,Qm.unionWith=UA.unionWith,Qm.uniq=UA.uniq,Qm.uniqBy=UA.uniqBy,Qm.uniqWith=UA.uniqWith,Qm.unset=qA.unset,Qm.unzip=UA.unzip,Qm.unzipWith=UA.unzipWith,Qm.update=qA.update,Qm.updateWith=qA.updateWith,Qm.values=qA.values,Qm.valuesIn=qA.valuesIn,Qm.without=UA.without,Qm.words=YA.words,Qm.wrap=BA.wrap,Qm.xor=UA.xor,Qm.xorBy=UA.xorBy,Qm.xorWith=UA.xorWith,Qm.zip=UA.zip,Qm.zipObject=UA.zipObject,Qm.zipObjectDeep=UA.zipObjectDeep,Qm.zipWith=UA.zipWith,Qm.entries=qA.toPairs,Qm.entriesIn=qA.toPairsIn,Qm.extend=qA.assignIn,Qm.extendWith=qA.assignInWith,oO(Qm,Qm),Qm.add=HA.add,Qm.attempt=ZA.attempt,Qm.camelCase=YA.camelCase,Qm.capitalize=YA.capitalize,Qm.ceil=HA.ceil,Qm.clamp=VA,Qm.clone=zA.clone,Qm.cloneDeep=zA.cloneDeep,Qm.cloneDeepWith=zA.cloneDeepWith,Qm.cloneWith=zA.cloneWith,Qm.conformsTo=zA.conformsTo,Qm.deburr=YA.deburr,Qm.defaultTo=ZA.defaultTo,Qm.divide=HA.divide,Qm.endsWith=YA.endsWith,Qm.eq=zA.eq,Qm.escape=YA.escape,Qm.escapeRegExp=YA.escapeRegExp,Qm.every=jA.every,Qm.find=jA.find,Qm.findIndex=UA.findIndex,Qm.findKey=qA.findKey,Qm.findLast=jA.findLast,Qm.findLastIndex=UA.findLastIndex,Qm.findLastKey=qA.findLastKey,Qm.floor=HA.floor,Qm.forEach=jA.forEach,Qm.forEachRight=jA.forEachRight,Qm.forIn=qA.forIn,Qm.forInRight=qA.forInRight,Qm.forOwn=qA.forOwn,Qm.forOwnRight=qA.forOwnRight,Qm.get=qA.get,Qm.gt=zA.gt,Qm.gte=zA.gte,Qm.has=qA.has,Qm.hasIn=qA.hasIn,Qm.head=UA.head,Qm.identity=dm,Qm.includes=jA.includes,Qm.indexOf=UA.indexOf,Qm.inRange=WA,Qm.invoke=qA.invoke,Qm.isArguments=zA.isArguments,Qm.isArray=Vf,Qm.isArrayBuffer=zA.isArrayBuffer,Qm.isArrayLike=zA.isArrayLike,Qm.isArrayLikeObject=zA.isArrayLikeObject,Qm.isBoolean=zA.isBoolean,Qm.isBuffer=zA.isBuffer,Qm.isDate=zA.isDate,Qm.isElement=zA.isElement,Qm.isEmpty=zA.isEmpty,Qm.isEqual=zA.isEqual,Qm.isEqualWith=zA.isEqualWith,Qm.isError=zA.isError,Qm.isFinite=zA.isFinite,Qm.isFunction=zA.isFunction,Qm.isInteger=zA.isInteger,Qm.isLength=zA.isLength,Qm.isMap=zA.isMap,Qm.isMatch=zA.isMatch,Qm.isMatchWith=zA.isMatchWith,Qm.isNaN=zA.isNaN,Qm.isNative=zA.isNative,Qm.isNil=zA.isNil,Qm.isNull=zA.isNull,Qm.isNumber=zA.isNumber,Qm.isObject=em,Qm.isObjectLike=zA.isObjectLike,Qm.isPlainObject=zA.isPlainObject,Qm.isRegExp=zA.isRegExp,Qm.isSafeInteger=zA.isSafeInteger,Qm.isSet=zA.isSet,Qm.isString=zA.isString,Qm.isSymbol=zA.isSymbol,Qm.isTypedArray=zA.isTypedArray,Qm.isUndefined=zA.isUndefined,Qm.isWeakMap=zA.isWeakMap,Qm.isWeakSet=zA.isWeakSet,Qm.join=UA.join,Qm.kebabCase=YA.kebabCase,Qm.last=$_,Qm.lastIndexOf=UA.lastIndexOf,Qm.lowerCase=YA.lowerCase,Qm.lowerFirst=YA.lowerFirst,Qm.lt=zA.lt,Qm.lte=zA.lte,Qm.max=HA.max,Qm.maxBy=HA.max
vendor: 6,125 bytes, line 2
2By,Qm.mean=HA.mean,Qm.meanBy=HA.meanBy,Qm.min=HA.min,Qm.minBy=HA.minBy,Qm.stubArray=ZA.stubArray,Qm.stubFalse=ZA.stubFalse,Qm.stubObject=ZA.stubObject,Qm.stubString=ZA.stubString,Qm.stubTrue=ZA.stubTrue,Qm.multiply=HA.multiply,Qm.nth=UA.nth,Qm.noop=ZA.noop,Qm.now=FA,Qm.pad=YA.pad,Qm.padEnd=YA.padEnd,Qm.padStart=YA.padStart,Qm.parseInt=YA.parseInt,Qm.random=GA,Qm.reduce=jA.reduce,Qm.reduceRight=jA.reduceRight,Qm.repeat=YA.repeat,Qm.replace=YA.replace,Qm.result=qA.result,Qm.round=HA.round,Qm.sample=jA.sample,Qm.size=jA.size,Qm.snakeCase=YA.snakeCase,Qm.some=jA.some,Qm.sortedIndex=UA.sortedIndex,Qm.sortedIndexBy=UA.sortedIndexBy,Qm.sortedIndexOf=UA.sortedIndexOf,Qm.sortedLastIndex=UA.sortedLastIndex,Qm.sortedLastIndexBy=UA.sortedLastIndexBy,Qm.sortedLastIndexOf=UA.sortedLastIndexOf,Qm.startCase=YA.startCase,Qm.startsWith=YA.startsWith,Qm.subtract=HA.subtract,Qm.sum=HA.sum,Qm.sumBy=HA.sumBy,Qm.template=YA.template,Qm.times=ZA.times,Qm.toFinite=zA.toFinite,Qm.toInteger=um,Qm.toLength=zA.toLength,Qm.toLower=YA.toLower,Qm.toNumber=zA.toNumber,Qm.toSafeInteger=zA.toSafeInteger,Qm.toString=zA.toString,Qm.toUpper=YA.toUpper,Qm.trim=YA.trim,Qm.trimEnd=YA.trimEnd,Qm.trimStart=YA.trimStart,Qm.truncate=YA.truncate,Qm.unescape=YA.unescape,Qm.uniqueId=ZA.uniqueId,Qm.upperCase=YA.upperCase,Qm.upperFirst=YA.upperFirst,Qm.each=jA.forEach,Qm.eachRight=jA.forEachRight,Qm.first=UA.head,oO(Qm,function(){var e={};return b_(Qm,(function(t,n){tO.call(Qm.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Qm.VERSION="4.17.21",(Qm.templateSettings=YA.templateSettings).imports._=Qm,dg(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Qm[e].placeholder=Qm})),dg(["drop","take"],(function(e,t){Vm.prototype[e]=function(n){n=void 0===n?1:rO(um(n),0);var r=this.__filtered__&&!t?new Vm(this):this.clone();return r.__filtered__?r.__takeCount__=iO(n,r.__takeCount__):r.__views__.push({size:iO(n,QA),type:e+(r.__dir__<0?"Right":"")}),r},Vm.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),dg(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vm.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:f_(e),type:n}),t.__filtered__=t.__filtered__||r,t}})),dg(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vm.prototype[e]=function(){return this[n](1).value()[0]}})),dg(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vm.prototype[e]=function(){return this.__filtered__?new Vm(this):this[n](1)}})),Vm.prototype.compact=function(){return this.filter(dm)},Vm.prototype.find=function(e){return this.filter(e).head()},Vm.prototype.findLast=function(e){return this.reverse().find(e)},Vm.prototype.invokeMap=hv((function(e,t){return"function"==typeof e?new Vm(this):this.map((function(n){return yS(n,e,t)}))})),Vm.prototype.reject=function(e){return this.filter(tM(f_(e)))},Vm.prototype.slice=function(e,t){e=um(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vm(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=um(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vm.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vm.prototype.toArray=function(){return this.take(QA)},b_(Vm.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Qm[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Qm.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Vm,l=a[0],c=s||Vf(t),u=function(e){var t=i.apply(Qm,My([e],a));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,h=!!this.__actions__.length,p=o&&!d,f=s&&!h;if(!o&&c){t=f?t:new Vm(this);var m=e.apply(t,a);return m.__actions__.push({func:rA,args:[u],thisArg:void 0}),new Zm(m,d)}return p&&f?e.apply(this,a):(m=this.thru(u),p?r?m.value()[0]:m.value():m)})})),dg(["pop","push","shift","sort","splice","unshift"],(function(e){var t=eO[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Qm.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Vf(i)?i:[],e)}return this[n]((function(n){return t.apply(Vf(n)?n:[],e)}))}})),b_(Vm.prototype,(function(e,t){var n=Qm[t];if(n){var r=n.name+"";tO.call(qm,r)||(qm[r]=[]),qm[r].push({name:t,func:n})}})),qm[jg(void 0,2).name]=[{name:"wrapper",func:void 0}],Vm.prototype.clone=function(){var e=new Vm(this.__wrapped__);return e.__actions__=Km(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Km(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Km(this.__views__),e},Vm.prototype.reverse=function(){if(this.__filtered__){var e=new Vm(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vm.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Vf(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=$A(t,e+a);break;case"takeRight":e=KA(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,h=0,p=JA(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return aA(e,this.__actions__);var f=[];e:for(;l--&&h<p;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,x=y(g);if(2==b)g=x;else if(!x){if(1==b)continue e;break e}}f[h++]=g}return f},Qm.prototype.at=XA.at,Qm.prototype.chain=XA.wrapperChain,Qm.prototype.commit=XA.commit,Qm.prototype.next=XA.next,Qm.prototype.plant=XA.plant,Qm.prototype.reverse=XA.reverse,Qm.prototype.toJSON=Qm.prototype.valueOf=Qm.prototype.value=XA.value,Qm.prototype.first=Qm.prototype.head,nO&&(Qm.prototype[nO]=XA.toIterator);const aO=e=>{if(!e)return null;const{id:t,name:n,coordinates:r,level:{ordinal:i}}=e;return{occupantId:t,occupant:e,name:n,latLng:{lat:r[0],lng:r[1]},ordinal:i}},sO=e=>{const t=Xk.occupants.find((t=>t.name===e));return aO(t)},lO=(e,t)=>{if("__your-location__"===e&&t&&Number.isFinite(t.ordinal)&&Number.isFinite(t.latitude)&&Number.isFinite(t.longitude))return aO({i
2d:e,name:"Your location",level:{ordinal:parseInt(t.ordinal)},coordinates:[t.latitude,t.longitude],type:"occupant"});const n=Xk.occupants.find((t=>t.id===e));return aO(n)},cO=e=>{let{stops:t,sourceId:n,sourceName:r,destinationId:i,destinationName:o,userLocation:a}=e;const s=[{type:"empty"},{type:"empty"}];if(t)return t.forEach(((e,t)=>{if(PS(e)||PS(e.id)||""===e.id)return void(s[t]={type:"empty"});const{id:n,name:r}=e,i=n?lO(n,a):r?sO(r):null;i||console.error('The destination "'.concat(n||r,'" was not found')),s[t]=null!=i?i:{type:"empty"}})),s;const l=n?lO(n,a):r?sO(r):null;!n&&!r||l||console.error('The destination "'.concat(n||r,'" was not found'));const c=i?lO(i,a):o?sO(o):null;return!i&&!o||c||console.error('The destination "'.concat(i||o,'" was not found')),l&&(s[0]=l),c&&(s[1]=c),s};function uO(e,t,n){const[r,i]=Dp(e),o=new Sr(r,i),a=n.steps.reduce(((e,n)=>Number.isFinite(n.ordinal)&&n.ordinal===t?e.concat(n.points.flatMap((e=>{let{coordinates:t}=e;return t})).map((e=>new Sr(...Dp(e))))):e),[]);if(0===a.length)return{point:null,distance:null};const{closestPoint:s,distance:l}=a.reduce(((e,t,n)=>{if(n===a.length-1)return e;const{closestPoint:r,distance:i}=jp(o,t,a[n+1]);return i<e.distance?{closestPoint:r,distance:i}:e}),{closestPoint:null,distance:Number.MAX_VALUE});return{point:s&&[s.x,s.y],distance:l}}const dO=e=>{let{type:t,coordinates:n}=e;switch(t){case"Polygon":return[n[0]];case"MultiPolygon":return n.map((e=>e[0]));default:return[]}};var hO,pO,fO,mO,gO,vO,yO=Object.defineProperty,bO=Object.defineProperties,xO=Object.getOwnPropertyDescriptors,wO=Object.getOwnPropertySymbols,_O=Object.prototype.hasOwnProperty,EO=Object.prototype.propertyIsEnumerable,SO=(e,t,n)=>t in e?yO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,MO=(e,t)=>{for(var n in t||(t={}))_O.call(t,n)&&SO(e,n,t[n]);if(wO)for(var n of wO(t))EO.call(t,n)&&SO(e,n,t[n]);return e},TO=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},AO=(e,t,n)=>(TO(e,t,"read from private field"),n?n.call(e):t.get(e)),OO=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},CO=(e,t,n,r)=>(TO(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);const RO={walls:!1,wallsColor:"#a0a0a0",wallsTopColor:null,wallsHeight:2.5,wallsWidth:.1,priority:0};class PO{constructor(e,t,n){let{styles:r,mapProjection:i,userData:o={}}=n;OO(this,hO,null),OO(this,pO,null),OO(this,fO,(function(e){var t,n;const{styles:r,userData:i}=AO(this,hO),o=AO(this,pO),a=e.reduce(((e,t)=>{const{type:n,coordinates:r}=t.geometry;switch(n){case"Polygon":e.push(t);break;case"MultiPolygon":e.push(...r.map(((e,n)=>{return r=MO({},t),i={id:"".concat(t.id,"-").concat(n),geometry:{type:"Polygon",coordinates:e}},bO(r,xO(i));var r,i})))}return e}),[]),s=new Map;a.forEach(((e,t)=>{const n=e.id,r=e.geometry.coordinates[0],i=[];for(let o=t+1;o<a.length;o++){const e=a[o],t=e.geometry.coordinates[0];r.some((e=>{for(let n=0;n<t.length;n++){if(Np(t[n],e)<.01)return!0}return!1}))&&i.push(e)}s.set(n,{walkway:e,neighbors:i})}));const l=r.wallsMinZoom>0||r.wallsMaxZoom<1e3,c=r.wallsColor.toLowerCase(),u=null!=(n=null==(t=r.wallsTopColor)?void 0:t.toLowerCase())?n:c,d=Eh("lambert",c,l,!1,r.priority);s.forEach((e=>{let{walkway:t,neighbors:n}=e;if(0===n.length)return;const a=t.openingIds?t.openingIds.map((e=>{const t=Xk.openings.get(e);return t||(console.warn("Opening ".concat(e," was not found")),null)})).filter(Boolean):[];let s=null;try{s=AO(this,vO).call(this,t.geometry.coordinates[0],{neighbors:n,doors:a,wallsWidth:r.wallsWidth})}catch(h){console.log("Walkway walls skipped for the ".concat(t.id))}if(s){const e=new td(s,{curveSegments:1,steps:1,depth:r.wallsHeight,bevelEnabled:!1});if(e.deleteAttribute("uv"),e.rotateX(Er.degToRad(90)),e.translate(0,r.wallsHeight,0),c!==u){const t=new yo(c),n=new yo(u),r=[],i=e.getAttribute("normal");for(let e=0;e<i.count;e++)1===i.getY(e)?r.push(n.r,n.g,n.b):r.push(t.r,t.g,t.b);e.setAttribute("color",new Po(r,3)),d.vertexColors=!0}const t=new ra(e,d);t.matrixAutoUpdate=!1,t.renderOrder=l?-r.priority:r.priority,t.userData=MO({part:"walls"},i),o.add(t)}}))})),OO(this,mO,(function(e,t){let{width:n}=t;const[r,i]=e,o=i.clone().sub(r).normalize(),a=-o.y*n,s=o.x*n;r.addScaledVector(o.clone().negate(),n),i.addScaledVector(o.clone(),n);const l=new Tu;return l.moveTo(r.x-a,r.y-s),l.lineTo(r.x+a,r.y+s),l.lineTo(i.x+a,i.y+s),l.lineTo(i.x-a,i.y-s),l})),OO(this,gO,(function(e,t){let{offset:n}=t;const r=AO(this,hO).mapProjection;let i=e.map((e=>r.projectToOrigin(e)));xh(i)||(i=i.reverse()),i.pop();const o=new Tu(i.map((e=>{let[t,n]=e;return new Sr(t,n)})));return yh(o,n)})),OO(this,vO,(function(e,t){let{neighbors:n=[],doors:r=[],wallsWidth:i}=t;const o={regions:[AO(this,gO).call(this,e,{offset:i/2}).extractPoints().shape.map((e=>{let{x:t,y:n}=e;return[t,n]}))],inverted:!1},a=n.map((e=>({regions:[AO(this,gO).call(this,e.geometry.coordinates[0],{offset:i/2}).extractPoints().shape.map((e=>{let{x:t,y:n}=e;return[t,n]}))],inverted:!1}))),s=[],l=vt.segments(o);a.forEach((e=>
2{const t=vt.segments(e),n=vt.combine(l,t);s.push(vt.selectIntersect(n))}));let c=s[0];s.forEach(((e,t)=>{if(0!==t)try{const t=vt.combine(c,e);c=vt.selectUnion(t)}catch(r){return void console.log("Walkway wall skipped for the ".concat(n[t].id))}}));const u=AO(this,hO).mapProjection,d=r.reduce(((e,t)=>{const n=t.geometry.coordinates;for(let r=0;r<n.length-1;r++){const t=new Sr(...u.projectToOrigin(n[r])),o=new Sr(...u.projectToOrigin(n[r+1]));if(0===r){const e=o.clone().sub(t).normalize();t.addScaledVector(e,3*i)}if(r===n.length-2){const e=o.clone().sub(t).normalize();o.addScaledVector(e.negate(),3*i)}e.push([t,o])}return e}),[]),h=d.map((e=>({regions:[AO(this,mO).call(this,e,{width:i+.1}).extractPoints().shape.map((e=>{let{x:t,y:n}=e;return[t,n]}))],inverted:!1})));h.forEach(((e,t)=>{try{const t=vt.segments(e),n=vt.combine(c,t);c=vt.selectDifference(n)}catch(n){return void console.log("Walkway door ".concat(r[t].id," skipped"))}}));const p=vt.polygon(c),{type:f,coordinates:m}=vt.polygonToGeoJSON(p),g=e=>{if(bh(e[0])<.05)return null;const t=e[0].map((e=>{let[t,n]=e;return new Sr(t,n)})),n=e.slice(1).map((e=>new Su(e.map((e=>{let[t,n]=e;return new Sr(t,n)}))))),r=new Tu(t);return r.holes=n,r};return"Polygon"===f?[g(m)].filter(Boolean):"MultiPolygon"===f?m.map(g).filter(Boolean):null})),CO(this,hO,{styles:MO(MO({},RO),r),mapProjection:i,userData:o}),CO(this,pO,new oc),AO(this,fO).call(this,e,t)}get threeObject(){return AO(this,pO)}dispose(){CO(this,hO,null),CO(this,pO,null)}}hO=new WeakMap,pO=new WeakMap,fO=new WeakMap,mO=new WeakMap,gO=new WeakMap,vO=new WeakMap;var IO=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),LO="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,kO="undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),DO="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(kO):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var NO=["top","right","bottom","left","width","height","size","weight"],UO="undefined"!==typeof MutationObserver,jO=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){DO(o)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){LO&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),UO?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){LO&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;NO.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=ne
2w e),this.instance_},e.instance_=null,e}(),FO=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},BO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||kO},zO=XO(0,0,0,0);function HO(e){return parseFloat(e)||0}function VO(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+HO(e["border-"+n+"-width"])}),0)}function WO(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return zO;var r=BO(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=HO(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=HO(r.width),l=HO(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=VO(r,"left","right")+o),Math.round(l+a)!==n&&(l-=VO(r,"top","bottom")+a)),!function(e){return e===BO(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return XO(i.left,i.top,s,l)}var GO="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof BO(e).SVGGraphicsElement}:function(e){return e instanceof BO(e).SVGElement&&"function"===typeof e.getBBox};function qO(e){return LO?GO(e)?function(e){var t=e.getBBox();return XO(0,0,t.width,t.height)}(e):WO(e):zO}function XO(e,t,n,r){return{x:e,y:t,width:n,height:r}}var YO=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=XO(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=qO(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ZO=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return FO(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}(t);FO(this,{target:e,contentRect:n})},KO=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new IO,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof BO(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new YO(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof BO(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new ZO(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),$O="undefined"!==typeof WeakMap?new WeakMap:new IO,JO=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=jO.getInstance(),r=new KO(t,n,this);$O.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){JO.prototype[e]=function(){var t;return(t=$O.get(this))[e].apply(t,arguments)}}));var QO="undefined"!==typeof kO.ResizeObserver?kO.ResizeObserver:JO;class eC extends to{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.createElement("div");super(),this.element=e,this.element.style.position="absolute",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.addEventListener("removed",(()=>{this.hide()}))}hide(){this.traverse((e=>{e.element instanceof Element&&null!==e.element.parentNode&&(e.element.parentNode.removeChild(e.element),e.onRemoveFromDOM&&e.onRemoveFromDOM())}))}copy(e,t){return super.copy(e,t),this.element=e.element.cloneNode(!0),this}}function tC(){let e,t,n,r,i,o;const a=new Jr,s=new Oi,l=new Oi,c=new Oi,u=new Oi,d=new Jr,h=new Jr,p=Math.PI/2,f={objects:new WeakMap},m=document.createElement("div");m.style.overflow="hidden",m.style.cursor="grab",m.style.outline="none",m.style.userSelect="none",m.style.zIndex=2,m.style.position="relative",m.classList.add("pcmap-markers"),this.domElement=m,this.get
2Size=function(){return{width:e,height:t}},this.setSize=function(a,s){e=a,t=s,i=e/2,o=t/2,n=.2*e,r=.2*t,m.style.width=a+"px",m.style.height=s+"px"},this.render=function(e,t){s.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse);const n=t.projectionMatrix.elements[5]*o;c.makeScale(n,n,n),l.multiplyMatrices(c,t.matrixWorldInverse),c.makeTranslation(i,o,0),l.multiply(c),l.elements[1]=-l.elements[1],l.elements[5]=-l.elements[5],l.elements[9]=-l.elements[9],l.elements[13]=-l.elements[13],u.copy(l),g(e,e,t)};const g=(v,y,b)=>{if(v.isCSSObject){v.getWorldPosition(a),a.applyMatrix4(s);const g=v.rotation,y=Boolean(g.x||g.y||g.z),x=v.flippable,w=v.visible,_=v.readyToRender,E=v.element,S=E.parentNode===m,M=a.x*i+i,T=-a.y*o+o,A=-n<M&&M<e+n&&-r<T&&T<t+r;if(w&&A){let e="";if(y){const t=1/(b.projectionMatrix.elements[5]*o);if(c.makeScale(t,t,t),l.multiplyMatrices(v.matrixWorld,c),x){d.copy(v.up).applyEuler(b.rotation),h.copy(v.up).applyEuler(v.rotation);h.angleTo(d)>p&&(c.makeRotationZ(Math.PI),l.multiply(c))}l.elements[4]=-l.elements[4],l.elements[5]=-l.elements[5],l.elements[6]=-l.elements[6],l.elements[7]=-l.elements[7],l.multiplyMatrices(u,l),l.setPosition(M,T,0),e="matrix3d(".concat(l.elements.join(","),")")}else e="translate(".concat(M,"px, ").concat(T,"px)");f.objects.get(v)!==e&&(E.style.transform=e,f.objects.set(v,e))}A&&w&&(_||v.hidden?_&&v.hidden&&(E.style.visibility="",v.hidden=!1):(E.style.visibility="hidden",v.hidden=!0)),A&&w&&!S?(m.appendChild(E),v.onAddToDOM&&v.onAddToDOM()):w&&A||!S||(m.removeChild(E),v.onRemoveFromDOM&&v.onRemoveFromDOM()),v.inView!==A&&(v.inView=A,A&&v.onInView&&v.onInView(),!A&&v.onOutOfView&&v.onOutOfView()),v.userData.x=M,v.userData.y=T,v.userData.inView=A}for(var x=0,w=v.children.length;x<w;x++)g(v.children[x],y,b)}}function nC(e){return"".concat(e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:16),"em")}eC.prototype.isCSSObject=!0;const rC=Boolean(window.navigator.msSaveOrOpenBlob);var iC,oC,aC,sC,lC,cC,uC,dC,hC,pC,fC,mC,gC,vC,yC,bC,xC,wC,_C,EC,SC,MC,TC,AC,OC,CC,RC,PC,IC,LC,kC=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},DC=(e,t,n)=>(kC(e,t,"read from private field"),n?n.call(e):t.get(e)),NC=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},UC=(e,t,n,r)=>(kC(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);const jC={BOTTOM:"B",RIGHT:"R",LEFT:"L",TOP:"T",CENTER:"C"},FC=32,BC=1.625,zC=200,HC=new Map,VC=(e,t)=>{let n=HC.get(e);return n?n.cloneNode(!0):e?(e.startsWith("<svg ")&&(n=function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}(e)),e.startsWith("data:")&&(n=document.createElement("img"),n.src=e,n.alt=t),HC.set(e,n),n.cloneNode(!0)):document.createElement("img")};class WC extends ur{constructor(e,t){let{title:n,icon:r="data:,",color:i,mapProjection:o,clusterId:a=null,dotScale:s=1,iconScale:l=1,titleScale:c=1,rotateX:u=0,rotateY:d=0,rotateZ:h=0,height:p=.5,flippable:f=!0}=t;super(),NC(this,iC,(function(){const e=DC(this,dC),t=DC(this,hC),n=DC(this,pC),r=DC(this,PC),i={dot:{width:0,height:0},icon:{width:0,height:0},title:{width:0,height:0}},o=new QO((o=>{if(!this.inView||!this.visible)return;let a=!1,s=!1,l=!1;o.forEach((o=>{let{target:c,contentRect:u}=o;const{width:d,height:h}=u,p=c===e?"dot":c===t?"icon":c===n?"title":null;if(!p)return;if(Math.abs(i[p].width-d)<1&&Math.abs(i[p].height-h)<1)return;i[p].width=d,i[p].height=h;const f=window.getComputedStyle(c);r[p].marginLeft=parseFloat(f.marginLeft),r[p].marginRight=parseFloat(f.marginRight),r[p].marginTop=parseFloat(f.marginTop),r[p].marginBottom=parseFloat(f.marginBottom),r[p].borderLeft=parseFloat(f.borderLeftWidth),r[p].borderRight=parseFloat(f.borderRightWidth),r[p].borderTop=parseFloat(f.borderTopWidth),r[p].borderBottom=parseFloat(f.borderBottomWidth);const{marginLeft:m,marginRight:g,marginTop:v,marginBottom:y,borderLeft:b,borderRight:x,borderTop:w,borderBottom:_}=r[p];switch(p){case"dot":{const e=d+m+g+b+x,t=h+v+y+w+_;r.dot.width=e,r.dot.height=t,a=!0;break}case"icon":{const e=d+m+g+b+x,t=h+v+y+w+_,n=d*BC+m+g+b+x,i=h*BC+v+y+w+_;r.icon.width=e,r.icon.height=t,r.iconSelected.width=n,r.iconSelected.height=i,s=!0;break}case"title":{const e=d+m+g+b+x,t=h+v+y+w+_;r.title.width=e,r.title.height=t,l=!0;break}}})),(a||s)&&DC(this,aC).call(this),(a||s||l)&&(UC(this,OC,null),UC(this,RC,!0),this.dispatchEvent({type:"sizeChanged"}))}));o.observe(e),o.observe(t),o.observe(n),UC(this,IC,o)})),NC(this,oC,(function(){const e=DC(this,fC),{x:t,y:n}=e.userData;return{x:t,y:n}})),NC(this,aC,(function(){const e=DC(this,dC),t=DC(this,hC),n=DC(this,PC),{width:r,height:i}=n.dot,{width:o,height:a}=n.icon;e.style.top="".concat(-i/2,"px"),e.style.left="".concat(-r/2,"px"),t.style.top="".concat(-a/2,"px"),t.style.left="".concat(-o/2,"px")})),NC(this,sC,I_((function(){const e=DC(this,dC),t=DC(this,hC),n=DC(this,pC),r=DC(this,PC),i=DC(this,CC),o=DC(this,SC),a=DC(this,MC),s=DC(this,TC),l=DC(this,OC),c=DC(this,AC);if(o!==i.showDot&&(e.style.opacity=o?1:0),a!==i.showIcon&&(t.style.opacity=a?1:0),s!==i.showTitle&&(n.style.opacity=s?1:0),c!==i.selected){const e=DC(this,uC),t=DC(this,hC),n=DC(this,mC);
2c?(t.style.transform="scale(".concat(BC,")"),n.style.opacity=1,e.style.zIndex=900):(t.style.transform="none",n.style.opacity=.5,e.style.zIndex=null)}const{width:u,height:d}=r.dot,{width:h,height:p}=c?r.iconSelected:r.icon,{width:f,height:m}=r.title;let g=0,v=0;switch(o&&(g=u/2,v=d/2),a&&(g=h/2,v=p/2),l){case jC.BOTTOM:n.style.textAlign="center",n.style.transform="translate(-50%, ".concat(v,"px)");break;case jC.TOP:n.style.textAlign="center",n.style.transform="translate(-50%, -".concat(m+v,"px)");break;case jC.RIGHT:n.style.textAlign="left",n.style.transform="translate(".concat(g,"px, -50%)");break;case jC.LEFT:n.style.textAlign="right",n.style.transform="translate(-".concat(f+g,"px, -50%)");break;case jC.CENTER:n.style.textAlign="center",n.style.transform="translate(-50%, -".concat(m/2+v,"px)")}UC(this,CC,{showDot:o,showIcon:a,showTitle:s,titlePosition:l,selected:c})}),0)),NC(this,lC,void 0),NC(this,cC,void 0),NC(this,uC,void 0),NC(this,dC,void 0),NC(this,hC,void 0),NC(this,pC,void 0),NC(this,fC,void 0),NC(this,mC,void 0),NC(this,gC,.5),NC(this,vC,1),NC(this,yC,1),NC(this,bC,null),NC(this,xC,!0),NC(this,wC,!1),NC(this,_C,!1),NC(this,EC,!1),NC(this,SC,!0),NC(this,MC,!0),NC(this,TC,!0),NC(this,AC,!1),NC(this,OC,null),NC(this,CC,{titlePosition:null,selected:!1,showDot:!0,showIcon:!0,showTitle:!0}),NC(this,RC,!1),NC(this,PC,{dot:{width:0,height:0},icon:{width:0,height:0},iconSelected:{width:0,height:0},title:{width:0,height:0}}),NC(this,IC,null),NC(this,LC,[]);const m=null!==a,g=document.createElement("div"),v=/(iPad|iPhone|iPod)/gi.test(window.navigator.userAgent);g.style.cssText="\n      width: 0px;\n      height: 0px;\n      user-select: none;\n      ".concat(v?"":"will-change: transform, opacity;","\n      transition: opacity ").concat(zC,"ms ease;\n    "),g.classList.add("pcmap-marker"),m&&g.classList.add("pcmap-cluster");const y=document.createElement("div");y.style.cssText="\n      display: ".concat(m?"none":"block",";\n      position: absolute;\n      top: 0;\n      left: 0;\n      width: ").concat(nC(8*s),";\n      height: ").concat(nC(8*s),";\n      margin: ").concat(nC(5*s),";\n      border: ").concat(nC(2*s)," solid white;\n      border-radius: 100%;\n      box-sizing: unset;\n      background-color: ").concat(i||"#ff9800",";\n      transition: opacity ").concat(zC,"ms ease;\n      user-select: none;\n    "),y.classList.add("pcmap-marker-dot"),g.appendChild(y);const b=document.createElement("div");b.style.cssText="\n      display: ".concat(m?"none":"block",";\n      position: absolute;\n      top: 0;\n      left: 0;\n      width: ").concat(nC(FC*l),";\n      height: ").concat(nC(FC*l),";\n      margin: ").concat(nC(5),";\n      transition: opacity ").concat(zC,"ms ease, transform ").concat(zC,"ms ease;\n      user-select: none;\n    "),b.classList.add("pcmap-marker-icon");const x=document.createElement("div");x.style.cssText="\n      display: ".concat(m?"none":"block",";\n      position: absolute;\n      top: 0;\n      left: 0;\n      width: 100%;\n      height: 100%;\n      border-radius: 100%;\n      background-color: ").concat(i,";\n      filter: blur(").concat(nC(10),");\n      opacity: 0.5;\n      user-select: none;\n    "),b.appendChild(x);const w=VC(r,n);w.style.cssText="\n      position: absolute;\n      top: 0;\n      left: 0;\n      width: 100%;\n      z-index: 1;\n      color: ".concat(i,";\n    "),b.appendChild(w),g.appendChild(b);const _=document.createElement("div");let E='\n      position: absolute;\n      top: 0;\n      left: 0;\n      font-family: "Arial Rounded MT Bold", "Arial Rounded MT", "Helvetica Rounded", Arial, sans-serif;\n      text-align: center;\n      transition: opacity '.concat(zC,"ms ease;\n      user-select: none;\n    ");E+=m?"\n        top: ".concat(nC(-16,18),";\n        left: ").concat(nC(-16,18),";\n        width: ").concat(nC(FC,18),";\n        line-height: ").concat(nC(FC,18),";\n        font-size: ").concat(nC(Math.ceil(18*c)),";\n        border-radius: 50%;\n        background-color: #ee1734;\n        color: white;\n      "):"\n        width: ".concat(rC?"".concat(nC(75,12)):"max-content",";\n        max-width: ").concat(nC(75,12),";\n        font-size: ").concat(nC(Math.ceil(12*c)),";\n        color: #212529;
2\n        text-shadow: -1px 1px 0 #fff, 1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff;\n      "),_.style.cssText=E,_.classList.add("pcmap-marker-title"),_.textContent=n,g.appendChild(_);const S=new eC(g),[M,T]=o.projectToOrigin(e);S.position.set(M,p,T),S.rotateX(u*(Math.PI/180)),S.rotateY(d*(Math.PI/180)),S.rotateZ(h*(Math.PI/180)),S.flippable=f,S.onInView=()=>{this.dispatchEvent({type:"inView"})},UC(this,cC,e),UC(this,lC,o),UC(this,fC,S),UC(this,uC,g),UC(this,dC,y),UC(this,hC,b),UC(this,pC,_),UC(this,mC,x),UC(this,vC,l),UC(this,yC,c),UC(this,bC,a),UC(this,gC,p),DC(this,iC).call(this)}get htmlElement(){return DC(this,uC)}get threeObject(){return DC(this,fC)}get boundsReady(){return DC(this,RC)}get bounds(){const{x:e,y:t}=DC(this,oC).call(this),n=DC(this,PC),r=DC(this,CC).selected,{width:i,height:o}=n.dot,{width:a,height:s}=r?n.iconSelected:n.icon,{width:l,height:c}=n.title;return[{showDot:!1,showIcon:!0,showTitle:!0,titlePosition:jC.BOTTOM,width:Math.max(a,l),height:s+c,top:t-s/2,bottom:t+s/2+c,left:e-Math.max(a,l)/2,right:e+Math.max(a,l)/2},{showDot:!1,showIcon:!0,showTitle:!0,titlePosition:jC.RIGHT,width:a+l,height:Math.max(s,c),top:t-Math.max(s,c)/2,bottom:t+Math.max(s,c)/2,left:e-a/2,right:e+a/2+l},{showDot:!1,showIcon:!0,showTitle:!0,titlePosition:jC.LEFT,width:a+l,height:Math.max(s,c),top:t-Math.max(s,c)/2,bottom:t+Math.max(s,c)/2,left:e-a/2-l,right:e+a/2},{showDot:!1,showIcon:!0,showTitle:!0,titlePosition:jC.TOP,width:Math.max(a,l),height:s+c,top:t-s/2-c,bottom:t+s/2,left:e-Math.max(a,l)/2,right:e+Math.max(a,l)/2},{showDot:!0,showIcon:!1,showTitle:!0,titlePosition:jC.BOTTOM,width:Math.max(i,l),height:o+c,top:t-o/2,bottom:t+o/2+c,left:e-Math.max(i,l)/2,right:e+Math.max(i,l)/2},{showDot:!0,showIcon:!1,showTitle:!0,titlePosition:jC.RIGHT,width:i+l,height:Math.max(o,c),top:t-c/2,bottom:t+c/2,left:e-i/2,right:e+i/2+l},{showDot:!0,showIcon:!1,showTitle:!0,titlePosition:jC.LEFT,width:i+l,height:Math.max(o,c),top:t-c/2,bottom:t+c/2,left:e-i/2-l,right:e+i/2},{showDot:!0,showIcon:!1,showTitle:!0,titlePosition:jC.TOP,width:Math.max(i,l),height:o+c,top:t-o/2-c,bottom:t+o/2,left:e-Math.max(i,l)/2,right:e+Math.max(i,l)/2},{showDot:!1,showIcon:!1,showTitle:!0,titlePosition:jC.CENTER,width:l,height:c,top:t-c/2,bottom:t+c/2,left:e-l/2,right:e+l/2},{showDot:!1,showIcon:!0,showTitle:!1,titlePosition:null,width:a,height:s,top:t-s/2,bottom:t+s/2,left:e-a/2,right:e+a/2},{showDot:!0,showIcon:!1,showTitle:!1,titlePosition:null,width:i,height:o,top:t-o/2,bottom:t+o/2,left:e-i/2,right:e+i/2},{showDot:!1,showIcon:!1,showTitle:!1,titlePosition:null,width:0,height:0,top:0,bottom:0,left:0,right:0}]}get isCluster(){return null!==DC(this,bC)}get clusterId(){return DC(this,bC)}get inView(){return DC(this,fC).userData.inView}get coordinates(){return DC(this,cC)}set coordinates(e){const[t,n]=DC(this,lC).projectToOrigin(e),r=DC(this,gC);DC(this,fC).position.set(t,r,n)}get titlePositions(){return jC}get titlePosition(){return DC(this,OC)}set titlePosition(e){e!==DC(this,OC)&&(UC(this,OC,e),DC(this,sC).call(this))}set titleText(e){DC(this,pC).textContent=e}get selected(){return DC(this,AC)}set selected(e){e!==DC(this,AC)&&(UC(this,AC,e),DC(this,sC).call(this))}get showDot(){return DC(this,SC)}set showDot(e){e!==DC(this,SC)&&(UC(this,SC,e),DC(this,sC).call(this))}get showIcon(){return DC(this,MC)}set showIcon(e){e!==DC(this,MC)&&(UC(this,MC,e),DC(this,sC).call(this))}get showTitle(){return DC(this,TC)}set showTitle(e){e!==DC(this,TC)&&(UC(this,TC,e),DC(this,sC).call(this))}get visible(){return DC(this,xC)}set visible(e){DC(this,fC).visible=e,UC(this,xC,e)}get dimmed(){return DC(this,wC)}set dimmed(e){DC(this,uC).style.opacity=e?.25:"",UC(this,wC,e)}set readyToRender(e){DC(this,fC).readyToRender=e}get lock(){return DC(this,_C)}set lock(e){UC(this,_C,e)}get interactive(){return DC(this,EC)}set interactive(e){const t=DC(this,uC);if(e!==DC(this,EC)){if(e){let e=!0,n=null,r=null;const i=t=>{e=!0,t.changedTouches?(n=t.changedTouches[0].pageX,r=t.changedTouches[0].pageY):(n=t.pageX,r=t.pageY)},o=t=>{if(n&&r){const i=t.changedTouches?t.changedTouches[0].pageX:t.pageX,o=t.changedTouches?t.changedTouches[0].pageY:t.pageY;Math.abs(n-i)+Math.abs(r-o)>20&&(e=!1)}},a=()=>{e&&this.dispatchEvent({type:"click"})};t.addEventListener("click",a),t.addEventListener("touchstart",i),t.addEventListener("touchmove",o),t.addEventListener("touchend",a),DC(this,LC).push({target:t,type:"click",handler:a}),DC(this,LC).push({target:t,type:"touchstart",handler:i}),DC(this,LC).push({target:t,type:"touchmove",handler:o}),DC(this,LC).push({target:t,type:"touchend",handler:a}),t.style.cursor="pointer"}
2e||(DC(this,LC).forEach((e=>{let{target:t,type:n,handler:r}=e;t.removeEventListener(n,r)})),UC(this,LC,[]),t.style.cursor="initial"),UC(this,EC,e)}}hide(){DC(this,fC).hide()}addClass(e){DC(this,uC).classList.add(e)}removeClass(e){DC(this,uC).classList.remove(e)}dispose(){DC(this,LC).forEach((e=>{let{target:t,type:n,handler:r}=e;t.removeEventListener(n,r)})),DC(this,IC)&&DC(this,IC).disconnect()}}iC=new WeakMap,oC=new WeakMap,aC=new WeakMap,sC=new WeakMap,lC=new WeakMap,cC=new WeakMap,uC=new WeakMap,dC=new WeakMap,hC=new WeakMap,pC=new WeakMap,fC=new WeakMap,mC=new WeakMap,gC=new WeakMap,vC=new WeakMap,yC=new WeakMap,bC=new WeakMap,xC=new WeakMap,wC=new WeakMap,_C=new WeakMap,EC=new WeakMap,SC=new WeakMap,MC=new WeakMap,TC=new WeakMap,AC=new WeakMap,OC=new WeakMap,CC=new WeakMap,RC=new WeakMap,PC=new WeakMap,IC=new WeakMap,LC=new WeakMap;var GC,qC,XC,YC,ZC,KC,$C,JC,QC=Object.defineProperty,eR=(e,t,n)=>(((e,t,n)=>{t in e?QC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!==typeof t?t+"":t,n),n),tR=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},nR=(e,t,n)=>(tR(e,t,"read from private field"),n?n.call(e):t.get(e)),rR=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},iR=(e,t,n,r)=>(tR(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class oR{constructor(){eR(this,"add",(function(e){e instanceof tp||e instanceof PO?nR(this,$C).call(this,e.threeObject):nR(this,XC).add(e.threeObject),nR(this,YC).add(e)})),eR(this,"remove",(function(e){e instanceof tp||e instanceof PO?nR(this,JC).call(this,e.threeObject):nR(this,XC).remove(e.threeObject),nR(this,YC).delete(e)})),eR(this,"traverse",(function(e){nR(this,YC).forEach(e)})),eR(this,"toJSON",(function(){return nR(this,XC).toJSON()})),eR(this,"filterMapObjects",(function(e){nR(this,XC).traverse((t=>{t.visible=e(t.userData,t.visible)}))})),eR(this,"dispose",(function(){if(nR(this,ZC))return;const e=t=>{t.children&&t.children.forEach(e),t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose()};nR(this,XC).children.forEach(e),nR(this,YC).forEach((e=>{e.dispose()})),iR(this,qC,null),iR(this,XC,null),iR(this,YC,null),iR(this,ZC,!0)})),rR(this,GC,!1),rR(this,qC,void 0),rR(this,XC,void 0),rR(this,YC,void 0),rR(this,ZC,!1),rR(this,KC,(function(e){const{material:t,renderOrder:n,userData:r}=e;return"".concat(r.category,"-").concat(t.userData.type,"-").concat(n,"-").concat(r.part,"-").concat(r.minZoom,"-").concat(r.maxZoom)})),rR(this,$C,(function(e){const t=nR(this,qC),n=[],r=e=>{Array.isArray(e)&&e.forEach(r),Array.isArray(e.children)&&e.children.forEach(r);const{material:i,geometry:o,renderOrder:a,userData:s={}}=e,{id:l,type:c,category:u,part:d,minZoom:h,maxZoom:p}=s;if(!i||!o)return;if(l&&"unit"===c&&"floor"===d)return void n.push(e);const f=nR(this,KC).call(this,e);t.has(f)||t.set(f,{geometries:new Map,material:i,renderOrder:a,userData:{ids:[],category:u,type:"grouped",part:d,minZoom:h,maxZoom:p,renderOrder:a}});const m=t.get(f);m.userData.ids.push(l),m.geometries.set(o.uuid,o)};r(e.children),n.forEach((e=>{nR(this,XC).add(e)})),iR(this,GC,!0)})),rR(this,JC,(function(e){const t=nR(this,qC),n=e=>{var r;Array.isArray(e)&&e.forEach(n),Array.isArray(e.children)&&e.children.forEach(n);const{id:i,type:o,part:a}=null!=(r=e.userData)?r:{};if(i&&"unit"===o&&"floor"===a)return void nR(this,XC).remove(e);const s=nR(this,KC).call(this,e);if(!s||!t.has(s))return;const{geometries:l}=t.get(s);l.delete(e.geometry.uuid)};n(e.children),iR(this,GC,!0)})),iR(this,qC,new Map),iR(this,XC,new oc),iR(this,YC,new Set),nR(this,XC).addEventListener("removed",(()=>{nR(this,YC).forEach((e=>{e instanceof WC&&(e.hide(),e.readyToRender=!1)}))}))}get threeObject(){if(nR(this,GC)){nR(this,XC).children.filter((e=>{let{userData:t}=e;return t&&"grouped"===t.type})).forEach((e=>{nR(this,XC).remove(e)})),nR(this,qC).forEach((e=>{let{material:t,geometries:n,renderOrder:r,userData:i}=e;const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null!==e[0].index,r=new Set(Object.keys(e[0].attributes)),i=new Set(Object.keys(e[0].morphAttributes)),o={},a={}
2,s=e[0].morphTargetsRelative,l=new Fo;let c=0;for(let u=0;u<e.length;++u){const d=e[u];let h=0;if(n!==(null!==d.index))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."),null;for(const e in d.attributes){if(!r.has(e))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+'. All geometries must have compatible attributes; make sure "'+e+'" attribute exists among all geometries, or in none of them.'),null;void 0===o[e]&&(o[e]=[]),o[e].push(d.attributes[e]),h++}if(h!==r.size)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+". Make sure all geometries have the same number of attributes."),null;if(s!==d.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(const e in d.morphAttributes){if(!i.has(e))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+".  .morphAttributes must be consistent throughout all geometries."),null;void 0===a[e]&&(a[e]=[]),a[e].push(d.morphAttributes[e])}if(t){let e;if(n)e=d.index.count;else{if(void 0===d.attributes.position)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+". The geometry must have either an index or a position attribute"),null;e=d.attributes.position.count}l.addGroup(c,e,u),c+=e}}if(n){let t=0;const n=[];for(let r=0;r<e.length;++r){const i=e[r].index;for(let e=0;e<i.count;++e)n.push(i.getX(e)+t);t+=e[r].attributes.position.count}l.setIndex(n)}for(const u in o){const e=np(o[u]);if(!e)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+u+" attribute."),null;l.setAttribute(u,e)}for(const u in a){const e=a[u][0].length;if(0===e)break;l.morphAttributes=l.morphAttributes||{},l.morphAttributes[u]=[];for(let t=0;t<e;++t){const e=[];for(let r=0;r<a[u].length;++r)e.push(a[u][r][t]);const n=np(e);if(!n)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+u+" morphAttribute."),null;l.morphAttributes[u].push(n)}}return l}(Array.from(n.values())),a=new ra(o,t);a.renderOrder=r,a.matrixAutoUpdate=!1,a.userData=i,nR(this,XC).add(a)})),iR(this,GC,!1)}return nR(this,XC)}}GC=new WeakMap,qC=new WeakMap,XC=new WeakMap,YC=new WeakMap,ZC=new WeakMap,KC=new WeakMap,$C=new WeakMap,JC=new WeakMap;var aR,sR,lR,cR,uR,dR,hR,pR,fR,mR,gR,vR,yR,bR,xR,wR,_R=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},ER=(e,t,n)=>(_R(e,t,"read from private field"),n?n.call(e):t.get(e)),SR=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},MR=(e,t,n,r)=>(_R(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);const TR=180/Math.PI;class AR extends ur{constructor(e,t){let{map:n,mapProjection:r,routeWidth:i,routeColor:o,routeDirectionColor:a,routeDirectionSpeed:s,routeMarkType:l,priority:c=0,animate:u=!1}=t;super(),SR(this,aR,void 0),SR(this,sR,void 0),SR(this,lR,void 0),SR(this,cR,void 0),SR(this,uR,void 0),SR(this,dR,void 0),SR(this,hR,void 0),SR(this,pR,void 0),SR(this,fR,void 0),SR(this,mR,(function(e,t,n){const r=new Tu;r.moveTo(0,0),r.lineTo(-t/2,e/2),r.lineTo(0,e/2),r.lineTo(t/2,0),r.lineTo(0,-e/2),r.lineTo(-t/2,-e/2),r.lineTo(0,0);const i=new td(r,{curveSegments:1,steps:1,depth:n,bevelEnabled:!1});return i.center(),i.rotateX(90*Er.DEG2RAD),i.rotateY(-90*Er.DEG2RAD),i.scale(2,2,2),i})),SR(this,gR,(function(e,t,n){return new Mu(e,t,n,32)})),SR(this,vR,(function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.1;const i="arrow"===e?ER(this,mR).call(this,n,n,r):ER(this,gR).call(this,n,n,r),o=Eh("lambert",t),a=new ra(i,o);a.matrixAutoUpdate=!1,a.updateMatrix(),MR(this,uR,a)})),SR(this,yR,(function(e){return e.getMapObjects((e=>e.isMesh&&e.material.userData.walkable))}
2)),SR(this,bR,(function(e,t,n){const r=ER(this,fR);if(!r.length)return 0;const[i,o]=n.originToWorld([e.x,e.y]),a=new Jr(i,50,o),s=new Jr(0,-1,0),l=t.findIntersections(a,s,r);if(!l.length)return 0;const c=l[0].distance;return Math.max(50-c,0)})),SR(this,xR,(function(e,t,n,r){const i=e.map((e=>{const[t,r]=n.projectToOrigin(e);return new Sr(t,r)})),o=function(e){return e.reduce(((t,n,r)=>{if(0===r||r===e.length-1)return t.push(n),t;const i=e[r-1],o=e[r+1],a=n.clone().sub(i).angle()*TR,s=o.clone().sub(n).angle()*TR;return Math.abs(s-a)<.5||t.push(n),t}),[])}(i),a=new fu(o.map((e=>{let{x:t,y:n}=e;return new Jr(t,n,0)})));a.curveType="catmullrom",a.tension=0,a.closed=!1,a.arcLengthDivisions=600;const s=a.getLength(),l=2.5*t,c=a.getSpacedPoints(s/l).slice(1,-1),u=c.map(((e,t)=>{const i=ER(this,bR).call(this,e,r,n),o=1/c.length*t,s=a.getTangentAt(o).normalize(),l=Math.atan2(s.x,s.y),u=ER(this,uR).clone();return u.position.x=e.x,u.position.y=i+.1,u.position.z=e.y,u.rotation.y=l,u.updateMatrix(),ER(this,cR).add(u),u}));MR(this,dR,u)})),SR(this,wR,(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;const t=ER(this,lR),n=Math.max(50,1e3-475*t),r=ER(this,dR),i=new Array(Math.ceil(r.length/e)).fill(1).map(((t,n)=>({min:n*e,max:n*e+e,current:n*e})));let o=0;const a=()=>{if(MR(this,pR,requestAnimationFrame(a)),performance.now()-o<n||!ER(this,hR))return;o=performance.now();const e=Eh("lambert",ER(this,sR)),t=Eh("lambert",ER(this,aR));r.forEach((e=>{e.material=t}
2)),i.forEach((t=>{const{min:n,max:i,current:o}=t;r[o]&&(r[o].material=e),t.current=o+1<i?o+1:n})),this.dispatchEvent({type:"needsUpdate"})};a()})),MR(this,hR,u),MR(this,aR,o),MR(this,sR,a),MR(this,lR,s),MR(this,cR,new oc),ER(this,cR).position.y=.002*c,MR(this,fR,ER(this,yR).call(this,n)),ER(this,vR).call(this,l,o,i),ER(this,xR).call(this,e,i,r,n),ER(this,wR).call(this)}set priority(e){ER(this,cR).position.y=.002*e}set routeColor(e){ER(this,dR).forEach((t=>{t.material=Eh("lambert",e)})),MR(this,aR,e)}set animate(e){MR(this,hR,e)}set visible(e){ER(this,cR).visible=e}get threeObject(){return ER(this,cR)}dispose(){ER(this,pR)&&cancelAnimationFrame(ER(this,pR)),ER(this,dR)&&ER(this,dR).forEach((e=>{e.geometry.dispose()})),ER(this,uR)&&ER(this,uR).geometry.dispose()}}aR=new WeakMap,sR=new WeakMap,lR=new WeakMap,cR=new WeakMap,uR=new WeakMap,dR=new WeakMap,hR=new WeakMap,pR=new WeakMap,fR=new WeakMap,mR=new WeakMap,gR=new WeakMap,vR=new WeakMap,yR=new WeakMap,bR=new WeakMap,xR=new WeakMap,wR=new WeakMap;var OR,CR=Object.defineProperty,RR=(e,t,n)=>(((e,t,n)=>{t in e?CR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!==typeof t?t+"":t,n),n),PR=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};class IR{constructor(e){RR(this,"containsPoint",(function(e){let[t,n]=e;return(r=this,i=OR,PR(r,i,"read from private field"),o?o.call(r):i.get(r)).containsPoint(new Sr(t,n));var r,i,o})),((e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,OR,void 0);const{minLat:t,minLng:n,maxLat:r,maxLng:i}=(e=>e.reduce(((e,t)=>{let[n,r]=t;return{minLat:n<e.minLat?n:e.minLat,maxLat:n>e.maxLat?n:e.maxLat,minLng:r<e.minLng?r:e.minLng,maxLng:r>e.maxLng?r:e.maxLng}}),{minLat:e[0][0],maxLat:e[0][0],minLng:e[0][1],maxLng:e[0][1]}))(e);var o,a,s,l;o=this,a=OR,s=new uh(new Sr(t,n),new Sr(r,i)),PR(o,a,"write to private field"),l?l.call(o,s):a.set(o,s)}}OR=new WeakMap;var LR,kR=Object.defineProperty,DR=(e,t,n)=>(((e,t,n)=>{t in e?kR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!==typeof t?t+"":t,n),n),NR=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},UR=(e,t,n)=>(NR(e,t,"read from private field"),n?n.call(e):t.get(e));function jR(e){return Math.round(1e3*e)/1e3}class FR{constructor(e){let{origin:t}=e;var n,r,i,o;((e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,LR,void 0),DR(this,"projectToOrigin",(function(e){let[t,n]=e;const r=UR(this,LR),[i,o]=this.project([t,n]);return[i-r[0],o-r[1]]})),DR(this,"unprojectFromOrigin",(function(e){let[t,n]=e;const r=UR(this,LR),{latitude:i,longitude:o}=hp.sphericalToDatums(t+r[0],n+r[1]);return[i,o]})),DR(this,"originToWorld",(function(e){let[t,n]=e;const r=UR(this,LR);return[t+r[0],n+r[1]]})),DR(this,"project",(function(e){let[t,n]=e;if(!Number.isFinite(t)&&!Number.isFinite(n))return[t,n];const{x:r,y:i}=hp.datumsToSpherical(t,n);return[jR(r),-jR(i)]})),DR(this,"unproject",(function(e){let[t,n]=e;const{latitude:r,longitude:i}=hp.sphericalToDatums(t,-n);return[r,i]})),n=this,r=LR,i=this.project(t),NR(n,r,"write to private field"),o?o.call(n,i):r.set(n,i)}get origin(){return UR(this,LR)}}LR=new WeakMap;var BR={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},zR={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},HR=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],VR={CSS:{},springs:{}};function WR(e,t,n){return Math.min(Math.max(e,t),n)}function GR(e,t){return e.indexOf(t)>-1}function qR(e,t){return e.apply(null,t)}var XR={arr:function(e){return Array.isArray(e)},obj:function(e){return GR(Object.prototype.toString.call(e),"Object")},pth:function(e){return XR.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement}
2,dom:function(e){return e.nodeType||XR.svg(e)},str:function(e){return"string"===typeof e},fnc:function(e){return"function"===typeof e},und:function(e){return"undefined"===typeof e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return XR.hex(e)||XR.rgb(e)||XR.hsl(e)},key:function(e){return!BR.hasOwnProperty(e)&&!zR.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function YR(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function ZR(e,t){var n=YR(e),r=WR(XR.und(n[0])?1:n[0],.1,100),i=WR(XR.und(n[1])?100:n[1],.1,100),o=WR(XR.und(n[2])?10:n[2],.1,100),a=WR(XR.und(n[3])?0:n[3],.1,100),s=Math.sqrt(i/r),l=o/(2*Math.sqrt(i*r)),c=l<1?s*Math.sqrt(1-l*l):0,u=1,d=l<1?(l*s-a)/c:-a+s;function h(e){var n=t?t*e/1e3:e;return n=l<1?Math.exp(-n*l*s)*(u*Math.cos(c*n)+d*Math.sin(c*n)):(u+d*n)*Math.exp(-n*s),0===e||1===e?e:1-n}return t?h:function(){var t=VR.springs[e];if(t)return t;for(var n=1/6,r=0,i=0;;)if(1===h(r+=n)){if(++i>=16)break}else i=0;var o=r*n*1e3;return VR.springs[e]=o,o}}function KR(e){return void 0===e&&(e=10),function(t){return Math.ceil(WR(t,1e-6,1)*e)*(1/e)}}var $R=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function r(e){return 3*e}function i(e,i,o){return((t(i,o)*e+n(i,o))*e+r(i))*e}function o(e,i,o){return 3*t(i,o)*e*e+2*n(i,o)*e+r(i)}return function(t,n,r,a){if(0<=t&&t<=1&&0<=r&&r<=1){var s=new Float32Array(11);if(t!==n||r!==a)for(var l=0;l<11;++l)s[l]=i(l*e,t,r);return function(e){return t===n&&r===a||0===e||1===e?e:i(c(e),n,a)}}function c(n){for(var a=0,l=1;10!==l&&s[l]<=n;++l)a+=e;--l;var c=a+(n-s[l])/(s[l+1]-s[l])*e,u=o(c,t,r);return u>=.001?function(e,t,n,r){for(var a=0;a<4;++a){var s=o(t,n,r);if(0===s)return t;t-=(i(t,n,r)-e)/s}return t}(n,c,t,r):0===u?c:function(e,t,n,r,o){var a,s,l=0;do{(a=i(s=t+(n-t)/2,r,o)-e)>0?n=s:t=s}while(Math.abs(a)>1e-7&&++l<10);return s}(n,a,a+e,t,r)}}}(),JR=function(){var e={linear:function(){return function(e){return e}}},t={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=WR(e,1,10),r=WR(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}};return["Quad","Cubic","Quart","Quint","Expo"].forEach((function(e,n){t[e]=function(){return function(e){return Math.pow(e,n+2)}}})),Object.keys(t).forEach((function(n){var r=t[n];e["easeIn"+n]=r,e["easeOut"+n]=function(e,t){return function(n){return 1-r(e,t)(1-n)}},e["easeInOut"+n]=function(e,t){return function(n){return n<.5?r(e,t)(2*n)/2:1-r(e,t)(-2*n+2)/2}}})),e}();function QR(e,t){if(XR.fnc(e))return e;var n=e.split("(")[0],r=JR[n],i=YR(e);switch(n){case"spring":return ZR(e,t);case"cubicBezier":return qR($R,i);case"steps":return qR(KR,i);default:return qR(r,i)}}function eP(e){try{return document.querySelectorAll(e)}catch(gB){return}}function tP(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,i=[],o=0;o<n;o++)if(o in e){var a=e[o];t.call(r,a,o,e)&&i.push(a)}return i}function nP(e){return e.reduce((function(e,t){return e.concat(XR.arr(t)?nP(t):t)}),[])}function rP(e){return XR.arr(e)?e:(XR.str(e)&&(e=eP(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function iP(e,t){return e.some((function(e){return e===t}))}function oP(e){var t={};for(var n in e)t[n]=e[n];return t}function aP(e,t){var n=oP(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function sP(e,t){var n=oP(e);for(var r in t)n[r]=XR.und(e[r])?t[r]:e[r];return n}function lP(e){return XR.rgb(e)?function(e){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return t?"rgba("+t[1]+",1)":e}(e):XR.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(n[1],16)+","+parseInt(n[2],16)+","+parseInt(n[3],16)+",1)"}(e):XR.hsl(e)?function(e){var t,n,r,i=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),o=parseInt(i[1],10)/360,a=parseInt(i[2],10)/100,s=parseInt(i[3],10)/100,l=i[4]||1;
vendor: 3,806 bytes, line 2
2function c(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+(t-e)*(2/3-n)*6:e}if(0==a)t=n=r=s;else{var u=s<.5?s*(1+a):s+a-s*a,d=2*s-u;t=c(d,u,o+1/3),n=c(d,u,o),r=c(d,u,o-1/3)}return"rgba("+255*t+","+255*n+","+255*r+","+l+")"}(e):void 0}function cP(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function uP(e,t){return XR.fnc(e)?e(t.target,t.id,t.total):e}function dP(e,t){return e.getAttribute(t)}function hP(e,t,n){if(iP([n,"deg","rad","turn"],cP(t)))return t;var r=VR.CSS[t+n];if(!XR.und(r))return r;var i=document.createElement(e.tagName),o=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;o.appendChild(i),i.style.position="absolute",i.style.width=100+n;var a=100/i.offsetWidth;o.removeChild(i);var s=a*parseFloat(t);return VR.CSS[t+n]=s,s}function pP(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?hP(e,i,n):i}}function fP(e,t){return XR.dom(e)&&!XR.inp(e)&&(dP(e,t)||XR.svg(e)&&e[t])?"attribute":XR.dom(e)&&iP(HR,t)?"transform":XR.dom(e)&&"transform"!==t&&pP(e,t)?"css":null!=e[t]?"object":void 0}function mP(e){if(XR.dom(e)){for(var t,n=e.style.transform||"",r=/(\w+)\(([^)]*)\)/g,i=new Map;t=r.exec(n);)i.set(t[1],t[2]);return i}}function gP(e,t,n,r){var i=GR(t,"scale")?1:0+function(e){return GR(e,"translate")||"perspective"===e?"px":GR(e,"rotate")||GR(e,"skew")?"deg":void 0}(t),o=mP(e).get(t)||i;return n&&(n.transforms.list.set(t,o),n.transforms.last=t),r?hP(e,o,r):o}function vP(e,t,n,r){switch(fP(e,t)){case"transform":return gP(e,t,r,n);case"css":return pP(e,t,n);case"attribute":return dP(e,t);default:return e[t]||0}}function yP(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=cP(e)||0,i=parseFloat(t),o=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return i+o+r;case"-":return i-o+r;case"*":return i*o+r}}function bP(e,t){if(XR.col(e))return lP(e);if(/\s/g.test(e))return e;var n=cP(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function xP(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function wP(e){for(var t,n=e.points,r=0,i=0;i<n.numberOfItems;i++){var o=n.getItem(i);i>0&&(r+=xP(t,o)),t=o}return r}function _P(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*dP(e,"r")}(e);case"rect":return function(e){return 2*dP(e,"width")+2*dP(e,"height")}(e);case"line":return function(e){return xP({x:dP(e,"x1"),y:dP(e,"y1")},{x:dP(e,"x2"),y:dP(e,"y2")})}(e);case"polyline":return wP(e);case"polygon":return function(e){var t=e.points;return wP(e)+xP(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function EP(e,t){var n=t||{},r=n.el||function(e){for(var t=e.parentNode;XR.svg(t)&&XR.svg(t.parentNode);)t=t.parentNode;return t}(e),i=r.getBoundingClientRect(),o=dP(r,"viewBox"),a=i.width,s=i.height,l=n.viewBox||(o?o.split(" "):[0,0,a,s]);return{el:r,viewBox:l,x:l[0]/1,y:l[1]/1,w:a/l[2],h:s/l[3]}}function SP(e,t){function n(n){void 0===n&&(n=0);var r=t+n>=1?t+n:0;return e.el.getPointAtLength(r)}var r=EP(e.el,e.svg),i=n(),o=n(-1),a=n(1);switch(e.property){case"x":return(i.x-r.x)*r.w;case"y":return(i.y-r.y)*r.h;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function MP(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=bP(XR.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:XR.str(e)||t?r.split(n):[]}}function TP(e){return tP(e?nP(XR.arr(e)?e.map(rP):rP(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function AP(e){var t=TP(e);return t.map((function(e,n){return{target:e,id:n,total:t.length,transforms:{list:mP(e)}}}))}function OP(e,t){var n=oP(t);
2if(/^spring/.test(n.easing)&&(n.duration=ZR(n.easing)),XR.arr(e)){var r=e.length;2===r&&!XR.obj(e[0])?e={value:e}:XR.fnc(t.duration)||(n.duration=t.duration/r)}var i=XR.arr(e)?e:[e];return i.map((function(e,n){var r=XR.obj(e)&&!XR.pth(e)?e:{value:e};return XR.und(r.delay)&&(r.delay=n?0:t.delay),XR.und(r.endDelay)&&(r.endDelay=n===i.length-1?t.endDelay:0),r})).map((function(e){return sP(e,n)}))}function CP(e,t){var n=[],r=t.keyframes;for(var i in r&&(t=sP(function(e){for(var t=tP(nP(e.map((function(e){return Object.keys(e)}))),(function(e){return XR.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),n={},r=function(r){var i=t[r];n[i]=e.map((function(e){var t={};for(var n in e)XR.key(n)?n==i&&(t.value=e[n]):t[n]=e[n];return t}))},i=0;i<t.length;i++)r(i);return n}(r),t)),t)XR.key(i)&&n.push({name:i,tweens:OP(t[i],e)});return n}function RP(e,t){var n;return e.tweens.map((function(r){var i=function(e,t){var n={};for(var r in e){var i=uP(e[r],t);XR.arr(i)&&1===(i=i.map((function(e){return uP(e,t)}))).length&&(i=i[0]),n[r]=i}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(r,t),o=i.value,a=XR.arr(o)?o[1]:o,s=cP(a),l=vP(t.target,e.name,s,t),c=n?n.to.original:l,u=XR.arr(o)?o[0]:c,d=cP(u)||cP(l),h=s||d;return XR.und(a)&&(a=c),i.from=MP(u,h),i.to=MP(yP(a,u),h),i.start=n?n.end:0,i.end=i.start+i.delay+i.duration+i.endDelay,i.easing=QR(i.easing,i.duration),i.isPath=XR.pth(o),i.isColor=XR.col(i.from.original),i.isColor&&(i.round=1),n=i,i}))}var PP={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,i){if(r.list.set(t,n),t===r.last||i){var o="";r.list.forEach((function(e,t){o+=t+"("+e+") "})),e.style.transform=o}}};function IP(e,t){AP(e).forEach((function(e){for(var n in t){var r=uP(t[n],e),i=e.target,o=cP(r),a=vP(i,n,o,e),s=yP(bP(r,o||cP(a)),a),l=fP(i,n);PP[l](i,n,s,e.transforms,!0)}}))}function LP(e,t){return tP(nP(e.map((function(e){return t.map((function(t){return function(e,t){var n=fP(e.target,t.name);if(n){var r=RP(t,e),i=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:i.end,delay:r[0].delay,endDelay:i.endDelay}}}(e,t)}))}))),(function(e){return!XR.und(e)}))}function kP(e,t){var n=e.length,r=function(e){return e.timelineOffset?e.timelineOffset:0},i={};return i.duration=n?Math.max.apply(Math,e.map((function(e){return r(e)+e.duration}))):t.duration,i.delay=n?Math.min.apply(Math,e.map((function(e){return r(e)+e.delay}))):t.delay,i.endDelay=n?i.duration-Math.max.apply(Math,e.map((function(e){return r(e)+e.duration-e.endDelay}))):t.endDelay,i}var DP=0;var NP,UP=[],jP=[],FP=function(){function e(){NP=requestAnimationFrame(t)}function t(t){var n=UP.length;if(n){for(var r=0;r<n;){var i=UP[r];if(i.paused){var o=UP.indexOf(i);o>-1&&(UP.splice(o,1),n=UP.length)}else i.tick(t);r++}e()}else NP=cancelAnimationFrame(NP)}return e}();function BP(e){void 0===e&&(e={});var t,n=0,r=0,i=0,o=0,a=null;function s(e){var t=window.Promise&&new Promise((function(e){return a=e}));return e.finished=t,t}var l=function(e){var t=aP(BR,e),n=aP(zR,e),r=CP(n,e),i=AP(e.targets),o=LP(i,r),a=kP(o,n),s=DP;return DP++,sP(t,{id:s,children:[],animatables:i,animations:o,duration:a.duration,delay:a.delay,endDelay:a.endDelay})}(e);function c(){var e=l.direction;"alternate"!==e&&(l.direction="normal"!==e?"normal":"reverse"),l.reversed=!l.reversed,t.forEach((function(e){return e.reversed=l.reversed}))}function u(e){return l.reversed?l.duration-e:e}function d(){n=0,r=u(l.currentTime)*(1/BP.speed)}function h(e,t){t&&t.seek(e-t.timelineOffset)}function p(e){for(var t=0,n=l.animations,r=n.length;t<r;){var i=n[t],o=i.animatable,a=i.tweens,s=a.length-1,c=a[s];s&&(c=tP(a,(function(t){return e<t.end}))[0]||c);for(var u=WR(e-c.start-c.delay,0,c.duration)/c.duration,d=isNaN(u)?1:c.easing(u),h=c.to.strings,p=c.round,f=[],m=c.to.numbers.length,g=void 0,v=0;v<m;v++){var y=void 0,b=c.to.numbers[v],x=c.from.numbers[v]||0;y=c.isPath?SP(c.value,d*b):x+d*(b-x),p&&(c.isColor&&v>2||(y=Math.round(y*p)/p)),f.push(y)}var w=h.length;if(w){g=h[0];for(var _=0;_<w;_++){h[_];var E=h[_+1],S=f[_];isNaN(S)||(g+=E?S+E:S+" ")}}else g=f[0];PP[i.type](o.target,i.property,g,o.transforms),i.currentValue=g,t++}}function f(e){l[e]&&!l.passThrough&&l[e](l)}function m(e){var d=l.duration,m=l.delay,g=d-l.endDelay,v=u(e);l.progress=WR(v/d*100,0,100),l.reversePlayback=v<l.currentTime,t&&function(e){if(l.reversePlayback)for(var n=o;n--;)h(e,t[n]);else for(var r=0;r<o;r++)h(e,t[r])}(v),!l.began&&l.currentTime>0&&(l.began=!0,f("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,f("loopBegin")),v<=m&&0!==l.currentTime&&p(0),(v>=g&&l.currentTime!==d||!d)&&p(d),v>m&&v<g?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,f("changeBegin")),f("change"),p(v)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,f("changeComplete")),l.currentTime=WR(v,0,d),l.began&&f("update"),e>=d&&(r=0,l.remaining&&!0!==l.remaining&&l.remaining--,l.remaining?(n=i,f("loopComplete"),l.loopBegan=!1,"alternate"===l.direction&&c()):(l.paused=!0,l.completed||(l.completed=!0,f("loopComplete"),f("complete"),!l.passThrough&&"Promise"in window&&(a(),s(l)))))}return s(l),l.reset=function(){var e=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed="reverse"===e,l.remaining=l.loop,t=l.children;for(var n=o=t.length;n--;)l.children[n].reset();(l.reversed&&!0!==l.loop||"alternate"===e&&1===l.loop)&&l.remaining++,p(l.reversed?l.duration:0)},l.set=function(e,t){return IP(e,t),l},l.tick=function(e){i=e,n||(n=i),m((i+(r-n))*BP.speed)},l.seek=function(e){m(u(e))},l.pause=function(){l.paused=!0,d()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,UP.push(l),d(),NP||FP())},l.reverse=function(){c(),l.completed=!l.reversed,d()},l.restart=function(){l.reset(),l.play()},l.reset(),l.autoplay&&l.play(),l}function zP(e,t){for(var n=t.length;n--;)iP(e,t[n].animatable.target)&&t.splice(n,1)}"undefined"!==typeof document&&document.addEventListener("visibilitychange",(function(){document.hidden?(UP.forEach((function(e){return e.pause()})),jP=UP.slice(0),BP.running=UP=[]):jP.forEach((function(e){return e.play()}))}
2)),BP.version="3.2.0",BP.speed=1,BP.running=UP,BP.remove=function(e){for(var t=TP(e),n=UP.length;n--;){var r=UP[n],i=r.animations,o=r.children;zP(t,i);for(var a=o.length;a--;){var s=o[a],l=s.animations;zP(t,l),l.length||s.children.length||o.splice(a,1)}i.length||o.length||r.pause()}},BP.get=vP,BP.set=IP,BP.convertPx=hP,BP.path=function(e,t){var n=XR.str(e)?eP(e)[0]:e,r=t||100;return function(e){return{property:e,el:n,svg:EP(n),totalLength:_P(n)*(r/100)}}},BP.setDashoffset=function(e){var t=_P(e);return e.setAttribute("stroke-dasharray",t),t},BP.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",r=t.easing?QR(t.easing):null,i=t.grid,o=t.axis,a=t.from||0,s="first"===a,l="center"===a,c="last"===a,u=XR.arr(e),d=u?parseFloat(e[0]):parseFloat(e),h=u?parseFloat(e[1]):0,p=cP(u?e[1]:e)||0,f=t.start||0+(u?d:0),m=[],g=0;return function(e,t,v){if(s&&(a=0),l&&(a=(v-1)/2),c&&(a=v-1),!m.length){for(var y=0;y<v;y++){if(i){var b=l?(i[0]-1)/2:a%i[0],x=l?(i[1]-1)/2:Math.floor(a/i[0]),w=b-y%i[0],_=x-Math.floor(y/i[0]),E=Math.sqrt(w*w+_*_);"x"===o&&(E=-w),"y"===o&&(E=-_),m.push(E)}else m.push(Math.abs(a-y));g=Math.max.apply(Math,m)}r&&(m=m.map((function(e){return r(e/g)*g}))),"reverse"===n&&(m=m.map((function(e){return o?e<0?-1*e:-e:Math.abs(g-e)})))}return f+(u?(h-d)/g:d)*(Math.round(100*m[t])/100)+p}},BP.timeline=function(e){void 0===e&&(e={});var t=BP(e);return t.duration=0,t.add=function(n,r){var i=UP.indexOf(t),o=t.children;function a(e){e.passThrough=!0}i>-1&&UP.splice(i,1);for(var s=0;s<o.length;s++)a(o[s]);var l=sP(n,aP(zR,e));l.targets=l.targets||e.targets;var c=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=XR.und(r)?c:yP(r,c),a(t),t.seek(l.timelineOffset);var u=BP(l);a(u),o.push(u);var d=kP(o,e);return t.delay=d.delay,t.endDelay=d.endDelay,t.duration=d.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},BP.easing=QR,BP.penner=JR,BP.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};!function(e,t){e.exports=function(){var e=function(){function t(e){return i.appendChild(e.dom),e}function n(e){for(var t=0;t<i.children.length;t++)i.children[t].style.display=t===e?"block":"none";r=e}var r=0,i=document.createElement("div");i.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",i.addEventListener("click",(function(e){e.preventDefault(),n(++r%i.children.length)}),!1);var o=(performance||Date).now(),a=o,s=0,l=t(new e.Panel("FPS","#0ff","#002")),c=t(new e.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var u=t(new e.Panel("MB","#f08","#201"));return n(0),{REVISION:16,dom:i,addPanel:t,showPanel:n,begin:function(){o=(performance||Date).now()},end:function(){s++;var e=(performance||Date).now();if(c.update(e-o,200),e>a+1e3&&(l.update(1e3*s/(e-a),100),a=e,s=0,u)){var t=performance.memory;u.update(t.usedJSHeapSize/1048576,t.jsHeapSizeLimit/1048576)}return e},update:function(){o=this.end()},domElement:i,setMode:n}};return e.Panel=function(e,t,n){var r=1/0,i=0,o=Math.round,a=o(window.devicePixelRatio||1),s=80*a,l=48*a,c=3*a,u=2*a,d=3*a,h=15*a,p=74*a,f=30*a,m=document.createElement("canvas");m.width=s,m.height=l,m.style.cssText="width:80px;height:48px";var g=m.getContext("2d");return g.font="bold "+9*a+"px Helvetica,Arial,sans-serif",g.textBaseline="top",g.fillStyle=n,g.fillRect(0,0,s,l),g.fillStyle=t,g.fillText(e,c,u),g.fillRect(d,h,p,f),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(d,h,p,f),{dom:m,update:function(l,v){r=Math.min(r,l),i=Math.max(i,l),g.fillStyle=n,g.globalAlpha=1,g.fillRect(0,0,s,h),g.fillStyle=t,g.fillText(o(l)+" "+e+" ("+o(r)+"-"+o(i)+")",c,u),g.drawImage(m,d+a,h,p-a,f,d,h,p-a,f),g.fillRect(d+p-a,h,a,f),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(d+p-a,h,a,o((1-l/v)*f))}}},e}()}({exports:{}});var HP=function(e,t){void 0===t&&console.warn('THREE.OrbitControls: The second parameter "domElement" is now mandatory.'),t===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),this.object=e,this.domElement=t;var n=document.createElement("div");n.style.cssText="\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    z-index: 1000\n  ",this.hitTestBlockOverlay=n,this.enabled=!0,this.width=0,this.height=0,this.offsetLeft=0,this.offsetTop=0,this.maxBounds=[[-1/0,-1/0],[1/0,1/0]],this.needsUpdate=!1,this.newAzimuthalAngle=null,this.newPolarAngle=null,this.newTarget=null,this.target=new Jr,this.raycaster=new oh,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.25,this.enableZoom=!0,this.followMouseOnZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!1,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LE
2FT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={LEFT:bt,MIDDLE:xt,RIGHT:wt},this.touches={ONE:_t,TWO:St},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return f.phi},this.getAzimuthalAngle=function(){return f.theta},this.setAzimuthalAngle=function(e){this.newAzimuthalAngle=e},this.setPolarAngle=function(e){this.newPolarAngle=e},this.setTarget=function(e){this.newTarget=e},this.saveState=function(){r.target0.copy(r.target),r.position0.copy(r.object.position),r.zoom0=r.object.zoom},this.reset=function(){r.target.copy(r.target0),r.object.position.copy(r.position0),r.object.zoom=r.zoom0,r.object.updateProjectionMatrix(),r.dispatchEvent(i),r.update(),h=d.NONE},this.update=function(){var t=new Jr,n=(new $r).setFromUnitVectors(e.up,new Jr(0,1,0)),o=n.clone().invert(),c=new Jr,u=new $r;return function(){var e=r.object.position;t.copy(e).sub(r.target),t.applyQuaternion(n),f.setFromVector3(t),r.autoRotate&&h===d.NONE&&P(2*Math.PI/60/60*r.autoRotateSpeed),null!==r.newAzimuthalAngle&&(f.theta=r.newAzimuthalAngle,r.newAzimuthalAngle=null),null!==r.newPolarAngle&&(f.phi=r.newPolarAngle,r.newPolarAngle=null),null!==r.newTarget&&(r.target.copy(r.newTarget),r.newTarget=null),r.enableDamping?(f.theta+=m.theta*r.dampingFactor,f.phi+=m.phi*r.dampingFactor):(f.theta+=m.theta,f.phi+=m.phi),f.theta=Math.max(r.minAzimuthAngle,Math.min(r.maxAzimuthAngle,f.theta)),f.phi=Math.max(r.minPolarAngle,Math.min(r.maxPolarAngle,f.phi)),f.makeSafe(),f.radius*=g,f.radius=Math.max(r.minDistance,Math.min(r.maxDistance,f.radius));const[[w,_],[E,S]]=r.maxBounds,M=r.enableDamping?r.target.addScaledVector(v,r.dampingFactor):r.target.add(v),T=Math.min(Math.max(w,M.x),E),A=Math.min(Math.max(_,M.z),S);return r.target.set(T,0,A),t.setFromSpherical(f),t.applyQuaternion(o),e.copy(r.target).add(t),r.object.lookAt(r.target),!0===r.enableDamping?(m.theta*=1-r.dampingFactor,m.phi*=1-r.dampingFactor,v.multiplyScalar(1-r.dampingFactor)):(m.set(0,0,0),v.set(0,0,0)),g=1,y&&r.dispatchEvent(a),b&&(r.dispatchEvent(l),b=!1),x&&(r.dispatchEvent(s),x=!1),y||c.distanceToSquared(r.object.position)>p||8*(1-u.dot(r.object.quaternion))>p?(r.needsUpdate=!0,r.dispatchEvent(i),c.copy(r.object.position),u.copy(r.object.quaternion),y=!1,!0):(r.needsUpdate=!1,!1)}}(),this.dispose=function(){r.domElement.removeEventListener("contextmenu",te,!1),r.domElement.removeEventListener("mousedown",X,!1),r.domElement.removeEventListener("wheel",K,!1),r.domElement.removeEventListener("touchstart",J,!1),r.domElement.removeEventListener("touchend",ee,!1),r.domElement.removeEventListener("touchmove",Q,!1),document.removeEventListener("mousemove",Y,!1),document.removeEventListener("mouseup",Z,!1),r.domElement.removeEventListener("keydown",$,!1)};var r=this,i={type:"change"},o={type:"userPanning"},a={type:"zoomChange"},s={type:"tiltChange"},l={type:"rotationChange"},c={type:"start"},u={type:"end"},d={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},h=d.NONE,p=1e-6,f=new lh,m=new lh,g=1,v=new Jr,y=!1,b=!1,x=!1,w=new Sr,_=new Sr,E=new Sr,S=new Sr,M=new Sr,T=new Sr,A=new Sr,O=new Sr,C=new Sr;function R(){return Math.pow(.95,r.zoomSpeed)}function P(e){b=!0,m.theta-=e}function I(e){x=!0,m.phi-=e}var L=function(){var e=new Jr;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),v.add(e)}}(),k=function(){var e=new Jr;return function(t,n){!0===r.screenSpacePanning?e.setFromMatrixColumn(n,1):(e.setFromMatrixColumn(n,0),e.crossVectors(r.object.up,e)),e.multiplyScalar(t+t*f.phi*1.1),v.add(e)}}(),D=function(){var e=new Jr;return function(t,n){var i=r.domElement;if(r.object.isPerspectiveCamera){var a=r.object.position;e.copy(a).sub(r.target);var s=e.length();s*=Math.tan(r.object.fov/2*Math.PI/180),L(2*t*s/i.clientHeight,r.object.matrix),k(2*n*s/i.clientHeight,r.object.matrix)}else r.object.isOrthographicCamera?(L(t*(r.object.right-r.object.left)/r.object.zoom/i.clientWidth,r.object.matrix),k(n*(r.object.top-r.object.bottom)/r.object.zoom/i.clientHeight,r.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),r.enablePan=!1);r.dispatchEvent(o)}}();function N(e){r.object.isPerspectiveCamera?g/=e:r.object.isOrthographicCamera?(r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom*e)),r.object.updateProjectionMatrix(),y=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function U(e){r.object.isPerspectiveCamera?g*=e:r.object.isOrthographicCamera?(r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/e)),r.object.updateProjectionMatrix(),y=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function j(e){w.set(e.clientX,e.clientY)}function F(e){S.set(e.clientX,e.clientY)}function B(e){const t=r.object,n=r.raycaster;n.setFromCamera(e,t);const i=n.ray.origin,o=n.ray.direction,a=-i.y/o.y;return i.clone().add(o.multiplyScalar(a))}function z(e){if(1===e.touches.length)w.set(e.touches[0].pageX,e.touches[0].pageY);else{var t=.5*(e.touches[0].pageX+e.touches[1].pageX),n=.5*(e.touches[0].pageY+e.touches[1].pageY);w.set(t,n)}}function H(e){if(1===e.touches.length)S.set(e.touches[0].pageX,e.touches[0].pageY);else{var t=.5*(e.touches[0].pageX+e.touches[1].pageX),n=.5*(e.touches[0].pageY+e.touches[1].pageY);S.set(t,n)}}function V(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,r=Math.sqrt(t*t+n*n);A.set(0,r)}function W(e){if(1===e.touches.length)_.set(e.touches[0].pageX,e.touches[0].pageY);else{var t=.5*(e.touches[0].pageX+e.touches[1].pageX),n=.5*(e.touches[0].pageY+e.touches[1].pageY);_.set(t,n)}E.subVectors(_,w).multiplyScalar(r.rotateSpeed);var i=r.domElement;P(2*Math.PI*E.x/i.clientHeight),I(2*Math.PI*E.y/i.clientHeight),w.copy(_)}function G(e){if(1===e.touches.length)M.set(e.touches[0].pageX,e.touches[0].pageY);else{var t=.5*(e.touches[0].pageX+e.touches[1].pageX),n=.5*(e.touches[0].pageY+e.touches[1].pageY);M.set(t,n)}T.subVectors(M,S).multiplyScalar(r.panSpeed),D(T.x,T.y),S.copy(M)}function q(e){if(!(e.touches.length<2)){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,
2i=Math.sqrt(t*t+n*n);if(O.set(0,i),C.set(0,Math.pow(O.y/A.y,r.zoomSpeed)),r.followMouseOnZoom){const t=r.object,n=r.target,i=Math.max(e.touches[0].clientX-r.offsetLeft,0),o=Math.max(e.touches[0].clientY-r.offsetTop,0),a=Math.max(e.touches[1].clientX-r.offsetLeft,0),s=Math.max(e.touches[1].clientY-r.offsetTop,0),l=Math.min(i,a)+Math.abs(i-a)/2,c=Math.min(o,s)+Math.abs(o-s)/2,u=l/r.width*2-1,d=-c/r.height*2+1,h=B(new Sr(u,d));h.sub(n).setLength(h.length()*Math.abs(1-C.y)),C.y>1&&t.zoom<r.maxZoom&&(t.position.addVectors(t.position,h),n.addVectors(n,h)),C.y<1&&r.minZoom<t.zoom&&(t.position.subVectors(t.position,h),n.subVectors(n,h))}N(C.y),A.copy(O)}}function X(e){if(!1!==r.enabled){switch(e.preventDefault(),r.domElement.focus?r.domElement.focus():window.focus(),e.button){case 0:switch(r.mouseButtons.LEFT){case bt:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===r.enablePan)return;F(e),h=d.PAN}else{if(!1===r.enableRotate)return;j(e),h=d.ROTATE}break;case wt:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===r.enableRotate)return;j(e),h=d.ROTATE}else{if(!1===r.enablePan)return;F(e),h=d.PAN}break;default:h=d.NONE}break;case 1:if(r.mouseButtons.MIDDLE===xt){if(!1===r.enableZoom)return;!function(e){A.set(e.clientX,e.clientY)}(e),h=d.DOLLY}else h=d.NONE;break;case 2:switch(r.mouseButtons.RIGHT){case bt:if(!1===r.enableRotate)return;j(e),h=d.ROTATE;break;case wt:if(!1===r.enablePan)return;F(e),h=d.PAN;break;default:h=d.NONE}}h!==d.NONE&&(document.addEventListener("mousemove",Y,!1),document.addEventListener("mouseup",Z,!1),r.dispatchEvent(c))}}function Y(e){if(!1!==r.enabled)switch(e.preventDefault(),r.domElement.style.cursor="grabbing",r.domElement.contains(r.hitTestBlockOverlay)||r.domElement.appendChild(r.hitTestBlockOverlay),h){case d.ROTATE:if(!1===r.enableRotate)return;!function(e){_.set(e.clientX,e.clientY),E.subVectors(_,w).multiplyScalar(r.rotateSpeed);var t=r.domElement;P(2*Math.PI*E.x/t.clientHeight),I(2*Math.PI*E.y/t.clientHeight),w.copy(_),r.update()}(e);break;case d.DOLLY:if(!1===r.enableZoom)return;!function(e){O.set(e.clientX,e.clientY),C.subVectors(O,A),C.y>
20?N(R()):C.y<0&&U(R()),A.copy(O),r.update()}(e);break;case d.PAN:if(!1===r.enablePan)return;!function(e){M.set(e.clientX,e.clientY),T.subVectors(M,S).multiplyScalar(r.panSpeed),D(T.x,T.y),S.copy(M),r.update()}(e)}}function Z(e){!1!==r.enabled&&(document.removeEventListener("mousemove",Y,!1),document.removeEventListener("mouseup",Z,!1),r.domElement.style.cursor="grab",r.domElement.contains(r.hitTestBlockOverlay)&&r.domElement.removeChild(r.hitTestBlockOverlay),r.dispatchEvent(u),h=d.NONE)}function K(e){!1===r.enabled||!1===r.enableZoom||h!==d.NONE&&h!==d.ROTATE||(e.preventDefault(),e.stopPropagation(),r.dispatchEvent(c),r.followMouseOnZoom?function(e){const t=r.object,n=r.target,i=Math.max(e.clientX-r.offsetLeft,0),o=Math.max(e.clientY-r.offsetTop,0),a=i/r.width*2-1,s=-o/r.height*2+1,l=B(new Sr(a,s));l.sub(n).setLength(r.zoomSpeed*l.length()/20),e.deltaY<0?(t.zoom<r.maxZoom&&(t.position.addVectors(t.position,l),n.addVectors(n,l)),U(R())):e.deltaY>0&&(r.minZoom<t.zoom&&(t.position.subVectors(t.position,l),n.subVectors(n,l)),N(R())),r.update()}(e):function(e){e.deltaY<0?U(R()):e.deltaY>0&&N(R()),r.update()}(e),r.dispatchEvent(u))}function $(e){!1!==r.enabled&&!1!==r.enableKeys&&!1!==r.enablePan&&function(e){var t=!1;switch(e.keyCode){case r.keys.UP:D(0,r.keyPanSpeed),t=!0;break;case r.keys.BOTTOM:D(0,-r.keyPanSpeed),t=!0;break;case r.keys.LEFT:D(r.keyPanSpeed,0),t=!0;break;case r.keys.RIGHT:D(-r.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),r.update())}(e)}function J(e){if(!1!==r.enabled){switch(e.preventDefault(),e.touches.length){case 1:switch(r.touches.ONE){case _t:if(!1===r.enableRotate)return;z(e),h=d.TOUCH_ROTATE;break;case Et:if(!1===r.enablePan)return;H(e),h=d.TOUCH_PAN;break;default:h=d.NONE}break;case 2:switch(r.touches.TWO){case St:if(!1===r.enableZoom&&!1===r.enablePan)return;!function(e){r.enableZoom&&V(e),r.enablePan&&H(e)}(e),h=d.TOUCH_DOLLY_PAN;break;case Mt:if(!1===r.enableZoom&&!1===r.enableRotate)return;!function(e){r.enableZoom&&V(e),r.enableRotate&&z(e)}(e),h=d.TOUCH_DOLLY_ROTATE;break;default:h=d.NONE}break;default:h=d.NONE}h!==d.NONE&&r.dispatchEvent(c)}}function Q(e){if(!1!==r.enabled)switch(e.preventDefault(),e.stopPropagation(),h){case d.TOUCH_ROTATE:if(!1===r.enableRotate)return;W(e),r.update();break;case d.TOUCH_PAN:if(!1===r.enablePan)return;G(e),r.update();break;case d.TOUCH_DOLLY_PAN:if(!1===r.enableZoom&&!1===r.enablePan)return;!function(e){r.enableZoom&&q(e),r.enablePan&&G(e)}(e),r.update();break;case d.TOUCH_DOLLY_ROTATE:if(!1===r.enableZoom&&!1===r.enableRotate)return;!function(e){r.enableZoom&&q(e),r.enableRotate&&W(e)}(e),r.update();break;default:h=d.NONE}}function ee(e){!1!==r.enabled&&(r.dispatchEvent(u),h=d.NONE)}function te(e){!1!==r.enabled&&e.preventDefault()}r.domElement.addEventListener("contextmenu",te,!1),r.domElement.addEventListener("mousedown",X,!1),r.domElement.addEventListener("wheel",K,!1),r.domElement.addEventListener("touchstart",J,!1),r.domElement.addEventListener("touchend",ee,!1),r.domElement.addEventListener("touchmove",Q,!1),r.domElement.addEventListener("keydown",$,!1),-1===r.domElement.tabIndex&&(r.domElement.tabIndex=0),this.update()};(HP.prototype=Object.create(ur.prototype)).constructor=HP;var VP=function(e,t){HP.call(this,e,t),this.mouseButtons.LEFT=wt,this.mouseButtons.RIGHT=bt,this.touches.ONE=Et,this.touches.TWO=Mt};(VP.prototype=Object.create(ur.prototype)).constructor=VP;class WP extends Od{constructor(e){super(e),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register((function(e){return new KP(e)})),this.register((function(e){return new oI(e)})),this.register((function(e){return new aI(e)})),this.register((function(e){return new sI(e)})),this.register((function(e){return new JP(e)})),this.register((function(e){return new QP(e)})),this.register((function(e){return new eI(e)})),this.register((function(e){return new tI(e)})),this.register((function(e){return new ZP(e)})),this.register((function(e){return new nI(e)})),this.register((function(e){return new $P(e)})),this.register((function(e){return new iI(e)})),this.register((function(e){return new rI(e)})),this.register((function(e){return new XP(e)})),this.register((function(e){return new lI(e)})),this.register((function(e){return new cI(e)}))}load(e,t,n,r){const i=this;let o;if(""!==this.resourcePath)o=this.resourcePath;else if(""!==this.path){const t=Zd.extractUrlBase(e);o=Zd.resolveURL(t,this.path)}else o=Zd.extractUrlBase(e);this.manager.itemStart(e);const a=function(t){r?r(t):console.error(t),i.manager.itemError(e),i.manager.itemEnd(e)},s=new Pd(this.manager);s.setPath(this.path),s.setResponseType("arraybuffer"),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(e,(function(n){try{i.parse(n,o,(function(n){t(n),i.manager.itemEnd(e)}),a)}catch(gB){a(gB)}}),n,a)}setDRACOLoader(e){return this.dracoLoader=e,this}setDDSLoader(){throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}setKTX2Loader(e){return this.ktx2Loader=e,this}setMeshoptDecoder(e){return this.meshoptDecoder=e,this}register(e){return-1===this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.push(e),this}unregister(e){return-1!==this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,t,n,r){let i;const o={},a={},s=new TextDecoder;if("string"===typeof e)i=JSON.parse(e);else if(e instanceof ArrayBuffer){if(s.decode(new Uint8Array(e,0,4))===uI){try{o[qP.KHR_BINARY_GLTF]=new pI(e)}catch(c){return void(r&&r(c))}i=JSON.parse(o[qP.KHR_BINARY_GLTF].content)}else i=JSON.parse(s.decode(e))}else i=e;if(void 0===i.asset||i.asset.version[0]<2)return void(r&&r(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported.")));const l=new FI(i,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});l.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u<this.pluginCallbacks.length;u++){const e=this.pluginCallbacks[u](l);e.name||console.error("THREE.GLTFLoader: Invalid plugin found: missing name"),a[e.name]=e,o[e.name]=!0}if(i.extensionsUsed)for(let u=0;u<i.extensionsUsed.length;++u){const e=i.extensionsUsed[u],t=i.extensionsRequired||[];switch(e){case qP.KHR_MATERIALS_UNLIT:o[e]=new YP;break;case qP.KHR_DRACO_MESH_COMPRESSION:o[e]=new fI(i,this.dracoLoader);break;case qP.KHR_TEXTURE_TRANSFORM:o[e]=new mI;break;case qP.KHR_MESH_QUANTIZATION:o[e]=new gI;break;default:t.indexOf(e)>=0&&void 0===a[e]&&console.warn('THREE.GLTFLoader: Unknown extension "'+e+'".')}}l.setExtensions(o),l.setPlugins(a),l.parse(n,r)}parseAsync(e,t){const n=this;
vendor: 4,512 bytes, line 2
2return new Promise((function(r,i){n.parse(e,t,r,i)}))}}function GP(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}const qP={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class XP{constructor(e){this.parser=e,this.name=qP.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let n=0,r=t.length;n<r;n++){const r=t[n];r.extensions&&r.extensions[this.name]&&void 0!==r.extensions[this.name].light&&e._addNodeRef(this.cache,r.extensions[this.name].light)}}_loadLight(e){const t=this.parser,n="light:"+e;let r=t.cache.get(n);if(r)return r;const i=t.json,o=((i.extensions&&i.extensions[this.name]||{}).lights||[])[e];let a;const s=new yo(16777215);void 0!==o.color&&s.setRGB(o.color[0],o.color[1],o.color[2],Vn);const l=void 0!==o.range?o.range:0;switch(o.type){case"directional":a=new Yd(s),a.target.position.set(0,0,-1),a.add(a.target);break;case"point":a=new qd(s),a.distance=l;break;case"spot":a=new zd(s),a.distance=l,o.spot=o.spot||{},o.spot.innerConeAngle=void 0!==o.spot.innerConeAngle?o.spot.innerConeAngle:0,o.spot.outerConeAngle=void 0!==o.spot.outerConeAngle?o.spot.outerConeAngle:Math.PI/4,a.angle=o.spot.outerConeAngle,a.penumbra=1-o.spot.innerConeAngle/o.spot.outerConeAngle,a.target.position.set(0,0,-1),a.add(a.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+o.type)}return a.position.set(0,0,0),a.decay=2,LI(a,o),void 0!==o.intensity&&(a.intensity=o.intensity),a.name=t.createUniqueName(o.name||"light_"+e),r=Promise.resolve(a),t.cache.add(n,r),r}getDependency(e,t){if("light"===e)return this._loadLight(t)}createNodeAttachment(e){const t=this,n=this.parser,r=n.json.nodes[e],i=(r.extensions&&r.extensions[this.name]||{}).light;return void 0===i?null:this._loadLight(i).then((function(e){return n._getNodeRef(t.cache,i,e)}))}}class YP{constructor(){this.name=qP.KHR_MATERIALS_UNLIT}getMaterialType(){return _o}extendParams(e,t,n){const r=[];e.color=new yo(1,1,1),e.opacity=1;const i=t.pbrMetallicRoughness;if(i){if(Array.isArray(i.baseColorFactor)){const t=i.baseColorFactor;e.color.setRGB(t[0],t[1],t[2],Vn),e.opacity=t[3]}void 0!==i.baseColorTexture&&r.push(n.assignTexture(e,"map",i.baseColorTexture,Hn))}return Promise.all(r)}}class ZP{constructor(e){this.parser=e,this.name=qP.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(e,t){const n=this.parser.json.materials[e];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const r=n.extensions[this.name].emissiveStrength;return void 0!==r&&(t.emissiveIntensity=r),Promise.resolve()}}class KP{constructor(e){this.parser=e,this.name=qP.KHR_MATERIALS_CLEARCOAT}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?od:null}extendMaterialParams(e,t){const n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const i=[],o=r.extensions[this.name];if(void 0!==o.clearcoatFactor&&(t.clearcoat=o.clearcoatFactor),void 0!==o.clearcoatTexture&&i.push(n.assignTexture(t,"clearcoatMap",o.clearcoatTexture)),void 0!==o.clearcoatRoughnessFactor&&(t.clearcoatRoughness=o.clearcoatRoughnessFactor),void 0!==o.clearcoatRoughnessTexture&&i.push(n.assignTexture(t,"clearcoatRoughnessMap",o.clearcoatRoughnessTexture)),void 0!==o.clearcoatNormalTexture&&(i.push(n.assignTexture(t,"clearcoatNormalMap",o.clearcoatNormalTexture)),void 0!==o.clearcoatNormalTexture.scale)){const e=o.clearcoatNormalTexture.scale;t.clearcoatNormalScale=new Sr(e,e)}
vendor: 7,680 bytes, line 2
2return Promise.all(i)}}class $P{constructor(e){this.parser=e,this.name=qP.KHR_MATERIALS_IRIDESCENCE}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?od:null}extendMaterialParams(e,t){const n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const i=[],o=r.extensions[this.name];return void 0!==o.iridescenceFactor&&(t.iridescence=o.iridescenceFactor),void 0!==o.iridescenceTexture&&i.push(n.assignTexture(t,"iridescenceMap",o.iridescenceTexture)),void 0!==o.iridescenceIor&&(t.iridescenceIOR=o.iridescenceIor),void 0===t.iridescenceThicknessRange&&(t.iridescenceThicknessRange=[100,400]),void 0!==o.iridescenceThicknessMinimum&&(t.iridescenceThicknessRange[0]=o.iridescenceThicknessMinimum),void 0!==o.iridescenceThicknessMaximum&&(t.iridescenceThicknessRange[1]=o.iridescenceThicknessMaximum),void 0!==o.iridescenceThicknessTexture&&i.push(n.assignTexture(t,"iridescenceThicknessMap",o.iridescenceThicknessTexture)),Promise.all(i)}}class JP{constructor(e){this.parser=e,this.name=qP.KHR_MATERIALS_SHEEN}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?od:null}extendMaterialParams(e,t){const n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const i=[];t.sheenColor=new yo(0,0,0),t.sheenRoughness=0,t.sheen=1;const o=r.extensions[this.name];if(void 0!==o.sheenColorFactor){const e=o.sheenColorFactor;t.sheenColor.setRGB(e[0],e[1],e[2],Vn)}return void 0!==o.sheenRoughnessFactor&&(t.sheenRoughness=o.sheenRoughnessFactor),void 0!==o.sheenColorTexture&&i.push(n.assignTexture(t,"sheenColorMap",o.sheenColorTexture,Hn)),void 0!==o.sheenRoughnessTexture&&i.push(n.assignTexture(t,"sheenRoughnessMap",o.sheenRoughnessTexture)),Promise.all(i)}}class QP{constructor(e){this.parser=e,this.name=qP.KHR_MATERIALS_TRANSMISSION}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?od:null}extendMaterialParams(e,t){const n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const i=[],o=r.extensions[this.name];return void 0!==o.transmissionFactor&&(t.transmission=o.transmissionFactor),void 0!==o.transmissionTexture&&i.push(n.assignTexture(t,"transmissionMap",o.transmissionTexture)),Promise.all(i)}}class eI{constructor(e){this.parser=e,this.name=qP.KHR_MATERIALS_VOLUME}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?od:null}extendMaterialParams(e,t){const n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const i=[],o=r.extensions[this.name];t.thickness=void 0!==o.thicknessFactor?o.thicknessFactor:0,void 0!==o.thicknessTexture&&i.push(n.assignTexture(t,"thicknessMap",o.thicknessTexture)),t.attenuationDistance=o.attenuationDistance||1/0;const a=o.attenuationColor||[1,1,1];return t.attenuationColor=(new yo).setRGB(a[0],a[1],a[2],Vn),Promise.all(i)}}class tI{constructor(e){this.parser=e,this.name=qP.KHR_MATERIALS_IOR}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?od:null}extendMaterialParams(e,t){const n=this.parser.json.materials[e];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const r=n.extensions[this.name];return t.ior=void 0!==r.ior?r.ior:1.5,Promise.resolve()}}class nI{constructor(e){this.parser=e,this.name=qP.KHR_MATERIALS_SPECULAR}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?od:null}extendMaterialParams(e,t){const n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const i=[],o=r.extensions[this.name];t.specularIntensity=void 0!==o.specularFactor?o.specularFactor:1,void 0!==o.specularTexture&&i.push(n.assignTexture(t,"specularIntensityMap",o.specularTexture));const a=o.specularColorFactor||[1,1,1];return t.specularColor=(new yo).setRGB(a[0],a[1],a[2],Vn),void 0!==o.specularColorTexture&&i.push(n.assignTexture(t,"specularColorMap",o.specularColorTexture,Hn)),Promise.all(i)}}class rI{constructor(e){this.parser=e,this.name=qP.EXT_MATERIALS_BUMP}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?od:null}extendMaterialParams(e,t){const n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const i=[],o=r.extensions[this.name];return t.bumpScale=void 0!==o.bumpFactor?o.bumpFactor:1,void 0!==o.bumpTexture&&i.push(n.assignTexture(t,"bumpMap",o.bumpTexture)),Promise.all(i)}}class iI{constructor(e){this.parser=e,this.name=qP.KHR_MATERIALS_ANISOTROPY}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?od:null}extendMaterialParams(e,t){const n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const i=[],o=r.extensions[this.name];return void 0!==o.anisotropyStrength&&(t.anisotropy=o.anisotropyStrength),void 0!==o.anisotropyRotation&&(t.anisotropyRotation=o.anisotropyRotation),void 0!==o.anisotropyTexture&&i.push(n.assignTexture(t,"anisotropyMap",o.anisotropyTexture)),Promise.all(i)}}class oI{constructor(e){this.parser=e,this.name=qP.KHR_TEXTURE_BASISU}loadTexture(e){const t=this.parser,n=t.json,r=n.textures[e];if(!r.extensions||!r.extensions[this.name])return null;const i=r.extensions[this.name],o=t.options.ktx2Loader;if(!o){if(n.extensionsRequired&&n.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,i.source,o)}}class aI{constructor(e){this.parser=e,this.name=qP.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;const o=i.extensions[t],a=r.images[o.source];let s=n.textureLoader;if(a.uri){const e=n.options.manager.getHandler(a.uri);null!==e&&(s=e)}return this.detectSupport().then((function(i){if(i)return n.loadTextureImage(e,o.source,s);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return n.loadTexture(e)}))}detectSupport(){return this.isSupported||(this.isSupported=new Promise((function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(1===t.height)}}))),this.isSupported}}class sI{constructor(e){this.parser=e,this.name=qP.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;const o=i.extensions[t],a=r.images[o.source];let s=n.textureLoader;if(a.uri){const e=n.options.manager.getHandler(a.uri);null!==e&&(s=e)}return this.detectSupport().then((function(i){if(i)return n.loadTextureImage(e,o.source,s);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return n.loadTexture(e)}))}detectSupport(){return this.isSupported||(this.isSupported=new Promise((function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdj
2FDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(1===t.height)}}))),this.isSupported}}class lI{constructor(e){this.name=qP.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){const e=n.extensions[this.name],r=this.parser.getDependency("buffer",e.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then((function(t){const n=e.byteOffset||0,r=e.byteLength||0,o=e.count,a=e.byteStride,s=new Uint8Array(t,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(o,a,s,e.mode,e.filter).then((function(e){return e.buffer})):i.ready.then((function(){const t=new ArrayBuffer(o*a);return i.decodeGltfBuffer(new Uint8Array(t),o,a,s,e.mode,e.filter),t}))}))}return null}}class cI{constructor(e){this.name=qP.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||void 0===n.mesh)return null;const r=t.meshes[n.mesh];for(const s of r.primitives)if(s.mode!==xI.TRIANGLES&&s.mode!==xI.TRIANGLE_STRIP&&s.mode!==xI.TRIANGLE_FAN&&void 0!==s.mode)return null;const i=n.extensions[this.name].attributes,o=[],a={};for(const s in i)o.push(this.parser.getDependency("accessor",i[s]).then((e=>(a[s]=e,a[s]))));return o.length<1?null:(o.push(this.parser.createNodeMesh(e)),Promise.all(o).then((e=>{const t=e.pop(),n=t.isGroup?t.children:[t],r=e[0].count,i=[];for(const o of n){const e=new Oi,t=new Jr,n=new $r,s=new Jr(1,1,1),l=new Hc(o.geometry,o.material,r);for(let i=0;i<r;i++)a.TRANSLATION&&t.fromBufferAttribute(a.TRANSLATION,i),a.ROTATION&&n.fromBufferAttribute(a.ROTATION,i),a.SCALE&&s.fromBufferAttribute(a.SCALE,i),l.setMatrixAt(i,e.compose(t,n,s));for(const r in a)if("_COLOR_0"===r){const e=a[r];l.instanceColor=new kc(e.array,e.itemSize,e.normalized)}else"TRANSLATION"!==r&&"ROTATION"!==r&&"SCALE"!==r&&o.geometry.setAttribute(r,a[r]);to.prototype.copy.call(l,o),this.parser.assignFinalMaterial(l),i.push(l)}return t.isGroup?(t.clear(),t.add(...i),t):i[0]})))}}const uI="glTF",dI=1313821514,hI=5130562;class pI{constructor(e){this.name=qP.KHR_BINARY_GLTF,this.content=null,this.body=null;const t=new DataView(e,0,12),n=new TextDecoder;if(this.header={magic:n.decode(new Uint8Array(e.slice(0,4))),version:t.getUint32(4,!0),length:t.getUint32(8,!0)},this.header.magic!==uI)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const r=this.header.length-12,i=new DataView(e,12);let o=0;for(;o<r;){const t=i.getUint32(o,!0);o+=4;const r=i.getUint32(o,!0);if(o+=4,r===dI){const r=new Uint8Array(e,12+o,t);this.content=n.decode(r)}else if(r===hI){const n=12+o;this.body=e.slice(n,n+t)}o+=t}if(null===this.content)throw new Error("THREE.GLTFLoader: JSON content not found.")}}class fI{constructor(e,t){if(!t)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=qP.KHR_DRACO_MESH_COMPRESSION,this.json=e,this.dracoLoader=t,this.dracoLoader.preload()}decodePrimitive(e,t){const n=this.json,r=this.dracoLoader,i=e.extensions[this.name].bufferView,o=e.extensions[this.name].attributes,a={},s={},l={};for(const c in o){const e=MI[c]||c.toLowerCase();a[e]=o[c]}for(const c in e.attributes){const t=MI[c]||c.toLowerCase();if(void 0!==o[c]){const r=n.accessors[e.attributes[c]],i=wI[r.componentType];l[t]=i.name,s[t]=!0===r.normalized}}return t.getDependency("bufferView",i).then((function(e){return new Promise((function(t,n){r.decodeDracoFile(e,(function(e){for(const t in e.attributes){const n=e.attributes[t],r=s[t];void 0!==r&&(n.normalized=r)}t(e)}),a,l,Vn,n)}))}))}}class mI{constructor(){this.name=qP.KHR_TEXTURE_TRANSFORM}extendTexture(e,t){return void 0!==t.texCoord&&t.texCoord!==e.channel||void 0!==t.offset||void 0!==t.rotation||void 0!==t.scale?(e=e.clone(),void 0!==t.texCoord&&(e.channel=t.texCoord),void 0!==t.offset&&e.offset.fromArray(t.offset),void 0!==t.rotation&&(e.rotation=t.rotation),void 0!==t.scale&&e.repeat.fromArray(t.scale),e.needsUpdate=!0,e):e}}class gI{constructor(){this.name=qP.KHR_MESH_QUANTIZATION}}class vI extends dd{constructor(e,t,n,r){super(e,t,n,r)}copySampleValue_(e){const t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r*3+r;for(let o=0;o!==r;o++)t[o]=n[i+o];return t}interpolate_(e,t,n,r){const i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=2*a,l=3*a,c=r-t,u=(n-t)/c,d=u*u,h=d*u,p=e*l,f=p-l,m=-2*h+3*d,g=h-d,v=1-m,y=g-d+u;for(let b=0;b!==a;b++){const e=o[f+b+a],t=o[f+b+s]*c,n=o[p+b+a],r=o[p+b]*c;i[b]=v*e+y*t+m*n+g*r}return i}}const yI=new $r;class bI extends vI{interpolate_(e,t,n,r){const i=super.interpolate_(e,t,n,r);return yI.fromArray(i).normalize().toArray(i),i}}const xI={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123},wI={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},_I={9728:gn,9729:bn,9984:vn,9985:xn,9986:yn,9987:wn},EI={33071:fn,33648:mn,10497:pn},SI={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},MI={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},TI={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},AI={CUBICSPLINE:void 0,LINEAR:Fn,STEP:jn},OI="OPAQUE",CI="MASK",RI="BLEND";function PI(e){return void 0===e.DefaultMaterial&&(e.DefaultMaterial=new id({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:Ct})),e.DefaultMaterial}
2function II(e,t,n){for(const r in n.extensions)void 0===e[r]&&(t.userData.gltfExtensions=t.userData.gltfExtensions||{},t.userData.gltfExtensions[r]=n.extensions[r])}function LI(e,t){void 0!==t.extras&&("object"===typeof t.extras?Object.assign(e.userData,t.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+t.extras))}function kI(e,t){if(e.updateMorphTargets(),void 0!==t.weights)for(let n=0,r=t.weights.length;n<r;n++)e.morphTargetInfluences[n]=t.weights[n];if(t.extras&&Array.isArray(t.extras.targetNames)){const n=t.extras.targetNames;if(e.morphTargetInfluences.length===n.length){e.morphTargetDictionary={};for(let t=0,r=n.length;t<r;t++)e.morphTargetDictionary[n[t]]=t}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}function DI(e){let t;const n=e.extensions&&e.extensions[qP.KHR_DRACO_MESH_COMPRESSION];if(t=n?"draco:"+n.bufferView+":"+n.indices+":"+NI(n.attributes):e.indices+":"+NI(e.attributes)+":"+e.mode,void 0!==e.targets)for(let r=0,i=e.targets.length;r<i;r++)t+=":"+NI(e.targets[r]);return t}function NI(e){let t="";const n=Object.keys(e).sort();for(let r=0,i=n.length;r<i;r++)t+=n[r]+":"+e[n[r]]+";";return t}function UI(e){switch(e){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}const jI=new Oi;class FI{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new GP,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let n=!1,r=!1,i=-1;"undefined"!==typeof navigator&&(n=!0===/^((?!chrome|android).)*safari/i.test(navigator.userAgent),r=navigator.userAgent.indexOf("Firefox")>-1,i=r?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),"undefined"===typeof createImageBitmap||n||r&&i<98?this.textureLoader=new kd(this.options.manager):this.textureLoader=new Kd(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new Pd(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),"use-credentials"===this.options.crossOrigin&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll((function(e){return e._markDefs&&e._markDefs()})),Promise.all(this._invokeAll((function(e){return e.beforeRoot&&e.beforeRoot()}))).then((function(){return Promise.all([n.getDependencies("scene"),n.getDependencies("animation"),n.getDependencies("camera")])})).then((function(t){const o={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};return II(i,o,r),LI(o,r),Promise.all(n._invokeAll((function(e){return e.afterRoot&&e.afterRoot(o)}
vendor: 6,050 bytes, line 2
2))).then((function(){e(o)}))})).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let r=0,i=t.length;r<i;r++){const n=t[r].joints;for(let t=0,r=n.length;t<r;t++)e[n[t]].isBone=!0}for(let r=0,i=e.length;r<i;r++){const t=e[r];void 0!==t.mesh&&(this._addNodeRef(this.meshCache,t.mesh),void 0!==t.skin&&(n[t.mesh].isSkinnedMesh=!0)),void 0!==t.camera&&this._addNodeRef(this.cameraCache,t.camera)}}_addNodeRef(e,t){void 0!==t&&(void 0===e.refs[t]&&(e.refs[t]=e.uses[t]=0),e.refs[t]++)}_getNodeRef(e,t,n){if(e.refs[t]<=1)return n;const r=n.clone(),i=(e,t)=>{const n=this.associations.get(e);null!=n&&this.associations.set(t,n);for(const[r,o]of e.children.entries())i(o,t.children[r])};return i(n,r),r.name+="_instance_"+e.uses[t]++,r}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let n=0;n<t.length;n++){const r=e(t[n]);if(r)return r}return null}_invokeAll(e){const t=Object.values(this.plugins);t.unshift(this);const n=[];for(let r=0;r<t.length;r++){const i=e(t[r]);i&&n.push(i)}return n}getDependency(e,t){const n=e+":"+t;let r=this.cache.get(n);if(!r){switch(e){case"scene":r=this.loadScene(t);break;case"node":r=this._invokeOne((function(e){return e.loadNode&&e.loadNode(t)}));break;case"mesh":r=this._invokeOne((function(e){return e.loadMesh&&e.loadMesh(t)}));break;case"accessor":r=this.loadAccessor(t);break;case"bufferView":r=this._invokeOne((function(e){return e.loadBufferView&&e.loadBufferView(t)}));break;case"buffer":r=this.loadBuffer(t);break;case"material":r=this._invokeOne((function(e){return e.loadMaterial&&e.loadMaterial(t)}));break;case"texture":r=this._invokeOne((function(e){return e.loadTexture&&e.loadTexture(t)}));break;case"skin":r=this.loadSkin(t);break;case"animation":r=this._invokeOne((function(e){return e.loadAnimation&&e.loadAnimation(t)}));break;case"camera":r=this.loadCamera(t);break;default:if(r=this._invokeOne((function(n){return n!=this&&n.getDependency&&n.getDependency(e,t)})),!r)throw new Error("Unknown type: "+e)}this.cache.add(n,r)}return r}getDependencies(e){let t=this.cache.get(e);if(!t){const n=this,r=this.json[e+("mesh"===e?"es":"s")]||[];t=Promise.all(r.map((function(t,r){return n.getDependency(e,r)}))),this.cache.add(e,t)}return t}loadBuffer(e){const t=this.json.buffers[e],n=this.fileLoader;if(t.type&&"arraybuffer"!==t.type)throw new Error("THREE.GLTFLoader: "+t.type+" buffer type is not supported.");if(void 0===t.uri&&0===e)return Promise.resolve(this.extensions[qP.KHR_BINARY_GLTF].body);const r=this.options;return new Promise((function(e,i){n.load(Zd.resolveURL(t.uri,r.path),e,void 0,(function(){i(new Error('THREE.GLTFLoader: Failed to load buffer "'+t.uri+'".'))}))}))}loadBufferView(e){const t=this.json.bufferViews[e];return this.getDependency("buffer",t.buffer).then((function(e){const n=t.byteLength||0,r=t.byteOffset||0;return e.slice(r,r+n)}))}loadAccessor(e){const t=this,n=this.json,r=this.json.accessors[e];if(void 0===r.bufferView&&void 0===r.sparse){const e=SI[r.type],t=wI[r.componentType],n=!0===r.normalized,i=new t(r.count*e);return Promise.resolve(new Oo(i,e,n))}const i=[];return void 0!==r.bufferView?i.push(this.getDependency("bufferView",r.bufferView)):i.push(null),void 0!==r.sparse&&(i.push(this.getDependency("bufferView",r.sparse.indices.bufferView)),i.push(this.getDependency("bufferView",r.sparse.values.bufferView))),Promise.all(i).then((function(e){const i=e[0],o=SI[r.type],a=wI[r.componentType],s=a.BYTES_PER_ELEMENT,l=s*o,c=r.byteOffset||0,u=void 0!==r.bufferView?n.bufferViews[r.bufferView].byteStride:void 0,d=!0===r.normalized;let h,p;if(u&&u!==l){const e=Math.floor(c/u),n="InterleavedBuffer:"+r.bufferView+":"+r.componentType+":"+e+":"+r.count;let l=t.cache.get(n);l||(h=new a(i,e*u,r.count*u/s),l=new gc(h,u/s),t.cache.add(n,l)),p=new yc(l,o,c%u/s,d)}else h=null===i?new a(r.count*o):new a(i,c,r.count*o),p=new Oo(h,o,d);if(void 0!==r.sparse){const t=SI.SCALAR,n=wI[r.sparse.indices.componentType],s=r.sparse.indices.byteOffset||0,l=r.sparse.values.byteOffset||0,c=new n(e[1],s,r.sparse.count*t),u=new a(e[2],l,r.sparse.count*o);null!==i&&(p=new Oo(p.array.slice(),p.itemSize,p.normalized));for(let e=0,r=c.length;e<r;e++){const t=c[e];if(p.setX(t,u[e*o]),o>=2&&p.setY(t,u[e*o+1]),o>=3&&p.setZ(t,u[e*o+2]),o>=4&&p.setW(t,u[e*o+3]),o>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return p}))}loadTexture(e){const t=this.json,n=this.options,r=t.textures[e].source,i=t.images[r];let o=this.textureLoader;if(i.uri){const e=n.manager.getHandler(i.uri);null!==e&&(o=e)}return this.loadTextureImage(e,r,o)}loadTextureImage(e,t,n){const r=this,i=this.json,o=i.textures[e],a=i.images[t],s=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[s])return this.textureCache[s];const l=this.loadImageSource(t,n).then((function(t){t.flipY=!1,t.name=o.name||a.name||"",""===t.name&&"string"===typeof a.uri&&!1===a.uri.startsWith("data:image/")&&(t.name=a.uri);const n=(i.samplers||{})[o.sampler]||{};return t.magFilter=_I[n.magFilter]||bn,t.minFilter=_I[n.minFilter]||wn,t.wrapS=EI[n.wrapS]||pn,t.wrapT=EI[n.wrapT]||pn,r.associations.set(t,{textures:e}),t})).catch((function(){return null}));return this.textureCache[s]=l,l}loadImageSource(e,t){const n=this,r=this.json,i=this.options;if(void 0!==this.sourceCache[e])return this.sourceCache[e].then((e=>e.clone()));const o=r.images[e],a=self.URL||self.webkitURL;let s=o.uri||"",l=!1;if(void 0!==o.bufferView)s=n.getDependency("bufferView",o.bufferView).then((function(e){l=!0;const t=new Blob([e],{type:o.mimeType});return s=a.createObjectURL(t),s}));else if(void 0===o.uri)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const c=Promise.resolve(s).then((function(e){return new Promise((function(n,r){let o=n;!0===t.isImageBitmapLoader&&(o=function(e){const t=new Gr(e);t.needsUpdate=!0,n(t)}),t.load(Zd.resolveURL(e,i.path),o,void 0,r)}))})).then((function(e){var t;return!0===l&&a.revokeObjectURL(s),e.userData.mimeType=o.mimeType||((t=o.uri).search(/\.jpe?g($|\?)/i)>
vendor: 16,629 bytes, line 2
20||0===t.search(/^data\:image\/jpeg/)?"image/jpeg":t.search(/\.webp($|\?)/i)>0||0===t.search(/^data\:image\/webp/)?"image/webp":"image/png"),e})).catch((function(e){throw console.error("THREE.GLTFLoader: Couldn't load texture",s),e}));return this.sourceCache[e]=c,c}assignTexture(e,t,n,r){const i=this;return this.getDependency("texture",n.index).then((function(o){if(!o)return null;if(void 0!==n.texCoord&&n.texCoord>0&&((o=o.clone()).channel=n.texCoord),i.extensions[qP.KHR_TEXTURE_TRANSFORM]){const e=void 0!==n.extensions?n.extensions[qP.KHR_TEXTURE_TRANSFORM]:void 0;if(e){const t=i.associations.get(o);o=i.extensions[qP.KHR_TEXTURE_TRANSFORM].extendTexture(o,e),i.associations.set(o,t)}}return void 0!==r&&(o.colorSpace=r),e[t]=o,o}))}assignFinalMaterial(e){const t=e.geometry;let n=e.material;const r=void 0===t.attributes.tangent,i=void 0!==t.attributes.color,o=void 0===t.attributes.normal;if(e.isPoints){const e="PointsMaterial:"+n.uuid;let t=this.cache.get(e);t||(t=new eu,wo.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){const e="LineBasicMaterial:"+n.uuid;let t=this.cache.get(e);t||(t=new Vc,wo.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,this.cache.add(e,t)),n=t}if(r||i||o){let e="ClonedMaterial:"+n.uuid+":";r&&(e+="derivative-tangents:"),i&&(e+="vertex-colors:"),o&&(e+="flat-shading:");let t=this.cache.get(e);t||(t=n.clone(),i&&(t.vertexColors=!0),o&&(t.flatShading=!0),r&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}e.material=n}getMaterialType(){return id}loadMaterial(e){const t=this,n=this.json,r=this.extensions,i=n.materials[e];let o;const a={},s=[];if((i.extensions||{})[qP.KHR_MATERIALS_UNLIT]){const e=r[qP.KHR_MATERIALS_UNLIT];o=e.getMaterialType(),s.push(e.extendParams(a,i,t))}else{const n=i.pbrMetallicRoughness||{};if(a.color=new yo(1,1,1),a.opacity=1,Array.isArray(n.baseColorFactor)){const e=n.baseColorFactor;a.color.setRGB(e[0],e[1],e[2],Vn),a.opacity=e[3]}void 0!==n.baseColorTexture&&s.push(t.assignTexture(a,"map",n.baseColorTexture,Hn)),a.metalness=void 0!==n.metallicFactor?n.metallicFactor:1,a.roughness=void 0!==n.roughnessFactor?n.roughnessFactor:1,void 0!==n.metallicRoughnessTexture&&(s.push(t.assignTexture(a,"metalnessMap",n.metallicRoughnessTexture)),s.push(t.assignTexture(a,"roughnessMap",n.metallicRoughnessTexture))),o=this._invokeOne((function(t){return t.getMaterialType&&t.getMaterialType(e)})),s.push(Promise.all(this._invokeAll((function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,a)}))))}!0===i.doubleSided&&(a.side=2);const l=i.alphaMode||OI;if(l===RI?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,l===CI&&(a.alphaTest=void 0!==i.alphaCutoff?i.alphaCutoff:.5)),void 0!==i.normalTexture&&o!==_o&&(s.push(t.assignTexture(a,"normalMap",i.normalTexture)),a.normalScale=new Sr(1,1),void 0!==i.normalTexture.scale)){const e=i.normalTexture.scale;a.normalScale.set(e,e)}if(void 0!==i.occlusionTexture&&o!==_o&&(s.push(t.assignTexture(a,"aoMap",i.occlusionTexture)),void 0!==i.occlusionTexture.strength&&(a.aoMapIntensity=i.occlusionTexture.strength)),void 0!==i.emissiveFactor&&o!==_o){const e=i.emissiveFactor;a.emissive=(new yo).setRGB(e[0],e[1],e[2],Vn)}return void 0!==i.emissiveTexture&&o!==_o&&s.push(t.assignTexture(a,"emissiveMap",i.emissiveTexture,Hn)),Promise.all(s).then((function(){const n=new o(a);return i.name&&(n.name=i.name),LI(n,i),t.associations.set(n,{materials:e}),i.extensions&&II(r,n,i),n}))}createUniqueName(e){const t=rh.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,n=this.extensions,r=this.primitiveCache;function i(e){return n[qP.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then((function(n){return BI(n,e,t)}))}const o=[];for(let a=0,s=e.length;a<s;a++){const n=e[a],s=DI(n),l=r[s];if(l)o.push(l.promise);else{let e;e=n.extensions&&n.extensions[qP.KHR_DRACO_MESH_COMPRESSION]?i(n):BI(new Fo,n,t),r[s]={primitive:n,promise:e},o.push(e)}}return Promise.all(o)}loadMesh(e){const t=this,n=this.json,r=this.extensions,i=n.meshes[e],o=i.primitives,a=[];for(let s=0,l=o.length;s<l;s++){const e=void 0===o[s].material?PI(this.cache):this.getDependency("material",o[s].material);a.push(e)}return a.push(t.loadGeometries(o)),Promise.all(a).then((function(n){const a=n.slice(0,n.length-1),s=n[n.length-1],l=[];for(let u=0,d=s.length;u<d;u++){const n=s[u],c=o[u];let d;const h=a[u];if(c.mode===xI.TRIANGLES||c.mode===xI.TRIANGLE_STRIP||c.mode===xI.TRIANGLE_FAN||void 0===c.mode)d=!0===i.isSkinnedMesh?new Oc(n,h):new ra(n,h),!0===d.isSkinnedMesh&&d.normalizeSkinWeights(),c.mode===xI.TRIANGLE_STRIP?d.geometry=rp(d.geometry,1):c.mode===xI.TRIANGLE_FAN&&(d.geometry=rp(d.geometry,2));else if(c.mode===xI.LINES)d=new Jc(n,h);else if(c.mode===xI.LINE_STRIP)d=new Zc(n,h);else if(c.mode===xI.LINE_LOOP)d=new Qc(n,h);else{if(c.mode!==xI.POINTS)throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+c.mode);d=new ou(n,h)}Object.keys(d.geometry.morphAttributes).length>0&&kI(d,i),d.name=t.createUniqueName(i.name||"mesh_"+e),LI(d,i),c.extensions&&II(r,d,c),t.assignFinalMaterial(d),l.push(d)}for(let r=0,i=l.length;r<i;r++)t.associations.set(l[r],{meshes:e,primitives:r});if(1===l.length)return i.extensions&&II(r,l[0],i),l[0];const c=new oc;i.extensions&&II(r,c,i),t.associations.set(c,{meshes:e});for(let e=0,t=l.length;e<t;e++)c.add(l[e]);return c}))}loadCamera(e){let t;const n=this.json.cameras[e],r=n[n.type];if(r)return"perspective"===n.type?t=new ma(Er.radToDeg(r.yfov),r.aspectRatio||1,r.znear||1,r.zfar||2e6):"orthographic"===n.type&&(t=new Ha(-r.xmag,r.xmag,r.ymag,-r.ymag,r.znear,r.zfar)),n.name&&(t.name=this.createUniqueName(n.name)),LI(t,n),Promise.resolve(t);console.warn("THREE.GLTFLoader: Missing camera parameters.")}loadSkin(e){const t=this.json.skins[e],n=[];for(let r=0,i=t.joints.length;r<i;r++)n.push(this._loadNodeShallow(t.joints[r]));return void 0!==t.inverseBindMatrices?n.push(this.getDependency("accessor",t.inverseBindMatrices)):n.push(null),Promise.all(n).then((function(e){const n=e.pop(),r=e,i=[],o=[];for(let a=0,s=r.length;a<s;a++){const e=r[a];if(e){i.push(e);const t=new Oi;null!==n&&t.fromArray(n.array,16*a),o.push(t)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',t.joints[a])}return new Lc(i,o)}))}loadAnimation(e){const t=this.json,n=this,r=t.animations[e],i=r.name?r.name:"animation_"+e,o=[],a=[],s=[],l=[],c=[];for(let u=0,d=r.channels.length;u<d;u++){const e=r.channels[u],t=r.samplers[e.sampler],n=e.target,i=n.node,d=void 0!==r.parameters?r.parameters[t.input]:t.input,h=void 0!==r.parameters?r.parameters[t.output]:t.output;void 0!==n.node&&(o.push(this.getDependency("node",i)),a.push(this.getDependency("accessor",d)),s.push(this.getDependency("accessor",h)),l.push(t),c.push(n))}return Promise.all([Promise.all(o),Promise.all(a),Promise.all(s),Promise.all(l),Promise.all(c)]).then((function(e){const t=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=[];for(let i=0,c=t.length;i<c;i++){const e=t[i],c=r[i],u=o[i],d=a[i],h=s[i];if(void 0===e)continue;e.updateMatrix&&e.updateMatrix();const p=n._createAnimationTracks(e,c,u,d,h);if(p)for(let t=0;t<p.length;t++)l.push(p[t])}return new Ed(i,void 0,l)}))}createNodeMesh(e){const t=this.json,n=this,r=t.nodes[e];return void 0===r.mesh?null:n.getDependency("mesh",r.mesh).then((function(e){const t=n._getNodeRef(n.meshCache,r.mesh,e);return void 0!==r.weights&&t.traverse((function(e){if(e.isMesh)for(let t=0,n=r.weights.length;t<n;t++)e.morphTargetInfluences[t]=r.weights[t]})),t}))}loadNode(e){const t=this,n=this.json.nodes[e],r=t._loadNodeShallow(e),i=[],o=n.children||[];for(let s=0,l=o.length;s<l;s++)i.push(t.getDependency("node",o[s]));const a=void 0===n.skin?Promise.resolve(null):t.getDependency("skin",n.skin);return Promise.all([r,Promise.all(i),a]).then((function(e){const t=e[0],n=e[1],r=e[2];null!==r&&t.traverse((function(e){e.isSkinnedMesh&&e.bind(r,jI)}));for(let i=0,o=n.length;i<o;i++)t.add(n[i]);return t}))}_loadNodeShallow(e){const t=this.json,n=this.extensions,r=this;if(void 0!==this.nodeCache[e])return this.nodeCache[e];const i=t.nodes[e],o=i.name?r.createUniqueName(i.name):"",a=[],s=r._invokeOne((function(t){return t.createNodeMesh&&t.createNodeMesh(e)}));return s&&a.push(s),void 0!==i.camera&&a.push(r.getDependency("camera",i.camera).then((function(e){return r._getNodeRef(r.cameraCache,i.camera,e)}))),r._invokeAll((function(t){return t.createNodeAttachment&&t.createNodeAttachment(e)})).forEach((function(e){a.push(e)})),this.nodeCache[e]=Promise.all(a).then((function(t){let a;if(a=!0===i.isBone?new Cc:t.length>1?new oc:1===t.length?t[0]:new to,a!==t[0])for(let e=0,n=t.length;e<n;e++)a.add(t[e]);if(i.name&&(a.userData.name=i.name,a.name=o),LI(a,i),i.extensions&&II(n,a,i),void 0!==i.matrix){const e=new Oi;e.fromArray(i.matrix),a.applyMatrix4(e)}else void 0!==i.translation&&a.position.fromArray(i.translation),void 0!==i.rotation&&a.quaternion.fromArray(i.rotation),void 0!==i.scale&&a.scale.fromArray(i.scale);return r.associations.has(a)||r.associations.set(a,{}),r.associations.get(a).nodes=e,a})),this.nodeCache[e]}loadScene(e){const t=this.extensions,n=this.json.scenes[e],r=this,i=new oc;n.name&&(i.name=r.createUniqueName(n.name)),LI(i,n),n.extensions&&II(t,i,n);const o=n.nodes||[],a=[];for(let s=0,l=o.length;s<l;s++)a.push(r.getDependency("node",o[s]));return Promise.all(a).then((function(e){for(let t=0,n=e.length;t<n;t++)i.add(e[t]);return r.associations=(e=>{const t=new Map;for(const[n,i]of r.associations)(n instanceof wo||n instanceof Gr)&&t.set(n,i);return e.traverse((e=>{const n=r.associations.get(e);null!=n&&t.set(e,n)})),t})(i),i}))}_createAnimationTracks(e,t,n,r,i){const o=[],a=e.name?e.name:e.uuid,s=[];let l;switch(TI[i.path]===TI.weights?e.traverse((function(e){e.morphTargetInfluences&&s.push(e.name?e.name:e.uuid)})):s.push(a),TI[i.path]){case TI.weights:l=yd;break;case TI.rotation:l=xd;break;case TI.position:case TI.scale:l=_d;break;default:if(1===n.itemSize)l=yd;else l=_d}const c=void 0!==r.interpolation?AI[r.interpolation]:Fn,u=this._getArrayFromAccessor(n);for(let d=0,h=s.length;d<h;d++){const e=new l(s[d]+"."+TI[i.path],t.array,u,c);"CUBICSPLINE"===r.interpolation&&this._createCubicSplineTrackInterpolant(e),o.push(e)}return o}_getArrayFromAccessor(e){let t=e.array;if(e.normalized){const e=UI(t.constructor),n=new Float32Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=t[r]*e;t=n}return t}_createCubicSplineTrackInterpolant(e){e.createInterpolant=function(e){return new(this instanceof xd?bI:vI)(this.times,this.values,this.getValueSize()/3,e)},e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}}function BI(e,t,n){const r=t.attributes,i=[];function o(t,r){return n.getDependency("accessor",t).then((function(t){e.setAttribute(r,t)}))}for(const a in r){const t=MI[a]||a.toLowerCase();t in e.attributes||i.push(o(r[a],t))}if(void 0!==t.indices&&!e.index){const r=n.getDependency("accessor",t.indices).then((function(t){e.setIndex(t)}));i.push(r)}return Nr.workingColorSpace!==Vn&&"COLOR_0"in r&&console.warn('THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "'.concat(Nr.workingColorSpace,'" not supported.')),LI(e,t),function(e,t,n){const r=t.attributes,i=new ti;if(void 0===r.POSITION)return;{const e=n.json.accessors[r.POSITION],t=e.min,o=e.max;if(void 0===t||void 0===o)return void console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");if(i.set(new Jr(t[0],t[1],t[2]),new Jr(o[0],o[1],o[2])),e.normalized){const t=UI(wI[e.componentType]);i.min.multiplyScalar(t),i.max.multiplyScalar(t)}}const o=t.targets;if(void 0!==o){const e=new Jr,t=new Jr;for(let r=0,i=o.length;r<i;r++){const i=o[r];if(void 0!==i.POSITION){const r=n.json.accessors[i.POSITION],o=r.min,a=r.max;if(void 0!==o&&void 0!==a){if(t.setX(Math.max(Math.abs(o[0]),Math.abs(a[0]))),t.setY(Math.max(Math.abs(o[1]),Math.abs(a[1]))),t.setZ(Math.max(Math.abs(o[2]),Math.abs(a[2]))),r.normalized){const e=UI(wI[r.componentType]);t.multiplyScalar(e)}e.max(t)}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}i.expandByVector(e)}e.boundingBox=i;const a=new bi;i.getCenter(a.center),a.radius=i.min.distanceTo(i.max)/2,e.boundingSphere=a}(e,t,n),Promise.all(i).then((function(){return void 0!==t.targets?function(e,t,n){let r=!1,i=!1,o=!1;for(let c=0,u=t.length;c<u;c++){const e=t[c];if(void 0!==e.POSITION&&(r=!0),void 0!==e.NORMAL&&(i=!0),void 0!==e.COLOR_0&&(o=!0),r&&i&&o)break}if(!r&&!i&&!o)return Promise.resolve(e);const a=[],s=[],l=[];for(let c=0,u=t.length;c<u;c++){const u=t[c];if(r){const t=void 0!==u.POSITION?n.getDependency("accessor",u.POSITION):e.attributes.position;a.push(t)}if(i){const t=void 0!==u.NORMAL?n.getDependency("accessor",u.NORMAL):e.attributes.normal;s.push(t)}if(o){const t=void 0!==u.COLOR_0?n.getDependency("accessor",u.COLOR_0):e.attributes.color;l.push(t)}}return Promise.all([Promise.all(a),Promise.all(s),Promise.all(l)]).then((function(t){const n=t[0],a=t[1],s=t[2];return r&&(e.morphAttributes.position=n),i&&(e.morphAttributes.normal=a),o&&(e.morphAttributes.color=s),e.morphTargetsRelative=!0,e}))}(e,t.targets,n):e}))}const zI=new WeakMap;class HI extends Od{constructor(e){super(e),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(e){return this.decoderPath=e,this}setDecoderConfig(e){return this.decoderConfig=e,this}setWorkerLimit(e){return this.workerLimit=e,this}load(e,t,n,r){const i=new Pd(this.manager);i.setPath(this.path),i.setResponseType("arraybuffer"),i.setRequestHeader(this.requestHeader),i.setWithCredentials(this.withCredentials),i.load(e,(e=>{this.parse(e,t,r)}),n,r)}parse(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};this.decodeDracoFile(e,t,null,null,Hn).catch(n)}decodeDracoFile(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Vn,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:()=>{};const a={attributeIDs:n||this.defaultAttributeIDs,attributeTypes:r||this.defaultAttributeTypes,useUniqueIDs:!!n,vertexColorSpace:i};return this.decodeGeometry(e,a).then(t).catch(o)}decodeGeometry(e,t){const n=JSON.stringify(t);if(zI.has(e)){const t=zI.get(e);if(t.key===n)return t.promise;if(0===e.byteLength)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let r;const i=this.workerNextTaskID++,o=e.byteLength,a=this._getWorker(i,o).then((n=>(r=n,new Promise(((n,o)=>{r._callbacks[i]={resolve:n,reject:o},r.postMessage({type:"decode",id:i,taskConfig:t,buffer:e},[e])}))))).then((e=>this._createGeometry(e.geometry)));return a.catch((()=>!0)).then((()=>{r&&i&&this._releaseTask(r,i)})),zI.set(e,{key:n,promise:a}),a}_createGeometry(e){const t=new Fo;e.index&&t.setIndex(new Oo(e.index.array,1));for(let n=0;n<e.attributes.length;n++){const r=e.attributes[n],i=r.name,o=r.array,a=r.itemSize,s=new Oo(o,a);"color"===i&&(this._assignVertexColorSpace(s,r.vertexColorSpace),s.normalized=o instanceof Float32Array===!1),t.setAttribute(i,s)}return t}_assignVertexColorSpace(e,t){if(t!==Hn)return;const n=new yo;for(let r=0,i=e.count;r<i;r++)n.fromBufferAttribute(e,r).convertSRGBToLinear(),e.setXYZ(r,n.r,n.g,n.b)}_loadLibrary(e,t){const n=new Pd(this.manager);return n.setPath(this.decoderPath),n.setResponseType(t),n.setWithCredentials(this.withCredentials),new Promise(((t,r)=>{n.load(e,t,void 0,r)}))}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const e="object"!==typeof WebAssembly||"js"===this.decoderConfig.type,t=[];return e?t.push(this._loadLibrary("draco_decoder.js","text")):(t.push(this._loadLibrary("draco_wasm_wrapper.js","text")),t.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(t).then((t=>{const n=t[0];e||(this.decoderConfig.wasmBinary=t[1]);const r=VI.toString(),i=["/* draco decoder */",n,"","/* worker */",r.substring(r.indexOf("{")+1,r.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([i]))})),this.decoderPending}_getWorker(e,t){return this._initDecoder().then((()=>
2{if(this.workerPool.length<this.workerLimit){const e=new Worker(this.workerSourceURL);e._callbacks={},e._taskCosts={},e._taskLoad=0,e.postMessage({type:"init",decoderConfig:this.decoderConfig}),e.onmessage=function(t){const n=t.data;switch(n.type){case"decode":e._callbacks[n.id].resolve(n);break;case"error":e._callbacks[n.id].reject(n);break;default:console.error('THREE.DRACOLoader: Unexpected message, "'+n.type+'"')}},this.workerPool.push(e)}else this.workerPool.sort((function(e,t){return e._taskLoad>t._taskLoad?-1:1}));const n=this.workerPool[this.workerPool.length-1];return n._taskCosts[e]=t,n._taskLoad+=t,n}))}_releaseTask(e,t){e._taskLoad-=e._taskCosts[t],delete e._callbacks[t],delete e._taskCosts[t]}debug(){console.log("Task load: ",this.workerPool.map((e=>e._taskLoad)))}dispose(){for(let e=0;e<this.workerPool.length;++e)this.workerPool[e].terminate();return this.workerPool.length=0,""!==this.workerSourceURL&&URL.revokeObjectURL(this.workerSourceURL),this}}function VI(){let e,t;function n(e,t,n,r,i,o){const a=o.num_components(),s=n.num_points()*a,l=s*i.BYTES_PER_ELEMENT,c=function(e,t){switch(t){case Float32Array:return e.DT_FLOAT32;case Int8Array:return e.DT_INT8;case Int16Array:return e.DT_INT16;case Int32Array:return e.DT_INT32;case Uint8Array:return e.DT_UINT8;case Uint16Array:return e.DT_UINT16;case Uint32Array:return e.DT_UINT32}}(e,i),u=e._malloc(l);t.GetAttributeDataArrayForAllPoints(n,o,c,l,u);const d=new i(e.HEAPF32.buffer,u,s).slice();return e._free(u),{name:r,array:d,itemSize:a}}onmessage=function(r){const i=r.data;switch(i.type){case"init":e=i.decoderConfig,t=new Promise((function(t){e.onModuleLoaded=function(e){t({draco:e})},DracoDecoderModule(e)}));break;case"decode":const r=i.buffer,o=i.taskConfig;t.then((e=>{const t=e.draco,a=new t.Decoder;try{const e=function(e,t,r,i){const o=i.attributeIDs,a=i.attributeTypes;let s,l;const c=t.GetEncodedGeometryType(r);if(c===e.TRIANGULAR_MESH)s=new e.Mesh,l=t.DecodeArrayToMesh(r,r.byteLength,s);else{if(c!==e.POINT_CLOUD)throw new Error("THREE.DRACOLoader: Unexpected geometry type.");s=new e.PointCloud,l=t.DecodeArrayToPointCloud(r,r.byteLength,s)}if(!l.ok()||0===s.ptr)throw new Error("THREE.DRACOLoader: Decoding failed: "+l.error_msg());const u={index:null,attributes:[]};for(const d in o){const r=self[a[d]];let l,c;if(i.useUniqueIDs)c=o[d],l=t.GetAttributeByUniqueId(s,c);else{if(c=t.GetAttributeId(s,e[o[d]]),-1===c)continue;l=t.GetAttribute(s,c)}const h=n(e,t,s,d,r,l);"color"===d&&(h.vertexColorSpace=i.vertexColorSpace),u.attributes.push(h)}c===e.TRIANGULAR_MESH&&(u.index=function(e,t,n){const r=n.num_faces(),i=3*r,o=4*i,a=e._malloc(o);t.GetTrianglesUInt32Array(n,o,a);const s=new Uint32Array(e.HEAPF32.buffer,a,i).slice();return e._free(a),{array:s,itemSize:1}}(e,t,s));return e.destroy(s),u}(t,a,new Int8Array(r),o),s=e.attributes.map((e=>e.array.buffer));e.index&&s.push(e.index.array.buffer),self.postMessage({type:"decode",id:i.id,geometry:e},s)}catch(s){console.error(s),self.postMessage({type:"error",id:i.id,error:s.message})}finally{t.destroy(a)}}))}}}var WI=function(e){return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))};try{URL.revokeObjectURL(WI(""))}catch(gB){WI=function(e){return"data:application/javascript;charset=UTF-8,"+encodeURI(e)}}var GI=Uint8Array,qI=Uint16Array,XI=Uint32Array,YI=new GI([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ZI=new GI([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),KI=new GI([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$I=function(e,t){for(var n=new qI(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new XI(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},JI=$I(YI,2),QI=JI[0],eL=JI[1];QI[28]=258,eL[258]=28;for(var tL=$I(ZI,0)[0],nL=new qI(32768),rL=0;rL<32768;++rL){var iL=(43690&rL)>>>1|(21845&rL)<<1;iL=(61680&(iL=(52428&iL)>>>2|(13107&iL)<<2))>>>4|(3855&iL)<<4,nL[rL]=((65280&iL)>>>8|(255&iL)<<8)>>>1}var oL=function(e,t,n){for(var r=e.length,i=0,o=new qI(t);i<r;++i)++o[e[i]-1];var a,s=new qI(t);for(i=0;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;if(n){a=new qI(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var c=i<<4|e[i],u=t-e[i],d=s[e[i]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)a[nL[d]>>>l]=c}else for(a=new qI(r),i=0;i<r;++i)e[i]&&(a[i]=nL[s[e[i]-1]++]>>>15-e[i]);return a},aL=new GI(288);for(rL=0;rL<144;++rL)aL[rL]=8;for(rL=144;rL<256;++rL)aL[rL]=9;for(rL=256;rL<280;++rL)aL[rL]=7;for(rL=280;rL<288;++rL)aL[rL]=8;var sL=new GI(32);for(rL=0;rL<32;++rL)sL[rL]=5;var lL=oL(aL,9,1),cL=oL(sL,5,1),uL=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},dL=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},hL=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},pL=function(e,t,n){var r=e.length;if(!r||n&&!n.l&&r<5)return t||new GI(0);var i=!t||n,o=!n||n.i;n||(n={}),t||(t=new GI(3*r));var a,s=function(e){var n=t.length;if(e>n){var r=new GI(Math.max(2*n,e));r.set(t),t=r}},l=n.f||0,c=n.p||0,u=n.b||0,d=n.l,h=n.d,p=n.m,f=n.n,m=8*r;do{if(!d){n.f=l=dL(e,c,1);var g=dL(e,c+1,3);if(c+=3,!g){var v=e[(O=((a=c)/8|0)+(7&a&&1)+4)-4]|e[O-3]<<8,y=O+v;if(y>r){if(o)throw"unexpected EOF";break}i&&s(u+v),t.set(e.subarray(O,y),u),n.b=u+=v,n.p=c=8*y;continue}if(1==g)d=lL,h=cL,p=9,f=5;else{if(2!=g)throw"invalid block type";var b=dL(e,c,31)+257,x=dL(e,c+10,15)+4,w=b+dL(e,c+5,31)+1;c+=14;for(var _=new GI(w),E=new GI(19),S=0;S<x;++S)E[KI[S]]=dL(e,c+3*S,7);c+=3*x;var M=uL(E),T=(1<<M)-1,A=oL(E,M,1);for(S=0;S<w;){var O,C=A[dL(e,c,T)];if(c+=15&C,(O=C>>>4)<16)_[S++]=O;else{var R=0,P=0;for(16==O?(P=3+dL(e,c,3),c+=2,R=_[S-1]):17==O?(P=3+dL(e,c,7),c+=3):18==O&&(P=11+dL(e,c,127),c+=7);P--;)_[S++]=R}}var I=_.subarray(0,b),L=_.subarray(b);p=uL(I),f=uL(L),d=oL(I,p,1),h=oL(L,f,1)}if(c>m){if(o)throw"unexpected EOF";break}}i&&s(u+131072);for(var k=(1<<p)-1,D=(1<<f)-1,N=c;;N=c){var U=(R=d[hL(e,c)&k])>>>4;if((c+=15&R)>m){if(o)throw"unexpected EOF";break}if(!R)throw"invalid length/literal";if(U<256)t[u++]=U;else{if(256==U){N=c,d=null;break}var j=U-254;if(U>264){var F=YI[S=U-257];j=dL(e,c,(1<<F)-1)+QI[S],c+=F}var B=h[hL(e,c)&D],z=B>>>4;if(!B)throw"invalid distance";c+=15&B;L=tL[z];if(z>3){F=ZI[z];L+=hL(e,c)&(1<<F)-1,c+=F}if(c>m){if(o)throw"unexpected EOF";break}i&&s(u+131072);for(var H=u+j;u<H;u+=4)t[u]=t[u-L],t[u+1]=t[u+1-L],t[u+2]=t[u+2-L],t[u+3]=t[u+3-L];u=H}}n.l=d,n.p=N,n.b=u,d&&(l=1,n.m=p,n.d=h,n.n=f)}while(!l);return u==t.length?t:function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof qI?qI:e instanceof XI?XI:GI)(n-t);return r.set(e.subarray(t,n)),r}(t,0,u)},fL=new GI(0);function mL(e,t){return pL((function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"}(e),e.subarray(2,-4)),t)}var gL="undefined"!=typeof TextDecoder&&new TextDecoder;try{gL.decode(fL,{stream:!0}),1}catch(gB){}class vL extends Ld{constructor(e){super(e),this.type=An}parse(e){const t=65536,n=14,r=65537,i=16384,o=Math.pow(2.7182818,2.2);const a={l:0,c:0,lc:0};function s(e,t,n,r,i){for(;n<e;)t=t<<8|z(r,i),n+=8;n-=e,a.l=t>>n&(1<<e)-1,a.c=t,a.lc=n}const l=new Array(59);function c(e,t,n,i,o,c){const u=t;let d=0,h=0;for(;i<=o;i++){if(u.value-t.value>n)return!1;s(6,d,h,e,u);const r=a.l;if(d=a.c,h=a.lc,c[i]=r,63==r){if(u.value-t.value>n)throw new Error("Something wrong with hufUnpackEncTable");s(8,d,h,e,u);let r=a.l+6;if(d=a.c,h=a.lc,i+r>o+1)throw new Error("Something wrong with hufUnpackEncTable");for(;r--;)c[i++]=0;i--}else if(r>=59){let e=r-59+2;if(i+e>o+1)throw new Error("Something wrong with hufUnpackEncTable");for(;e--;)c[i++]=0;i--}}!function(e){for(let n=0;n<=58;++n)l[n]=0;for(let n=0;n<r;++n)l[e[n]]+=1;let t=0;for(let n=58;n>0;--n){const e=t+l[n]>>1;l[n]=t,t=e}for(let n=0;n<r;
vendor: 10,962 bytes, line 2
2++n){const t=e[n];t>0&&(e[n]=t|l[t]++<<6)}}(c)}function u(e){return 63&e}function d(e){return e>>6}const h={c:0,lc:0};function p(e,t,n,r){e=e<<8|z(n,r),t+=8,h.c=e,h.lc=t}const f={c:0,lc:0};function m(e,t,n,r,i,o,a,s,l){if(e==t){r<8&&(p(n,r,i,o),n=h.c,r=h.lc);let e=n>>(r-=8);if(e=new Uint8Array([e])[0],s.value+e>l)return!1;const t=a[s.value-1];for(;e-- >0;)a[s.value++]=t}else{if(!(s.value<l))return!1;a[s.value++]=e}f.c=n,f.lc=r}function g(e){return 65535&e}function v(e){const t=g(e);return t>32767?t-65536:t}const y={a:0,b:0};function b(e,t){const n=v(e),r=v(t),i=n+(1&r)+(r>>1),o=i,a=i-r;y.a=o,y.b=a}function x(e,t){const n=g(e),r=g(t),i=n-(r>>1)&65535,o=r+i-32768&65535;y.a=o,y.b=i}function w(e,t,n,r,i,o,a){const s=a<16384,l=n>i?i:n;let c,u,d=1;for(;d<=l;)d<<=1;for(d>>=1,c=d,d>>=1;d>=1;){u=0;const a=u+o*(i-c),l=o*d,h=o*c,p=r*d,f=r*c;let m,g,v,w;for(;u<=a;u+=h){let i=u;const o=u+r*(n-c);for(;i<=o;i+=f){const n=i+p,r=i+l,o=r+p;s?(b(e[i+t],e[r+t]),m=y.a,v=y.b,b(e[n+t],e[o+t]),g=y.a,w=y.b,b(m,g),e[i+t]=y.a,e[n+t]=y.b,b(v,w),e[r+t]=y.a,e[o+t]=y.b):(x(e[i+t],e[r+t]),m=y.a,v=y.b,x(e[n+t],e[o+t]),g=y.a,w=y.b,x(m,g),e[i+t]=y.a,e[n+t]=y.b,x(v,w),e[r+t]=y.a,e[o+t]=y.b)}if(n&d){const n=i+l;s?b(e[i+t],e[n+t]):x(e[i+t],e[n+t]),m=y.a,e[n+t]=y.b,e[i+t]=m}}if(i&d){let i=u;const o=u+r*(n-c);for(;i<=o;i+=f){const n=i+p;s?b(e[i+t],e[n+t]):x(e[i+t],e[n+t]),m=y.a,e[n+t]=y.b,e[i+t]=m}}c=d,d>>=1}return u}function _(e,t,o,a,s,l){const g=o.value,v=B(t,o),y=B(t,o);o.value+=4;const b=B(t,o);if(o.value+=4,v<0||v>=r||y<0||y>=r)throw new Error("Something wrong with HUF_ENCSIZE");const x=new Array(r),w=new Array(i);!function(e){for(let t=0;t<i;t++)e[t]={},e[t].len=0,e[t].lit=0,e[t].p=null}(w);if(c(e,o,a-(o.value-g),v,y,x),b>8*(a-(o.value-g)))throw new Error("Something wrong with hufUncompress");!function(e,t,r,i){for(;t<=r;t++){const r=d(e[t]),o=u(e[t]);if(r>>o)throw new Error("Invalid table entry");if(o>n){const e=i[r>>o-n];if(e.len)throw new Error("Invalid table entry");if(e.lit++,e.p){const t=e.p;e.p=new Array(e.lit);for(let n=0;n<e.lit-1;++n)e.p[n]=t[n]}else e.p=new Array(1);e.p[e.lit-1]=t}else if(o){let e=0;for(let a=1<<n-o;a>0;a--){const a=i[(r<<n-o)+e];if(a.len||a.p)throw new Error("Invalid table entry");a.len=o,a.lit=t,e++}}}}(x,v,y,w),function(e,t,r,i,o,a,s,l,c){let g=0,v=0;const y=s,b=Math.trunc(i.value+(o+7)/8);for(;i.value<b;)for(p(g,v,r,i),g=h.c,v=h.lc;v>=n;){const o=t[g>>v-n&16383];if(o.len)v-=o.len,m(o.lit,a,g,v,r,i,l,c,y),g=f.c,v=f.lc;else{if(!o.p)throw new Error("hufDecode issues");let t;for(t=0;t<o.lit;t++){const n=u(e[o.p[t]]);for(;v<n&&i.value<b;)p(g,v,r,i),g=h.c,v=h.lc;if(v>=n&&d(e[o.p[t]])==(g>>v-n&(1<<n)-1)){v-=n,m(o.p[t],a,g,v,r,i,l,c,y),g=f.c,v=f.lc;break}}if(t==o.lit)throw new Error("hufDecode issues")}}const x=8-o&7;for(g>>=x,v-=x;v>0;){const e=t[g<<n-v&16383];if(!e.len)throw new Error("hufDecode issues");v-=e.len,m(e.lit,a,g,v,r,i,l,c,y),g=f.c,v=f.lc}}(x,w,e,o,b,y,l,s,{value:0})}function E(e){for(let t=1;t<e.length;t++){const n=e[t-1]+e[t]-128;e[t]=n}}function S(e,t){let n=0,r=Math.floor((e.length+1)/2),i=0;const o=e.length-1;for(;!(i>o)&&(t[i++]=e[n++],!(i>o));)t[i++]=e[r++]}function M(e){let t=e.byteLength;const n=new Array;let r=0;const i=new DataView(e);for(;t>0;){const e=i.getInt8(r++);if(e<0){const o=-e;t-=o+1;for(let e=0;e<o;e++)n.push(i.getUint8(r++))}else{const o=e;t-=2;const a=i.getUint8(r++);for(let e=0;e<o+1;e++)n.push(a)}}return n}function T(e,t,n){let r,i=1;for(;i<64;)r=t[e.value],65280==r?i=64:r>>8==255?i+=255&r:(n[i]=r,i++),e.value++}function A(e,t){t[0]=q(e[0]),t[1]=q(e[1]),t[2]=q(e[5]),t[3]=q(e[6]),t[4]=q(e[14]),t[5]=q(e[15]),t[6]=q(e[27]),t[7]=q(e[28]),t[8]=q(e[2]),t[9]=q(e[4]),t[10]=q(e[7]),t[11]=q(e[13]),t[12]=q(e[16]),t[13]=q(e[26]),t[14]=q(e[29]),t[15]=q(e[42]),t[16]=q(e[3]),t[17]=q(e[8]),t[18]=q(e[12]),t[19]=q(e[17]),t[20]=q(e[25]),t[21]=q(e[30]),t[22]=q(e[41]),t[23]=q(e[43]),t[24]=q(e[9]),t[25]=q(e[11]),t[26]=q(e[18]),t[27]=q(e[24]),t[28]=q(e[31]),t[29]=q(e[40]),t[30]=q(e[44]),t[31]=q(e[53]),t[32]=q(e[10]),t[33]=q(e[19]),t[34]=q(e[23]),t[35]=q(e[32]),t[36]=q(e[39]),t[37]=q(e[45]),t[38]=q(e[52]),t[39]=q(e[54]),t[40]=q(e[20]),t[41]=q(e[22]),t[42]=q(e[33]),t[43]=q(e[38]),t[44]=q(e[46]),t[45]=q(e[51]),t[46]=q(e[55]),t[47]=q(e[60]),t[48]=q(e[21]),t[49]=q(e[34]),t[50]=q(e[37]),t[51]=q(e[47]),t[52]=q(e[50]),t[53]=q(e[56]),t[54]=q(e[59]),t[55]=q(e[61]),t[56]=q(e[35]),t[57]=q(e[36]),t[58]=q(e[48]),t[59]=q(e[49]),t[60]=q(e[57]),t[61]=q(e[58]),t[62]=q(e[62]),t[63]=q(e[63])}function O(e){const t=.5*Math.cos(.7853975),n=.5*Math.cos(3.14159/16),r=.5*Math.cos(3.14159/8),i=.5*Math.cos(3*3.14159/16),o=.5*Math.cos(.981746875),a=.5*Math.cos(3*3.14159/8),s=.5*Math.cos(1.374445625),l=new Array(4),c=new Array(4),u=new Array(4),d=new Array(4);for(let h=0;h<8;++h){const p=8*h;l[0]=r*e[p+2],l[1]=a*e[p+2],l[2]=r*e[p+6],l[3]=a*e[p+6],c[0]=n*e[p+1]+i*e[p+3]+o*e[p+5]+s*e[p+7],c[1]=i*e[p+1]-s*e[p+3]-n*e[p+5]-o*e[p+7],c[2]=o*e[p+1]-n*e[p+3]+s*e[p+5]+i*e[p+7],c[3]=s*e[p+1]-o*e[p+3]+i*e[p+5]-n*e[p+7],u[0]=t*(e[p+0]+e[p+4]),u[3]=t*(e[p+0]-e[p+4]),u[1]=l[0]+l[3],u[2]=l[1]-l[2],d[0]=u[0]+u[1],d[1]=u[3]+u[2],d[2]=u[3]-u[2],d[3]=u[0]-u[1],e[p+0]=d[0]+c[0],e[p+1]=d[1]+c[1],e[p+2]=d[2]+c[2],e[p+3]=d[3]+c[3],e[p+4]=d[3]-c[3],e[p+5]=d[2]-c[2],e[p+6]=d[1]-c[1],e[p+7]=d[0]-c[0]}for(let h=0;h<8;++h)l[0]=r*e[16+h],l[1]=a*e[16+h],l[2]=r*e[48+h],l[3]=a*e[48+h],c[0]=n*e[8+h]+i*e[24+h]+o*e[40+h]+s*e[56+h],c[1]=i*e[8+h]-s*e[24+h]-n*e[40+h]-o*e[56+h],c[2]=o*e[8+h]-n*e[24+h]+s*e[40+h]+i*e[56+h],c[3]=s*e[8+h]-o*e[24+h]+i*e[40+h]-n*e[56+h],u[0]=t*(e[h]+e[32+h]),u[3]=t*(e[h]-e[32+h]),u[1]=l[0]+l[3],u[2]=l[1]-l[2],d[0]=u[0]+u[1],d[1]=u[3]+u[2],d[2]=u[3]-u[2],d[3]=u[0]-u[1],e[0+h]=d[0]+c[0],e[8+h]=d[1]+c[1],e[16+h]=d[2]+c[2],e[24+h]=d[3]+c[3],e[32+h]=d[3]-c[3],e[40+h]=d[2]-c[2],e[48+h]=d[1]-c[1],e[56+h]=d[0]-c[0]}function C(e){for(let t=0;t<64;++t){const n=e[0][t],r=e[1][t],i=e[2][t];e[0][t]=n+1.5747*i,e[1][t]=n-.1873*r-.4682*i,e[2][t]=n+1.8556*r}}function R(e,t,n){for(let r=0;r<64;++r)t[n+r]=Mo.toHalfFloat(P(e[r]))}function P(e){return e<=1?Math.sign(e)*Math.pow(Math.abs(e),2.2):Math.sign(e)*Math.pow(o,Math.abs(e)-1)}function I(e){return new DataView(e.array.buffer,e.offset.value,e.size)}function L(e){const t=e.viewer.buffer.slice(e.offset.value,e.offset.value+e.size),n=new Uint8Array(M(t)),r=new Uint8Array(n.length);return E(n),S(n,r),new DataView(r.buffer)}function k(e){const t=mL(e.array.slice(e.offset.value,e.offset.value+e.size)),n=new Uint8Array(t.length);return E(t),S(t,n),new DataView(n.buffer)}function D(e){const n=e.viewer,r={value:e.offset.value},i=new Uint16Array(e.width*e.scanlineBlockSize*(e.channels*e.type)),o=new Uint8Array(8192);let a=0;const s=new Array(e.channels);for(let t=0;t<e.channels;t++)s[t]={},s[t].start=a,s[t].end=s[t].start,s[t].nx=e.width,s[t].ny=e.lines,s[t].size=e.type,a+=s[t].nx*s[t].ny*s[t].size;const l=X(n,r),c=X(n,r);if(c>=8192)throw new Error("Something is wrong with PIZ_COMPRESSION BITMAP_SIZE");if(l<=c)for(let t=0;t<c-l+1;t++)o[t+l]=H(n,r);const u=new Uint16Array(t),d=function(e,n){let r=0;for(let o=0;o<t;++o)(0==o||e[o>>3]&1<<(7&o))&&(n[r++]=o);const i=r-1;for(;r<t;)n[r++]=0;return i}(o,u),h=B(n,r);_(e.array,n,r,h,i,a);for(let t=0;t<e.channels;++t){const e=s[t];for(let n=0;n<s[t].size;++n)w(i,e.start+n,e.nx,e.size,e.ny,e.nx*e.size,d)}!function(e,t,n){for(let r=0;r<n;++r)t[r]=e[t[r]]}(u,i,a);let p=0;const f=new Uint8Array(i.buffer.byteLength);for(let t=0;t<e.lines;t++)for(let n=0;n<e.channels;n++){const e=s[n],t=e.nx*e.size,r=new Uint8Array(i.buffer,2*e.end,2*t);f.set(r,p),p+=2*t,e.end+=t}return new DataView(f.buffer)}function N(e){const t=mL(e.array.slice(e.offset.value,e.offset.value+e.size)),n=e.lines*e.channels*e.width,r=1==e.type?new Uint16Array(n):new Uint32Array(n);let i=0,o=0;const a=new Array(4);for(let s=0;s<e.lines;s++)for(let n=0;n<e.channels;n++){let n=0;switch(e.type){case 1:a[0]=i,a[1]=a[0]+e.width,i=a[1]+e.width;for(let i=0;i<e.width;++i){n+=t[a[0]++]<<8|t[a[1]++],r[o]=n,o++}break;case 2:a[0]=i,a[1]=a[0]+e.width,a[2]=a[1]+e.width,i=a[2]+e.width;for(let i=0;i<e.width;++i){n+=t[a[0]++]<<24|t[a[1]++]<<16|t[a[2]++]<<8,r[o]=n,o++}}}return new DataView(r.buffer)}function U(e){const t=e.viewer,n={value:e.offset.value},r=new Uint8Array(e.width*e.lines*(e.channels*e.type*2)),i={version:V(t,n),unknownUncompressedSize:V(t,n),unknownCompressedSize:V(t,n),acCompressedSize:V(t,n),dcCompressedSize:V(t,n),rleCompressedSize:V(t,n),rleUncompressedSize:V(t,n),rleRawSize:V(t,n),totalAcUncompressedCount:V(t,n),totalDcUncompressedCount:V(t,n),acCompression:V(t,n)};if(i.version<2)throw new Error("EXRLoader.parse: "+Q.compression+" version "+i.version+" is unsupported");const o=new Array;let a=X(t,n)-2;for(;a>0;){const e=j(t.buffer,n),r=H(t,n),i=r>>2&3,s=new Int8Array([(r>>4)-1])[0],l=H(t,n);o.push({name:e,index:s,type:l,compression:i}),a-=e.length+3}const s=Q.channels,l=new Array(e.channels);for(let m=0;m<e.channels;++m){const t=l[m]={},n=s[m];t.name=n.name,t.compression=0,t.decoded=!1,t.type=n.pixelType,t.pLinear=n.pLinear,t.width=e.width,t.height=e.lines}const c={idx:new Array(3)};for(let m=0;m<e.channels;++m){const e=l[m];for(let t=0;t<o.length;++t){const n=o[t];e.name==n.name&&(e.compression=n.compression,n.index>=0&&(c.idx[n.index]=m),e.offset=m)}}let u,d,h;if(i.acCompressedSize>0)switch(i.acCompression){case 0:u=new Uint16Array(i.totalAcUncompressedCount),_(e.array,t,n,i.acCompressedSize,u,i.totalAcUncompressedCount);break;case 1:const r=mL(e.array.slice(n.value,n.value+i.totalAcUncompressedCount));u=new Uint16Array(r.buffer),n.value+=i.totalAcUncompressedCount}if(i.dcCompressedSize>0){const t={array:e.array,offset:n,size:i.dcCompressedSize};d=new Uint16Array(k(t).buffer),n.value+=i.dcCompressedSize}if(i.rleRawSize>0){h=M(mL(e.array.slice(n.value,n.value+i.rleCompressedSize)).buffer),n.value+=i.rleCompressedSize}let p=0;const f=new Array(l.length);for(let m=0;m<f.length;++m)f[m]=new Array;for(let m=0;m<e.lines;++m)for(let t=0;t<l.length;++t)f[t].push(p),p+=l[t].width*e.type*2;!function(e,t,n,r,i,o){let a=new DataView(o.buffer);const s=n[e.idx[0]].width,l=n[e.idx[0]].height,c=Math.floor(s/8),u=Math.ceil(s/8),d=Math.ceil(l/8),h=s-8*(u-1),p=l-8*(d-1),f={value:0},m=new Array(3),g=new Array(3),v=new Array(3),y=new Array(3),b=new Array(3);for(let w=0;w<3;++w)b[w]=t[e.idx[w]],m[w]=w<1?0:m[w-1]+u*d,g[w]=new Float32Array(64),v[w]=new Uint16Array(64),y[w]=new Uint16Array(64*u);for(let w=0;w<d;++w){let t=8;w==d-1&&(t=p);let o=8;for(let e=0;e<u;++e){e==u-1&&(o=h);for(let e=0;e<3;++e)v[e].fill(0),v[e][0]=i[m[e]++],T(f,r,v[e]),A(v[e],g[e]),O(g[e]);C(g);for(let t=0;t<3;++t)R(g[t],y[t],64*e)}let s=0;for(let r=0;r<3;++r){const i=n[e.idx[r]].type;for(let e=8*w;e<8*w+t;++e){s=b[r][e];for(let t=0;t<c;++t){const n=64*t+8*(7&e);a.setUint16(s+0*i,y[r][n+0],!0),a.setUint16(s+2*i,y[r][n+1],!0),a.setUint16(s+4*i,y[r][n+2],!0),a.setUint16(s+6*i,y[r][n+3],!0),a.setUint16(s+8*i,y[r][n+4],!0),a.setUint16(s+10*i,y[r][n+5],!0),a.setUint16(s+12*i,y[r][n+6],!0),a.setUint16(s+14*i,y[r][n+
27],!0),s+=16*i}}if(c!=u)for(let e=8*w;e<8*w+t;++e){const t=b[r][e]+8*c*2*i,n=64*c+8*(7&e);for(let e=0;e<o;++e)a.setUint16(t+2*e*i,y[r][n+e],!0)}}}const x=new Uint16Array(s);a=new DataView(o.buffer);for(let w=0;w<3;++w){n[e.idx[w]].decoded=!0;const t=n[e.idx[w]].type;if(2==n[w].type)for(let e=0;e<l;++e){const n=b[w][e];for(let e=0;e<s;++e)x[e]=a.getUint16(n+2*e*t,!0);for(let e=0;e<s;++e)a.setFloat32(n+2*e*t,q(x[e]),!0)}}}(c,f,l,u,d,r);for(let m=0;m<l.length;++m){const t=l[m];if(!t.decoded){if(2!==t.compression)throw new Error("EXRLoader.parse: unsupported channel compression");{let n=0,i=0;for(let o=0;o<e.lines;++o){let e=f[m][n];for(let n=0;n<t.width;++n){for(let n=0;n<2*t.type;++n)r[e++]=h[i+n*t.width*t.height];i++}n++}}}}return new DataView(r.buffer)}function j(e,t){const n=new Uint8Array(e);let r=0;for(;0!=n[t.value+r];)r+=1;const i=(new TextDecoder).decode(n.slice(t.value,t.value+r));return t.value=t.value+r+1,i}function F(e,t){const n=e.getInt32(t.value,!0);return t.value=t.value+4,n}function B(e,t){const n=e.getUint32(t.value,!0);return t.value=t.value+4,n}function z(e,t){const n=e[t.value];return t.value=t.value+1,n}function H(e,t){const n=e.getUint8(t.value);return t.value=t.value+1,n}const V=function(e,t){let n;return n="getBigInt64"in DataView.prototype?Number(e.getBigInt64(t.value,!0)):e.getUint32(t.value+4,!0)+Number(e.getUint32(t.value,!0)<<32),t.value+=8,n};function W(e,t){const n=e.getFloat32(t.value,!0);return t.value+=4,n}function G(e,t){return Mo.toHalfFloat(W(e,t))}function q(e){const t=(31744&e)>>10,n=1023&e;return(e>>15?-1:1)*(t?31===t?n?NaN:1/0:Math.pow(2,t-15)*(1+n/1024):n/1024*6103515625e-14)}function X(e,t){const n=e.getUint16(t.value,!0);return t.value+=2,n}function Y(e,t){return q(X(e,t))}function Z(e,t,n,r,i){return"string"===r||"stringvector"===r||"iccProfile"===r?function(e,t,n){const r=(new TextDecoder).decode(new Uint8Array(e).slice(t.value,t.value+n));return t.value=t.value+n,r}(t,n,i):"chlist"===r?function(e,t,n,r){const i=n.value,o=[];for(;n.value<i+r-1;){const r=j(t,n),i=F(e,n),a=H(e,n);n.value+=3;const s=F(e,n),l=F(e,n);o.push({name:r,pixelType:i,pLinear:a,xSampling:s,ySampling:l})}return n.value+=1,o}(e,t,n,i):"chromaticities"===r?function(e,t){return{redX:W(e,t),redY:W(e,t),greenX:W(e,t),greenY:W(e,t),blueX:W(e,t),blueY:W(e,t),whiteX:W(e,t),whiteY:W(e,t)}}(e,n):"compression"===r?function(e,t){return["NO_COMPRESSION","RLE_COMPRESSION","ZIPS_COMPRESSION","ZIP_COMPRESSION","PIZ_COMPRESSION","PXR24_COMPRESSION","B44_COMPRESSION","B44A_COMPRESSION","DWAA_COMPRESSION","DWAB_COMPRESSION"][H(e,t)]}(e,n):"box2i"===r?function(e,t){return{xMin:B(e,t),yMin:B(e,t),xMax:B(e,t),yMax:B(e,t)}}(e,n):"lineOrder"===r?function(e,t){return["INCREASING_Y"][H(e,t)]}(e,n):"float"===r?W(e,n):"v2f"===r?function(e,t){return[W(e,t),W(e,t)]}(e,n):"v3f"===r?function(e,t){return[W(e,t),W(e,t),W(e,t)]}(e,n):"int"===r?F(e,n):"rational"===r?function(e,t){return[F(e,t),B(e,t)]}(e,n):"timecode"===r?function(e,t){return[B(e,t),B(e,t)]}(e,n):"preview"===r?(n.value+=i,"skipped"):void(n.value+=i)}const K=new DataView(e),$=new Uint8Array(e),J={value:0},Q=function(e,t,n){const r={};if(20000630!=e.getUint32(0,!0))throw new Error("THREE.EXRLoader: Provided file doesn't appear to be in OpenEXR format.");r.version=e.getUint8(4);const i=e.getUint8(5);r.spec={singleTile:!!(2&i),longName:!!(4&i),deepFormat:!!(8&i),multiPart:!!(16&i)},n.value=8;let o=!0;for(;o;){const i=j(t,n);if(0==i)o=!1;else{const o=j(t,n),a=Z(e,t,n,o,B(e,n));void 0===a?console.warn("THREE.EXRLoader: Skipped unknown header attribute type '".concat(o,"'.")):r[i]=a}}if(0!=(-5&i))throw console.error("THREE.EXRHeader:",r),new Error("THREE.EXRLoader: Provided file is currently unsupported.");return r}(K,e,J),ee=function(e,t,n,r,i){const o={size:0,viewer:t,array:n,offset:r,width:e.dataWindow.xMax-e.dataWindow.xMin+1,height:e.dataWindow.yMax-e.dataWindow.yMin+1,channels:e.channels.length,bytesPerLine:null,lines:null,inputSize:null,type:e.channels[0].pixelType,uncompress:null,getter:null,format:null,colorSpace:Vn};switch(e.compression){case"NO_COMPRESSION":o.lines=1,o.uncompress=I;break;case"RLE_COMPRESSION":o.lines=1,o.uncompress=L;break;case"ZIPS_COMPRESSION":o.lines=1,o.uncompress=k;break;case"ZIP_COMPRESSION":o.lines=16,o.uncompress=k;break;case"PIZ_COMPRESSION":o.lines=32,o.uncompress=D;break;case"PXR24_COMPRESSION":o.lines=16,o.uncompress=N;break;case"DWAA_COMPRESSION":o.lines=32,o.uncompress=U;break;case"DWAB_COMPRESSION":o.lines=256,o.uncompress=U;break;default:throw new Error("EXRLoader.parse: "+e.compression+" is unsupported")}if(o.scanlineBlockSize=o.lines,1==o.type)switch(i){case Tn:o.getter=Y,o.inputSize=2;break;case An:o.getter=X,o.inputSize=2}else{if(2!=o.type)throw new Error("EXRLoader.parse: unsupported pixelType "+o.type+" for "+e.compression+".");switch(i){case Tn:o.getter=W,o.inputSize=4;break;case An:o.getter=G,o.inputSize=4}}o.blockCount=(e.dataWindow.yMax+1)/o.scanlineBlockSize;for(let s=0;s<o.blockCount;s++)V(t,r);o.outputChannels=3==o.channels?4:o.channels;const a=o.width*o.height*o.outputChannels;switch(i){case Tn:o.byteArray=new Float32Array(a),o.channels<o.outputChannels&&o.byteArray.fill(1,0,a);break;case An:o.byteArray=new Uint16Array(a),o.channels<o.outputChannels&&o.byteArray.fill(15360,0,a);break;default:console.error("THREE.EXRLoader: unsupported type: ",i)}
2return o.bytesPerLine=o.width*o.inputSize*o.channels,4==o.outputChannels?(o.format=Cn,o.colorSpace=Vn):(o.format=In,o.colorSpace=zn),o}(Q,K,$,J,this.type),te={value:0},ne={R:0,G:1,B:2,A:3,Y:0};for(let re=0;re<ee.height/ee.scanlineBlockSize;re++){const e=B(K,J);ee.size=B(K,J),ee.lines=e+ee.scanlineBlockSize>ee.height?ee.height-e:ee.scanlineBlockSize;const t=ee.size<ee.lines*ee.bytesPerLine?ee.uncompress(ee):I(ee);J.value+=ee.size;for(let n=0;n<ee.scanlineBlockSize;n++){const e=n+re*ee.scanlineBlockSize;if(e>=ee.height)break;for(let r=0;r<ee.channels;r++){const i=ne[Q.channels[r].name];for(let o=0;o<ee.width;o++){te.value=(n*(ee.channels*ee.width)+r*ee.width+o)*ee.inputSize;const a=(ee.height-1-e)*(ee.width*ee.outputChannels)+o*ee.outputChannels+i;ee.byteArray[a]=ee.getter(t,te)}}}}return{header:Q,width:ee.width,height:ee.height,data:ee.byteArray,format:ee.format,colorSpace:ee.colorSpace,type:this.type}}setDataType(e){return this.type=e,this}load(e,t,n,r){return super.load(e,(function(e,n){e.colorSpace=n.colorSpace,e.minFilter=bn,e.magFilter=bn,e.generateMipmaps=!1,e.flipY=!1,t&&t(e,n)}),n,r)}}var yL=Object.defineProperty,bL=Object.getOwnPropertySymbols,xL=Object.prototype.hasOwnProperty,wL=Object.prototype.propertyIsEnumerable,_L=(e,t,n)=>t in e?yL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,EL=(e,t)=>{for(var n in t||(t={}))xL.call(t,n)&&_L(e,n,t[n]);if(bL)for(var n of bL(t))wL.call(t,n)&&_L(e,n,t[n]);return e};var SL,ML,TL,AL,OL,CL,RL,PL,IL,LL,kL,DL,NL,UL,jL,FL,BL,zL,HL,VL,WL,GL,qL,XL,YL,ZL,KL,$L,JL,QL,ek,tk,nk,rk,ik,ok,ak=Object.defineProperty,sk=Object.defineProperties,lk=Object.getOwnPropertyDescriptors,ck=Object.getOwnPropertySymbols,uk=Object.prototype.hasOwnProperty,dk=Object.prototype.propertyIsEnumerable,hk=(e,t,n)=>t in e?ak(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pk=(e,t)=>{for(var n in t||(t={}))uk.call(t,n)&&hk(e,n,t[n]);if(ck)for(var n of ck(t))dk.call(t,n)&&hk(e,n,t[n]);return e},fk=(e,t)=>sk(e,lk(t)),mk=(e,t,n)=>(hk(e,"symbol"!==typeof t?t+"":t,n),n),gk=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},vk=(e,t,n)=>(gk(e,t,"read from private field"),n?n.call(e):t.get(e)),yk=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},bk=(e,t,n,r)=>(gk(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);const xk=Math.PI/180,wk=180/Math.PI;class _k extends ur{constructor(e){let{mapProjection:t,mapGroups:n,backgroundColor:r,basemap:i,center:o=[0,0],minZoom:a=0,maxZoom:s=Number.MAX_SAFE_INTEGER,zoom:l=20,zoomSpeed:c=1,minRotation:u=-1/0,maxRotation:d=1/0,rotation:h=0,rotationSpeed:p=1,minTilt:f=0,maxTilt:m=45,tilt:g=0,maxBounds:v=[[-1/0,-1/0],[1/0,1/0]],damping:y=!1,dampingFactor:b=.25,debug:x=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),mk(this,"refresh",(function(){bk(this,YL,!0)})),mk(this,"addMapGroup",(function(e){this.addMapGroups([e])})),mk(this,"addMapGroups",(function(e){vk(this,ek).call(this,e),bk(this,YL,!0)})),mk(this,"removeMapGroup",(function(e){this.removeMapGroups([e])})),mk(this,"removeMapGroups",(function(e){e&&(e.forEach((e=>{vk(this,VL).remove(e.threeObject)})),bk(this,YL,!0))})),mk(this,"setZoom",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vk(this,CL))return;const n=t.animate||!1,r=t.duration||1e3,i=t.delay||0,o=t.easing||"linear",a=t.onAnimationEnd,s=t.minZoom||vk(this,SL).minZoom,l=t.maxZoom||vk(this,SL).maxZoom,c=Math.min(Math.max(s,e),l);if(c===vk(this,OL))return void(n&&a&&a());const u=e=>{bk(this,OL,e),vk(this,WL).zoom=fh(e);const{near:t,far:n}=gh(e);vk(this,WL).near=t,vk(this,WL).far=n,vk(this,WL).updateProjectionMatrix(),bk(this,YL,!0)};if(n){bk(this,CL,!0),this.dispatchEvent({type:"zoomChangeBegin",zoom:vk(this,OL)});const e={zoom:vk(this,OL)};BP({targets:e,zoom:c,duration:r,delay:i,easing:o,update:()=>{u(e.zoom),this.dispatchEvent({type:"zoomChangeSequence",zoom:e.zoom})},complete:()=>{bk(this,CL,!1),vk(this,QL).call(this,c),this.dispatchEvent({type:"zoomChangeSequence",zoom:c}),this.dispatchEvent({type:"zoomChangeEnd",zoom:c}),a&&a()}})}else u(c),vk(this,QL).call(this,c),this.dispatchEvent({type:"zoomChange",zoom:c})})),mk(this,"setZoomRange",(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
2vk(this,SL).minZoom=e,vk(this,SL).maxZoom=t;const r=vk(this,OL),i=Math.min(Math.max(e,r),t);if(i===r||!n.animate)return vk(this,GL).minZoom=fh(e),vk(this,GL).maxZoom=fh(t),void this.setZoom(i);vk(this,GL).minZoom=fh(1),vk(this,GL).maxZoom=fh(100),this.setZoom(i,fk(pk({},n),{onAnimationEnd:()=>{vk(this,GL).minZoom=fh(e),vk(this,GL).maxZoom=fh(t),n.onAnimationEnd&&n.onAnimationEnd()}}))})),mk(this,"setRotation",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vk(this,PL))return;const n=t.animate||!1,r=t.duration||1e3,i=t.delay||0,o=t.easing||"linear",a=t.onAnimationEnd,{minRotation:s,maxRotation:l}=vk(this,SL),c=Math.min(Math.max(s,e),l),u=vk(this,SL).damping;if(c===vk(this,RL))return void(n&&a&&a());u&&(vk(this,GL).enableDamping=!1);const d=e=>{bk(this,RL,e),vk(this,GL).setAzimuthalAngle(xk*e),vk(this,GL).update(),bk(this,YL,!0)};if(n){bk(this,PL,!0);const e={rotation:vk(this,RL)};BP({targets:e,rotation:c,duration:r,delay:i,easing:o,update:()=>{d(e.rotation),this.dispatchEvent({type:"rotationChangeSequence",rotation:e.rotation})},complete:()=>{bk(this,PL,!1),vk(this,GL).enableDamping=u,this.dispatchEvent({type:"rotationChangeSequence",rotation:c}),a&&a()}})}else d(c),vk(this,GL).enableDamping=u,this.dispatchEvent({type:"rotationChange",rotation:c})})),mk(this,"setRotationRange",(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};vk(this,SL).minRotation=e,vk(this,SL).maxRotation=t;const r=vk(this,RL),i=Math.min(Math.max(e,r),t);if(i===r||!n.animate)return vk(this,GL).minAzimuthAngle=xk*e,vk(this,GL).maxAzimuthAngle=xk*t,void this.setRotation(i);vk(this,GL).minAzimuthAngle=-360*xk,vk(this,GL).maxAzimuthAngle=360*xk,this.setRotation(i,fk(pk({},n),{onAnimationEnd:()=>{vk(this,GL).minAzimuthAngle=xk*e,vk(this,GL).maxAzimuthAngle=xk*t,n.onAnimationEnd&&n.onAnimationEnd()}}))})),mk(this,"setTilt",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vk(this,LL))return;const n=t.animate||!1,r=t.duration||1e3,i=t.delay||0,o=t.easing||"linear",a=t.onAnimationEnd,{minTilt:s,maxTilt:l}=vk(this,SL),c=Math.min(Math.max(s,e),l),u=vk(this,SL).damping;if(c===vk(this,IL))return void(n&&a&&a());u&&(vk(this,GL).enableDamping=!1);const d=e=>{bk(this,IL,e),vk(this,GL).setPolarAngle(xk*e),vk(this,GL).update(),bk(this,YL,!0)};if(n){bk(this,LL,!0);const e={tilt:vk(this,IL)};BP({targets:e,tilt:c,duration:r,delay:i,easing:o,update:()=>{d(e.tilt),this.dispatchEvent({type:"tiltChangeSequence",tilt:e.tilt})},complete:()=>{bk(this,LL,!1),vk(this,GL).enableDamping=u,this.dispatchEvent({type:"tiltChangeSequence",tilt:c}),a&&a()}})}else d(c),vk(this,GL).enableDamping=u,this.dispatchEvent({type:"tiltChange",tilt:c})})),mk(this,"setTiltRange",(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};vk(this,SL).minTilt=e,vk(this,SL).maxTilt=t;const r=vk(this,IL),i=Math.min(Math.max(e,r),t);if(i===r||!n.animate)return vk(this,GL).minPolarAngle=xk*e,vk(this,GL).maxPolarAngle=xk*t,void this.setTilt(i);vk(this,GL).minPolarAngle=0*xk,vk(this,GL).maxPolarAngle=90*xk,this.setTilt(i,fk(pk({},n),{onAnimationEnd:()=>{vk(this,GL).minPolarAngle=xk*e,vk(this,GL).maxPolarAngle=xk*t,n.onAnimationEnd&&n.onAnimationEnd()}}))})),mk(this,"setView",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vk(this,AL))return;bk(this,TL,vk(this,ML).project(e));const[n,r]=vk(this,TL),{zoom:i,rotation:o,tilt:a,paddings:s}=t,l=t.animate||!1,c=t.duration||500,u=t.delay||0,d=t.easing||"linear",h=t.onAnimationEnd,p=t.minZoom||vk(this,SL).minZoom,f=t.maxZoom||vk(this,SL).maxZoom,m=i&&Math.min(Math.max(p,i),f),g=vk(this,SL).damping;Number.isFinite(o)&&this.setRotation(o,fk(pk({},t),{onAnimationEnd:null})),Number.isFinite(a)&&this.setTilt(a,fk(pk({},t),{onAnimationEnd:null})),g&&(vk(this,GL).enableDamping=!1);const v=()=>{const e=new Jr(n,0,r);if(s){const t=s.paddingTop||0,n=s.paddingBottom||0,r=s.paddingLeft||0,i=s.paddingRight||0,o=vk(this,DL)/2,a=vk(this,NL)/2,l=vk(this,nk).call(this,new Sr(o,a)),c=vk(this,nk).call(this,new Sr(o+1,a)).sub(l).length(),u=new Jr(0,1,0),d=vk(this,GL).getAzimuthalAngle(),h=new Jr(1,0,0),p=new Jr(0,0,1),f=h.setLength((i/2-r/2)*c).applyAxisAngle(u,d),m=p.setLength((n/2-t/2)*c).applyAxisAngle(u,d);e.add(f).add(m)}return e},y=e=>{bk(this,OL,e),vk(this,WL).zoom=fh(e),vk(this,WL).updateProjectionMatrix(),bk(this,YL,!0)},b=e=>{let{x:t,z:n}=e;vk(this,GL).setTarget(new Jr(t,0,n)),vk(this,GL).update(),bk(this,YL,!0)};if(l){bk(this,AL,!0);const e=vk(this,OL),t=vk(this,GL).target.clone(),n={percent:0};m&&(bk(this,CL,!0),this.dispatchEvent({type:"zoomChangeBegin",zoom:e})),BP({targets:n,percent:100,duration:c,delay:u,easing:d,update:()=>{if(m){const t=e+(m-e)*n.percent/100;y(t),this.dispatchEvent({type:"zoomChangeSequence",zoom:t})}const r=v().sub(t),i=r.length(),o=r.normalize().multiplyScalar(i*n.percent/100).add(t);b(o)},complete:()=>{bk(this,AL,!1),vk(this,GL).enableDamping=g,m&&(bk(this,CL,!1),vk(this,QL).call(this,m),this.dispatchEvent({type:"zoomChangeSequence",zoom:m}),this.dispatchEvent({type:"zoomChangeEnd",zoom:m})),h&&h()}})}else{m&&y(m);const e=v();b(e),vk(this,GL).enableDamping=g,m&&(vk(this,QL).call(this,m),this.dispatchEvent({type:"zoomChange",zoom:m}))}})),mk(this,"fitBounds",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=vk(this,WL),r=vk(this,DL),i=vk(this,NL),o=vk(this,ML),{padding:a=0,paddingTop:s=0,paddingBottom:l=0,paddingLeft:c=0,paddingRight:u=0,maxZoom:d}=t,{rotation:h,tilt:p}=vk(this,SL),[[f,m],[g,v]]=e,y=a||s,b=a||l,x=a||c,w=a||u,[_,E]=o.project([f,m]),[S,M]=o.project([g,v]),T=_+(S-_)/2,A=E+(M-E)/2;this.setView(o.unproject([T,A]),{rotation:h,tilt:p});const O=vk(this,tk).call(this,new Sr(_,E)),C=vk(this,tk).call(this,new Sr(S,M)),R=vk(this,tk).call(this,new Sr(_,M)),P=vk(this,tk).call(this,new Sr(S,E)),I=new Sr(Math.min(O.x,R.x,P.x,C.x),Math.min(O.y,R.y,P.y,C.y)),L=new Sr(Math.max(O.x,R.x,P.x,C.x),Math.max(O.y,R.y,P.y,C.y)),k=Math.abs(L.x-I.x),D=Math.abs(L.y-I.y),N=Math.abs(r-(x+w))/k,U=Math.abs(i-(y+b))/D,j=Math.min(N,U),F=n.zoom*j;if(this.setZoom(mh(F),{maxZoom:d}),x||w||y||b){const e=r/2+w/2-x/2,t=i/2+b/2-y/2,n=vk(this,nk).call(this,new Sr(e,t));this.setView(o.unproject([n.x,n.z]),{rotation:h,tilt:p})}})),mk(this,"fitPoints",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=vk(this,WL),r=vk(this,DL),i=vk(this,NL),o=vk(this,ML),{padding:a=0,paddingTop:s=0,paddingBottom:l=0,paddingLeft:c=0,paddingRight:u=0,maxZoom:d}=t,h=a||s,p=a||l,f=a||c,m=a||u,g=e.map((e=>o.project(e))),v=g.map((e=>{let[t,n]=e;return vk(this,tk).call(this,new Sr(t,n))})),y=v.map((e=>{let{x:t}=e;return t})),b=v.map((e=>{let{y:t}=e;return t})),x=Math.min(...y),w=Math.min(...b),_=Math.max(...y),E=Math.max(...b),S=Math.abs(_-x),M=Math.abs(E-w),T=Math.abs(r-(f+m))/S,A=Math.abs(i-(h+p))/M,O=Math.min(T,A),C=n.zoom*O;this.setZoom(mh(C),{maxZoom:d});const R=g.reduce(((e,t)=>
2{let[n,r]=t;const i=n<e.minX?n:e.minX,o=r<e.minY?r:e.minY,a=n>e.maxX?n:e.maxX,s=r>e.maxY?r:e.maxY;return{minX:i,minY:o,maxX:a,maxY:s,centerX:i+(a-i)/2,centerY:o+(s-o)/2}}),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,centerX:0,centerY:0});this.setView(o.unproject([R.centerX,R.centerY]));const P=r/2+m/2-f/2,I=i/2+p/2-h/2,L=vk(this,nk).call(this,new Sr(P,I));this.setView(o.unproject([L.x,L.z]))})),mk(this,"projectScreenToXZ",(function(e){let[t,n]=e;return vk(this,nk).call(this,new Sr(t,n))})),mk(this,"findIntersections",(function(e,t,n){const r=vk(this,VL),i=vk(this,qL);return i.set(e,t),n=n||r.children,i.intersectObjects(n)})),mk(this,"getMapObjects",(function(e){const t=vk(this,VL),n=[];return t.traverse((t=>{e(t)&&n.push(t)})),n})),mk(this,"filterMapObjects",(function(e){vk(this,VL).traverse((t=>{t.visible=e(t.userData)})),bk(this,YL,!0)})),mk(this,"dimMapObjects",(function(e){vk(this,VL).traverse((t=>{if(!t||!t.userData||!t.material)return;const n=e(t.userData);Number.isFinite(n)&&(t.material.transparent=!(n>=1),t.material.isShaderMaterial?t.material.uniforms.alpha.value=n:t.material.opacity=n)})),bk(this,YL,!0)})),mk(this,"dispose",(function(){if(vk(this,ZL))return;const e=vk(this,kL);vk(this,FL).disconnect(),vk(this,XL).forEach((t=>{let{type:n,handler:r,useCapture:i}=t;e.removeEventListener(n,r,i)})),vk(this,VL).traverse((e=>{e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose()})),vk(this,GL).dispose(),vk(this,BL).renderLists.dispose(),vk(this,BL).dispose(),bk(this,HL,null),bk(this,VL,null),bk(this,WL,null),bk(this,BL,null),bk(this,ZL,!0)})),yk(this,SL,{}),yk(this,ML,void 0),yk(this,TL,void 0),yk(this,AL,!1),yk(this,OL,void 0),yk(this,CL,!1),yk(this,RL,void 0),yk(this,PL,!1),yk(this,IL,void 0),yk(this,LL,!1),yk(this,kL,void 0),yk(this,DL,void 0),yk(this,NL,void 0),yk(this,UL,void 0),yk(this,jL,void 0),yk(this,FL,void 0),yk(this,BL,void 0),yk(this,zL,void 0),yk(this,HL,void 0),yk(this,VL,void 0),yk(this,WL,void 0),yk(this,GL,void 0),yk(this,qL,void 0),yk(this,XL,[]),yk(this,YL,!1),yk(this,ZL,!1),yk(this,KL,(function(){const{backgroundColor:e,basemap:t,minZoom:n,maxZoom:r,zoomSpeed:i,minRotation:o,maxRotation:a,rotationSpeed:s,minTilt:l,maxTilt:c,maxBounds:u,damping:d,dampingFactor:h}=vk(this,SL),[p,f]=vk(this,TL),m=vk(this,OL),g=vk(this,RL),v=vk(this,IL),y=vk(this,kL),b=y.clientWidth,x=y.clientHeight,w=y.getBoundingClientRect(),_=w.left,E=w.top,S=vk(this,ML),[M,T]=[S.project(u[0]),S.project(u[1])],A=Math.min(M[0],T[0]),O=Math.max(M[0],T[0]),C=Math.min(M[1],T[1]),R=Math.max(M[1],T[1]),P=new fc({antialias:!0}),I=window.devicePixelRatio||1;P.setPixelRatio(I),P.setSize(b/I,x/I),P.outputColorSpace=Hn,P.toneMapping=en,P.toneMappingExposure=1,P.domElement.style.cssText="\n      position: absolute;\n      top: 0;\n      left: 0;\n      z-index: 1;\n      touch-action: none;\n    ",y.appendChild(P.domElement),y.style.position="relative";const L=new tC;L.setSize(b,x),L.domElement.style.position="absolute",L.domElement.style.top=0,L.domElement.style.touchAction="none",y.appendChild(L.domElement);const k=new mc;k.background=new yo(e),k.position.set(p,0,f);const D=b/x,N=1e3,{near:U,far:j}=gh(m),F=new Ha(-1e3*D/2,N*D/2,500,-500,U,j);F.position.set(p,1e3,f),F.zoom=fh(m,{minZoom:n,maxZoom:r}),F.updateProjectionMatrix();const B=new VP(F,L.domElement);if(B.width=b,B.height=x,B.offsetLeft=_,B.offsetTop=E,B.minPolarAngle=xk*l,B.maxPolarAngle=xk*c,B.minAzimuthAngle=xk*o,B.maxAzimuthAngle=xk*a,B.minZoom=fh(n),B.maxZoom=fh(r),B.zoomSpeed=i,B.rotateSpeed=s,B.maxBounds=[[A,C],[O,R]],B.enableDamping=d,B.dampingFactor=h,B.touches={ONE:Et,TWO:Mt},B.target=new Jr(p,0,f),B.setAzimuthalAngle(xk*g),B.setPolarAngle(xk*v),B.update(),B.addEventListener("change",(()=>{bk(this,TL,[B.target.x,B.target.z]),this.dispatchEvent({type:"centerChange",center:S.unproject(vk(this,TL))})})),B.addEventListener("zoomChange",(()=>{const e=vk(this,WL),t=vk(this,SL).minZoom,n=vk(this,SL).maxZoom,r=mh(e.zoom,{minZoom:t,maxZoom:n});if(vk(this,OL)===r)return;bk(this,OL,r),vk(this,QL).call(this,r);const{near:i,far:o}=gh(r);e.near===i&&e.far===o||(e.near=i,e.far=o,e.updateProjectionMatrix()),this.dispatchEvent({type:"zoomChangeSequence",user:!0,zoom:r})})),B.addEventListener("rotationChange",(()=>{const e=B.getAzimuthalAngle()*wk;vk(this,RL)!==e&&(bk(this,RL,e),this.dispatchEvent({type:"rotationChangeSequence",user:!0,rotation:e}))})),B.addEventListener("tiltChange",(()=>{const e=B.getPolarAngle()*wk;vk(this,IL)!==e&&(bk(this,IL,e),this.dispatchEvent({type:"tiltChangeSequence",user:!0,tilt:e}))})),B.addEventListener("userPanning",(()=>{this.dispatchEvent({type:"userPanning",user:!0})})),t){if(!["mb"].includes(t.provider))throw new Error("The basemap provider ".concat(t.provider," was not found."));const e="".concat(t.provider).concat(window.OffscreenCanvas?"2":""),r=new kp(e,n),i=new Ep(E
2p.PLANAR,r);i.lod=new Rp,i.zoomLevel=m,i.onRenderRequired=()=>{bk(this,YL,!0)},k.add(i),bk(this,HL,i)}const z=new oh;!function(e,t,n){const r=new HI;r.setDecoderPath("https://www.gstatic.com/draco/versioned/decoders/1.5.6/"),r.setDecoderConfig({type:"js"});const i=new WP;i.setDRACOLoader(r);const o=window.matchMedia("(orientation: portrait), (max-width: 600px)").matches?"models-mobile.glb":"models.glb";i.load(o,(r=>{(new vL).load("envmap.exr",(i=>{i.mapping=dn;const o=new Qa(e);o.compileEquirectangularShader();const a=o.fromEquirectangular(i).texture;o.dispose(),r.scene.traverse((function(e){"Scene"!==e.name&&(e.isGroup&&e.children.forEach((t=>{t.userData=EL(EL({},e.userData),t.userData)})),e.isMesh&&(e.material.envMap=a,e.material.envMapIntensity=1,e.material.needsUpdate=!0))})),t.add(r.scene),n()}))}),(e=>{}),(e=>{}))}(P,k,(()=>this.refresh()));const H=new QO(I_(vk(this,$L).bind(this),500));H.observe(y),bk(this,DL,b),bk(this,NL,x),bk(this,UL,_),bk(this,jL,E),bk(this,FL,H),bk(this,BL,P),bk(this,zL,L),bk(this,VL,k),bk(this,WL,F),bk(this,GL,B),bk(this,qL,z)})),yk(this,$L,(function(){const e=vk(this,kL),t=e.clientWidth,n=e.clientHeight,r=e.getBoundingClientRect(),i=r.left,o=r.top,a=t/n;vk(this,WL).left=-1e3*a/2,vk(this,WL).right=1e3*a/2,vk(this,WL).updateProjectionMatrix(),vk(this,GL).width=t,vk(this,GL).height=n,vk(this,GL).offsetLeft=i,vk(this,GL).offsetTop=o,vk(this,BL).setSize(t,n),vk(this,zL).setSize(t,n),bk(this,DL,t),bk(this,NL,n),bk(this,UL,i),bk(this,jL,o),bk(this,YL,!0)})),yk(this,JL,(function(){const e=vk(this,kL);let t=!0,n=null,r=null;const i=e=>{t=!0,e.changedTouches?(n=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY):(n=e.clientX,r=e.clientY)},o=e=>{if(n&&r){const i=e.changedTouches?e.changedTouches[0].clientX:e.clientX,o=e.changedTouches?e.changedTouches[0].clientY:e.clientY;Math.abs(n-i)+Math.abs(r-o)>20&&(t=!1)}},a=e=>{if(t){const t=vk(this,VL),n=vk(this,WL),r=vk(this,qL),i=vk(this,DL),o=vk(this,NL),a=e;e=e.changedTouches?e.changedTouches[0]:e;const s=Math.max(e.clientX-vk(this,UL),0),l=Math.max(e.clientY-vk(this,jL),0),{x:c,z:u}=vk(this,nk).call(this,new Sr(s,l)),[d,h]=vk(this,ML).unproject([c,u]),p={type:"click",originalEvent:a,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY,x:s,y:l,latitude:d,longitude:h},f=s/i*2-1,m=-l/o*2+1;r.setFromCamera(new Sr(f,m),n);const g=r.intersectObjects(t.children,!0),v=g.find((e=>{let{object:{userData:t}}=e;return t&&"unit"===t.type&&"floor"===t.part}));v&&(p.unit={id:v.object.userData.id,category:v.object.userData.category}),this.dispatchEvent(p),vk(this,SL).debug&&console.log(g.map((e=>e.object.userData)))}};e.addEventListener("touchstart",i,!0),e.addEventListener("mousedown",i,!0),e.addEventListener("touchmove",o,!0),e.addEventListener("mousemove",o,!0),e.addEventListener("touchend",a,!0),e.addEventListener("mouseup",a,!0),vk(this,XL).push({type:"touchstart",handler:i,useCapture:!0}),vk(this,XL).push({type:"mousedown",handler:i,useCapture:!0}),vk(this,XL).push({type:"touchmove",handler:o,useCapture:!0}),vk(this,XL).push({type:"mousemove",handler:o,useCapture:!0}),vk(this,XL).push({type:"touchend",handler:a,useCapture:!0}),vk(this,XL).push({type:"mouseup",handler:a,useCapture:!0})})),yk(this,QL,(function(e){var t;const n=e<=18?e:e-1;null==(t=vk(this,HL))||t.setZoom(n)})),yk(this,ek,(function(e){e&&e.filter(Boolean).forEach((e=>{e.threeObject.renderOrder=1,vk(this,VL).add(e.threeObject)}))})),yk(this,tk,(function(e){const t=vk(this,WL),n=vk(this,DL),r=vk(this,NL);t.updateWorldMatrix();const i=e instanceof Sr?new Jr(e.x,0,e.y).project(t):new Jr(e.x,0,e.z).project(t);return new Sr(Math.round((i.x+1)*n/2),Math.round((1-i.y)*r/2))})),yk(this,nk,(function(e){const t=vk(this,WL),n=vk(this,qL),r=vk(this,DL),i=vk(this,NL),o=e.x/r*2-1,a=-e.y/i*2+1,s=new Sr(o,a);n.setFromCamera(s,t);const l=n.ray.origin,c=n.ray.direction,u=-l.y/c.y;return l.clone().add(c.multiplyScalar(u))})),yk(this,rk,(function(e,t){const n=t-3;let r=null;return r=e<=n?1:t<=e?0:1-(e-n)/3,r})),yk(this,ik,(function(){const e=vk(this,OL);vk(this,VL).traverse((t=>{if(!t||!t.userData||!t.material||!t.material.transparent)return;const{minZoom:n,maxZoom:r}=t.userData;if(n<=0&&r>=1e3)return;const i=e<=n?1-vk(this,rk).call(this,e,n):e<=r?vk(this,rk).call(this,e,r):r<e?0:null;null!==i&&(t.material.isShaderMaterial?t.material.uniforms.alpha.value=i:t.material.opacity=i)}))})),yk(this,ok,(function(){vk(this,ik).call(this),vk(this,BL).render(vk(this,VL),vk(this,WL)),vk(this,zL).render(vk(this,VL),vk(this,WL))})),bk(this,SL,{backgroundColor:r,basemap:i,center:o,minZoom:a,maxZoom:s,zoom:l,zoomSpeed:c,minRotation:u,maxRotation:d,rotation:h,rotationSpeed:p,minTilt:f,maxTilt:m,tilt:g,maxBounds:v,damping:y,dampingFactor:b,debug:x}),bk(this,ML,t),bk(this,TL,t.project(o)),bk(this,OL,l),bk(this,RL,h),bk(this,IL,g),bk(this,kL,"string"===typeof e?document.querySelector(e):e),vk(this,KL).call(this),vk(this,ek).c
2all(this,n),vk(this,JL).call(this);const w=()=>{const e=vk(this,GL).needsUpdate,t=vk(this,YL);e&&vk(this,GL).update(),(e||t)&&(vk(this,ok).call(this),bk(this,YL,!1)),requestAnimationFrame(w)};w()}set followMouseOnZoom(e){vk(this,GL).followMouseOnZoom=e}get container(){return vk(this,kL)}get center(){return vk(this,ML).unproject(vk(this,TL))}get zoom(){return vk(this,OL)}get rotation(){return vk(this,RL)}get tilt(){return vk(this,IL)}get width(){return vk(this,DL)}get height(){return vk(this,NL)}get offsetLeft(){return vk(this,UL)}get offsetTop(){return vk(this,jL)}}SL=new WeakMap,ML=new WeakMap,TL=new WeakMap,AL=new WeakMap,OL=new WeakMap,CL=new WeakMap,RL=new WeakMap,PL=new WeakMap,IL=new WeakMap,LL=new WeakMap,kL=new WeakMap,DL=new WeakMap,NL=new WeakMap,UL=new WeakMap,jL=new WeakMap,FL=new WeakMap,BL=new WeakMap,zL=new WeakMap,HL=new WeakMap,VL=new WeakMap,WL=new WeakMap,GL=new WeakMap,qL=new WeakMap,XL=new WeakMap,YL=new WeakMap,ZL=new WeakMap,KL=new WeakMap,$L=new WeakMap,JL=new WeakMap,QL=new WeakMap,ek=new WeakMap,tk=new WeakMap,nk=new WeakMap,rk=new WeakMap,ik=new WeakMap,ok=new WeakMap;const Ek=[];for(let t=0;t<256;t++)Ek[t]=(t<16?"0":"")+t.toString(16);function Sk(){const e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(Ek[255&e]+Ek[e>>8&255]+Ek[e>>16&255]+Ek[e>>24&255]+"-"+Ek[255&t]+Ek[t>>8&255]+"-"+Ek[t>>16&15|64]+Ek[t>>24&255]+"-"+Ek[63&n|128]+Ek[n>>8&255]+"-"+Ek[n>>16&255]+Ek[n>>24&255]+Ek[255&r]+Ek[r>>8&255]+Ek[r>>16&255]+Ek[r>>24&255]).toUpperCase()}function Mk(e){let t=0;if(0===e.length)return t;for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t|=0}return t>>>0}const Tk=6e4,Ak=36e5;const Ok=()=>({id:"__outdoor-level__",name:"Outdoor",shortName:"L0",ordinal:0,category:"__outdoor-level__",dispose:function(){Object.getOwnPropertyNames(this).forEach((e=>{"dispose"!==e&&(this[e]=null)}))}}),Ck=()=>({id:"__dynamic__",name:"",shortName:"",ordinal:0,category:"__dynamic__",dispose:function(){Object.getOwnPropertyNames(this).forEach((e=>{"dispose"!==e&&(this[e]=null)}))}});var Rk=Object.defineProperty,Pk=Object.defineProperties,Ik=Object.getOwnPropertyDescriptors,Lk=Object.getOwnPropertySymbols,kk=Object.prototype.hasOwnProperty,Dk=Object.prototype.propertyIsEnumerable,Nk=(e,t,n)=>t in e?Rk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Uk=(e,t)=>{const n=Ey(e,"properties.RoutePoints");if(n)return function(e){const{links:t}=Xk.routes;return e.filter((e=>{const n=t[e];return n&&n.length}))}(n);const r=Ey(e,"geometry.coordinates",null);if(!r)return[];const i={latLng:{lat:r[1],lng:r[0]},ordinal:t.ordinal},o=Fp(i);return null!==o?[o]:[]};function jk(e,t,n,r){return[...e.features,...t.features].reduce(((e,t)=>{var i,o,a,s,l,c,u,d;const h=e;if(!t.geometry)return e;if(!(null==(i=t.properties.SHOW)||i))return e;const p=t.properties.OCCU_ID;if(!p)return console.warn("Occupant without ID skipped"),e;if(h.has(p))return console.warn("Duplicate occupant ".concat(p," skipped")),e;const f=null!=(o=t.properties.OMNI_ORDINAL)&&o,m=null!=(a=t.properties.OMNI_ORDINAL_EXCLUDE)?a:[];let g=null,v=null,y=null,b=null,x=null,w=[],_=!1;if(!f){if(v=null!=(s=t.properties.LEVEL_ID)?s:"__outdoor-level__",y=n.get(v),!y)return console.warn("Occupant ".concat(p," without correct LEVEL_ID skipped")),e;b=t.properties.UNIT_ID,x=r.get(b),g=y.ordinal,w=Uk(t,y),_=Boolean(Ey(t,"properties.ROUTABLE",!0)&&w&&w.length);const i=null!=(c=null==(l=null==t?void 0:t.properties)?void 0:l.RoutePoints)?c:[];if(i.length&&!w.length){const e=(null==(u=t.properties)?void 0:u.NAME)||(null==(d=t.properties)?void 0:d.CATEGORY)||"";console.warn("Check the route points ".concat(i.join(",")," of the occupant ").concat(p," (").concat(e,")"))}}const E=t.properties.HEIGHT,S=t.properties.FLIPPABLE;let M=t.properties.ROTATE_X||0,T=t.properties.ROTATE_Y||0,A=t.properties.ROTATE_Z||0;t.properties.PLANAR&&(M=-90);const O={id:p,ordinalId:g,levelId:v,level:y,unitId:b,unit:x,omniOrdinal:f,omniOrdinalExclude:m,name:t.properties.NAME||t.properties.CATEGORY||"",display:{name:t.properties.NAME||t.properties.CATEGORY||""},categoryId:t.properties.CATEGORY_ID||"",extraCategoryIds:t.properties.EXTRA_CATEGORY_IDS||[],keywords:t.properties.KEYWORDS||[],clusteringIdentifier:t.properties.CLUSTER||"",images:t.properties.IMAGES||"",order:t.properties.ORDER||1/0,height:E,rotateX:M,rotateY:T,rotateZ:A,flippable:S,routePoints:w,routable:_,coordinates:[t.geometry.coordinates[1],t.geometry.coordinates[0]],rawProperties:Object.entries(t.properties).reduce(((e,t)=>
2{let[n,r]=t;return i=((e,t)=>{for(var n in t||(t={}))kk.call(t,n)&&Nk(e,n,t[n]);if(Lk)for(var n of Lk(t))Dk.call(t,n)&&Nk(e,n,t[n]);return e})({},e),o={[String(n).toLowerCase()]:r},Pk(i,Ik(o));var i,o}),{}),dispose:()=>{Object.getOwnPropertyNames(O).forEach((e=>{"dispose"!==e&&(O[e]=null)}))}};if(h.set(p,O),y){const e=y.occupants||[];e.push(O),y.occupants=e}if(x){const e=x.occupants||[];e.push(O),x.occupants=e}return e}),new Map)}var Fk=Object.defineProperty,Bk=Object.getOwnPropertySymbols,zk=Object.prototype.hasOwnProperty,Hk=Object.prototype.propertyIsEnumerable,Vk=(e,t,n)=>t in e?Fk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Wk={features:[]},Gk={basemap:Wk,venue:Wk,buildings:Wk,levels:Wk,sections:Wk,units:Wk,fixtures:Wk,openings:Wk,lines:Wk,routes:{coordinates:[],level_coords:{},links:[],polygons:[],polygon_points:[],level_polys:[]},occupants:Wk,points:Wk},qk={init(e,t){const n=Object.entries(Gk).reduce(((t,n)=>{let[r,i]=n;return t[r]=e[r]||i,t}),{}),r=function(e){const t=e.polygons?$e(e.polygons):null,n=e.polygon_points,r=e.level_polys&&e.polygons&&e.polygon_points?Object.entries(e.level_polys).reduce(((e,r)=>{let[i,o]=r;const[a,s]=o,l=a+s,c=t.slice(a,l),u=n.slice(a,l),d=c.map(((e,t)=>({polygon:e,routePoints:u[t]})));return e[i]=d,e}),{}):{};return{routePoints:$e(e.coordinates),links:e.links,levelRoutePoints:e.level_coords,levelRoutePolygons:r}}(n.routes);this.routes=r;const i=function(e){if(0===e.features.length)return{id:"",name:"",category:"Venue",geometry:{type:"Polygon",coordinates:[[[0,0]]]},bounds:new IR([[0,0]])};const t=e.features[0],n=Je(t.geometry),r="Polygon"===n.type?n.coordinates[0]:n.coordinates.flatMap((e=>e[0])),i={id:t.properties.VENUE_ID,name:t.properties.NAME,category:t.properties.CATEGORY||"Venue",geometry:n,bounds:new IR(r),dispose:()=>{Object.getOwnPropertyNames(i).forEach((e=>{"dispose"!==e&&(i[e]=null)}))}};return i}(n.venue),o=function(e){return e.features.reduce(((e,t)=>{const n=t.properties.BLDG_ID;if(e.has(n))return console.warn("Duplicate building ".concat(n," skipped")),e;const r={id:n,name:t.properties.NAME,display:{name:t.properties.NAME||""},category:t.properties.CATEGORY||"Building",geometry:Je(t.geometry),dispose:()=>{Object.getOwnPropertyNames(r).forEach((e=>{"dispose"!==e&&(r[e]=null)}))}};return e.set(n,r),e}),new Map)}(n.buildings),a=function(e){return e.features.reduce(((e,t)=>{const n=t.properties.BASEMAP_ID||Sk();if(e.has(n))return console.warn("Duplicate basemap part ".concat(n," skipped")),e;const r={id:n,category:t.properties.CATEGORY||"Basemap",geometry:Je(t.geometry),dispose:()=>{Object.getOwnPropertyNames(r).forEach((e=>{"dispose"!==e&&(r[e]=null)}))}};return e.set(n,r),e}),new Map)}(n.basemap),s=function(e){return e.features.reduce(((e,t)=>{const n=t.properties.OPENING_ID||Sk(),r={id:n,category:t.properties.CATEGORY||"Line",geometry:Je(t.geometry),dispose:()=>{Object.getOwnPropertyNames(r).forEach((e=>{"dispose"!==e&&(r[e]=null)}))}};return e.set(n,r),e}),new Map)}(n.lines),l=function(e){return e.features.reduce(((e,t)=>{var n;const{units:r,levels:i}=e;if(!t.geometry||!(null==(n=t.geometry.coordinates)?void 0:n.length))return e;const o=t.properties.UNIT_ID||Sk(),a=t.properties.LEVEL_ID;if(r.has(o))return console.warn("Duplicate unit ".concat(o," skipped")),e;if(!a)return console.warn("Unit ".concat(o," without LEVEL_ID skipped")),e;const s={id:o,levelId:a,openingIds:t.properties.OPENING_IDS,category:t.properties.CATEGORY,routePoints:t.properties.RoutePoints||null,geometry:Je(t.geometry),rawProperties:t.properties,dispose:()=>{Object.getOwnPropertyNames(s).forEach((e=>{"dispose"!==e&&(s[e]=null)}))}};r.set(o,s);const l=i.get(a)||[];return l.push(s),i.set(a,l),e}),{units:new Map,levels:new Map})}(n.units),c=function(e){return e.features.reduce(((e,t)=>{var n;const{sections:r,levels:i}=e;if(!t.geometry||!(null==(n=t.geometry.coordinates)?void 0:n.length))return e;const o=t.properties.SECTION_ID||Sk(),a=t.properties.LEVEL_ID;if(r.has(o))return console.warn("Duplicate section ".concat(o," skipped")),e;if(!a)return console.warn("Section ".concat(o," without LEVEL_ID ski
2pped")),e;const s={id:o,levelId:a,openingIds:t.properties.OPENING_IDS,category:t.properties.CATEGORY,subCategory:t.properties.SUB_CATEGORY||null,name:t.properties.NAME,geometry:Je(t.geometry),dispose:()=>{Object.getOwnPropertyNames(s).forEach((e=>{"dispose"!==e&&(s[e]=null)}))}};r.set(o,s);const l=i.get(a)||[];return l.push(s),i.set(a,l),e}),{sections:new Map,levels:new Map})}(n.sections),u=function(e){return e.features.reduce(((e,t)=>{var n;const{fixtures:r,levels:i}=e;if(!t.geometry||!(null==(n=t.geometry.coordinates)?void 0:n.length))return e;const o=t.properties.FIXTURE_ID||Sk(),a=t.properties.LEVEL_ID;if(r.has(o))return console.warn("Duplicate fixture ".concat(o," skipped")),e;if(!a)return console.warn("Fixture ".concat(o," without LEVEL_ID skipped")),e;const s={id:o,levelId:a,originId:t.properties.ORIGIN_ID,category:t.properties.CATEGORY,geometry:Je(t.geometry),dispose:()=>{Object.getOwnPropertyNames(s).forEach((e=>{"dispose"!==e&&(s[e]=null)}))}};r.set(o,s);const l=i.get(a)||[];return l.push(s),i.set(a,l),e}),{fixtures:new Map,levels:new Map})}(n.fixtures),d=function(e){return e.features.reduce(((e,t)=>{var n;const{openings:r,levels:i}=e;if(!t.geometry||!(null==(n=t.geometry.coordinates)?void 0:n.length))return e;const o=t.properties.OPENING_ID||Sk(),a=t.properties.LEVEL_ID;if(!a)return console.warn("Opening ".concat(o," without LEVEL_ID skipped")),e;const s={id:o,levelId:a,category:t.properties.CATEGORY||"Opening",geometry:Je(t.geometry),dispose:()=>{Object.getOwnPropertyNames(s).forEach((e=>{"dispose"!==e&&(s[e]=null)}))}};r.set(o,s);const l=i.get(a)||[];return l.push(s),i.set(a,l),e}),{openings:new Map,levels:new Map})}(n.openings),h=function(e,t){return e.features.reduce(((e,n,r)=>{if(0===r){const t=Ok();e.set(t.id,t);const n=Ck();e.set(n.id,n)}const i=n.properties.LEVEL_ID,o=Ey(n,"properties.BLDG_ID",null),a=t.get(o);if(e.has(i))return console.warn("Duplicate level ".concat(i," skipped")),e;const s={id:i,building:a,openingIds:n.properties.OPENING_IDS,category:n.properties.CATEGORY||"Level",name:n.properties.NAME,shortName:n.properties.SHORT_NAME,display:{name:n.properties.NAME||""},ordinal:n.properties.ORDINAL,geometry:Je(n.geometry),dispose:()=>{Object.getOwnPropertyNames(s).forEach((e=>{"dispose"!==e&&(s[e]=null)}))}};return e.set(i,s),e}),new Map)}(n.levels,o),p=jk(n.occupants,n.points,h,l.units),f=Array.from(p.values()),m=f.filter((e=>e.omniOrdinal));h.forEach(((e,t)=>{e.units=l.levels.get(t),e.sections=c.levels.get(t),e.fixtures=u.levels.get(t),e.openings=d.levels.get(t)}));const g=[...h.values()].map((e=>e.ordinal)),v=[...new Set(g)],y=new Map(v.map((e=>[e,{id:e,name:"",venue:i,buildings:o,basemap:a,lines:s,levels:[],occupants:[],occupantsMap:new Map}])));h.forEach(((e,t)=>{const n=y.get(e.ordinal);n&&(n.name=e.shortName||"L".concat(t),n.levels.push(e),n.occupants.push(...e.occupants||[]),y.set(e.ordinal,n))})),y.forEach((e=>{var t;e.occupants.push(...m.filter((t=>!t.omniOrdinalExclude.includes(e.id))).map((e=>((e,t)=>{for(var n in t||(t={}))zk.call(t,n)&&Vk(e,n,t[n]);if(Bk)for(var n of Bk(t))Hk.call(t,n)&&Vk(e,n,t[n]);return e})({},e)))),e.occupantsMap=new Map(e.occupants.map((e=>[e.id,e]))),e.routePolygons=null==(t=r.levelRoutePolygons)?void 0:t[e.id]})),h.forEach((e=>{var t;null==(t=e.units)||t.forEach((t=>{const{routePoints:n,geometry:i}=t;if(!(null==n?void 0:n.length))return;("Polygon"===i.type?[i.coordinates[0]]:"MultiPolygon"===i.type?i.coordinates.map((e=>e[0])):[]).forEach((t=>{var i;const o=null!=(i=r.levelRoutePolygons[e.ordinal])?i:[];o.push({polygon:t,routePoints:n,isRoom:!0}),r.levelRoutePolygons[e.ordinal]=o}))}))}));for(const b of u.fixtures.values())b.originId&&(b.originUnit=l.units.get(b.originId));this.ordinals=y,this.venue=i,this.buildings=o,this.basemap=a,this.lines=s,this.levels=h,this.occupants=f,this.occupantsMap=p,this.units=l.units,this.sections=c.sections,this.fixtures=u.fixtures,this.openings=d.openings,this.styles=t||{}},update(e){e&&e.occupants&&e.points&&(this.occupants=jk(e.occupants,e.points,this.levels,this.units))}},Xk={init(e,t){if(e.manifest&&(this.parser="IMDF"),"AVF"===this.parser)qk.init.call(this,e,t)},update(){},dispose(){const e=e=>{e.dispose&&e.dispose()};
2this.venue.dispose(),this.buildings.forEach(e),this.levels.forEach(e),this.sections.forEach(e),this.units.forEach(e),this.fixtures.forEach(e),this.openings.forEach(e),this.lines.forEach(e),this.occupants.forEach(e),this.ordinals.forEach(e),this.venue=null,this.buildings=null,this.levels=null,this.sections=null,this.units=null,this.fixtures=null,this.openings=null,this.lines=null,this.routes=null,this.occupants=null,this.occupantsMap=null,this.ordinals=null,this.styles=null},parser:"AVF",venue:null,buildings:new Map,levels:new Map,sections:new Map,units:new Map,fixtures:new Map,openings:new Map,lines:new Map,routes:{routePoints:[],links:[],levelRoutePoints:{}},occupants:[],occupantsMap:new Map,ordinals:new Map,styles:{}};var Yk=Object.defineProperty,Zk=Object.defineProperties,Kk=Object.getOwnPropertyDescriptors,$k=Object.getOwnPropertySymbols,Jk=Object.prototype.hasOwnProperty,Qk=Object.prototype.propertyIsEnumerable,eD=(e,t,n)=>t in e?Yk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tD=(e,t)=>{for(var n in t||(t={}))Jk.call(t,n)&&eD(e,n,t[n]);if($k)for(var n of $k(t))Qk.call(t,n)&&eD(e,n,t[n]);return e};const nD={language:"en",showQRCode:!0,showOpeningState:!1,showCategoriesAlways:!1,showLevelsAlways:!1,keepSearchListsOpened:!1,timeZoneOffset:0,ordinal:0,center:[47.451615,8.562151],minZoom:10,maxZoom:23,zoom:18,zoomSpeed:1,minRotation:-360,maxRotation:360,rotation:0,rotationSpeed:1,minTilt:0,maxTilt:45,tilt:0,maxBounds:[[-1/0,-1/0],[1/0,1/0]],damping:!1,dampingFactor:.25,dotDistanceThreshold:12,clusterDistanceThreshold:32,backgroundColor:"#d0d0d0",unitFloorHighlightColor:"#adbfde",unitFloorHighlighting:!0,nonHighlightedMarkers:"hidden",basemap:null,routeWidth:1.5,routeColor:"#5A5AFC",routeExtraTimeColor:"#F76F7B",routeInactiveColor:"#E2E0FF",routeDirectionColor:"#FF0000",routeDirectionSpeed:1.88,routeMarkType:"pebble",routeRules:null,routeMaxZoom:22,routePointZoom:22,routeStartPointZoom:22,routeStickingThreshold:10,routeInactiveVisible:!1,routePointsHighlight:!1,searchAlongRouteMaxDistance:20,applyOrdinalOptionsOnOrdinalChange:!1,ordinalsOptions:[],extraTimeOptions:null,makeRouteHandler:null,getRouteSteps:null,getRouteTimeString:null,getRoutePaddings:()=>({paddingTop:200,paddingLeft:100,paddingRight:100,paddingBottom:100}),getMapPaddings:()=>({paddingTop:50,paddingLeft:50,paddingRight:50,paddingBottom:50}),userPositionOnlyInVenue:!1,debug:!1,components:{Router:null}},rD=We.createContext();function iD(e){let{options:t,children:n}=e;const r=We.useMemo((()=>({options:{language:Ey(t,"language",nD.language),showQRCode:Ey(t,"showQRCode",nD.showQRCode),showOpeningState:Ey(t,"showOpeningState",nD.showOpeningState),showCategoriesAlways:Ey(t,"showCategoriesAlways",nD.showCategoriesAlways),showLevelsAlways:Ey(t,"showLevelsAlways",nD.showLevelsAlways),keepSearchListsOpened:Ey(t,"keepSearchListsOpened",nD.keepSearchListsOpened),ordinal:parseInt(Ey(t,"ordinal",nD.ordinal),10),timeZoneOffset:parseInt(Ey(t,"timeZoneOffset",nD.timeZoneOffset),10),center:Ey(t,"center",nD.center),minZoom:Ey(t,"minZoom",nD.minZoom),maxZoom:Ey(t,"maxZoom",nD.maxZoom),zoom:Ey(t,"zoom",nD.zoom),zoomSpeed:Ey(t,"zoomSpeed",nD.zoomSpeed),minRotation:Ey(t,"minRotation",nD.minRotation),maxRotation:Ey(t,"maxRotation",nD.maxRotation),rotation:Ey(t,"rotation",nD.rotation),rotationSpeed:Ey(t,"rotationSpeed",nD.rotationSpeed),minTilt:Ey(t,"minTilt",nD.minTilt),maxTilt:Ey(t,"maxTilt",nD.maxTilt),tilt:Ey(t,"tilt",nD.tilt),backgroundColor:Ey(t,"backgroundColor",nD.backgroundColor),unitFloorHighlightColor:Ey(t,"unitFloorHighlightColor",nD.unitFloorHighlightColor),unitFloorHighlighting:Ey(t,"unitFloorHighlighting",nD.unitFloorHighlighting),nonHighlightedMarkers:Ey(t,"nonHighlightedMarkers",nD.nonHighlightedMarkers),maxBounds:Ey(t,"maxBounds",nD.maxBounds),damping:Ey(t,"damping",nD.damping),dampingFactor:Ey(t,"dampingFactor",nD.dampingFactor),dotDistanceThreshold:Ey(t,"dotDistanceThreshold",nD.dotDistanceThreshold),clusterDistanceThreshold:Ey(t,"clusterDistanceThreshold",nD.clusterDistanceThreshold),basemap:Ey(t,"basemap",nD.basemap),routeWidth:Ey(t,"routeWidth",nD.routeWidth),routeC
2olor:Ey(t,"routeColor",nD.routeColor),routeExtraTimeColor:Ey(t,"routeExtraTimeColor",nD.routeExtraTimeColor),routeInactiveColor:Ey(t,"routeInactiveColor",nD.routeInactiveColor),routeDirectionColor:Ey(t,"routeDirectionColor",nD.routeDirectionColor),routeDirectionSpeed:Ey(t,"routeDirectionSpeed",nD.routeDirectionSpeed),routeMarkType:Ey(t,"routeMarkType",nD.routeMarkType),routeRules:Ey(t,"routeRules",nD.routeRules),routeMaxZoom:Ey(t,"routeMaxZoom",nD.routeMaxZoom),routePointZoom:Ey(t,"routePointZoom",nD.routePointZoom),routeStartPointZoom:Ey(t,"routeStartPointZoom",nD.routeStartPointZoom),routeStickingThreshold:Ey(t,"routeStickingThreshold",nD.routeStickingThreshold),routeInactiveVisible:Ey(t,"routeInactiveVisible",nD.routeInactiveVisible),routePointsHighlight:Ey(t,"routePointsHighlight",nD.routePointsHighlight),searchAlongRouteMaxDistance:Ey(t,"searchAlongRouteMaxDistance",nD.searchAlongRouteMaxDistance),applyOrdinalOptionsOnOrdinalChange:Ey(t,"applyOrdinalOptionsOnOrdinalChange",nD.applyOrdinalOptionsOnOrdinalChange),ordinalsOptions:Ey(t,"ordinalsOptions",nD.ordinalsOptions),extraTimeOptions:Ey(t,"extraTimeOptions",nD.extraTimeOptions),makeRouteHandler:Ey(t,"makeRouteHandler",nD.makeRouteHandler),getRouteSteps:Ey(t,"getRouteSteps",nD.getRouteSteps),getRouteTimeString:Ey(t,"getRouteTimeString",nD.getRouteTimeString),getRoutePaddings:Ey(t,"getRoutePaddings",nD.getRoutePaddings),getMapPaddings:Ey(t,"getMapPaddings",nD.getMapPaddings),userPositionOnlyInVenue:Ey(t,"userPositionOnlyInVenue",nD.userPositionOnlyInVenue),debug:Ey(t,"debug",nD.debug),components:{Router:Ey(t,"components.Router",nD.components.Router)}}})),[t]);return We.createElement(rD.Provider,{value:r},n)}function oD(){const e=We.useContext(rD);if(!e)throw new Error("useOptions must be used within a OptionsProvider");return e}function aD(e){class t extends We.Component{render(){const t=this.props,{forwardedRef:n}=t,r=((e,t)=>{var n={};for(var r in e)Jk.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&$k)for(var r of $k(e))t.indexOf(r)<0&&Qk.call(e,r)&&(n[r]=e[r]);return n})(t,["forwardedRef"]);return We.createElement(rD.Consumer,null,(t=>We.createElement(e,tD(tD({ref:n},r),t))))}}var n;return eD(t,"symbol"!==typeof(n="displayName")?n+"":n,"withOptionsConsumer"),We.forwardRef(((e,n)=>{return We.createElement(t,(r=tD({},e),Zk(r,Kk({forwardedRef:n}))));var r}))}var sD=Object.defineProperty,lD=Object.defineProperties,cD=Object.getOwnPropertyDescriptors,uD=Object.getOwnPropertySymbols,dD=Object.prototype.hasOwnProperty,hD=Object.prototype.propertyIsEnumerable,pD=(e,t,n)=>t in e?sD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fD=(e,t)=>{for(var n in t||(t={}))dD.call(t,n)&&pD(e,n,t[n]);if(uD)for(var n of uD(t))hD.call(t,n)&&pD(e,n,t[n]);return e};const mD=We.createContext();function gD(e){let{eventEmitter:t,children:n}=e;const r=We.useMemo((()=>({events:t})),[t]);return We.createElement(mD.Provider,{value:r},n)}function vD(){const e=We.useContext(mD);if(!e)throw new Error("useEvents must be used within a EventsProvider");return e}function yD(e){class t extends We.Component{render(){const t=this.props,{forwardedRef:n}=t,r=((e,t)=>{var n={};for(var r in e)dD.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&uD)for(var r of uD(e))t.indexOf(r)<0&&hD.call(e,r)&&(n[r]=e[r]);return n})(t,["forwardedRef"]);return We.createElement(mD.Consumer,null,(t=>We.createElement(e,fD(fD({ref:n},r),t))))}}var n;return pD(t,"symbol"!==typeof(n="displayName")?n+"":n,"withEventsConsumer"),We.forwardRef(((e,n)=>{return We.createElement(t,(r=fD({},e),lD(r,cD({forwardedRef:n}))));var r}))}const bD=50;function xD(e,t,n,r){var i,o,a,s,l,c,u,d,h,p,f,m,g;if(Array.isArray(t)){const l=t.length?t.join(";;")+";;":"",c=null!=(a=null==(i=e[l])?void 0:i[n])?a:null==(o=e[l])?void 0:o.en,u=c?c.split(";;"):t.map((t=>xD(e,t,n)));return null!=(s=null!=u?u:r)?s:t}const v=String(t),y=v&&"".concat(v.slice(0,bD)).concat(v.length>bD?"...":"");return null!=(g=null!=(m=null!=(f=null!=(h=null!=(u=null==(l=e[y])?void 0:l[n])?u:null==(c=e[y])?void 0:c.en)?h:null==(d=e[t])?void 0:d[n])?f:null==(p=e[t])?void 0:p.en)?m:r)?g:t}var wD=Object.defineProperty,_D=Object.defineProperties,ED=Object.getOwnPropertyDescriptors,SD=Object.getOwnPropertySymbols,MD=Object.prototype.hasOwnProperty,TD=Object.prototype.propertyIsEnumerable,AD=(e,t,n)=>t in e?wD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,OD=(e,t)=>{for(var n in t||(t={}))MD.call(t,n)&&AD(e,n,t[n]);if(SD)for(var n of SD(t))TD.call(t,n)&&AD(e,n,t[n]);return e};const CD=We.createContext();function RD(e){let{children:t,dictionary:n}=e;const{options:r}=oD(),{events:i}=vD(),[o,a]=We.useState(r.language),s=We.useCallback(((e,t)=>xD(n,e,o,t)),[n,o]),l=We.useMemo((()=>({selectedLanguage:o,languages:Object.values(n).reduce(((e,t)=>(Object.keys(t).forEach((t=>e.add(t))),e)),new Set(["en"])),setLanguage:a,getText:s})),[n,o,s]);return We.useEffect((()=>{i.on("Dictionary#SetLanguage",(e=>{const t=e.language||r.language||"en";a(t.toLowerCase())}))}),[i,r.language]),We.useEffect((()=>{setTimeout((()=>{i.emit("Map#LanguageChanged",{language:o,getText:s})}),50)}),[o,s,i]),We.createElement(CD.Provider,{value:l},t)}function PD(){const e=We.useContext(CD);if(!e)throw new Error("useDictionary must be used within a DictionaryProvider");return e}function ID(e){class t extends We.Component{render(){const t=this.props,{forwardedRef:n}
2=t,r=((e,t)=>{var n={};for(var r in e)MD.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&SD)for(var r of SD(e))t.indexOf(r)<0&&TD.call(e,r)&&(n[r]=e[r]);return n})(t,["forwardedRef"]);return We.createElement(CD.Consumer,null,(t=>We.createElement(e,OD(OD({ref:n},r),t))))}}var n;return AD(t,"symbol"!==typeof(n="displayName")?n+"":n,"withDictionaryConsumer"),We.forwardRef(((e,n)=>{return We.createElement(t,(r=OD({},e),_D(r,ED({forwardedRef:n}))));var r}))}var LD=Object.defineProperty,kD=(e,t,n)=>(((e,t,n)=>{t in e?LD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!==typeof t?t+"":t,n),n);class DD{constructor(e){kD(this,"openingHours",{su:[],mo:[],tu:[],we:[],th:[],fr:[],sa:[],ph:[]}),kD(this,"weekdays",{mo:"Monday",tu:"Tuesday",we:"Wednesday",th:"Thursday",fr:"Friday",sa:"Saturday",su:"Sunday",ph:"Public Holidays"}),e=e||"",this.parseHours(e)}getTable(){return this.openingHours}timeToOpen(e){const t=e.getDay(),n=60*e.getHours()+e.getMinutes(),r=Object.entries(this.openingHours).filter((e=>"ph"!==e[0])),i=r.slice(t).concat(r.slice(0,t));for(const a of i){const e=i.indexOf(a),t=this.parseTimes(a[1]).sort(((e,t)=>e.open-t.open));if(0===e&&a[1].includes("00:00-24:00"))return 0;const r=t.find((e=>{let{open:t}=e;return t>=n}));if(0===e&&r&&r.open)return r.open-n;const o=t[0]?t[0].open:null;if(0!==e&&Number.isFinite(o))return 24*e*60-n+o}const o=i[0]&&i[0][1];if(0!==o.length){const e=this.parseTimes(o).sort(((e,t)=>e.open-t.open))[0].open;return 1440-n+8640+e}return 1/0}timeToClose(e){const t=e.getDay(),n=60*e.getHours()+e.getMinutes(),r=Object.entries(this.openingHours).filter((e=>"ph"!==e[0])),i=r.slice(t).concat(r.slice(0,t));for(const a of i){const e=i.indexOf(a),t=this.parseTimes(a[1]).sort(((e,t)=>e.close-t.close));if(0===e&&0===a[1].length)return 0;const r=t.find((e=>{let{close:t}=e;return t>=n}));if(0===e&&r&&r.close)return r.close-n;const o=t[0]?t[0].close:null;if(0!==e&&Number.isFinite(o))return 24*e*60-n+o}const o=i[0]&&i[0][1];if(0!==o.length&&!o.includes("00:00-24:00")){const e=this.parseTimes(o).sort(((e,t)=>e.close-t.close))[0].close;return 1440-n+8640+e}return 1/0}isOpenOn(e){const t=e.getDay(),n=60*e.getHours()+e.getMinutes();return Object.values(this.openingHours)[t].some((e=>{let[t,r]=e.split("-").map((e=>{const[t,n]=e.replace("+","").split(":");return 60*parseInt(t)+parseInt(n)}));return r||(r=1440),r<t?n<r||t<n&&n<1440:t<n&&n<r}))}isOpenNow(){return this.isOpenOn(new Date)}parseTable(e){this.openingHours=e}parseHours(e){(e=this.simplify(e)).split(";").forEach((e=>{this.parseHardPart(e)})),!1!==this.valid&&(this.valid=!0)}simplify(e){return"24/7"===e?"mo-su 00:00-24:00; ph 00:00-24:00":e.trim().toLowerCase().replace(/\u2013/g,"-").replace(/&/g,",").replace(/\s{0,}([:;,+-])\s{0,}/g,"$1").replace(/\s{2,}/g," ")}parseHardPart(e){"24/7"===e&&(e="mo-su 00:00-24:00");const t=e.trim().split(/ |,/);let n={},r=[],i=[];t.forEach((e=>{const t=this.checkDay(e),o=this.checkTime(e);t||o||(this.valid=!1),t&&(0===i.length?r=r.concat(this.parseDays(e)):(r.forEach((e=>{n[e]?n[e]=n[e].concat(i):n[e]=i})),r=this.parseDays(e),i=[])),o&&("off"===e?i=[]:i.push(e))})),0===r.length&&0!==i.length&&(r=["mo","tu","we","th","fr","sa","su"]),r.forEach((e=>{n[e]=n[e]?n[e].concat(i):i})),Object.entries(n).forEach((e=>{let[t,n]=e;return this.openingHours[t]=Array.from(n)}))}parseDays(e){let t=[];return e.split(",").forEach((e=>{0===(e.match(/-/g)||[]).length?t.push(e):t=t.concat(this.calcDayRange(e))})),t}calcDayRange(e){let t={su:0,mo:1,tu:2,we:3,th:4,fr:5,sa:6},n=e.split("-"),r=t[n[0]],i=t[n[1]],o=this.calcRange(r,i,6),a=[];return o.forEach((e=>{for(let n in t)t[n]===e&&a.push(n)})),a}calcRange(e,t,n){if(e===t)return[e];let r=[e],i=e;for(;i<(e<t?t:n);)i++,r.push(i);return e>t&&(r=r.concat(this.calcRange(0,t,n))),r}checkTime(e){return!!e.match(/[0-9]{1,2}:[0-9]{2}\+/)||(!!e.match(/[0-9]{1,2}:[0-9]{2}-[0-9]{1,2}:[0-9]{2}/)||!!e.match(/^off$/))}checkDay(e){const t=new Set(Object.keys(this.weekdays));return!(!e.includes("-")||!e.split("-").every((e=>t.has(e))))||!!t.has(e)}parseTimes(e){return e.map((e=>{let[t,n]=e.split("-").map((e=>{const[t,n]=e.replace("+","").split(":");return 60*parseInt(t)+parseInt(n)}));return Number.isFinite(n)||(n=1440),0===t&&1440===n?{open:null,close:null}:{open:t,close:n}}))}}var ND=Object.defineProperty,UD=Object.defineProperties,jD=Object.getOwnPropertyDescriptors,FD=Object.getOwnPropertySymbols,BD=Object.prototype.hasOwnProperty,zD=Object.prototype.propertyIsEnumerable,HD=(e,t,n)=>t in e?ND(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VD=(e,t)=>{for(var n in t||(t={}
2))BD.call(t,n)&&HD(e,n,t[n]);if(FD)for(var n of FD(t))zD.call(t,n)&&HD(e,n,t[n]);return e},WD=(e,t)=>UD(e,jD(t));const GD=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Xk.styles[e];return t&&!n&&console.log("Default styles used for the ".concat(e)),n||{}};function qD(e,t,n){let{mapProjection:r}=n;e.forEach((e=>{if(["__outdoor-level__","__dynamic__"].includes(e.id))return;const n=GD(e.category),i=[];n.walls&&!n.solid&&e.openingIds&&e.openingIds.forEach((e=>{const t=Xk.openings.get(e);t?i.push(t):console.warn("Opening ".concat(e," was not found"))})),e.mapObject=new tp(e.geometry,{mapProjection:r,styles:n,doors:i,userData:{id:e.id,category:e.category,type:"level"}}),t.add(e.mapObject),function(e,t,n,r){let{mapProjection:i}=r;e&&e.forEach((e=>{var r;if(["walkway","walkway_airside"].includes(null==(r=null==e?void 0:e.category)?void 0:r.toLowerCase()))return;let o=GD(e.category);if(e.occupants&&(o=e.occupants.reduce(((e,t)=>{if(!t.category)return e;const n=GD(t.category.id,!1),r=GD(t.category.fullName,!1);return WD(VD(VD(VD({},e),n),r),{priority:e.priority})}),o)),!o.floor&&!o.roof&&!o.walls)return;const a=[];o.walls&&!o.solid&&t&&e.openingIds&&e.openingIds.forEach((e=>{const t=Xk.openings.get(e);t?a.push(t):console.warn("Opening ".concat(e," was not found"))})),e.mapObject=new tp(e.geometry,{mapProjection:i,styles:o,doors:a,userData:{id:e.id,category:e.category,type:"unit"}}),n.add(e.mapObject)}))}(e.units,e.openings,t,{mapProjection:r}),function(e,t,n,r){let{mapProjection:i}=r;e&&e.forEach((e=>{const r="".concat(e.category).concat(e.subCategory?"-"+e.subCategory:""),o=GD(r);if(!o.floor&&!o.roof&&!o.walls)return;const a=[];o.walls&&!o.solid&&t&&e.openingIds&&e.openingIds.forEach((e=>{const t=Xk.openings.get(e);t?a.push(t):console.warn("Opening ".concat(e," was not found"))})),e.mapObject=new tp(e.geometry,{mapProjection:i,styles:o,doors:a,userData:{id:e.id,category:e.category,type:"section"}}),n.add(e.mapObject)}))}(e.sections,e.openings,t,{mapProjection:r}),function(e,t,n){let{mapProjection:r}=n;e&&e.forEach((e=>{var n;let i=GD(e.category);if(i.floor||i.roof||i.walls){if(e.originUnit){const t=GD(e.originUnit.category);i=WD(VD({},i),{priority:t.priority})}e.mapObject=new tp(e.geometry,{originGeometry:null==(n=e.originUnit)?void 0:n.geometry,mapProjection:r,styles:i,userData:{id:e.id,category:e.category,type:"fixture"}}),t.add(e.mapObject)}}))}(e.fixtures,t,{mapProjection:r}),function(e,t,n,r){let{mapProjection:i}=r;const o=GD("Walkway"),a=e&&[...e.values()].filter((e=>{var t;return"walkway"===(null==(t=null==e?void 0:e.category)?void 0:t.toLowerCase())}));if(a&&a.length&&o.walls){const e=new PO(a,t,{mapProjection:i,styles:o,userData:{id:a.map((e=>{let{id:t}=e;return t})),category:a[0].category}});n.add(e)}a&&(o.floor||o.roof)&&a.forEach((e=>{const t=new tp(e.geometry,{mapProjection:i,styles:WD(VD({},o),{walls:!1}),userData:{id:e.id,category:e.category,type:"unit"}});n.add(t)}))}(e.units,e.openings,t,{mapProjection:r})}))}function XD(e){let{mapProjection:t,getCategory:n,ordinalsOptions:r}=e;const{basemap:i,buildings:o}=Xk.ordinals.values().next().value,a=function(e,t){let{mapProjection:n}=t;const r=[];return e.forEach((e=>{const t=GD(e.category);(t.floor||t.roof||t.walls)&&(e.mapObject=new tp(e.geometry,{mapProjection:n,styles:t,userData:{id:e.id,category:e.category,type:"basemap"}}),r.push(e.mapObject))})),r}(i,{mapProjection:t}),s=function(e,t){let{mapProjection:n}=t;const r=[];return e.forEach((e=>{const t=GD(e.category);(t.floor||t.roof||t.walls)&&(e.mapObject=new tp(e.geometry,{mapProjection:n,styles:t,userData:{id:e.id,category:e.category,type:"building"}}),r.push(e.mapObject))})),r}(o,{mapProjection:t});return Xk.ordinals.forEach((e=>{var i;e.mapOrdinal=new oR,function(e,t,n){let{mapProjection:r,getCategory:i}=n;e&&e.forEach((e=>{e.category=i(e.categoryId),e.extraCategories=e.extraCategoryIds.map(i).filter((e=>!e.isDefault)),e.category.occupants=e.category.occupants||[],e.category.occupants.push(e),e.extraCategories.forEach((t=>{t.occupants=t.occupants||[],t.occupants.push(e)})),e.category.poiType&&(e.isPoint="amenities"===e.category.poiType);const n=new WC(e.coordinates,{title:e.rawProperties.name,category:e.category.id,icon:e.category.icon,color:e.category.color,dotScale:e.category.dotScale,iconScale:e.category.iconScale,titleScale:e.category.titleScale,flippable:e.flippable,rotateX:e.rotateX,rotateY:e.rotateY,rotateZ:e.rotateZ,height:e.height,mapProjection:r});n.addClass("pcmap-marker-".concat(e.id)),n.addClass("pcmap-category-".concat(e.category.id)),e.isPoint&&n.addClass("pcmap-marker-point"),n.interactive=e.category.clickable,e.marker=n,t.add(n)}))}(e.occupants,e.mapOrdinal,{mapProjection:t,getCategory:n}
2),s.forEach((t=>{e.mapOrdinal.add(t)})),a.forEach((t=>{e.mapOrdinal.add(t)})),qD(e.levels,e.mapOrdinal,{mapProjection:t}),e.options=null!=(i=r.find((t=>t.id===e.id)))?i:{},e.dispose=()=>{Object.getOwnPropertyNames(e).forEach((t=>{var n;"function"===typeof(null==(n=e[t])?void 0:n.dispose)&&e[t].dispose(),e[t]=null}))}})),Xk.ordinals}function YD(e){let{ordinals:t,timeZoneOffset:n,getText:r}=e;t.forEach((e=>{var t;e.display={name:r(null!=(t=e.options.name)?t:e.name)},e.occupants&&e.occupants.forEach((e=>{const t=r(e.rawProperties.name),i=r(e.category.name),o=e.rawProperties.hours;e.display={name:t||i||"",description:r(e.rawProperties.description)||"",area:r(e.rawProperties.area)||"",zone:r(e.rawProperties.zone)||"",url:r(e.rawProperties.url)||"",website:r(e.rawProperties.website)||"",email:r(e.rawProperties.email)||"",hours:r(o)||"",phone:r(e.rawProperties.phone)||"",category:i||"",keywords:e.rawProperties.keywords?r(e.rawProperties.keywords):[]};const a=o&&new DD(o);if(a&&a.valid){const t=a.getTable();e.display.hoursTable=Object.entries(t).reduce(((e,t)=>{let[n,i]=t;return e[n]={dayName:r(a.weekdays[n]),times:i},e}),{}),e.getOpeningState=()=>{const e=function(e){const t=new Date,n=t.getTime()+t.getTimezoneOffset()*Tk;return new Date(n+e*Ak)}(n),i=a.isOpenOn(e),o=a.timeToOpen(e),s=a.timeToClose(e),[l,c]=Object.entries(t)[e.getDay()];let u=i?"Open now":"Closed";return i&&s<=30&&(u="Closing soon"),!i&&o<=30&&(u="Opening soon"),0===t[l].length&&(u="Closed today"),{state:u,stateName:r(u),today:{day:l,dayName:r(a.weekdays[l]),times:c}}}}e.marker&&(e.marker.titleText=e.display.name)})),e.levels&&e.levels.forEach((e=>{e.display={name:r(e.name),shortName:r(e.shortName)},e.building&&(e.building.display={name:r(e.building.name)})}))}))}var ZD=Object.defineProperty,KD=Object.defineProperties,$D=Object.getOwnPropertyDescriptors,JD=Object.getOwnPropertySymbols,QD=Object.prototype.hasOwnProperty,eN=Object.prototype.propertyIsEnumerable,tN=(e,t,n)=>t in e?ZD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nN=(e,t)=>{for(var n in t||(t={}))QD.call(t,n)&&tN(e,n,t[n]);if(JD)for(var n of JD(t))eN.call(t,n)&&tN(e,n,t[n]);return e},rN=(e,t)=>KD(e,$D(t));const iN={name:"Default",dotScale:1,iconScale:1,titleScale:1,icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAABGdBTUEAALGPC/xhBQAACxZJREFUeAHtXTlsFkcYXZsbY2zCIWSwQC5iAuFQQApCSoSNRIhEpBwVDZKbiAaFKk3qNEkDchPRINFQhVBQQCRslEiWLeEoCGMwh5E5LM5gsM1hwOS9n13jmT3+2Z1jf/D/Sau9Zr7vm/d2jp2ZnfW8spQRKCNQRiA3BCpys1zE8JkzZ2YMDw83vn79uhFBg60B5zUVFRXV2FfjOjfKMK4N4xr3j3Dej62PG877qqur+zZt2vQC5yUnJUMAwKs8ffr0J9g3AaVm7D/DvsoQYqMg4m/oasO+fevWrf9gP25It5aa3Aloa2vbiBTsxrYLoC/WSo1iZIB/D0GPYDvc3NzcrRjNSrBcCOjs7Jw/Ojr6PVLUgm21lZSpK+1F0ENVVVUHN2/e/Fg9mpmQTgno6Oj44NmzZ/vg+l487bVmkmBGC3LFEDS1zp49e/+WLVv+M6O1uBYnBJw9e7bqwYMHP8EdAj+vuFv5hQARI7DeunDhwp/Xr18/atsT6wSgjP8WidgP4OttJ8akfhBxA/r2oY44alKvrMsaAadOnVqBRPwG4HfIRt+lc6ThBNKwZ9u2bQM2/LZCQHt7+9dw+hC2kirnswIIEoawtTQ1NR3LqiMunlECzp8/P/P27du/wNgPcQbf8esHli5d+uOaNWvGTKXDGAF46hfhiT+O7VNTzpWiHuSELmw7kRvum/DPCAEs7+HMn9g+NOFUqesAAX140L4wUS9U6iYWT/7H0NGBbUqAT7wAPvumOvy081Jm0coBdADO/IVtQWYP3uGIyAkPsX2O4qgnazIyE+AXO3zy67Iaf0/iDSIdW7IWR5mKIFa4MMoyf6qDz2eoDrngpI8Jz1NJagLY1ESRcxxWpkyZXwxR1gnEhNgUCyvfT00A2/kw9l43NWWQVM6Jif8OpBJ8IkyqOgDZ7Ovx8fE/JmI7PEB3sbdo0SKP+1mzZhW2mTPfPHBjY2Pe8+fPCxu6ub379+973OchlZWV36R5Y1YmwO/b+RdMO+teINh1dXUF4OfMmZMKz6dPnxaIGBwcdEoG6oMhYLRBtVKerpoqKGbHmhPw+YQ3NDR4eO33YFfVRSEcCauvr/eWL1/uoWjw+vv7CzlECGThhBgRK6j+UkW9UurYpQzFv6so1AlDsAk8gUNW1lEVivvq1Svv5s2bBSKQltB90xeQlu9UurKLEuAPplyA01b782fMmOGtXbvWq621m8mGhoa8c+fOeS9e2J0kAQJuYFDno2KDOkUfM45k2QafZT2mjVgHn085CaYt2rQpxMwfBUw0k5gD/DHcASizNoxIIDZu3OhNn65cHSUmSPXmy5cvve7ubqsVNHLBCMaYVySNMSfmAA6g2wSfxc66deucg0+SSDht0wdbQuz8SQixJmIJ4NQRxNobG1PzBitclvlpm5eaZoXotE0f6ItF2etjGWkilgDO2wGD1mpEtnZsV7iRKZYu0gf6YkuIoT8HKtJELAEI3RIZw8BFtvPZPi8VoS/0yaLEYhlJgD9d0NqMNT5x06ZNs5jedKrpi81cAG9W+5iGHIskAKE4V9OKsNXDN9xSE/pkuWkaiWmIAJRZvLbLFkDs27Fc6WVynT7RN4vCycchvEMX/Cni1mYps0ezVMWmbwB/MbGV0x4iAAGb5ECmzpnFTTU7g95Odj3z2ITQN5vFUBS2Ua+fzSYSE6Vj8WL9jEWwL1686D18+FAwsWDBAm/VqlXaBNNHi2MJxPbXyY4LOYCfBYElfpliRebOnaulF30rXldXVwh8KiUhvMcwOqLrY5JtYkuMJ4cRCOA3WbhprZdKp63N3ssLFy54GJGb7L9wzHsMo9PTqeOj4Ez0SZWP8cRdgQAwRAKsiU7irl275nHosZgwDMNmFR0fVWzKGAsEQIFVAoIxXBVH5TBpipY0YWU7Oj7KumLOBYydEhDjkNJl9CoqhWOgNGGVlZoLmEhAgzk7YU0qRUg41psracYL0oSV7en4KOuKORcwFnIAyqeamEhGLuu012tq1F1LE1ZOmI6Psq6ocxljgQC8jldHRTJ1jeOxWWXlypVKXRjsUmDYrKLjo4pNGWOBALBjlQD55UnF4SDM/PnzvRUr+BlCsjAMw2YVHR9VbMoYCwRAgVUCHj9+rNSUjEsIu4wbGxsju7LZpcx7Ot3KLP/po2URMI7qirBq/86dO4V5P1mNLFu2rDBT7u7du97IyEhBzbx587wlS5ZoD6rQN9ciEzAMBxbadIKz1DjxSkf4sqSrI8o+fXMgxHhChCIIFYRwcyKUwQO8invcSk1c+SVjLBCACsIJMjdu8CP00hJXPskYCwSAHS52ZF1Y1nI6eakIfXFV/ssYCwQAkH4XoOAp8Fw9cSrpoS/0yZEIGMsEcJkvJ8KZyg5e+4umhT7QF4ciYJwbAey7L4VcQB+SxhgsEBNPAMon4aYF44LKvHNBDk8/u1MEjIUcwNUFgZCzj6v40YTO4InAZoYT2qYPDmXUx3jCpEAAl3YEQ1xd0JnwG64nT544sxcYok3adinEVl4+UyDAd6bNpVNsfVy5csWlyYIt2nTY8gnSF8I2RABYag9Cu9pzbo/OMGJaP2mLNl1LFLYhAvxFTbmuplO5dOmSk9YIWzy05VoA/j1iK9sNEYCA4wh0RA5o+5wjUQMDA7bNFGzYHvWKScQRH1vhdogA/+5hIZSjExJgExxXJMfAFYlpJAH+cr5cUdapsHi4fPmyNZvU7filK0hLb9wSyZEE+LEOBbFd7lk52qggbelVxCYWy1gCMEv4IMqs7KPoip5FBWMlafIFibryqHiZNmJILKPSyWuxBPgLWbfGRbR5nROrrl69aswEdeU4Was1aVHwWAKYei5kDQbfDLwag0NNEfuJHj3SH56gDse9nRMJJHbEcOJCxEEiAf4X3rnkAvrKmc46RRHjUkeO0pr0lTz9SiSAAbiKOJjMZQyR/TU6nXWMm0c/E3EjZsSOx0lSlAB/tY99SUps3rt+/XqmoohFD+PmKPuKrZRC34oSwEBowx4Foyd4nIf09vamKopY9DBOXkKsiJmKfSUCqAg9h3ugOJdmKd9g0/SYMqzNN+okYIkRsUoKM/meMgFcAw3KWyZHdnl869YtpR5T9nQybF5CjFTXi6OPygQwsL8a4AEe5yFs0SQN5PNezq2eA2lWTCSGqQhgBK6fD5a7eOxaCDA/UY0T3ksiKC6eievApJPYpNWVmgD+vADGdsKQ+051GGWfTtSLFa/Z6ENSBPQSMPkqy48dUhNAh5DNOJy0HZvbQVUah7CSDWZG85zHaSppxjEoxGC7j0lqtZkIoBVWNPgWaweYFz9ZT+1C+gjsUu7p6Sk0Tdnk5HEe3cxMO5bX1PqRQ0X65Isx+A8BJP4krtaJd+yfBcveOJpWLidokODjye+Rb6Q51yaAxqbaL0yQZNZ/29M0N4lTlBghgIq5fj5eQKbCT3w6WeFmLfNlEowRQMXl31jJ8BY/N0pAYI7L3CM3HMJWG1x7l/d44q39yC1zKygJUGTPYwB/AxzPrQMvyb8095gGpoVpShNPNayVHDDZePlnnpPRCB9bJ4Amy7+zDQMfXHFCQGCs/EPnAIm3e6cEBGbLvzQPkMDQ5dvDfI78FWV3wzrX1dRf1U8hGahYOfmY818PY+SqWyGKtSC5ExCkDOBX+muWNuFaM865eKCp9etGATo/PGnDvt2fAc5JyLlLyRAgI8HVBbnAHYjgClPB1oDzGoBYjT0XvQgWvhjGtWFc456Tifqx8XOrPpz38bMg+csU3CtLGYEyAmUEpjoC/wPb+bzkQH8GbgAAAABJRU5ErkJggg==",color:"#bdbdbd",dotMinZoom:1e3,iconMinZoom:1e3,titleMinZoom:1e3,showInCategoriesList:!1,showInSearchResult:!1,priority:0,clickable:!0,poiType:"occupants",display:{name:"Default",fullName:"Default",fullPath:["Default"]}},oN=We.createContext(),aN=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return e.reduce(((e,i)=>{const{normalized:o,flatten:a}=e,s=[...r,i.id],l=[...n,i.name],c=l.join(" - "),u=i.subCategories?aN(i.subCategories,t,l,s):void 0,d=rN(nN(nN({},t),i),{subCategories:u&&u.normalized,fullPathIds:s,fullPath:l,fullName:c,occupants:[],display:{name:i.name,fullPath:l,fullName:c}});return{normalized:[...o,d],flatten:u?[...a,...u.flatten,d]:[...a,d]}}),{normalized:[],flatten:[]})};function sN(e){let{categories:t,children:n}=e;const{getText:r}=PD(),{events:i}=vD(),o=We.useMemo((()=>{const e=t?t.find((e=>"Default"===e.name)):{},n=nN(nN({},iN),e),r=rN(nN({},n),{isDefault:!0}),{normalized:i=[],flatten:o=[]}=t?aN(t,n):{},a=new Map(o.map((e=>[e.id,e])));return{categories:i,categoriesFlatten:o,getCategory:e=>a.get(e)||r}}),[t]);return We.useEffect((()=>
2{o&&o.categoriesFlatten.forEach((e=>{const{fullPath:t,keywords:n}=e,i=t.map((e=>r(e))),o=n?r(n):[];e.display={name:r(e.name),fullPath:i,fullName:i.join(" - "),keywords:o}}))}),[o,r]),We.useEffect((()=>{o&&setTimeout((()=>{i.emit("Categories#Updated",{categories:o.categories,categoriesFlatten:o.categoriesFlatten})}),100)}),[o,i]),We.createElement(oN.Provider,{value:o},n)}function lN(e){class t extends We.Component{render(){const t=this.props,{forwardedRef:n}=t,r=((e,t)=>{var n={};for(var r in e)QD.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&JD)for(var r of JD(e))t.indexOf(r)<0&&eN.call(e,r)&&(n[r]=e[r]);return n})(t,["forwardedRef"]);return We.createElement(oN.Consumer,null,(t=>We.createElement(e,nN(nN({ref:n},r),t))))}}var n;return tN(t,"symbol"!==typeof(n="displayName")?n+"":n,"withCategoriesConsumer"),We.forwardRef(((e,n)=>We.createElement(t,rN(nN({},e),{forwardedRef:n}))))}var cN=Object.defineProperty,uN=Object.defineProperties,dN=Object.getOwnPropertyDescriptors,hN=Object.getOwnPropertySymbols,pN=Object.prototype.hasOwnProperty,fN=Object.prototype.propertyIsEnumerable,mN=(e,t,n)=>t in e?cN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gN=(e,t)=>{for(var n in t||(t={}))pN.call(t,n)&&mN(e,n,t[n]);if(hN)for(var n of hN(t))fN.call(t,n)&&mN(e,n,t[n]);return e},vN=(e,t)=>uN(e,dN(t)),yN=(e,t,n)=>(mN(e,"symbol"!==typeof t?t+"":t,n),n);const{Provider:bN,Consumer:xN}=We.createContext();class wN extends We.Component{constructor(e){var t;super(e),t=this,yN(this,"init",(e=>{const{options:t,categories:n,categoriesFlatten:r,events:i}=this.props,{activeOrdinal:o,mapProjection:a,ordinals:s}=this.state;if(!o)throw new Error("The active ordinal has to be exist");const l=new _k(e,{mapProjection:a,center:t.center,minZoom:t.minZoom,maxZoom:t.maxZoom,zoom:t.zoom,zoomSpeed:t.zoomSpeed,minRotation:t.minRotation,maxRotation:t.maxRotation,rotation:t.rotation,rotationSpeed:t.rotationSpeed,minTilt:t.minTilt,maxTilt:t.maxTilt,tilt:t.tilt,maxBounds:t.maxBounds,damping:t.damping,dampingFactor:t.dampingFactor,mapGroups:[o.mapOrdinal],backgroundColor:t.backgroundColor,basemap:t.basemap,debug:t.debug});l.addEventListener("centerChange",(e=>{let{center:t}=e;this.center=t,i.emit("Map#ViewChange",{center:t})}));const c=e=>{let{zoom:t}=e;this.zoom=t,i.emit("Map#ZoomChange",{zoom:t})};l.addEventListener("zoomChangeSequence",c),l.addEventListener("zoomChange",c);const u=e=>{let{rotation:t,user:n}=e;n&&"heading"===this.state.followMeMode&&this.state.setFollowMeMode(!1),this.rotation=t,i.emit("Map#RotationChange",{rotation:t})};l.addEventListener("rotationChangeSequence",u),l.addEventListener("rotationChange",u);const d=e=>{let{tilt:t}=e;this.tilt=t,i.emit("Map#TiltChange",{tilt:t})};l.addEventListener("tiltChangeSequence",d),l.addEventListener("tiltChange",d),l.addEventListener("userPanning",(()=>{this.state.followMeMode&&this.state.setFollowMeMode(!1)})),l.addEventListener("click",(e=>{const{activeOrdinalId:t}=this.state,n=e.originalEvent.composedPath().some((e=>{var t;return null==(t=e.classList)?void 0:t.contains("pcmap-marker")}));delete e.originalEvent,delete e.target,this.props.events.emit("Map#Click",vN(gN({},e),{isClickOnMarker:n,ordinal:t})),n||(this.state.setSelectedOccupants([]),this.state.setFollowMeMode(!1))})),this.setState({map:l,mapLoaded:!0},(()=>{this.filterOrdinalObjects(o),setTimeout((()=>{this.props.events.emit("PCMap#Initialized",{ordinals:s,categories:n,categoriesFlatten:r})}),100)})),i.on("Map#Dispose",(()=>{const{events:e}=this.props,{map:t}=this.state;t&&t.dispose(),e.removeAllListeners(),Xk.dispose()})),i.on("Map#SetZoom",(e=>{let{zoom:t,options:n}=e;const{map:r}=this.state;r?Number.isFinite(t)?r.setZoom(t,n):console.error("Provide a valid zoom level"):console.error("Map was not intialized")})),i.on("Map#SetZoomRange",(e=>{let{min:t,max:n,options:r}=e;const{options:{minZoom:i,maxZoom:o}}=this.props,{map:a}=this.state;if(!a)return void console.error("Map was not intialized");const s=Number.isFinite(t)?t:i,l=Number.isFinite(n)?n:o;a.setZoomRange(s,l,r)})),i.on("Map#SetRotation",(e=>{let{rotation:t,options:n}=e;const{map:r}=this.state;r?Number.isFinite(t)?r.setRotation(t,n):console.error("Provide a valid rotation angle"):console.error("Map was not intialized")})),i.on("Map#SetRotationRange",(e=>{let{min:t,max:n,options:r}=e;const{options:{minRotation:i,maxRotation:o}}=this.props,{map:a}=this.state;if(!a)return void console.error("Map was not intialized");const s=Number.isFinite(t)?t:i,l=Number.isFinite(n)?n:o;a.setRotationRange(s,l,r)})),i.on("Map#SetTilt",(e=>{let{tilt:t,options:n}=e;const{map:r}=this.state;r?Number.isFinite(t)?r.setTilt(t,n):console.error("Provide a valid tilt angle"):console.error("Map was not intialized")})),i.on("Map#SetTiltRange",(e=>{let{min:t,max:n,options:r}=e;const{options:{minTilt:i,maxTilt:o}}=this.props,{map:a}=this.state;if(!a)return void console.error("Map was not intialized");const s=Number.isFinite(t)?t:i,l=Number.isFinite(n)?n<90?n:90:o;a.setTiltRange(s,l,r)})),i.on("Map#SetView",(e=>{let{center:t,options:n={}}=e;const{map:r}=this.state;r?t&&Number.isFinite(t[0])&&Number.isFinite(t[1])?this.state.setView(t,n):console.error("Provide a valid center coordinates"):console.error("Map was not intialized")})),i.on("Ordinal#Show",(e=>{let{ordinalId:t,applyOrdinalOptions:n}=e;const{map:r,ordinals:i,setActiveOrdinal:o,applyOrdinalOptions:a}=this.state,s=i.get(t);r?s?(o(s.id,{fitMap:!1}),n&&a(s)):console.error("Ordinal was not found"):console.error("Map was not intialized")})),i.on("GeoData#Update",(()=>{this.setState({geoDataTimestamp:Date.now()})})),i.on("Map#SelectOccupants",(e=>{let{occupants:t,callback:n}=e;const{ordinals:r}=this.state;if(this.state.setSelectedOccupants(null!=t?t:[]),n){n(Array.from(r.values()).flatMap((e=>e.occupants)).filter((e=>t.includes(e.id))))}})),i.on("Map#Filter",(e=>{let{predicate:t}=e;const{activeOrdinal:n}=this.state;this.setState({filterMapObjectsPredicate:t},(()=>{this.filterOrdinalObjects(n)}))})),i.on("Map#Dim",(e=>{let{predicate:t}=e;const{map:n}=this.state;n.dimMapObjects(t)}))})),yN(this,"filterOrdinalObjects",(e=>{const{map:t,filterMapObjectsPredicate:n}=this.state,r=this.zoom;e.mapOrdinal.filterMapObjects(((e,t)=>{const{type:i}=e;return i&&"function"===typeof n?n(vN(gN({},e),{zoom:r,visible:t})):t})),t.refresh()})),yN(this,"showOrdinal",((e,t)=>
2{const{map:n,activeOrdinalId:r,activeOrdinal:i,ordinals:o}=this.state,{fitMap:a=!1}=t;if(!n||r===e)return;const s=o.get(e);s&&(i&&n.removeMapGroup(i.mapOrdinal),n.addMapGroup(s.mapOrdinal),a&&n.fitBounds(s.bounds))}));const n=new FR({origin:e.options.center});console.time("Create ordinals");const r=XD({ordinalsOptions:e.options.ordinalsOptions,mapProjection:n,getCategory:e.getCategory});console.timeEnd("Create ordinals"),YD({ordinals:r,timeZoneOffset:e.options.timeZoneOffset,getText:e.getText});const i=e.options.ordinal,o=r.get(i);this.center=e.options.center,this.zoom=e.options.zoom,this.tilt=e.options.tilt,this.rotation=e.options.rotation,this.state={map:null,mapLoaded:!1,mapProjection:n,ordinals:r,activeOrdinalId:i,activeOrdinal:o,geoDataTimestamp:Date.now(),initMap:this.init.bind(this),filterMapObjectsPredicate:null,setZoom:function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{map:r}=t.state;r&&r.setZoom(e,n)},setView:function(){const{map:e}=t.state;e&&(t.state.setFollowMeMode(!1),e.setView(...arguments))},fitPoints:function(){const{map:e}=t.state;e&&(t.state.setFollowMeMode(!1),e.fitPoints(...arguments))},refresh:()=>{const{map:e}=this.state;e&&e.refresh()},setActiveOrdinal:I_((function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ordinals:r,activeOrdinalId:i}=t.state,{callback:o,fitMap:a,keepFollowMeMode:s}=n;if(i===e)return void(o&&o());s||t.state.setFollowMeMode(!1);const l=r.get(e);t.showOrdinal(e,{fitMap:a}),t.filterOrdinalObjects(r.get(e)),t.setState({activeOrdinalId:e,activeOrdinal:l},(()=>{o&&o(),t.props.events.emit("Map#OrdinalChanged",{ordinal:e,title:l.display.name})}))}),100),applyOrdinalOptions:e=>{var t,n,r;const{options:i}=this.props,{map:o}=this.state;if(!o)return;const a=null!=(t=e.options.center)?t:i.center,s=null!=(n=e.options.zoom)?n:i.zoom,l=null!=(r=e.options.rotation)?r:i.rotation;this.state.setView(a,{zoom:s,rotation:l})},selectedOccupants:[],setSelectedOccupants:e=>{const{options:t}=this.props,{selectedOccupants:n}=this.state;t.unitFloorHighlighting&&Array.from(r.values()).flatMap((e=>e.occupants)).forEach((r=>{var i;(null==(i=null==r?void 0:r.unit)?void 0:i.mapObject)&&(!e.includes(r.id)||r.unit.category.includes("walkway")?n.includes(r.id)&&r.unit.mapObject.resetFloorColor():r.unit.mapObject.floorColor=t.unitFloorHighlightColor)}));0===e.length&&0===n.length||(this.setState({selectedOccupants:e}),this.state.setFollowMeMode(!1))},followMeMode:!1,setFollowMeMode:e=>{this.setState({followMeMode:e},(()=>{this.props.events.emit("Map#ModeChange",{followMe:e})}))},pins:[],setPins:e=>this.setState({pins:e||[]})}}UNSAFE_componentWillUpdate(e,t){const{selectedLanguage:n,options:r,getText:i}=e,{ordinals:o}=t;n!==this.props.selectedLanguage&&YD({ordinals:o,timeZoneOffset:r.timeZoneOffset,getText:i})}componentDidUpdate(){const{events:e}=this.props;e.emit("Map#StateChanged",{ordinalId:this.state.activeOrdinalId,center:this.center,zoom:this.zoom,rotation:this.rotation,tilt:this.tilt})}componentWillUnmount(){const{events:e}=this.props;e.emit("Map#Dispose")}render(){const{children:e}=this.props;return We.createElement(bN,{value:this.state},e)}}const _N=yD(ID(lN(aD(wN)))),EN=e=>{class t extends We.Component{render(){const t=this.props,{forwardedRef:n}=t,r=((e,t)=>{var n={};for(var r in e)pN.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&hN)for(var r of hN(e))t.indexOf(r)<0&&fN.call(e,r)&&(n[r]=e[r]);return n})(t,["forwardedRef"]);return We.createElement(xN,null,(t=>We.createElement(e,gN(gN({ref:n},r),t))))}}return yN(t,"displayName","withMapConsumer"),We.forwardRef(((e,n)=>We.createElement(t,vN(gN({},e),{forwardedRef:n}))))};function SN(){let e=null,t=null;const n=function(){let e=null;const t=new Array(arguments.length>0&&void 0!==arguments[0]?arguments[0]:16).fill(0);return n=>(null===e&&(e=n),t.shift(),t.push(n),e=t.reduce(((e,t)=>e+t),0)/t.length,e)}(16);return r=>{null!==e&&null!==t||(e=r,t=r);let i=t-r;return i=i<-180?i+360:i>180?i-360:i,e-=i,t=r,n(e)}}var MN,TN,AN,ON,CN,RN,PN,IN,LN,kN,DN,NN,UN,jN,FN,BN,zN,HN=Object.defineProperty,VN=Object.defineProperties,WN=Object.getOwnPropertyDescriptors,GN=Object.getOwnPropertySymbols,qN=Object.prototype.hasOwnProperty,XN=Object.prototype.propertyIsEnumerable,YN=(e,t,n)=>t in e?HN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ZN=(e,t)=>{for(var n in t||(t={}
2))qN.call(t,n)&&YN(e,n,t[n]);if(GN)for(var n of GN(t))XN.call(t,n)&&YN(e,n,t[n]);return e},KN=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},$N=(e,t,n)=>(KN(e,t,"read from private field"),n?n.call(e):t.get(e)),JN=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},QN=(e,t,n,r)=>(KN(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),eU=(e,t,n)=>(KN(e,t,"access private method"),n);class tU{constructor(e){JN(this,kN),JN(this,NN),JN(this,jN),JN(this,BN),JN(this,MN,void 0),JN(this,TN,0),JN(this,AN,0),JN(this,ON,null),JN(this,CN,0),JN(this,RN,!1),JN(this,PN,null),JN(this,IN,{debug:!1}),JN(this,LN,void 0),QN(this,IN,ZN(ZN({},$N(this,IN)),e)),QN(this,LN,SN())}set gpsLocation(e){QN(this,MN,e),eU(this,kN,DN).call(this,e)}set routePoints(e){QN(this,PN,e?e.map((e=>{let[t,n]=e;return new Sr(t,n)})):null)}}MN=new WeakMap,TN=new WeakMap,AN=new WeakMap,ON=new WeakMap,CN=new WeakMap,RN=new WeakMap,PN=new WeakMap,IN=new WeakMap,LN=new WeakMap,kN=new WeakSet,DN=function(e){const{latitude:t,longitude:n,heading:r,accuracy:i}=e,{routeStickingThreshold:o=10}=$N(this,IN);if(!t||!n||!i)return;const a=eU(this,NN,UN).call(this,t,n);a&&a.distance<o?(QN(this,TN,a.point[0]),QN(this,AN,a.point[1]),QN(this,CN,i),QN(this,RN,!0)):(QN(this,TN,t),QN(this,AN,n),QN(this,CN,i),QN(this,RN,!1)),PS(r)||QN(this,ON,$N(this,LN).call(this,r)),eU(this,BN,zN).call(this)},NN=new WeakSet,UN=function(e,t){var n;if(!(null==(n=$N(this,PN))?void 0:n.length))return null;const r=$N(this,PN),i=new Sr(e,t),{closestPoint:o,distance:a}=r.reduce(((e,t,n)=>{if(n===r.length-1)return e;const{closestPoint:o,distance:a}=jp(i,t,r[n+1]);return a<e.distance?{closestPoint:o,distance:a}:e}),{closestPoint:null,distance:Number.MAX_VALUE});return o?{point:[o.x,o.y],distance:eU(this,jN,FN).call(this,a)}:null},jN=new WeakSet,FN=function(e){return 111139*e},BN=new WeakSet,zN=function(){const{onLocationChange:e}=$N(this,IN);var t,n;e&&e((t=ZN({},$N(this,MN)),n={latitude:$N(this,TN),longitude:$N(this,AN),heading:$N(this,ON),accuracy:$N(this,CN),stickToRoute:$N(this,RN)},VN(t,WN(n))))};var nU=Object.defineProperty,rU=Object.defineProperties,iU=Object.getOwnPropertyDescriptors,oU=Object.getOwnPropertySymbols,aU=Object.prototype.hasOwnProperty,sU=Object.prototype.propertyIsEnumerable,lU=(e,t,n)=>t in e?nU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cU=(e,t)=>{for(var n in t||(t={}))aU.call(t,n)&&lU(e,n,t[n]);if(oU)for(var n of oU(t))sU.call(t,n)&&lU(e,n,t[n]);return e},uU=(e,t)=>rU(e,iU(t));const dU=We.createContext();function hU(e){class t extends We.Component{render(){const t=this.props,{forwardedRef:n}=t,r=((e,t)=>{var n={};for(var r in e)aU.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&oU)for(var r of oU(e))t.indexOf(r)<0&&sU.call(e,r)&&(n[r]=e[r]);return n})(t,["forwardedRef"]);return We.createElement(dU.Consumer,null,(t=>We.createElement(e,cU(cU({ref:n},r),t))))}}var n;return lU(t,"symbol"!==typeof(n="displayName")?n+"":n,"withUserLocationConsumer"),We.forwardRef(((e,n)=>We.createElement(t,uU(cU({},e),{forwardedRef:n}))))}const pU=EN((function(e){const{map:t,activeOrdinal:n,ordinals:r,children:i}=e,{options:o}=oD(),{events:a}=vD(),[s,l]=We.useState(null),[c,u]=We.useState(null),[d,h]=We.useState(null),p=We.useRef(null);We.useEffect((()=>{const e=e=>{let{location:t}=e;var i,a;if(!t||!t.latitude||!t.longitude)return;const c=s,u=null!=(i=null==c?void 0:c.heading)?i:null,d=null==t?void 0:t.heading,h=Number.isFinite(d)?d:u;let p=uU(cU({},t),{ordinal:r.has(t.ordinal)?t.ordinal:null!=(a=null==n?void 0:n.id)?a:o.ordinal,heading:h});
2if(o.userPositionOnlyInVenue&&n){const e=n.venue.bounds,r=[t.latitude,t.longitude];p=e.containsPoint(r)?p:null}(null==p?void 0:p.latitude)===(null==c?void 0:c.latitude)&&(null==p?void 0:p.longitude)===(null==c?void 0:c.longitude)&&(null==p?void 0:p.ordinal)===(null==c?void 0:c.ordinal)&&(null==p?void 0:p.heading)===(null==c?void 0:c.heading)&&(null==p?void 0:p.accuracy)===(null==c?void 0:c.accuracy)||l(p)};return a.on("User#SetUserLocation",e),()=>{a.off("User#SetUserLocation",e)}}),[a,o,n,r,s]),We.useEffect((()=>{s&&(p.current||(p.current=new tU({routeStickingThreshold:o.routeStickingThreshold,onLocationChange:e=>{u(e)}})),p.current.routePoints=((e,t)=>{if(!e)return null;const n=e.steps.filter((n=>{var r;return n.routeIdx===(null!=(r=e.currentRouteIdx)?r:0)&&n.ordinal===t})).reduce(((e,t)=>e.concat(t.points.flatMap((e=>e.coordinates)))),[]);return n.length?n:null})(d,s.ordinal),p.current.gpsLocation=cU({accuracy:100},s))}),[s,d,o]),We.useEffect((()=>{a.emit("Map#StateChanged",{userLocation:s})}),[a,s]),We.useLayoutEffect((()=>{var e;const n=null==(e=null==t?void 0:t.container)?void 0:e.parentNode;n&&(c?n.classList.add("pcmap--user-location"):n.classList.remove("pcmap--user-location"))}),[t,c]);const f=We.useMemo((()=>[null==c?void 0:c.latitude,null==c?void 0:c.longitude,null==c?void 0:c.ordinal,null==c?void 0:c.accuracy].every(Number.isFinite)?{latitude:c.latitude,longitude:c.longitude,ordinal:c.ordinal,accuracy:c.accuracy,stickToRoute:c.stickToRoute}:null),[null==c?void 0:c.latitude,null==c?void 0:c.longitude,null==c?void 0:c.ordinal,null==c?void 0:c.accuracy,null==c?void 0:c.stickToRoute]),m=We.useMemo((()=>{var e,t;return{userLocation:f,userHeading:null!=(e=null==c?void 0:c.heading)?e:null,isUserLocationAvailable:Boolean(f),isUserHeadingAvailable:Boolean(null!=(t=null==c?void 0:c.heading)?t:null),setUserLocationRoute:e=>h(e)}}),[f,null==c?void 0:c.heading]);return We.createElement(dU.Provider,{value:m},i)}));var fU={exports:{}};!function(e,t){var n=function(){var e=function(e,t){var n=e,r=o[t],i=null,a=0,s=null,l=[],c={},u=function(e,t){i=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var r=0;r<e;r+=1)t[n][r]=null}return t}(a=4*n+17),d(0,0),d(a-7,0),d(0,a-7),p(),h(),E(e,t),n>=7&&m(e),null==s&&(s=T(n,r,l)),S(s,t)},d=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||a<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||a<=t+r||(i[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},h=function(){for(var e=8;e<a-8;e+=1)null==i[e][6]&&(i[e][6]=e%2==0);for(var t=8;t<a-8;t+=1)null==i[6][t]&&(i[6][t]=t%2==0)},p=function(){for(var e=f.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var o=e[t],a=e[r];if(null==i[o][a])for(var s=-2;s<=2;s+=1)for(var l=-2;l<=2;l+=1)i[o+s][a+l]=-2==s||2==s||-2==l||2==l||0==s&&0==l}},m=function(e){for(var t=f.getBCHTypeNumber(n),r=0;r<18;r+=1){var o=!e&&1==(t>>r&1);i[Math.floor(r/3)][r%3+a-8-3]=o}for(r=0;r<18;r+=1){o=!e&&1==(t>>r&1);i[r%3+a-8-3][Math.floor(r/3)]=o}},E=function(e,t){for(var n=r<<3|t,o=f.getBCHTypeInfo(n),s=0;s<15;s+=1){var l=!e&&1==(o>>s&1);s<6?i[s][8]=l:s<8?i[s+1][8]=l:i[a-15+s][8]=l}for(s=0;s<15;s+=1){l=!e&&1==(o>>s&1);s<8?i[8][a-s-1]=l:s<9?i[8][15-s-1+1]=l:i[8][15-s-1]=l}i[a-8][8]=!e},S=function(e,t){for(var n=-1,r=a-1,o=7,s=0,l=f.getMaskFunction(t),c=a-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var u=0;u<2;u+=1)if(null==i[r][c-u]){var d=!1;s<e.length&&(d=1==(e[s]>>>o&1)),l(r,c-u)&&(d=!d),i[r][c-u]=d,-1==(o-=1)&&(s+=1,o=7)}if((r+=n)<0||a<=r){r-=n,n=-n;break}}},T=function(e,t,n){for(var r=v.getRSBlocks(e,t),i=y(),o=0;o<n.length;o+=1){var a=n[o];i.put(a.getMode(),4),i.put(a.getLength(),f.getLengthInBits(a.getMode(),e)),a.write(i)}var s=0;for(o=0;o<r.length;o+=1)s+=r[o].dataCount;if(i.getLengthInBits()>8*s)throw"code length overflow. ("+i.getLengthInBits()+">"+8*s+")";for(i.getLengthInBits()+4<=8*s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*s)&&(i.put(236,8),!(i.getLengthInBits()>=8*s));)i.put(17,8);return function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),a=new Array(t.length),s=0;s<t.length;s+=1){var l=t[s].dataCount,c=t[s].totalCount-l;r=Math.max(r,l),i=Math.max(i,c),o[s]=new Array(l);for(var u=0;u<o[s].length;u+=1)o[s][u]=255&e.getBuffer()[u+n];n+=l;var d=f.getErrorCorrectPolynomial(c),h=g(o[s],d.getLength()-1).mod(d);for(a[s]=new Array(d.getLength()-1),u=0;u<a[s].length;u+=1){var p=u+h.getLength()-a[s].length;a[s][u]=p>=0?h.getAt(p):0}}var m=0;for(u=0;
vendor: 5,210 bytes, line 2
2u<t.length;u+=1)m+=t[u].totalCount;var v=new Array(m),y=0;for(u=0;u<r;u+=1)for(s=0;s<t.length;s+=1)u<o[s].length&&(v[y]=o[s][u],y+=1);for(u=0;u<i;u+=1)for(s=0;s<t.length;s+=1)u<a[s].length&&(v[y]=a[s][u],y+=1);return v}(i,r)};c.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=b(e);break;case"Alphanumeric":n=x(e);break;case"Byte":n=w(e);break;case"Kanji":n=_(e);break;default:throw"mode:"+t}l.push(n),s=null},c.isDark=function(e,t){if(e<0||a<=e||t<0||a<=t)throw e+","+t;return i[e][t]},c.getModuleCount=function(){return a},c.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=v.getRSBlocks(e,r),i=y(),o=0;o<l.length;o++){var a=l[o];i.put(a.getMode(),4),i.put(a.getLength(),f.getLengthInBits(a.getMode(),e)),a.write(i)}var s=0;for(o=0;o<t.length;o++)s+=t[o].dataCount;if(i.getLengthInBits()<=8*s)break}n=e}u(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){u(!0,n);var r=f.getLostPoint(c);(0==n||e>r)&&(e=r,t=n)}return t}())},c.createTableTag=function(e,t){e=e||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(t="undefined"==typeof t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var r=0;r<c.getModuleCount();r+=1){n+="<tr>";for(var i=0;i<c.getModuleCount();i+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=c.isDark(r,i)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return n+="</tbody>",n+="</table>"},c.createSvgTag=function(e,t,n,r){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,n=i.alt,r=i.title),e=e||2,t="undefined"==typeof t?4*e:t,(n="string"===typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"===typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,a,s,l,u=c.getModuleCount()*e+2*t,d="";for(l="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',d+=i.scalable?"":' width="'+u+'px" height="'+u+'px"',d+=' viewBox="0 0 '+u+" "+u+'" ',d+=' preserveAspectRatio="xMinYMin meet"',d+=r.text||n.text?' role="img" aria-labelledby="'+A([r.id,n.id].join(" ").trim())+'"':"",d+=">",d+=r.text?'<title id="'+A(r.id)+'">'+A(r.text)+"</title>":"",d+=n.text?'<description id="'+A(n.id)+'">'+A(n.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',a=0;a<c.getModuleCount();a+=1)for(s=a*e+t,o=0;o<c.getModuleCount();o+=1)c.isDark(a,o)&&(d+="M"+(o*e+t)+","+s+l);return d+='" stroke="transparent" fill="black"/>',d+="</svg>"},c.createDataURL=function(e,t){e=e||2,t="undefined"==typeof t?4*e:t;var n=c.getModuleCount()*e+2*t,r=t,i=n-t;return M(n,n,(function(t,n){if(r<=t&&t<i&&r<=n&&n<i){var o=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return c.isDark(a,o)?0:1}return 1}))},c.createImgTag=function(e,t,n){e=e||2,t="undefined"==typeof t?4*e:t;var r=c.getModuleCount()*e+2*t,i="";return i+="<img",i+=' src="',i+=c.createDataURL(e,t),i+='"',i+=' width="',i+=r,i+='"',i+=' height="',i+=r,i+='"',n&&(i+=' alt="',i+=A(n),i+='"'),i+="/>"};var A=function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charAt(n);switch(r){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=r}}return t};return c.createASCII=function(e,t){if((e=e||1)<2)return function(e){e="undefined"==typeof e?2:e;var t,n,r,i,o,a=1*c.getModuleCount()+2*e,s=e,l=a-e,u={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584","  ":" "},d={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" ","  ":" "},h="";for(t=0;t<a;t+=2){for(r=Math.floor((t-s)/1),i=Math.floor((t+1-s)/1),n=0;n<a;n+=1)o="\u2588",s<=n&&n<l&&s<=t&&t<l&&c.isDark(r,Math.floor((n-s)/1))&&(o=" "),s<=n&&n<l&&s<=t+1&&t+1<l&&c.isDark(i,Math.floor((n-s)/1))?o+=" ":o+="\u2588",h+=e<1&&t+1>=l?d[o]:u[o];h+="\n"}return a%2&&e>0?h.substring(0,h.length-a-1)+Array(a+1).join("\u2580"):h.substring(0,h.length-1)}(t);e-=1,t="undefined"==typeof t?2*e:t;var n,r,i,o,a=c.getModuleCount()*e+2*t,s=t,l=a-t,u=Array(e+1).join("\u2588\u2588"),d=Array(e+1).join("  "),h="",p="";for(n=0;n<a;n+=1){for(i=Math.floor((n-s)/e),p="",r=0;r<a;r+=1)o=1,s<=r&&r<l&&s<=n&&n<l&&c.isDark(i,Math.floor((r-s)/e))&&(o=0),p+=o?u:d;for(i=0;i<e;i+=1)h+=p+"\n"}return h.substring(0,h.length-1)},c.renderTo2dContext=function(e,t){t=t||2;for(var n=c.getModuleCount(),r=0;r<n;r++)for(var i=0;i<n;i++)e.fillStyle=c.isDark(r,i)?"black":"white",e.fillRect(r*t,i*t,t,t)},c};e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t.push(255&r)}return t}},e.stringToBytes=e.stringToBytesFuncs.default,e.createStringToBytes=function(e,t){var n=function(){for(var n=S(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},i=0,o={};;){var a=n.read();if(-1==a)break;var s=r(),l=r()<<8|r();o[String.fromCharCode(a<<8|s)]=l,i+=1}if(i!=t)throw i+" != "+t;return o}(),r="?".charCodeAt(0);return function(e){for(var t=[],i=0;i<e.length;i+=1){var o=e.charCodeAt(i);if(o<128)t.push(o);else{var a=n[e.charAt(i)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>
vendor: 4,381 bytes, line 2
28),t.push(255&a)):t.push(r)}}return t}};var t=1,n=2,r=4,i=8,o={L:1,M:0,Q:3,H:2},a=0,s=1,l=2,c=3,u=4,d=5,h=6,p=7,f=function(){var e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],o=1335,f=7973,v={},y=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t};return v.getBCHTypeInfo=function(e){for(var t=e<<10;y(t)-y(o)>=0;)t^=o<<y(t)-y(o);return 21522^(e<<10|t)},v.getBCHTypeNumber=function(e){for(var t=e<<12;y(t)-y(f)>=0;)t^=f<<y(t)-y(f);return e<<12|t},v.getPatternPosition=function(t){return e[t-1]},v.getMaskFunction=function(e){switch(e){case a:return function(e,t){return(e+t)%2==0};case s:return function(e,t){return e%2==0};case l:return function(e,t){return t%3==0};case c:return function(e,t){return(e+t)%3==0};case u:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case d:return function(e,t){return e*t%2+e*t%3==0};case h:return function(e,t){return(e*t%2+e*t%3)%2==0};case p:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},v.getErrorCorrectPolynomial=function(e){for(var t=g([1],0),n=0;n<e;n+=1)t=t.multiply(g([1,m.gexp(n)],0));return t},v.getLengthInBits=function(e,o){if(1<=o&&o<10)switch(e){case t:return 10;case n:return 9;case r:case i:return 8;default:throw"mode:"+e}else if(o<27)switch(e){case t:return 12;case n:return 11;case r:return 16;case i:return 10;default:throw"mode:"+e}else{if(!(o<41))throw"type:"+o;switch(e){case t:return 14;case n:return 13;case r:return 16;case i:return 12;default:throw"mode:"+e}}},v.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r+=1)for(var i=0;i<t;i+=1){for(var o=0,a=e.isDark(r,i),s=-1;s<=1;s+=1)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l+=1)i+l<0||t<=i+l||0==s&&0==l||a==e.isDark(r+s,i+l)&&(o+=1);o>5&&(n+=3+o-5)}for(r=0;r<t-1;r+=1)for(i=0;i<t-1;i+=1){var c=0;e.isDark(r,i)&&(c+=1),e.isDark(r+1,i)&&(c+=1),e.isDark(r,i+1)&&(c+=1),e.isDark(r+1,i+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(r=0;r<t;r+=1)for(i=0;i<t-6;i+=1)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(i=0;i<t;i+=1)for(r=0;r<t-6;r+=1)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);var u=0;for(i=0;i<t;i+=1)for(r=0;r<t;r+=1)e.isDark(r,i)&&(u+=1);return n+=10*(Math.abs(100*u/t/t-50)/5)},v}(),m=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;var r={glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}};return r}();function g(e,t){if("undefined"==typeof e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var r=new Array(e.length-n+t),i=0;i<e.length-n;i+=1)r[i]=e[i+n];return r}(),r={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(r.getLength()+e.getLength()-1),n=0;n<r.getLength();n+=1)for(var i=0;i<e.getLength();i+=1)t[n+i]^=m.gexp(m.glog(r.getAt(n))+m.glog(e.getAt(i)));return g(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=m.glog(r.getAt(0))-m.glog(e.getAt(0)),n=new Array(r.getLength()),i=0;i<r.getLength();i+=1)n[i]=r.getAt(i);for(i=0;i<e.getLength();i+=1)n[i]^=m.gexp(m.glog(e.getAt(i))+t);return g(n,0).mod(e)}};return r}var v=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37
vendor: 7,466 bytes, line 2
2],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},n={};return n.getRSBlocks=function(n,r){var i=function(t,n){switch(n){case o.L:return e[4*(t-1)+0];case o.M:return e[4*(t-1)+1];case o.Q:return e[4*(t-1)+2];case o.H:return e[4*(t-1)+3];default:return}}(n,r);if("undefined"==typeof i)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var a=i.length/3,s=[],l=0;l<a;l+=1)for(var c=i[3*l+0],u=i[3*l+1],d=i[3*l+2],h=0;h<c;h+=1)s.push(t(u,d));return s},n}(),y=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)n.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},b=function(e){var n=t,r=e,i={getMode:function(){return n},getLength:function(e){return r.length},write:function(e){for(var t=r,n=0;n+2<t.length;)e.put(o(t.substring(n,n+3)),10),n+=3;n<t.length&&(t.length-n==1?e.put(o(t.substring(n,n+1)),4):t.length-n==2&&e.put(o(t.substring(n,n+2)),7))}},o=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+a(e.charAt(n));return t},a=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return i},x=function(e){var t=n,r=e,i={getMode:function(){return t},getLength:function(e){return r.length},write:function(e){for(var t=r,n=0;n+1<t.length;)e.put(45*o(t.charAt(n))+o(t.charAt(n+1)),11),n+=2;n<t.length&&e.put(o(t.charAt(n)),6)}},o=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return i},w=function(t){var n=r,i=e.stringToBytes(t),o={getMode:function(){return n},getLength:function(e){return i.length},write:function(e){for(var t=0;t<i.length;t+=1)e.put(i[t],8)}};return o},_=function(t){var n=i,r=e.stringToBytesFuncs.SJIS;if(!r)throw"sjis not supported.";!function(e,t){var n=r("\u53cb");if(2!=n.length||38726!=(n[0]<<8|n[1]))throw"sjis not supported."}();var o=r(t),a={getMode:function(){return n},getLength:function(e){return~~(o.length/2)},write:function(e){for(var t=o,n=0;n+1<t.length;){var r=(255&t[n])<<8|255&t[n+1];if(33088<=r&&r<=40956)r-=33088;else{if(!(57408<=r&&r<=60351))throw"illegal char at "+(n+1)+"/"+r;r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}};return a},E=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var i=0;i<r;i+=1)t.writeByte(e[i+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+="]"}};return t},S=function(e){var t=e,n=0,r=0,i=0,o={read:function(){for(;i<8;){if(n>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(n);if(n+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),i+=6)}var o=r>>>i-8&255;return i-=8,o}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},M=function(e,t,n){for(var r=function(e,t){var n=e,r=t,i=new Array(e*t),o={setPixel:function(e,t,r){i[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var i=0;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,o=s(),a=0;a<t;a+=1)o.add(String.fromCharCode(a));o.add(String.fromCharCode(t)),o.add(String.fromCharCode(n));var l=E(),c=function(e){var t=e,n=0,r=0;return{write:function(e,i){if(e>>>i!=0)throw"length over";for(;n+i>=8;)t.writeByte(255&(e<<n|r)),i-=8-n,e>>>=8-n,r=0,n=0;r|=e<<n,n+=i},flush:function(){n>0&&t.writeByte(r)}}}(l);c.write(t,r);var u=0,d=String.fromCharCode(i[u]);for(u+=1;u<i.length;){var h=String.fromCharCode(i[u]);u+=1,o.contains(d+h)?d+=h:(c.write(o.indexOf(d),r),o.size()<4095&&(o.size()==1<<r&&(r+=1),o.add(d+h)),d=h)}return c.write(o.indexOf(d),r),c.write(n,r),c.flush(),l.toByteArray()},s=function(){var e={},t=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;e[r]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return"undefined"!=typeof e[t]}};return n};return o}(e,t),i=0;i<t;i+=1)for(var o=0;o<e;
2o+=1)r.setPixel(o,i,n(o,i));var a=E();r.write(a);for(var s=function(){var e=0,t=0,n=0,r="",i={},o=function(e){r+=String.fromCharCode(a(63&e))},a=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return i.writeByte=function(r){for(e=e<<8|255&r,t+=8,n+=1;t>=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),n%3!=0)for(var i=3-n%3,a=0;a<i;a+=1)r+="="},i.toString=function(){return r},i}(),l=a.toByteArray(),c=0;c<l.length;c+=1)s.writeByte(l[c]);return s.flush(),"data:image/gif;base64,"+s};return e}();n.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},e.exports=n}(fU);var mU=fU.exports;var gU=Object.prototype.hasOwnProperty,vU=Array.isArray,yU=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),bU=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},xU={arrayToObject:bU,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},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 l=a[s],c=o[l];"object"===typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:o,prop:l}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(vU(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(gB){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"===typeof e?r=Symbol.prototype.toString.call(e):"string"!==typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",o=0;o<r.length;++o){var a=r.charCodeAt(o);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(o):a<128?i+=yU[a]:a<2048?i+=yU[192|a>>6]+yU[128|63&a]:a<55296||a>=57344?i+=yU[224|a>>12]+yU[128|a>>6&63]+yU[128|63&a]:(o+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(o)),i+=yU[240|a>>18]+yU[128|a>>12&63]+yU[128|a>>6&63]+yU[128|63&a])}return i},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(vU(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(vU(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!gU.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var i=t;return vU(t)&&!vU(n)&&(i=bU(t,r)),vU(t)&&vU(n)?(n.forEach((function(n,i){if(gU.call(t,i)){var o=t[i];o&&"object"===typeof o&&n&&"object"===typeof n?t[i]=e(o,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var o=n[i];return gU.call(t,i)?t[i]=e(t[i],o,r):t[i]=o,t}),i)}},wU=String.prototype.replace,_U=/%20/g,EU={RFC1738:"RFC1738",RFC3986:"RFC3986"},SU=xU.assign({default:EU.RFC3986,formatters:{RFC1738:function(e){return wU.call(e,_U,"+")},RFC3986:function(e){return String(e)}}},EU),MU=xU,TU=SU,AU=Object.prototype.hasOwnProperty,OU={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},CU=Array.isArray,RU=Array.prototype.push,PU=function(e,t){RU.apply(e,CU(t)?t:[t])},IU=Date.prototype.toISOString,LU=TU.default,kU={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:MU.encode,encodeValuesOnly:!1,format:LU,formatter:TU.formatters[LU],indices:!1,serializeDate:function(e){return IU.call(e)},skipNulls:!1,strictNullHandling:!1},DU=function e(t,n,r,i,o,a,s,l,c,u,d,h,p){var f,m=t;if("function"===typeof s?m=s(n,m):m instanceof Date?m=u(m):"comma"===r&&CU(m)&&(m=MU.maybeMap(m,(function(e){return e instanceof Date?u(e):e})).join(",")),null===m){if(i)return a&&!h?a(n,kU.encoder,p,"key"):n;m=""}if("string"===typeof(f=m)||"number"===typeof f||"boolean"===typeof f||"symbol"===typeof f||"bigint"===typeof f||MU.isBuffer(m))return a?[d(h?n:a(n,kU.encoder,p,"key"))+"="+d(a(m,kU.encoder,p,"value"))]:[d(n)+"="+d(String(m))];var g,v=[];if("undefined"===typeof m)return v;if(CU(s))g=s;else{var y=Object.keys(m);g=l?y.sort(l):y}for(var b=0;b<g.length;++b){var x=g[b],w=m[x];if(!o||null!==w){var _=CU(m)?"function"===typeof r?r(n,x):n:n+(c?"."+x:"["+x+"]");PU(v,e(w,_,r,i,o,a,s,l,c,u,d,h,p))}}return v},NU=xU,UU=Object.prototype.hasOwnProperty,jU=Array.isArray,FU={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:NU.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},BU=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},zU=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},HU=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(i),s=a?i.slice(0,a.index):i,l=[];
2if(s){if(!n.plainObjects&&UU.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var c=0;n.depth>0&&null!==(a=o.exec(i))&&c<n.depth;){if(c+=1,!n.plainObjects&&UU.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+i.slice(a.index)+"]"),function(e,t,n,r){for(var i=r?t:zU(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:a[l]=i:a={0:i}}i=a}return i}(l,t,n,r)}},VU=function(e,t){var n,r=e,i=function(e){if(!e)return kU;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||kU.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=TU.default;if("undefined"!==typeof e.format){if(!AU.call(TU.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=TU.formatters[n],i=kU.filter;return("function"===typeof e.filter||CU(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:kU.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?kU.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:kU.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?kU.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:kU.encode,encoder:"function"===typeof e.encoder?e.encoder:kU.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:kU.encodeValuesOnly,filter:i,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:kU.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:kU.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:kU.strictNullHandling}}(t);"function"===typeof i.filter?r=(0,i.filter)("",r):CU(i.filter)&&(n=i.filter);var o,a=[];if("object"!==typeof r||null===r)return"";o=t&&t.arrayFormat in OU?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=OU[o];n||(n=Object.keys(r)),i.sort&&n.sort(i.sort);for(var l=0;l<n.length;++l){var c=n[l];i.skipNulls&&null===r[c]||PU(a,DU(r[c],c,s,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.formatter,i.encodeValuesOnly,i.charset))}var u=a.join(i.delimiter),d=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),u.length>0?d+u:""},WU=function(e,t){var n=function(e){if(!e)return FU;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?FU.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?FU.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:FU.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:FU.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:FU.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:FU.comma,decoder:"function"===typeof e.decoder?e.decoder:FU.decoder,delimiter:"string"===typeof e.delimiter||NU.isRegExp(e.delimiter)?e.delimiter:FU.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:FU.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:FU.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:FU.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:FU.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:FU.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var r="string"===typeof e?function(e,t){var n,r={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,a=i.split(t.delimiter,o),s=-1,l=t.charset;if(t.charsetSentinel)for(n=0;n<a.length;++n)0===a[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[n]?l="utf-8":"utf8=%26%2310003%3B"===a[n]&&(l="iso-8859-1"),s=n,n=a.length);for(n=0;n<a.length;++n)if(n!==s){var c,u,d=a[n],h=d.indexOf("]="),p=-1===h?d.indexOf("="):h+1;-1===p?(c=t.decoder(d,FU.decoder,l,"key"),u=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,p),FU.decoder,l,"key"),u=NU.maybeMap(zU(d.slice(p+1),t),(function(e){return t.decoder(e,FU.decoder,l,"value")}))),u&&t.interpretNumericEntities&&"iso-8859-1"===l&&(u=BU(u)),d.indexOf("[]=")>-1&&(u=jU(u)?[u]:u),UU.call(r,c)?r[c]=NU.combine(r[c],u):r[c]=u}return r}(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),a=0;a<o.length;++a){var s=o[a],l=HU(s,r[s],n,"string"===typeof e);
2i=NU.merge(i,l,n)}return NU.compact(i)},GU={formats:SU,parse:WU,stringify:VU},qU=Object.defineProperty,XU=Object.defineProperties,YU=Object.getOwnPropertyDescriptors,ZU=Object.getOwnPropertySymbols,KU=Object.prototype.hasOwnProperty,$U=Object.prototype.propertyIsEnumerable,JU=(e,t,n)=>t in e?qU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const QU=(e,t)=>{let{avoidStairs:n}=t;const{origin:r,pathname:i,search:o}=window.location,a=GU.parse(o.replace(/^\?/,""));Object.keys(a).forEach((e=>{0===e.indexOf("pcm_")&&delete a[e]}));const s=GU.stringify((l=((e,t)=>{for(var n in t||(t={}))KU.call(t,n)&&JU(e,n,t[n]);if(ZU)for(var n of ZU(t))$U.call(t,n)&&JU(e,n,t[n]);return e})({},a),c={pcm_s:e.map((e=>e.occupantId)),pcm_as:Number(n)},XU(l,YU(c))),{arrayFormat:"comma",addQueryPrefix:!0});var l,c;return(e=>{const t=mU(0,"L");return t.addData(e),t.make(),t.createSvgTag(100)})("".concat(r).concat(i).concat(s))};var ej=Object.defineProperty,tj=Object.defineProperties,nj=Object.getOwnPropertyDescriptors,rj=Object.getOwnPropertySymbols,ij=Object.prototype.hasOwnProperty,oj=Object.prototype.propertyIsEnumerable,aj=(e,t,n)=>t in e?ej(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sj=(e,t)=>{for(var n in t||(t={}))ij.call(t,n)&&aj(e,n,t[n]);if(rj)for(var n of rj(t))oj.call(t,n)&&aj(e,n,t[n]);return e},lj=(e,t)=>tj(e,nj(t));const cj=e=>{const{targetId:t,targetName:n,level:r,ordinal:i,routePoint:o,points:a}=e,s=a[0].coordinates[0];return{occupantId:t,occupant:{routePoints:[parseInt(o,10)],levelId:r,display:{name:n}},name:n,latLng:s,ordinal:i}},uj=Ge.a.createContext(),dj=[{type:"empty"},{type:"empty"}],hj={isDirectionsOpen:!1,stops:dj,avoidStairs:!1,userRoute:null,route:null,routeQRCode:null,steps:null,stepIdx:0,isRouteFromUserLocation:!1},pj=(e,t)=>sj(sj({},e),t);const fj=yD(aD(EN(hU(ID((function(e){const{children:t,map:n,mapLoaded:r,ordinals:i,activeOrdinal:o,events:a,getText:s,isUserHeadingAvailable:l,setUserLocationRoute:c,setFollowMeMode:u,options:{debug:d,extraTimeOptions:h,routeRules:p,getRouteSteps:f,makeRouteHandler:m}}=e,[g,v]=Ge.a.useReducer(pj,hj),[y,b]=Ge.a.useState(e.userLocation),x=Ge.a.useRef({userLocation:y,mapLoaded:r,activeOrdinal:o}),w=Ge.a.useCallback((e=>{v({stops:e}),a.emit("Directions#Change",{stops:e,avoidStairs:g.avoidStairs})}),[g.avoidStairs,a]),_=Ge.a.useCallback((e=>{v({avoidStairs:e}),a.emit("Directions#Change",{stops:g.stops,avoidStairs:e})}),[g.stops,a]),E=Ge.a.useCallback((e=>{v({stepIdx:e})}),[]),S=Ge.a.useCallback((e=>{var t,n;const{points:r,avoidStairs:o,startStepIdx:s}=e,l=[...null!=p?p:[],...null!=(t=e.routeRules)?t:[]],c=null!=(n=e.userLocation)?n:x.current.userLocation;r.forEach((e=>{"__your-location__"===e.occupantId&&(e.latLng={lat:null==c?void 0:c.latitude,lng:null==c?void 0:c.longitude},e.ordinal=null==c?void 0:c.ordinal)})),l.forEach((e=>{var t,n;switch(e.type){case"limitToSection":{const{section:o,include:a,includeSections:s,applyForStartPoint:l,message:c}=e;o||console.warn('Bad route rule configuration. The "section" is missed.');let u=null,d=null,h=[];for(const e of i.values())for(const r of null!=(t=e.levels)?t:[])for(const t of null!=(n=r.sections)?n:[])(null==s?void 0:s.includes(t.id))&&h.push({ordinal:e.id,polygons:dO(t.geometry)}),o===t.id&&(u=e.id,d=dO(t.geometry));if(!d)break;const p=r[0],f=u===p.ordinal&&d.some((e=>Bp([p.latLng.lat,p.latLng.lng],e)));if(!f&&!l)break;const m=r.slice(1).find((e=>{let{occupantId:t,latLng:n,ordinal:r}=e;if(null==a?void 0:a.includes(t))return!1;if(s){if(h.some((e=>r===e.ordinal&&e.polygons.some((e=>Bp([n.lat,n.lng],e))))))return!1}const i=r===u&&d.some((e=>Bp([n.lat,n.lng],e)));return f?!i:l&&i}));if(m){const e=new Error(null!=c?c:"Not all destinations are allowed");throw e.destination=m,e.source=p,e}break}}}));const u=wf(r,{avoidStairs:o,extraTimeOptions:h,routeRules:l,startStepIdx:s,debug:d}),f=QU(r,{avoidStairs:o});return a.emit("Route#Built",{path:u.coordinates,length:u.length,stops:r,avoidStairs:o,qrcode:f}),{route:u,routeQRCode:f}}),[a,i,d,h,p]),M=Ge.a.useCallback((e=>{var t;const n=x.current.userLocation,r=(null==e?void 0:e.stops)||(null==e?void 0:e.sourceId)||(null==e?void 0:e.sourceName)||(null==e?void 0:e.destinationId)||(null==e?void 0:e.destinationName)?cO({stops:null==e?void 0:e.stops,sourceId:null==e?void 0:e.sourceId,sourceName:null==e?void 0:e.sourceName,destinationId:null==e?void 0:e.destinationId,destinationName:null==e?void 0:e.destinationName,userLocation:n}):[];r.some((e=>"empty"===e.type))?console.error("Some points are empty:",r):S({points:r,avoidStairs:null!=(t=null==e?void 0:e.avoidStairs)&&t,routeRules:null==e?void 0:e.routeRules})}),[S]),T=Ge.a.useCallback((e=>{let{points:t,avoidStairs:n,startStepIdx:r,userLocation:i,routeRules:o}=e;const s={points:t,avoidStairs:n,startStepIdx:r,userLocation:i,routeRules:o},l=S(s),c=e=>{let{route:r,routeQRCode:i}=e;v({isDirectionsOpen:!0,route:r,routeQRCode:i,steps:null,stepIdx:0,stops:t,avoidStairs:n,isRouteFromUserLocation:"__your-location__"===t[0].occupantId}),a.emit("Route#Open",{path:r.coordinates,stops:t,avoidStairs:n,qrcode:i})};
2m?m(l,s,S,c):c(l)}),[a,S,m]),A=Ge.a.useCallback((e=>{var t;const n=x.current.userLocation,r=g.stops,i=(null==e?void 0:e.stops)||(null==e?void 0:e.sourceId)||(null==e?void 0:e.sourceName)||(null==e?void 0:e.destinationId)||(null==e?void 0:e.destinationName)?cO({stops:null==e?void 0:e.stops,sourceId:null==e?void 0:e.sourceId,sourceName:null==e?void 0:e.sourceName,destinationId:null==e?void 0:e.destinationId,destinationName:null==e?void 0:e.destinationName,userLocation:n}):r;i.some((e=>"empty"===e.type))||(T({points:i,avoidStairs:null!=(t=null==e?void 0:e.avoidStairs)?t:g.avoidStairs,routeRules:null==e?void 0:e.routeRules}),"__your-location__"===i[0].occupantId&&setTimeout((()=>{u(!l||"heading")}),500))}),[g.stops,g.avoidStairs,T,l,u]),O=Ge.a.useCallback((()=>{v({route:null,routeQRCode:null,userRoute:null}),a.emit("Route#Close",{stops:g.stops,avoidStairs:g.avoidStairs})}),[g.stops,g.avoidStairs,a]),C=Ge.a.useCallback((e=>{let{stop:t}=e;const n=g.route,r=g.stops,i=g.avoidStairs,o=x.current.userLocation;if(!n)return;const{currentStepIdx:a,currentRouteIdx:s}=n,l=cO({stops:[t],userLocation:o}).filter((e=>"empty"!==e.type)),c=[...r];c.splice(s+1,0,...l);const u=c.reduce(((e,t,n)=>{var r;return((null==(r=e[n-1])?void 0:r.occupantId)===t.occupantId||e.push(t))&&e}),[]);T({points:u,avoidStairs:i,startStepIdx:a})}),[g.route,g.stops,g.avoidStairs,T]),R=Ge.a.useCallback((()=>{v({isDirectionsOpen:!g.isDirectionsOpen}),a.emit("Directions#".concat(g.isDirectionsOpen?"Close":"Open"))}),[g.isDirectionsOpen,a]),P=Ge.a.useCallback((e=>{let{stops:t,sourceId:n,sourceName:r,destinationId:i,destinationName:o,avoidStairs:s}=e;const l=x.current.userLocation,c=cO({stops:t,sourceId:n,sourceName:r,destinationId:i,destinationName:o,userLocation:l});v({stops:null!=c?c:g.stops,avoidStairs:null!=s?s:g.avoidStairs}),a.emit("Directions#Change",{stops:null!=c?c:g.stops,avoidStairs:null!=s?s:g.avoidStairs})}),[g.stops,g.avoidStairs,a]),I=Ge.a.useCallback((()=>{v({stops:hj.stops,avoidStairs:hj.avoidStairs})}),[]),L=Ge.a.useCallback((()=>{v({isDirectionsOpen:!1,stops:dj,route:null,userRoute:null}),a.emit("Directions#Close")}),[a]),k=Ge.a.useCallback((e=>{let{stops:t,sourceId:n,sourceName:r,destinationId:i,destinationName:o,avoidStairs:s}=e;const l=x.current.userLocation,c=cO({stops:t,sourceId:n,sourceName:r,destinationId:i,destinationName:o,userLocation:l});v({isDirectionsOpen:!0,route:null,userRoute:null,stops:null!=c?c:g.stops,avoidStairs:null!=s?s:g.avoidStairs}),a.emit("Directions#Change",{stops:null!=c?c:g.stops,avoidStairs:null!=s?s:g.avoidStairs}),a.emit("Directions#Open")}),[g.stops,g.avoidStairs,a]);Ge.a.useEffect((()=>{var e;if(!g.route)return void v({steps:null,stepIdx:0});const t=((e,t,n,r)=>{const i=e=>"<b>".concat(n(e),"</b>"),o="Start route at {{point}}",a="From {{prevPoint}} follow the route to {{point}}",s="Follow the route to {{point}}",l="Take {{point}} to {{level}}",c="Arrive at {{point}}",u=e.reduce(((u,d,h)=>{var p,f,m,g,v;const y=h>0?e[h-1]:null,b=d.points[0].coordinates[0],x=d.points[d.points.length-1].coordinates[d.points[d.points.length-1].coordinates.length-1],w=d.points.flatMap((e=>e.coordinates)),_=w.reduce(((e,t,n)=>0===n?e:e+Np(w[n-1],t)),0);if(0===h&&!r){const e=o.replace("{{point}}",null==(p=t[0])?void 0:p.occupantId),r={stepIdx:h,routeIdx:d.routeIdx,point:b,titleDictionaryKey:e,title:n(e,n(o).replace("{{point}}",i(null!=(m=null==(f=t[0])?void 0:f.name)?m:"")))};u.push(r)}if(0!==h&&_>5){const e=a.replace("{{point}}",d.targetId).replace("{{prevPoint}}",null!=(g=null==y?void 0:y.targetId)?g:""),t={stepIdx:h,routeIdx:d.routeIdx,point:b,titleDictionaryKey:e,title:n(e,n(a).replace("{{point}}",i(d.targetName)).replace("{{prevPoint}}",i(null!=(v=null==y?void 0:y.targetName)?v:"")))};u.push(t)}if(0===h||_>50||r){const e=s.replace("{{point}}",d.targetId),t={stepIdx:h,routeIdx:d.routeIdx,titleDictionaryKey:e,title:n(e,n(s).replace("{{point}}",i(d.targetName)))};u.push(t)}if(d.isTransitionPoint){const e=l.replace("{{point}}",d.targetId).replace("{{level}}",d.targetLevel),t={stepIdx:h,routeIdx:d.routeIdx,point:x,titleDictionaryKey:e,title:n(e,n(l).replace("{{point}}",i(d.targetName)).replace("{{level}}",i(d.targetLevelName)))};u.push(t)}if(h===e.length-1){const e=c.replace("{{point}}",d.targetId),t={stepIdx:h,routeIdx:d.routeIdx,point:x,titleDictionaryKey:e,title:n(e,n(c).replace("{{point}}",i(d.targetName)))};u.push(t)}return u}),[]);return u.forEach(((e,t)=>
2{e.idx=t,e.title=e.title.replace(/<\w+>/g,"<b>").replace(/<\/\w+>/g,"</b>")})),u})(g.route.steps,g.stops,s,g.isRouteFromUserLocation);v({steps:f?f(t):t,stepIdx:null!=(e=g.route.startStepIdx)?e:0})}),[g.route,g.stops,g.isRouteFromUserLocation,s,f]),Ge.a.useEffect((()=>{const e=x.current.activeOrdinal,t=x.current.userLocation,n=g.isRouteFromUserLocation,r=g.stops,i=g.route,a=g.steps,s=null==a?void 0:a[g.stepIdx],l=i&&s?i.steps[s.stepIdx]:null;if(!s||!i||!l||!n||!y)return void v({userRoute:null});const c=r[0];c.latLng={lat:y.latitude,lng:y.longitude},c.ordinal=y.ordinal;const u=cj(l),d=wf([c,u],{avoidStairs:g.avoidStairs,extraTimeOptions:h}),p=null==d?void 0:d.steps[0];if(p.ordinal===l.ordinal&&p.routePoint===l.routePoint)return void v({userRoute:d});if(p.ordinal===l.ordinal&&p.routePoint!==l.routePoint)return void T({points:r,avoidStairs:g.avoidStairs,userLocation:y});if((y.ordinal!==t.ordinal||o.id!==e.id)&&y.ordinal===o.id&&p.ordinal!==l.ordinal){for(let e=g.stepIdx;e>=0;e--){const t=a[e],n=i.steps[t.stepIdx];if(y.ordinal!==n.ordinal||!t.titleDictionaryKey.startsWith("Follow the route"))continue;const o=r[0];o.latLng={lat:y.latitude,lng:y.longitude},o.ordinal=y.ordinal;const s=cj(n),l=wf([o,s],{avoidStairs:g.avoidStairs,extraTimeOptions:h}),c=l.steps[0];if(c.routePoint===n.routePoint)return void v({userRoute:l,stepIdx:e});c.routePoint,n.routePoint}T({points:r,avoidStairs:g.avoidStairs,userLocation:y})}}),[g.avoidStairs,g.stops,g.route,g.steps,g.stepIdx,g.isRouteFromUserLocation,y,o,h,T]),Ge.a.useEffect((()=>{if(!g.route||!g.steps)return;const e=g.steps[g.stepIdx];g.route.currentStepIdx=g.stepIdx,g.route.currentRouteIdx=e.routeIdx,a.emit("Route#StepChange",{stepIndex:g.stepIdx,step:e})}),[g.route,g.stepIdx,g.steps,a]),Ge.a.useEffect((()=>{var e;c(null!=(e=g.userRoute)?e:g.route)}),[g.route,g.userRoute,c]);const D=Ge.a.useMemo((()=>nA((e=>b(e)),500)),[]);Ge.a.useEffect((()=>{D(e.userLocation)}),[e.userLocation,D]),Ge.a.useEffect((()=>{if(!r||r===x.current.mapLoaded)return;const e=new URLSearchParams(window.location.search),t=e.get("pcm_s"),n=e.get("pcm_f"),i=e.get("pcm_t"),o=e.get("pcm_as");t?A({stops:t.split(",").map((e=>({id:e.trim()}))),avoidStairs:Boolean(parseInt(o))}):n&&i?A({stops:[{id:n},{id:i}],avoidStairs:Boolean(parseInt(o))}):(n||i)&&k({stops:[{id:n},{id:i}],avoidStairs:Boolean(parseInt(o))})}),[k,A,r]),Ge.a.useEffect((()=>{x.current=lj(sj({},x.current),{userLocation:y,mapLoaded:r,activeOrdinal:o})}),[y,r,o]),Ge.a.useEffect((()=>(a.on("Directions#Set",P),a.on("Directions#Show",k),a.on("Directions#Hide",L),a.on("Directions#Clear",I),a.on("Route#Build",M),a.on("Route#Show",A),a.on("Route#Hide",O),a.on("Route#AddDestination",C),()=>{a.off("Directions#Set",P),a.off("Directions#Show",k),a.off("Directions#Hide",L),a.off("Directions#Clear",I),a.off("Route#Build",M),a.off("Route#Show",A),a.off("Route#Hide",O),a.off("Route#AddDestination",C)})),[a,P,k,L,I,M,A,O,C]),Ge.a.useLayoutEffect((()=>{var e;const t=null==(e=null==n?void 0:n.container)?void 0:e.parentNode;t&&(g.isDirectionsOpen?t.classList.add("pcmap--directions"):t.classList.remove("pcmap--directions"),g.route?t.classList.add("pcmap--route"):t.classList.remove("pcmap--route"),g.stops.length>2?t.classList.add("pcmap--multi-point"):t.classList.remove("pcmap--multi-point"))}),[n,g.isDirectionsOpen,g.route,g.stops]);const N=Ge.a.useMemo((()=>lj(sj({},g),{route:g.route&&g.steps?g.route:null,setStepIdx:E,setStops:w,setAvoidStairs:_,toggleDirections:R,closeDirections:L,showRoute:A,hideRoute:O})),[g,E,w,_,R,L,A,O]);return Ge.a.createElement(uj.Provider,{value:N},t)})))))),mj=e=>{class t extends Ge.a.Component{render(){const t=this.props,{forwardedRef:n}=t,r=((e,t)=>{var n={};for(var r in e)ij.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&rj)for(var r of rj(e))t.indexOf(r)<0&&oj.call(e,r)&&(n[r]=e[r]);return n})(t,["forwardedRef"]);return Ge.a.createElement(uj.Consumer,null,(t=>Ge.a.createElement(e,sj(sj({ref:n},r),t))))}}var n;return aj(t,"symbol"!==typeof(n="displayName")?n+"":n,"withDirectionsConsumer"),Ge.a.forwardRef(((e,n)=>Ge.a.createElement(t,lj(sj({},e),{forwardedRef:n}
2))))};var gj=Object.defineProperty,vj=Object.defineProperties,yj=Object.getOwnPropertyDescriptors,bj=Object.getOwnPropertySymbols,xj=Object.prototype.hasOwnProperty,wj=Object.prototype.propertyIsEnumerable,_j=(e,t,n)=>t in e?gj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ej=(e,t)=>{for(var n in t||(t={}))xj.call(t,n)&&_j(e,n,t[n]);if(bj)for(var n of bj(t))wj.call(t,n)&&_j(e,n,t[n]);return e},Sj=(e,t)=>vj(e,yj(t)),Mj=(e,t,n)=>(_j(e,"symbol"!==typeof t?t+"":t,n),n);const{Provider:Tj,Consumer:Aj}=We.createContext();class Oj extends We.Component{constructor(){var e;super(...arguments),e=this,Mj(this,"state",{filteredOccupants:null,filterOccupants:I_((function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r;if(!t)return void e.setState({filteredOccupants:null});const i=null==(r=null==n?void 0:n.highlight)||r;let o=Xk.occupants;const{userLocation:a}=e.props;if(n.addDistanceToUserPosition&&a){const{ordinal:e,latitude:t,longitude:n}=a;o=o.map((r=>Sj(Ej({},r),{distanceToUserPosition:r.ordinalId===e?Np(r.coordinates,[t,n]):Number.MAX_SAFE_INTEGER})))}if(n.addDistanceToPOIs&&Array.isArray(n.addDistanceToPOIs)){const e=n.addDistanceToPOIs.map((e=>{const t=o.find((t=>t.id===e));return t||console.error("Can't find POI with ID ".concat(e)),t})).filter(Boolean);o=o.map((t=>Sj(Ej({},t),{distanceToPOIs:e.map((e=>t.ordinalId===e.ordinalId?Np(t.coordinates,e.coordinates):Number.MAX_SAFE_INTEGER))})))}if(n.addDistanceToRoute){const{stops:t,sourceId:r,sourceName:i,destinationId:a,destinationName:s,avoidStairs:l=!1}=n.addDistanceToRoute;let{route:c}=n.addDistanceToRoute;const{userLocation:u}=e.props;if(!c){const n=cO({stops:t,sourceId:r,sourceName:i,destinationId:a,destinationName:s,userLocation:u});c=wf(n,{avoidStairs:l,extraTimeOptions:e.props.options.extraTimeOptions,routeRules:e.props.options.routeRules})}o=o.map((e=>{const t=uO(e.coordinates,e.ordinalId,c);return Sj(Ej({},e),{distanceToRoute:t.distance})}))}const s=o.filter(t);e.setState({filteredOccupants:i?s.reduce(((e,t)=>e.set(t.id,t)&&e),new Map):null},(()=>{e.props.route||e.state.fitMapToFilteredOccupants(),e.props.events.emit("Markers#Filtered",{markers:s})}))})),fitMapToFilteredOccupants:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n,r;const{fitPoints:i,activeOrdinalId:o,setActiveOrdinal:a,options:{getMapPaddings:s,maxZoom:l}}=e.props,{filteredOccupants:c}=e.state,{keepActiveOrdinal:u}=t;if(!c||0===c.size)return;const d=Array.from(c.values()).reduce(((e,t)=>{var n;const r=t.ordinalId,i=null!=(n=e.get(r))?n:[];return i.push(t),e.set(r,i),e}),new Map);let h=o,p=d.get(o);if(p||u){if(!p)return}else p=Array.from(d.values()).reduce(((e,t)=>t.length>e.length?t:e),[]),h=null!=(r=null==(n=p[0])?void 0:n.ordinalId)?r:o;const f=p.map((e=>e.coordinates)),m=s&&s()||{},g=m.paddingTop?m.paddingTop:0,v=m.paddingLeft?m.paddingLeft:0,y=m.paddingRight?m.paddingRight:0,b=m.paddingBottom?m.paddingBottom:0;o!==h&&a(h,{callback:()=>{i(f,{paddingTop:g,paddingLeft:v,paddingRight:y,paddingBottom:b,maxZoom:Math.min(l,20)})}}),i(f,{paddingTop:g,paddingLeft:v,paddingRight:y,paddingBottom:b,maxZoom:Math.min(l,20)})}})}componentDidMount(){this.props.events.on("Markers#Filter",(e=>{let{filters:t,options:n}=e;t?"function"===typeof t?this.state.filterOccupants(t,n):console.error("First argument must be a filter function"):this.state.filterOccupants(null)})),this.props.events.on("Map#OrdinalChanged",(()=>{this.props.route||this.state.fitMapToFilteredOccupants({keepActiveOrdinal:!0})}))}render(){return We.createElement(Tj,{value:this.state},this.props.children)}}const Cj=yD(aD(mj(EN(lN(hU(Oj)))))),Rj=e=>{class t extends We.Component{render(){const t=this.props,{forwardedRef:n}=t,r=((e,t)=>{var n={};for(var r in e)xj.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&bj)for(var r of bj(e))t.indexOf(r)<0&&wj.call(e,r)&&(n[r]=e[r]);return n})(t,["forwardedRef"]);return We.createElement(Aj,null,(t=>We.createElement(e,Ej(Ej({ref:n},r),t))))}}return Mj(t,"displayName","withFiltersConsumer"),We.forwardRef(((e,n)=>We.createElement(t,Sj(Ej({},e),{forwardedRef:n}
2))))};function Pj(e){return Array.isArray?Array.isArray(e):"[object Array]"===Bj(e)}const Ij=1/0;function Lj(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-Ij?"-0":t}(e)}function kj(e){return"string"===typeof e}function Dj(e){return"number"===typeof e}function Nj(e){return!0===e||!1===e||function(e){return Uj(e)&&null!==e}(e)&&"[object Boolean]"==Bj(e)}function Uj(e){return"object"===typeof e}function jj(e){return void 0!==e&&null!==e}function Fj(e){return!e.trim().length}function Bj(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const zj=e=>"Missing ".concat(e," property in key"),Hj=e=>"Property 'weight' in key '".concat(e,"' must be a positive integer"),Vj=Object.prototype.hasOwnProperty;class Wj{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=Gj(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Gj(e){let t=null,n=null,r=null,i=1;if(kj(e)||Pj(e))r=e,t=qj(e),n=Xj(e);else{if(!Vj.call(e,"name"))throw new Error(zj("name"));const o=e.name;if(r=o,Vj.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(Hj(o));t=qj(o),n=Xj(o)}return{path:t,id:n,weight:i,src:r}}function qj(e){return Pj(e)?e:e.split(".")}function Xj(e){return Pj(e)?e.join("."):e}const Yj={useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const i=(e,t,o)=>{if(jj(e))if(t[o]){const a=e[t[o]];if(!jj(a))return;if(o===t.length-1&&(kj(a)||Dj(a)||Nj(a)))n.push(Lj(a));else if(Pj(a)){r=!0;for(let e=0,n=a.length;e<n;e+=1)i(a[e],t,o+1)}else t.length&&i(a,t,o+1)}else n.push(e)};return i(e,kj(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1};var Zj={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...Yj};const Kj=/[^ ]+/g;class $j{constructor(){let{getFn:e=Zj.getFn}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.norm=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;const t=new Map,n=Math.pow(10,e);return{get(e){const r=e.match(Kj).length;if(t.has(r))return t.get(r);const i=1/Math.sqrt(r),o=parseFloat(Math.round(i*n)/n);return t.set(r,o),o},clear(){t.clear()}}}(3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}setIndexRecords(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}setKeys(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,kj(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();kj(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!jj(e)||Fj(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,r)=>{let i=this.getFn(e,t.path);if(jj(i))if(Pj(i)){let e=[];const t=[{nestedArrIndex:-1,value:i}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(jj(r))if(kj(r)&&!Fj(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else Pj(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(!Fj(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function Jj(e,t){let{getFn:n=Zj.getFn}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new $j({getFn:n});return r.setKeys(e.map(Gj)),r.setSources(t),r.create(),r}function Qj(e){let{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=Zj.distance,ignoreLocation:o=Zj.ignoreLocation}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=t/e.length;if(o)return a;const s=Math.abs(r-n);return i?a+s/i:s?1:a}const eF=32;function tF(e,t,n){let{location:r=Zj.location,distance:i=Zj.distance,threshold:o=Zj.threshold,findAllMatches:a=Zj.findAllMatches,minMatchCharLength:s=Zj.minMatchCharLength,includeMatches:l=Zj.includeMatches,ignoreLocation:c=Zj.ignoreLocation}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t.length>eF)throw new Error((e=>"Pattern length exceeds max of ".concat(e,"."))(eF));const u=t.length,d=e.length,h=Math.max(0,Math.min(r,d));let p=o,f=h;const m=s>
vendor: 4,236 bytes, line 2
21||l,g=m?Array(d):[];let v;for(;(v=e.indexOf(t,f))>-1;){let e=Qj(t,{currentLocation:v,expectedLocation:h,distance:i,ignoreLocation:c});if(p=Math.min(e,p),f=v+u,m){let e=0;for(;e<u;)g[v+e]=1,e+=1}}f=-1;let y=[],b=1,x=u+d;const w=1<<u-1;for(let E=0;E<u;E+=1){let r=0,o=x;for(;r<o;){Qj(t,{errors:E,currentLocation:h+o,expectedLocation:h,distance:i,ignoreLocation:c})<=p?r=o:x=o,o=Math.floor((x-r)/2+r)}x=o;let s=Math.max(1,h-o+1),l=a?d:Math.min(h+o,d)+u,v=Array(l+2);v[l+1]=(1<<E)-1;for(let a=l;a>=s;a-=1){let r=a-1,o=n[e.charAt(r)];if(m&&(g[r]=+!!o),v[a]=(v[a+1]<<1|1)&o,E&&(v[a]|=(y[a+1]|y[a])<<1|1|y[a+1]),v[a]&w&&(b=Qj(t,{errors:E,currentLocation:r,expectedLocation:h,distance:i,ignoreLocation:c}),b<=p)){if(p=b,f=r,f<=h)break;s=Math.max(1,2*h-f)}}if(Qj(t,{errors:E+1,currentLocation:h,expectedLocation:h,distance:i,ignoreLocation:c})>p)break;y=v}const _={isMatch:f>=0,score:Math.max(.001,b)};if(m){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zj.minMatchCharLength,n=[],r=-1,i=-1,o=0;for(let a=e.length;o<a;o+=1){let a=e[o];a&&-1===r?r=o:a||-1===r||(i=o-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(g,s);e.length?l&&(_.indices=e):_.isMatch=!1}return _}function nF(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}class rF{constructor(e){let{location:t=Zj.location,threshold:n=Zj.threshold,distance:r=Zj.distance,includeMatches:i=Zj.includeMatches,findAllMatches:o=Zj.findAllMatches,minMatchCharLength:a=Zj.minMatchCharLength,isCaseSensitive:s=Zj.isCaseSensitive,ignoreLocation:l=Zj.ignoreLocation}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:nF(e),startIndex:t})},u=this.pattern.length;if(u>eF){let e=0;const t=u%eF,n=u-t;for(;e<n;)c(this.pattern.substr(e,eF),e),e+=eF;if(t){const e=u-eF;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:i,threshold:o,findAllMatches:a,minMatchCharLength:s,ignoreLocation:l}=this.options;let c=[],u=0,d=!1;this.chunks.forEach((t=>{let{pattern:h,alphabet:p,startIndex:f}=t;const{isMatch:m,score:g,indices:v}=tF(e,h,p,{location:r+f,distance:i,threshold:o,findAllMatches:a,minMatchCharLength:s,includeMatches:n,ignoreLocation:l});m&&(d=!0),u+=g,m&&v&&(c=[...c,...v])}));let h={isMatch:d,score:d?u/this.chunks.length:1};return d&&n&&(h.indices=c),h}}class iF{constructor(e){this.pattern=e}static isMultiMatch(e){return oF(e,this.multiRegex)}static isSingleMatch(e){return oF(e,this.singleRegex)}search(){}}function oF(e,t){const n=e.match(t);return n?n[1]:null}class aF extends iF{constructor(e){let{location:t=Zj.location,threshold:n=Zj.threshold,distance:r=Zj.distance,includeMatches:i=Zj.includeMatches,findAllMatches:o=Zj.findAllMatches,minMatchCharLength:a=Zj.minMatchCharLength,isCaseSensitive:s=Zj.isCaseSensitive,ignoreLocation:l=Zj.ignoreLocation}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e),this._bitapSearch=new rF(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class sF extends iF{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const lF=[class extends iF{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}
2search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},sF,class extends iF{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends iF{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends iF{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends iF{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends iF{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},aF],cF=lF.length,uF=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;const dF=new Set([aF.type,sF.type]);class hF{constructor(e){let{isCaseSensitive:t=Zj.isCaseSensitive,includeMatches:n=Zj.includeMatches,minMatchCharLength:r=Zj.minMatchCharLength,ignoreLocation:i=Zj.ignoreLocation,findAllMatches:o=Zj.findAllMatches,location:a=Zj.location,threshold:s=Zj.threshold,distance:l=Zj.distance}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:o,ignoreLocation:i,location:a,threshold:s,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((e=>{let n=e.trim().split(uF).filter((e=>e&&!!e.trim())),r=[];for(let i=0,o=n.length;i<o;i+=1){const e=n[i];let o=!1,a=-1;for(;!o&&++a<cF;){const n=lF[a];let i=n.isMultiMatch(e);i&&(r.push(new n(i,t)),o=!0)}if(!o)for(a=-1;++a<cF;){const n=lF[a];let i=n.isSingleMatch(e);if(i){r.push(new n(i,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let i=0,o=[],a=0;for(let s=0,l=t.length;s<l;s+=1){const r=t[s];o.length=0,i=0;for(let t=0,s=r.length;t<s;t+=1){const s=r[t],{isMatch:l,indices:c,score:u}=s.search(e);if(!l){a=0,i=0,o.length=0;break}if(i+=1,a+=u,n){const e=s.constructor.type;dF.has(e)?o=[...o,...c]:o.push(c)}}if(i){let e={isMatch:!0,score:a/i};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}}const pF=[];function fF(e,t){for(let n=0,r=pF.length;n<r;n+=1){let r=pF[n];if(r.condition(e,t))return new r(e,t)}return new rF(e,t)}const mF="$and",gF="$or",vF="$path",yF="$val",bF=e=>!(!e[mF]&&!e[gF]),xF=e=>({[mF]:Object.keys(e).map((t=>({[t]:e[t]})))});function wF(e,t){let{auto:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e=>{let i=Object.keys(e);const o=(e=>!!e[vF])(e);if(!o&&i.length>1&&!bF(e))return r(xF(e));if((e=>!Pj(e)&&Uj(e)&&!bF(e))(e)){const r=o?e[vF]:i[0],a=o?e[yF]:e[r];if(!kj(a))throw new Error((e=>"Invalid value for key ".concat(e))(r));const s={keyId:Xj(r),pattern:a};return n&&(s.searcher=fF(a,t)),s}let a={children:[],operator:i[0]};return i.forEach((t=>{const n=e[t];Pj(n)&&n.forEach((e=>
2{a.children.push(r(e))}))})),a};return bF(e)||(e=xF(e)),r(e)}function _F(e,t){const n=e.matches;t.matches=[],jj(n)&&n.forEach((e=>{if(!jj(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)}))}function EF(e,t){t.score=e.score}class SF{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;this.options={...Zj,...t},this.options.useExtendedSearch,this._keyStore=new Wj(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof $j))throw new Error("Incorrect 'index' type");this._myIndex=t||Jj(this.options.keys,this._docs,{getFn:this.options.getFn})}add(e){jj(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>!1;const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,r-=1,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e){let{limit:t=-1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{includeMatches:n,includeScore:r,shouldSort:i,sortFn:o,ignoreFieldNorm:a}=this.options;let s=kj(e)?kj(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,t){let{ignoreFieldNorm:n=Zj.ignoreFieldNorm}=t;e.forEach((e=>{let t=1;e.matches.forEach((e=>{let{key:r,norm:i,score:o}=e;const a=r?r.weight:null;t*=Math.pow(0===o&&a?Number.EPSILON:o,(a||1)*(n?1:i))})),e.score=t}))}(s,{ignoreFieldNorm:a}),i&&s.sort(o),Dj(t)&&t>-1&&(s=s.slice(0,t)),function(e,t){let{includeMatches:n=Zj.includeMatches,includeScore:r=Zj.includeScore}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=[];return n&&i.push(_F),r&&i.push(EF),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach((t=>{t(e,r)})),r}))}(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=fF(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((e=>{let{v:n,i:i,n:o}=e;if(!jj(n))return;const{isMatch:a,score:s,indices:l}=t.searchIn(n);a&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:l}]})})),r}_searchLogical(e){const t=wF(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:i}=e,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return o&&o.length?[{idx:r,item:t,matches:o}]:[]}switch(e.operator){case mF:{const i=[];for(let o=0,a=e.children.length;o<a;o+=1){const a=e.children[o],s=n(a,t,r);if(!s.length)return[];i.push(...s)}return i}case gF:{const i=[];for(let o=0,a=e.children.length;o<a;o+=1){const a=e.children[o],s=n(a,t,r);if(s.length){i.push(...s);break}}return i}}},r=this._myIndex.records,i={},o=[];return r.forEach((e=>{let{$:r,i:a}=e;if(jj(r)){let e=n(t,r,a);e.length&&(i[a]||(i[a]={idx:a,item:r,matches:[]},o.push(i[a])),e.forEach((e=>{let{matches:t}=e;i[a].matches.push(...t)})))}})),o}_searchObjectList(e){const t=fF(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach((e=>{let{$:r,i:o}=e;if(!jj(r))return;let a=[];n.forEach(((e,n)=>{a.push(...this._findMatches({key:e,value:r[n],searcher:t}))})),a.length&&i.push({idx:o,item:r,matches:a})})),i}_findMatches(e){let{key:t,value:n,searcher:r}=e;if(!jj(n))return[];let i=[];if(Pj(n))n.forEach((e=>{let{v:n,i:o,n:a}=e;if(!jj(n))return;const{isMatch:s,score:l,indices:c}=r.searchIn(n);s&&i.push({score:l,key:t,value:n,idx:o,norm:a,indices:c})}));else{const{v:e,n:o}=n,{isMatch:a,score:s,indices:l}=r.searchIn(e);a&&i.push({score:s,key:t,value:e,norm:o,indices:l})}return i}}SF.version="6.4.6",SF.createIndex=Jj,SF.parseIndex=function(e){let{getFn:t=Zj.getFn}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{keys:n,records:r}=e,i=new $j({getFn:t});return i.setKeys(n),i.setIndexRecords(r),i},SF.config=Zj,SF.parseQuery=wF,function(){pF.push(...arguments)}(hF);var MF=Object.defineProperty,TF=Object.defineProperties,AF=Object.getOwnPropertyDescriptors,OF=Object.getOwnPropertySymbols,CF=Object.prototype.hasOwnProperty,RF=Object.prototype.propertyIsEnumerable,PF=(e,t,n)=>t in e?MF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IF=(e,t)=>{for(var n in t||(t={}))CF.call(t,n)&&PF(e,n,t[n]);if(OF)for(var n of OF(t))RF.call(t,n)&&PF(e,n,t[n]);return e};const LF=We.createContext(),kF=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});const DF=EN((function(e){let{children:t,ordinals:n}=e;const{getText:r}=PD(),i=We.useMemo((()=>{const e=[...n.values()].flatMap((e=>e.occupants)).filter((e=>e.category.showInSearchResult)).map((e=>{const t=e.id,n=xb(r(e.name)),i=e.category.fullPath.map((e=>
2xb(r(e)))),o=e.extraCategories.flatMap((e=>e.fullPath.map((e=>xb(r(e)))))),a=Array.from(new Set(n.match(/[\p{L}\d]+/gu))).filter((e=>e.length>1)),s=r(e.keywords),l=e.category.keywords?r(e.category.keywords):[],c=s.concat(l).flatMap((e=>e.match(/[\p{L}\d]+/gu)));return{id:t,name:n,nameParts:a,startWithNameParts:a,fuzzyNameParts:a,category:i,extraCategories:o,occupantKeywords:s,categoryKeywords:l,allKeywordsParts:c,occupant:e}})).sort(((e,t)=>kF.compare(e.name,t.name))),t={shouldSort:!0,includeScore:!0,includeMatches:!0,isCaseSensitive:!1,findAllMatches:!0,useExtendedSearch:!0,ignoreLocation:!0,ignoreFieldNorm:!1,fieldNormWeight:2,threshold:.2,maxPatternLength:36,minMatchCharLength:2,keys:[{name:"id",weight:1e4},{name:"name",weight:1e4},{name:"occupantKeywords",weight:5e3},{name:"nameParts",weight:1e3},{name:"fuzzyNameParts",weight:100},{name:"startWithNameParts",weight:100},{name:"category",weight:300},{name:"categoryKeywords",weight:300},{name:"extraCategories",weight:100},{name:"allKeywordsParts",weight:100}]};return new SF(e,t,SF.createIndex(t.keys,e))}),[n,r]),o=We.useCallback((e=>{if(!e)return[];e=xb(e).trim();const t=Array.from(new Set(e.match(/[\p{L}\d|$]+/gu))),n=[{id:'="'.concat(e,'"')}],r=[{name:'="'.concat(e,'"')}],o=[{occupantKeywords:'="'.concat(e,'"')}],a=t.map((e=>({nameParts:'="'.concat(e,'"')}))),s=[{name:'^"'.concat(e,'"')}],l=t.map((e=>({startWithNameParts:'^"'.concat(e,'"')}))),c=t.map((e=>({category:'^"'.concat(e,'"')}))),u=[{categoryKeywords:'="'.concat(e,'"')}],d=t.map((e=>({extraCategories:'^"'.concat(e,'"')}))),h=t.map((e=>({allKeywordsParts:'^"'.concat(e,'"')}))),p=t.map((e=>({fuzzyNameParts:'"'.concat(e,'"')}))),f={$or:n.concat(r).concat(o).concat(s).concat(a).concat(c).concat(u).concat(d).concat(h).concat(l).concat(p)};return i.search(f,{limit:50}).map((e=>e.item.occupant)).sort(((e,t)=>e.order<t.order?-1:e.order>t.order?1:0))}),[i]),a=We.useMemo((()=>({searchOccupants:o})),[o]);return We.createElement(LF.Provider,{value:a},t)})),NF=Object(Ye.a)(i||(i=Object(Ve.a)(["\n.pcmap-user-location {\n  opacity: unset !important;\n  z-index: 1;\n\n  .pcmap-marker-dot,\n  .pcmap-marker-title {\n    display: none !important;\n  }\n}\n\n.pcmap {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,\n    'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',\n    'Segoe UI Symbol', 'Noto Color Emoji';\n  font-size: 16px;\n  font-weight: 400;\n  line-height: 1.5;\n  color: #212529;\n  text-align: left;\n  background-color: #fff;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  -webkit-text-size-adjust: 100%;\n  -ms-text-size-adjust: 100%;\n  -ms-overflow-style: scrollbar;\n  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n  @media (orientation: portrait) and (max-width: 375px) {\n    font-size: 4.266666666666667vw;\n  }\n\n  @media (orientation: portrait) and (min-width: 768px) {\n    font-size: 2.083333333333333vw;\n  }\n\n  @media (orientation: landscape) and (min-width: 1920px) {\n    font-size: 0.9375vw;\n  }\n\n  *,\n  *::before,\n  *::after {\n    box-sizing: border-box;\n    user-select: none;\n  }\n}\n"]))),UF=[{showDot:!1,showIcon:!0,showTitle:!0,minimization:!1},{showDot:!0,showIcon:!1,showTitle:!0,minimization:!0},{showDot:!1,showIcon:!1,showTitle:!0,minimization:!0},{showDot:!1,showIcon:!0,showTitle:!1,minimization:!0},{showDot:!0,showIcon:!1,showTitle:!1,minimization:!0},{showDot:!1,showIcon:!1,showTitle:!1,minimization:!0,nothing:!0}],jF=(e,t)=>{const n=Math.min(e.right,t.right)-Math.max(e.left,t.left),r=Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top);return n>=0&&r>=0?n*r:0};const FF=Boolean(window.navigator.msSaveOrOpenBlob),BF=!window.URL||!window.URL.createObjectURL;const zF=FF||BF?function(e){e.forEach((e=>{const t=e.bounds.reduce(((e,t)=>{let{top:n,bottom:r,left:i,right:o}=e;return{top:Math.min(n,t.top),bottom:Math.max(r,t.bottom),left:Math.min(i,t.left),right:Math.max(o,t.right)}}),{top:e.bounds[0].top,bottom:e.bounds[0].bottom,left:e.bounds[0].left,right:e.bounds[0].right});e.maxBounds=t}));const t=new Map(e.map((t=>{const n=t.id,r=t.maxBounds,{intersections:i,intersectionsArea:o}=e.reduce(((e,t)=>{const i=jF(r,t.maxBounds);return t.id!==n&&i>0&&(e.intersections.set(t.id,t),e.intersectionsArea+=i),e}),{intersections:new Map,intersectionsArea:0});return[n,{marker:t,intersections:i,intersectionsArea:o}]}))),n=[],r=(e,n)=>{e.forEach(((e,i)=>{if(n.has(e))return;
2n.add(e),e.cluster=n;const{intersections:o}=t.get(i);r(o,n)}))};return t.forEach((e=>{let{marker:t,intersections:i}=e;t.cluster||(t.cluster=new Set([t]),r(i,t.cluster),t.cluster.size>1&&n.push(t.cluster))})),n.forEach((e=>{const n=[...e.values()].reduce(((e,t)=>{const n=e.get(t.priority)||[];return n.push(t),e.set(t.priority,n),e}),new Map);Array.from(n.entries()).sort(((e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0)).map((e=>e[1])).forEach((e=>{const n=e.sort(((e,n)=>t.get(e.id).intersectionsArea-t.get(n.id).intersectionsArea)),r=e.sort(((e,n)=>{const r=t.get(e.id).intersectionsArea;return t.get(n.id).intersectionsArea-r}));UF.forEach((e=>{(e.minimization?r:n).forEach((n=>{if(n.selected)return;if(e.nothing&&n.bounds.some((e=>{let{showDot:t,showTitle:n}=e;return t&&!n})))return;const r=(e=>{const{intersections:n}=t.get(e.id),r=[...n.values()].reduce(((t,n)=>t+jF(e.bestBounds,n.bestBounds)),0);return r})(n);if(r<50)return;const{intersections:i}=t.get(n.id),o=n.bounds.filter((t=>t.showDot===e.showDot&&t.showIcon===e.showIcon&&t.showTitle===e.showTitle)),{bestBounds:a,intersectionArea:s}=o.reduce(((e,t)=>{const n=[...i.values()].reduce(((e,n)=>e+jF(t,n.bestBounds)),0);return n<e.intersectionArea?{bestBounds:t,intersectionArea:n}:e}),{bestBounds:n.bounds[0],intersectionArea:1/0});n.bestBounds=a,n.intersectionArea=s}))}))}))})),e}:function(){const e=new Blob(['const t=[{showDot:!1,showIcon:!0,showTitle:!0,minimization:!1},{showDot:!0,showIcon:!1,showTitle:!0,minimization:!0},{showDot:!1,showIcon:!1,showTitle:!0,minimization:!0},{showDot:!1,showIcon:!0,showTitle:!1,minimization:!0},{showDot:!0,showIcon:!1,showTitle:!1,minimization:!0},{showDot:!1,showIcon:!1,showTitle:!1,minimization:!0,nothing:!0}],e=(t,e)=>{const o=Math.min(t.right,e.right)-Math.max(t.left,e.left),s=Math.min(t.bottom,e.bottom)-Math.max(t.top,e.top);return o>=0&&s>=0?o*s:0};function optimizeMarkersBounds(o){o.forEach((t=>{const e=t.bounds.reduce((({top:t,bottom:e,left:o,right:s},n)=>({top:Math.min(t,n.top),bottom:Math.max(e,n.bottom),left:Math.min(o,n.left),right:Math.max(s,n.right)})),{top:t.bounds[0].top,bottom:t.bounds[0].bottom,left:t.bounds[0].left,right:t.bounds[0].right});t.maxBounds=e}));const s=new Map(o.map((t=>{const s=t.id,n=t.maxBounds,{intersections:i,intersectionsArea:r}=o.reduce(((t,o)=>{const i=e(n,o.maxBounds);return o.id!==s&&i>0&&(t.intersections.set(o.id,o),t.intersectionsArea+=i),t}),{intersections:new Map,intersectionsArea:0});return[s,{marker:t,intersections:i,intersectionsArea:r}]}))),n=[],i=(t,e)=>{t.forEach(((t,o)=>{if(e.has(t))return;
2e.add(t),t.cluster=e;const{intersections:n}=s.get(o);i(n,e)}))};s.forEach((({marker:t,intersections:e})=>{t.cluster||(t.cluster=new Set([t]),i(e,t.cluster),t.cluster.size>1&&n.push(t.cluster))}));return n.forEach((o=>{const n=[...o.values()].reduce(((t,e)=>{const o=t.get(e.priority)||[];return o.push(e),t.set(e.priority,o),t}),new Map);Array.from(n.entries()).sort(((t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0)).map((t=>t[1])).forEach((o=>{const n=o.sort(((t,e)=>s.get(t.id).intersectionsArea-s.get(e.id).intersectionsArea)),i=o.sort(((t,e)=>{const o=s.get(t.id).intersectionsArea;return s.get(e.id).intersectionsArea-o}));t.forEach((t=>{(t.minimization?i:n).forEach((o=>{if(o.selected)return;if(t.nothing&&o.bounds.some((({showDot:t,showTitle:e})=>t&&!e)))return;const n=(t=>{const{intersections:o}=s.get(t.id);return[...o.values()].reduce(((o,s)=>o+e(t.bestBounds,s.bestBounds)),0)})(o);if(n<50)return;const{intersections:i}=s.get(o.id),r=o.bounds.filter((e=>e.showDot===t.showDot&&e.showIcon===t.showIcon&&e.showTitle===t.showTitle)),{bestBounds:a,intersectionArea:c}=r.reduce(((t,o)=>{const s=[...i.values()].reduce(((t,s)=>t+e(o,s.bestBounds)),0);return s<t.intersectionArea?{bestBounds:o,intersectionArea:s}:t}),{bestBounds:o.bounds[0],intersectionArea:1/0});o.bestBounds=a,o.intersectionArea=c}))}))}))})),o}self.onmessage=function(t){const{type:e,payload:o}=t.data,{timestamp:s,markersBounds:n}=JSON.parse(o);if("getOptimizedMarkersBounds"===e){const t=optimizeMarkersBounds(n),e=JSON.stringify({timestamp:s,optimizedMarkersBounds:t});self.postMessage({type:"setOptimizedMarkersBounds",payload:e})}};']),t=window.URL.createObjectURL(e),n=new Worker(t);let r,i;return n.onmessage=e=>{let{data:t}=e;const{type:n,payload:o}=t,{timestamp:a,optimizedMarkersBounds:s}=JSON.parse(o);"setOptimizedMarkersBounds"===n&&a===r&&(i=s)},async e=>{const t=Date.now();r=t,i=null;const o=new Promise(((e,n)=>{const o=()=>{setTimeout((()=>{r===t?Array.isArray(i)?e(i):o():n("The data is out of date")}),100)};o()})),a=JSON.stringify({timestamp:t,markersBounds:e});return n.postMessage({type:"getOptimizedMarkersBounds",payload:a}),o}}(),HF=(e,t)=>{let{dotDistanceThreshold:n,clusterDistanceThreshold:r}=t;const i=[],o=[];for(let l=0;l<e.length;l++)if(!o.includes(l)){i.push(e[l]);for(let t=l+1;t<e.length;t++){if(o.includes(t))continue;let i=0;i=e[l].ids.length>1&&e[t].ids.length>1?r:e[l].ids.length>1||e[t].ids.length>1?r/2+.2*r:n;if((a=e[l].center,s=e[t].center,Math.sqrt((s[0]-a[0])**2+(s[1]-a[1])**2))<=i){e[l].center=Ef(e[l].center,e[t].center),e[l].ids=e[l].ids.concat(e[t].ids),o.push(t);break}}}var a,s;return i};const VF=async e=>{let{map:t,mapProjection:n,events:r,zoom:i,activeOrdinal:o,selectedOccupants:a,filteredOccupants:s,customMarkers:l,dotDistanceThreshold:c,clusterDistanceThreshold:u,nonHighlightedMarkers:d}=e;const h=new Set(a),p=o.occupants.map((e=>{const{id:t,category:n,marker:r,coordinates:o}=e;if(!r.inView||!r.boundsReady||r.lock)return null;const a=h.has(t),l=null==s?void 0:s.has(t);let c=!1,u=!1,p=!1;if(a)c=!1,u=!0,p=!0;else if(l)c=!0,u=!0,p=!0;else if(!1===l&&"hidden"===d)c=!1,u=!1,p=!1;else{const e=n.dotMinZoom||0,t=n.dotMaxZoom||1e3;c=e<=i&&i<=t;const r=n.iconMinZoom||0,o=n.iconMaxZoom||1e3;u=r<=i&&i<=o;const a=n.titleMinZoom||0,s=n.titleMaxZoom||1e3;p=a<=i&&i<=s}const f=l?"highlighted":e.clusteringIdentifier||n.clusteringIdentifier||"default";return{id:t,marker:r,coordinates:o,priority:l?Number.MAX_VALUE:n.priority,highlighted:l,selected:a,showDot:c,showIcon:u,showTitle:p,clusteringIdentifier:f}})).filter(Boolean).concat(l.filter((e=>{let{ordinal:t}=e;return!Number.isFinite(t)||t===o.id}))),f=new Map(p.map((e=>[e.id,e]))),m=p.filter((e=>{let{showDot:t,showIcon:n,showTitle:r}=e;return t||n||r})).map((e=>{let{id:t,priority:n=0,highlighted:r,selected:i,marker:o,showDot:a,showIcon:s,showTitle:l}=e,c=o.bounds;a||(c=c.filter((e=>!e.showDot))),s||(c=c.filter((e=>!e.showIcon))),l||(c=c.filter((e=>!e.showTitle))),(a||s)&&(c=c.filter((e=>!(!e.showDot&&!e.showIcon&&e.showTitle))));const u=c.find((e=>e.showIcon&&e.showTitle&&e.titlePosition===o.titlePositions.RIGHT))||c[0];return{id:t,priority:n,highlighted:r,selected:i,bounds:c,bestBounds:u}}));let g;try{const e=await zF(m);g=new Map(e.map((e=>[e.id,e])))}catch(gB){return}
2p.forEach((e=>{let{id:t,marker:n,highlighted:r,selected:i,showDot:o,showIcon:a,showTitle:s}=e;const l=g.get(t),c=l?l.bestBounds:null;c&&(o=c.showDot,a=c.showIcon,s=c.showTitle),n.selected=i,n.visible=o||a||s,n.showDot=o,n.showIcon=a,n.showTitle=s,n.dimmed=!n.selected&&n.visible&&!1===r&&"semi-visible"===d,n.readyToRender=!0,c&&(n.titlePosition=!s||a||o?c.titlePosition:n.titlePositions.CENTER),r?n.addClass("pcmap-marker--highlighted"):!1===r?n.addClass("pcmap-marker--non-highlighted"):(n.removeClass("pcmap-marker--highlighted"),n.removeClass("pcmap-marker--non-highlighted")),i?n.addClass("pcmap-marker--selected"):n.removeClass("pcmap-marker--selected")}));const v=p.filter((e=>{let{marker:t}=e;return t.showDot&&!t.showTitle&&!t.showIcon})).reduce(((e,t)=>{const n=t.clusteringIdentifier,r=e.get(n)||[];return r.push(t),e.set(n,r),e}),new Map),y=[];v.forEach(((e,t)=>{const n=e.map((e=>{let{id:t}=e;var n,r;return{id:t,bounds:null!=(r=null==(n=g.get(t))?void 0:n.bestBounds)?r:null}})),r=function(e,t){const{dotDistanceThreshold:n=12,clusterDistanceThreshold:r=32}=t||{};let i,o=e.map((e=>{let{id:t,bounds:n}=e;return{center:[n.left+n.width/2,n.top+n.height/2],ids:[t]}}));do{i=o.length,o=HF(o,{dotDistanceThreshold:n,clusterDistanceThreshold:r})}while(o.length!==i);return o.filter((e=>e.ids.length>1)).map((e=>{let{center:t,ids:n}=e;return{center:t,ids:n,id:Mk(n.join(":"))}}))}(n,{dotDistanceThreshold:c,clusterDistanceThreshold:u});r.forEach((e=>{e.groupName=t,e.occupants=e.ids.map((e=>o.occupantsMap.get(e))).filter(Boolean),e.highlighted=s?"highlighted"===t:null})),y.push(...r)})),y.forEach((e=>{e.coordinates=e.ids.reduce(((e,t)=>{const n=f.get(t);return n?e?Ef(e,n.coordinates):n.coordinates:e}),null)}));const b=new Set(y.map((e=>{let{id:t}=e;return t}))),x=new Set;o.mapOrdinal.traverse((e=>{if(!e.isCluster)return;const t=e;if(!b.has(t.clusterId))return o.mapOrdinal.remove(t),void t.dispose();x.add(t.clusterId)})),y.forEach((e=>{if(e.occupants.forEach((e=>{let{marker:t}=e;t.visible=!1})),x.has(e.id))return;const t=new WC(e.coordinates,{clusterId:e.id,title:e.ids.length,mapProjection:n});t.readyToRender=!0,t.visible=!0,t.interactive=!0,t.showDot=!1,t.showIcon=!1,t.dimmed=!1===e.highlighted&&"semi-visible"===d,t.addClass("pcmap-cluster-".concat(e.groupName.replace(/\W+/g,"_").toLowerCase())),t.addClass("pcmap-cluster-".concat(e.id)),e.highlighted?t.addClass("pcmap-cluster--highlighted"):!1===e.highlighted?t.addClass("pcmap-cluster--non-highlighted"):(t.removeClass("pcmap-cluster--highlighted"),t.removeClass("pcmap-cluster--non-highlighted")),t.addEventListener("click",(()=>{r.emit("Cluster#Click",{id:e.id,coordinates:e.coordinates,clusteringIdentifier:e.groupName,occupants:e.occupants})})),o.mapOrdinal.add(t)})),t.refresh()},WF=(()=>{let e;return nA((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];cancelAnimationFrame(e),e=requestAnimationFrame((()=>{VF(...n)}))}),100,{leading:!1,trailing:!0})})();var GF=aD(yD((function(e){let{map:t,mapProjection:n,options:r,filteredOccupants:i,selectedOccupants:o,setSelectedOccupants:a,ordinals:s,activeOrdinal:l,events:c}=e;const[u,d]=We.useState(r.zoom),[h,p]=We.useState(r.tilt),[f,m]=We.useState(r.rotation),[g,v]=We.useState(!1),[y,b]=We.useState(Date.now()),[x,w]=We.useState([]);We.useEffect((()=>{const e=e=>{let{id:t,latitude:n,longitude:r,ordinal:i}=e;if(!t)return;if(!i&&(!n||!r))return;const{occupant:o,currentOrdinal:a,askedOrdinal:l}=Array.from(s.values()).reduce(((e,n)=>{const r=n.occupantsMap.get(t),o=r?n:e.currentOrdinal,a=n.id===i?n:e.askedOrdinal;return{occupant:null!=r?r:e.occupant,currentOrdinal:o,askedOrdinal:a}}),{occupant:null,currentOrdinal:null,askedOrdinal:null});l&&l!==a&&(o.ordinalId=i,l.occupantsMap.set(o.id,o),l.occupants=Array.from(l.occupantsMap.values()),l.mapOrdinal.add(o.marker),a.occupantsMap.delete(o.id),a.occupants=Array.from(a.occupantsMap.values()),a.mapOrdinal.remove(o.marker)),Number.isFinite(n)&&Number.isFinite(r)&&(o.coordinates=[n,r],o.marker.coordinates=o.coordinates),b(Date.now())};return c.on("Occupant#SetLocation",e),()=>{c.off("Occupant#SetLocation",e)}}),[c,s]),We.useEffect((()=>{const e=[],r=t=>{let{marker:r}=t;var i,o,a,s,l,c,u,d,h,p,f;if(!r||!r.id||e.some((e=>{let{id:t}=e;
2return t===r.id}))||!Number.isFinite(r.latitude)||!Number.isFinite(r.longitude))return;const m=[r.latitude,r.longitude],g=new WC(m,{title:null!=(i=r.title)?i:"",icon:null!=(o=r.icon)?o:"",color:null!=(a=r.color)?a:"",mapProjection:n,rotateX:r.rotateX,rotateY:r.rotateY,rotateZ:r.rotateZ,height:r.height,flippable:r.flippable});g.addClass(null!=(s=r.cssClass)?s:"pcmap-custom-marker"),e.push({coordinates:m,id:r.id,marker:g,ordinal:r.ordinal,priority:null!=(l=r.priority)?l:0,highlighted:null!=(c=r.highlighted)&&c,selected:null!=(u=r.selected)&&u,showDot:null==(d=r.showDot)||d,showIcon:null==(h=r.showIcon)||h,showTitle:null==(p=r.showTitle)||p,clusteringIdentifier:null!=(f=r.clusteringIdentifier)?f:"__custom-markers__"}),w([...e])},i=n=>{let{marker:r}=n;const i=e.find((e=>{let{id:t}=e;return r.id===t}));i&&("string"===typeof r.title&&(i.marker.titleText=r.title),Number.isFinite(r.latitude)&&Number.isFinite(r.longitude)&&(i.marker.coordinates=[r.latitude,r.longitude],t.refresh()),Number.isFinite(r.ordinal)&&(i.ordinal=r.ordinal,w([...e])))},o=t=>{let{marker:n}=t;const r="object"===typeof n?n.id:n,i=e.findIndex((e=>{let{id:t}=e;return t===r}));e.splice(i,1),w([...e])};return c.on("Markers#AddMarker",r),c.on("Markers#UpdateMarker",i),c.on("Markers#RemoveMarker",o),()=>{c.off("Markers#AddMarker",r),c.off("Markers#UpdateMarker",i),c.off("Markers#RemoveMarker",o)}}),[t,c,n]),We.useEffect((()=>{const e=x.filter((e=>{let{ordinal:t}=e;return!Number.isFinite(t)||t===l.id}));return e.forEach((e=>{let{marker:t}=e;l.mapOrdinal.add(t)})),t.refresh(),()=>{e.forEach((e=>{let{marker:t}=e;l.mapOrdinal.remove(t)}))}}),[t,l,x]),We.useEffect((()=>{if(!t)return;const e=nA((e=>{let{zoom:t}=e;d(t)}),150,{leading:!1,trailing:!0});t.addEventListener("zoomChangeSequence",e);const n=e=>{let{zoom:t}=e;d(t)};t.addEventListener("zoomChange",n);const r=()=>{v(!0),s.forEach((e=>{e.occupants.forEach((e=>{e.marker.selected||(e.marker.lock=!0,e.marker.readyToRender=!1)}))}))};t.addEventListener("zoomChangeBegin",r);const i=()=>{v(!1),s.forEach((e=>{e.occupants.forEach((e=>{e.marker.lock=!1}))}))};t.addEventListener("zoomChangeEnd",i);const o=I_((e=>{let{rotation:t}=e;m(t)}),50,{leading:!1,trailing:!0});t.addEventListener("rotationChangeSequence",o);const a=e=>{let{rotation:t}=e;m(t)};t.addEventListener("rotationChange",a);const l=I_((e=>{let{tilt:t}=e;p(t)}),50,{leading:!1,trailing:!0});t.addEventListener("tiltChangeSequence",l);const c=e=>{let{tilt:t}=e;p(t)};return t.addEventListener("tiltChange",c),()=>{t.removeEventListener("zoomChange",n),t.removeEventListener("zoomChangeSequence",e),t.removeEventListener("zoomChangeBegin",r),t.removeEventListener("zoomChangeEnd",i),t.removeEventListener("rotationChange",a),t.removeEventListener("tiltChange",c),t.removeEventListener("rotationChangeSequence",o),t.removeEventListener("tiltChangeSequence",l)}}),[t,s]),We.useLayoutEffect((()=>{g||WF({map:t,mapProjection:n,events:c,zoom:u,activeOrdinal:l,selectedOccupants:o,filteredOccupants:i,customMarkers:x,dotDistanceThreshold:r.dotDistanceThreshold,clusterDistanceThreshold:r.clusterDistanceThreshold,nonHighlightedMarkers:r.nonHighlightedMarkers})}),[t,n,c,u,f,h,l,o,i,y,x,r.dotDistanceThreshold,r.clusterDistanceThreshold,r.nonHighlightedMarkers,g]),We.useEffect((()=>{const e=new Set;return l.occupants.forEach((t=>{const{id:n,marker:r}=t,i=()=>{a(o.includes(n)?[]:[n]),c.emit("Marker#Click",t)};e.add({marker:r,clickHandler:i}),r.addEventListener("click",i)})),()=>{e.forEach((t=>{const{marker:n,clickHandler:r}=t;n.removeEventListener("click",r),e.delete(t)}))}}),[l,o,a,c]);const _=We.useCallback(I_((()=>{b(Date.now())}),50,{leading:!1,trailing:!0}),[b]);return We.useEffect((()=>{const e=new Set;return l.occupants.forEach((t=>{let{marker:n}=t;const r=()=>{_()},i=()=>{_()};e.add({marker:n,type:"sizeChanged",handler:r}),e.add({marker:n,type:"inView",handler:i}),n.addEventListener("sizeChanged",r),n.addEventListener("inView",i)})),()=>{e.forEach((t=>{let{marker:n,type:r,handler:i}=t;n.removeEventListener(r,i),e.delete(i)}))}}),[l,_]),null})));const qF='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">\n  <path fill="#3884F3" d="M11.752.3006a.3504.3504 0 0 1 .527 0l6.3738 7.2677c.1987.2266.0378.5817-.2636.5817H5.6418c-.3014 0-.4623-.355-.2636-.5817L11.752.3006Z"/>\n  <path fill="#fff" d="M11.7481 1.726a.3506.3506 0 0 1 .5271 0l5.2978 6.041c.1987.2265.0378.5816-.2635.5816H6.7139c-.3014 0-.4623-.355-.2636-.5816l5.2978-6.041Z"/>\n  <path fill="#3884F3" d="M11.7481 3.5489a.3506.3506 0 0 1 .5271 0l5.2978 6.0409c.1987.2265.0378.5816-.2635.5816H6.7139c-.3014 0-.4623-.355-.2636-.5816l5.2978-6.041Z"/>\n  <path fill="#3884F3" d="M21.593 14.4187c0 5.2916-4.2897 9.5813-9.5813 9.5813-5.2916 0-9.5813-4.2897-9.5813-9.5813 0-5.2916 4.2897-9.5813 9.5813-9.5813 5.2916 0 9.5813 4.2897 9.5813 9.5813Z"/>\n  <path fill="#fff" d="M20.1909 14.4187c0 4.5172-3.6619 8.1792-8.1792 8.1792-4.5172 0-8.1791-3.662-8.1791-8.1792s3.6619-8.1792 8.1791-8.1792c4.5173 0 8.1792 3.662 8.1792 8.1792Z"/>\n  <path fill="#3884F3" d="M18.4382 14.4187c0 3.5493-2.8772 6.4265-6.4265 6.4265-3.5492 0-6.4265-2.8772-6.4265-6.4265 0-3.5492 2.8773-6.4265 6.4265-6.4265 3.5493 0 6.4265 2.8773 6.4265 6.4265Z"/>\n</svg>';function XF(e){const{map:t,mapProjection:n,activeOrdinal:r,location:i,heading:o}=e,[a,s]=We.useState(null),l=We.useRef(null);return We.useEffect((()=>
2{if(!t)return;const e=new WC([0,0],{icon:qF,category:"user-location",title:"",color:"",mapProjection:n,height:.1,rotateX:-90,flippable:!1});e.addClass("pcmap-user-location"),l.current=e.htmlElement.querySelector(".pcmap-marker-icon"),s(e)}),[t,n]),We.useEffect((()=>{const e=Number.isFinite(i.ordinal)&&r.id===i.ordinal;if(t&&a&&e)return a.readyToRender=!0,r.mapOrdinal.add(a),t.refresh(),()=>{r.mapOrdinal.remove(a)}}),[t,a,n,r,i.ordinal]),We.useEffect((()=>{t&&a&&i&&(l.current.style.transform="rotateZ(".concat(null!=o?o:0,"deg)"),a.coordinates=[i.latitude,i.longitude],t.refresh())}),[t,a,i,o]),null}const YF=Ye.c.div(o||(o=Object(Ve.a)(["\n  width: 100%;\n  height: 100%;\n  overflow: hidden;\n"])));var ZF,KF=Rj(aD(EN(hU((function(e){const{initMap:t,map:n,mapLoaded:r,mapProjection:i,zoom:o,rotation:a,tilt:s,geoDataTimestamp:l,ordinals:c,activeOrdinal:u,selectedOccupants:d,setSelectedOccupants:h,filteredOccupants:p,userLocation:f,userHeading:m}=e,g=We.useRef(null);return We.useEffect((()=>{g&&t(g.current)}),[g,t]),We.createElement(We.Fragment,null,We.createElement(YF,{ref:g}),r&&n&&We.createElement(GF,{key:l,map:n,mapProjection:i,zoom:o,rotation:a,tilt:s,ordinals:c,activeOrdinal:u,selectedOccupants:d,setSelectedOccupants:h,filteredOccupants:p}),r&&f&&u&&We.createElement(XF,{map:n,mapProjection:i,location:f,heading:m,activeOrdinal:u}))})))));function $F(){return $F=Object.assign?Object.assign.bind():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},$F.apply(this,arguments)}var JF,QF=function(e){return We.createElement("svg",$F({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 256 512"},e),ZF||(ZF=We.createElement("path",{fill:"currentColor",d:"M24.7 38.1 5 57.9a12 12 0 0 0 0 17L185.6 256 5 437.1a12 12 0 0 0 0 17l19.8 19.8a12 12 0 0 0 17 0L251 264.5a12 12 0 0 0 0-17L41.7 38.1a12 12 0 0 0-17 0z"})))};function eB(){return eB=Object.assign?Object.assign.bind():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},eB.apply(this,arguments)}var tB,nB={exports:{}},rB={exports:{}},iB={};var oB,aB,sB,lB,cB;function uB(){return oB||(oB=1,function(e){e.exports=function(){if(tB)return iB;tB=1;var e="function"===typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"===typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case l:case c:case r:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case f:case p:case a:return e;default:return h}}case n:return h}}}function x(e){return b(e)===c}return iB.AsyncMode=l,iB.ConcurrentMode=c,iB.ContextConsumer=s,iB.ContextProvider=a,iB.Element=t,iB.ForwardRef=u,iB.Fragment=r,iB.Lazy=f,iB.Memo=p,iB.Portal=n,iB.Profiler=o,iB.StrictMode=i,iB.Suspense=d,iB.isAsyncMode=function(e){return x(e)||b(e)===l},iB.isConcurrentMode=x,iB.isContextConsumer=function(e){return b(e)===s},iB.isContextProvider=function(e){return b(e)===a},iB.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===t},iB.isForwardRef=function(e){return b(e)===u},iB.isFragment=function(e){return b(e)===r},iB.isLazy=function(e){return b(e)===f},iB.isMemo=function(e){return b(e)===p},iB.isPortal=function(e){return b(e)===n},iB.isProfiler=function(e){return b(e)===o},iB.isStrictMode=function(e){return b(e)===i},iB.isSuspense=function(e){return b(e)===d},iB.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===r||e===c||e===o||e===i||e===d||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},iB.typeOf=b,iB}()}(rB)),rB.exports}function dB(){if(sB)return aB;sB=1;return aB="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}nB.exports=function(){if(cB)return lB;cB=1;var e=dB();function t(){}function n(){}return n.resetWarningCache=t,lB=function(){function r(t,n,r,i,o,a){if(a!==e){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 i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var hB,pB={exports:{}},fB={};function mB(e){return"object"==typeof e&&null!=e&&1===e.nodeType}
2function gB(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function vB(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return gB(n.overflowY,t)||gB(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function yB(e,t,n,r,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0}!function(e){e.exports=function(){if(hB)return fB;hB=1;var e=60103,t=60106,n=60107,r=60108,i=60114,o=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,h=60121,p=60122,f=60117,m=60129,g=60131;if("function"===typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),n=v("react.fragment"),r=v("react.strict_mode"),i=v("react.profiler"),o=v("react.provider"),a=v("react.context"),s=v("react.forward_ref"),l=v("react.suspense"),c=v("react.suspense_list"),u=v("react.memo"),d=v("react.lazy"),h=v("react.block"),p=v("react.server.block"),f=v("react.fundamental"),m=v("react.debug_trace_mode"),g=v("react.legacy_hidden")}function y(h){if("object"===typeof h&&null!==h){var p=h.$$typeof;switch(p){case e:switch(h=h.type){case n:case i:case r:case l:case c:return h;default:switch(h=h&&h.$$typeof){case a:case s:case d:case u:case o:return h;default:return p}}case t:return p}}}var b=o,x=e,w=s,_=n,E=d,S=u,M=t,T=i,A=r,O=l;return fB.ContextConsumer=a,fB.ContextProvider=b,fB.Element=x,fB.ForwardRef=w,fB.Fragment=_,fB.Lazy=E,fB.Memo=S,fB.Portal=M,fB.Profiler=T,fB.StrictMode=A,fB.Suspense=O,fB.isAsyncMode=function(){return!1},fB.isConcurrentMode=function(){return!1},fB.isContextConsumer=function(e){return y(e)===a},fB.isContextProvider=function(e){return y(e)===o},fB.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===e},fB.isForwardRef=function(e){return y(e)===s},fB.isFragment=function(e){return y(e)===n},fB.isLazy=function(e){return y(e)===d},fB.isMemo=function(e){return y(e)===u},fB.isPortal=function(e){return y(e)===t},fB.isProfiler=function(e){return y(e)===i},fB.isStrictMode=function(e){return y(e)===r},fB.isSuspense=function(e){return y(e)===l},fB.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===n||e===i||e===m||e===r||e===l||e===c||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===f||e.$$typeof===h||e[0]===p)},fB.typeOf=y,fB}()}(pB);var bB=function(){return bB=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},bB.apply(this,arguments)};let xB=0;function wB(e){return"function"===typeof e?e:_B}function _B(){}function EB(e,t){if(!e)return;const n=function(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!mB(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,h=[],p=e;mB(p)&&l(p);){if((p=null==(u=(c=p).parentElement)?c.getRootNode().host||null:u)===d){h.push(p);break}null!=p&&p===document.body&&vB(p)&&!vB(document.documentElement)||null!=p&&vB(p,s)&&h.push(p)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),b=y.height,x=y.width,w=y.top,_=y.right,E=y.bottom,S=y.left,M="start"===i||"nearest"===i?w:"end"===i?E:w+b/2,T="center"===o?S+x/2:"end"===o?_:S,A=[],O=0;O<h.length;O++){var C=h[O],R=C.getBoundingClientRect(),P=R.height,I=R.width,L=R.top,k=R.right,D=R.bottom,N=R.left;if("if-needed"===r&&w>=0&&S>=0&&E<=m&&_<=f&&w>=L&&E<=D&&S>=N&&_<=k)return A;var U=getComputedStyle(C),j=parseInt(U.borderLeftWidth,10),F=parseInt(U.borderTopWidth,10),B=parseInt(U.borderRightWidth,10),z=parseInt(U.borderBottomWidth,10),H=0,V=0,W="offsetWidth"in C?C.offsetWidth-C.clientWidth-j-B:0,G="offsetHeight"in C?C.offsetHeight-C.clientHeight-F-z:0,q="offsetWidth"in C?0===C.offsetWidth?0:I/C.offsetWidth:0,X="offsetHeight"in C?0===C.offsetHeight?0:P/C.offsetHeight:0;if(d===C)H="start"===i?M:"end"===i?M-m:"nearest"===i?yB(v,v+m,m,F,z,v+M,v+M+b,b):M-m/2,V="start"===o?T:"center"===o?T-f/2:"end"===o?T-f:yB(g,g+f,f,j,B,g+T,g+T+x,x),H=Math.max(0,H+v),V=Math.max(0,V+g);else{H="start"===i?M-L-F:"end"===i?M-D+z+G:"nearest"===i?yB(L,D,P,F,z+G,M,M+b,b):M-(L+P/2)+G/2,V="start"===o?T-N-j:"center"===o?T-(N+I/2)+W/2:"end"===o?T-k+B+W:yB(N,k,I,j,B+W,T,T+x,x);var Y=C.scrollLeft,Z=C.scrollTop;M+=Z-(H=Math.max(0,Math.min(Z+H/X,C.scrollHeight-P/X+G))),T+=Y-(V=Math.max(0,Math.min(Y+V/q,C.scrollWidth-I/q+W)))}A.push({el:C,top:H,left:V})}return A}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});
2n.forEach((e=>{let{el:t,top:n,left:r}=e;t.scrollTop=n,t.scrollLeft=r}))}function SB(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function MB(e,t){let n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];r(),n=setTimeout((()=>{n=null,e(...o)}),t)}return i.cancel=r,i}function TB(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((t=>(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function AB(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"===typeof t?t(e):t&&(t.current=e)}))}}function OB(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function CB(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function RB(e){return"string"===typeof e.type}function PB(e){return e.props}const IB=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function LB(e){void 0===e&&(e={});const t={};return IB.forEach((n=>{e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function kB(e,t){return void 0!==e[t]}function DB(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function NB(e,t,n,r,i){if(void 0===i&&(i=!0),0===n)return-1;const o=n-1;("number"!==typeof t||t<0||t>=n)&&(t=e>0?-1:o+1);let a=t+e;a<0?a=i?o:0:a>o&&(a=i?0:o);const s=UB(e,a,n,r,i);return-1===s?t>=n?-1:t:s}function UB(e,t,n,r,i){const o=r(t);if(!o||!o.hasAttribute("disabled"))return t;if(e>0){for(let a=t+1;a<n;a++)if(!r(a).hasAttribute("disabled"))return a}else for(let a=t-1;a>=0;a--)if(!r(a).hasAttribute("disabled"))return a;return i?e>0?UB(1,0,n,r,!1):UB(-1,n-1,n,r,!1):-1}function jB(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(SB(t,e,n)||r&&SB(t,n.document.activeElement,n))))}const FB=MB((e=>{zB(e).textContent=""}),500);function BB(e,t){const n=zB(t);e&&(n.textContent=e,FB(t))}function zB(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var HB=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16});const VB=(()=>{class e extends We.Component{constructor(e){var t;super(e),t=this,this.id=this.props.id||"downshift-"+String(xB++),this.menuId=this.props.menuId||this.id+"-menu",this.labelId=this.props.labelId||this.id+"-label",this.inputId=this.props.inputId||this.id+"-input",this.getItemId=this.props.getItemId||(e=>this.id+"-item-"+e),this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.timeoutIds=[],this.internalSetTimeout=(e,t)=>{const n=setTimeout((()=>{this.timeoutIds=this.timeoutIds.filter((e=>e!==n)),e()}),t);this.timeoutIds.push(n)},this.setItemCount=e=>{this.itemCount=e},this.unsetItemCount=()=>{this.itemCount=null},this.setHighlightedIndex=function(e,n){void 0===e&&(e=t.props.defaultHighlightedIndex),void 0===n&&(n={}),n=LB(n),t.internalSetState({highlightedIndex:e,...n})},this.clearSelection=e=>{this.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:this.props.defaultHighlightedIndex,isOpen:this.props.defaultIsOpen},e)},this.selectItem=(e,t,n)=>{t=LB(t),this.internalSetState({isOpen:this.props.defaultIsOpen,highlightedIndex:this.props.defaultHighlightedIndex,selectedItem:e,inputValue:this.props.itemToString(e),...t},n)},this.selectItemAtIndex=(e,t,n)=>{const r=this.items[e];null!=r&&this.selectItem(r,t,n)},this.selectHighlightedItem=(e,t)=>
2this.selectItemAtIndex(this.getState().highlightedIndex,e,t),this.internalSetState=(e,t)=>{let n,r;const i={},o="function"===typeof e;return!o&&e.hasOwnProperty("inputValue")&&this.props.onInputValueChange(e.inputValue,{...this.getStateAndHelpers(),...e}),this.setState((t=>{t=this.getState(t);let a=o?e(t):e;a=this.props.stateReducer(t,a),n=a.hasOwnProperty("selectedItem");const s={};return n&&a.selectedItem!==t.selectedItem&&(r=a.selectedItem),a.type=a.type||0,Object.keys(a).forEach((e=>{t[e]!==a[e]&&(i[e]=a[e]),"type"!==e&&(a[e],kB(this.props,e)||(s[e]=a[e]))})),o&&a.hasOwnProperty("inputValue")&&this.props.onInputValueChange(a.inputValue,{...this.getStateAndHelpers(),...a}),s}),(()=>{wB(t)();Object.keys(i).length>1&&this.props.onStateChange(i,this.getStateAndHelpers()),n&&this.props.onSelect(e.selectedItem,this.getStateAndHelpers()),void 0!==r&&this.props.onChange(r,this.getStateAndHelpers()),this.props.onUserAction(i,this.getStateAndHelpers())}))},this.rootRef=e=>this._rootNode=e,this.getRootProps=function(e,n){let{refKey:r="ref",ref:i,...o}=void 0===e?{}:e,{suppressRefError:a=!1}=void 0===n?{}:n;t.getRootProps.called=!0,t.getRootProps.refKey=r,t.getRootProps.suppressRefError=a;const{isOpen:s}=t.getState();return{[r]:AB(i,t.rootRef),role:"combobox","aria-expanded":s,"aria-haspopup":"listbox","aria-owns":s?t.menuId:null,"aria-labelledby":t.labelId,...o}},this.keyDownHandlers={ArrowDown(e){if(e.preventDefault(),this.getState().isOpen){const t=e.shiftKey?5:1;this.moveHighlightedIndex(t,{type:4})}else this.internalSetState({isOpen:!0,type:4},(()=>{const e=this.getItemCount();if(e>0){const{highlightedIndex:t}=this.getState(),n=NB(1,t,e,(e=>this.getItemNodeFromIndex(e)));this.setHighlightedIndex(n,{type:4})}}))},ArrowUp(e){if(e.preventDefault(),this.getState().isOpen){const t=e.shiftKey?-5:-1;this.moveHighlightedIndex(t,{type:3})}else this.internalSetState({isOpen:!0,type:3},(()=>{const e=this.getItemCount();if(e>0){const{highlightedIndex:t}=this.getState(),n=NB(-1,t,e,(e=>this.getItemNodeFromIndex(e)));this.setHighlightedIndex(n,{type:3})}}))},Enter(e){if(229===e.which)return;const{isOpen:t,highlightedIndex:n}=this.getState();if(t&&null!=n){e.preventDefault();const t=this.items[n],r=this.getItemNodeFromIndex(n);if(null==t||r&&r.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}},Escape(e){e.preventDefault(),this.reset({type:5,...!this.state.isOpen&&{selectedItem:null,inputValue:""}})}}
2,this.buttonKeyDownHandlers={...this.keyDownHandlers," "(e){e.preventDefault(),this.toggleMenu({type:12})}},this.inputKeyDownHandlers={...this.keyDownHandlers,Home(e){const{isOpen:t}=this.getState();if(!t)return;e.preventDefault();const n=this.getItemCount();if(n<=0||!t)return;const r=UB(1,0,n,(e=>this.getItemNodeFromIndex(e)),!1);this.setHighlightedIndex(r,{type:7})},End(e){const{isOpen:t}=this.getState();if(!t)return;e.preventDefault();const n=this.getItemCount();if(n<=0||!t)return;const r=UB(-1,n-1,n,(e=>this.getItemNodeFromIndex(e)),!1);this.setHighlightedIndex(r,{type:8})}},this.getToggleButtonProps=function(e){let{onClick:n,onPress:r,onKeyDown:i,onKeyUp:o,onBlur:a,...s}=void 0===e?{}:e;const{isOpen:l}=t.getState(),c={onClick:TB(n,t.buttonHandleClick),onKeyDown:TB(i,t.buttonHandleKeyDown),onKeyUp:TB(o,t.buttonHandleKeyUp),onBlur:TB(a,t.buttonHandleBlur)};return{type:"button",role:"button","aria-label":l?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0,...s.disabled?{}:c,...s}},this.buttonHandleKeyUp=e=>{e.preventDefault()},this.buttonHandleKeyDown=e=>{const t=DB(e);
2this.buttonKeyDownHandlers[t]&&this.buttonKeyDownHandlers[t].call(this,e)},this.buttonHandleClick=e=>{e.preventDefault(),this.props.environment.document.activeElement===this.props.environment.document.body&&e.target.focus(),this.internalSetTimeout((()=>this.toggleMenu({type:13})))},this.buttonHandleBlur=e=>{const t=e.target;this.internalSetTimeout((()=>{this.isMouseDown||null!=this.props.environment.document.activeElement&&this.props.environment.document.activeElement.id===this.inputId||this.props.environment.document.activeElement===t||this.reset({type:14})}))},this.getLabelProps=e=>({htmlFor:this.inputId,id:this.labelId,...e}),this.getInputProps=function(e){let n,{onKeyDown:r,onBlur:i,onChange:o,onInput:a,onChangeText:s,...l}=void 0===e?{}:e,c={};n="onChange";const{inputValue:u,isOpen:d,highlightedIndex:h}=t.getState();return l.disabled||(c={[n]:TB(o,a,t.inputHandleChange),onKeyDown:TB(r,t.inputHandleKeyDown),onBlur:TB(i,t.inputHandleBlur)}),{"aria-autocomplete":"list","aria-activedescendant":d&&"number"===typeof h&&h>=0?t.getItemId(h):null,"aria-controls":d?t.menuId:null,"aria-labelledby":t.labelId,autoComplete:"off",value:u,id:t.inputId,...c,...l}},this.inputHandleKeyDown=e=>{const t=DB(e);t&&this.inputKeyDownHandlers[t]&&this.inputKeyDownHandlers[t].call(this,e)},this.inputHandleChange=e=>{this.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:this.props.defaultHighlightedIndex})},this.inputHandleBlur=()=>{this.internalSetTimeout((()=>{const e=this.props.environment.document&&!!this.props.environment.document.activeElement&&!!this.props.environment.document.activeElement.dataset&&this.props.environment.document.activeElement.dataset.toggle&&this._rootNode&&this._rootNode.contains(this.props.environment.document.activeElement);this.isMouseDown||e||this.reset({type:10})}))},this.menuRef=e=>{this._menuNode=e},this.getMenuProps=function(e,n){let{refKey:r="ref",ref:i,...o}=void 0===e?{}:e,{suppressRefError:a=!1}=void 0===n?{}:n;return t.getMenuProps.called=!0,t.getMenuProps.refKey=r,t.getMenuProps.suppressRefError=a,{[r]:AB(i,t.menuRef),role:"listbox","aria-labelledby":o&&o["aria-label"]?null:t.labelId,id:t.menuId,...o}},this.getItemProps=function(e){let{onMouseMove:n,onMouseDown:r,onClick:i,onPress:o,index:a,item:s,...l}=void 0===e?{}:e;void 0===a?(t.items.push(s),a=t.items.indexOf(s)):t.items[a]=s;const c="onClick",u=i,d={onMouseMove:TB(n,(()=>{a!==t.getState().highlightedIndex&&(t.setHighlightedIndex(a,{type:2}),t.avoidScrolling=!0,t.internalSetTimeout((()=>t.avoidScrolling=!1),250))})),onMouseDown:TB(r,(e=>{e.preventDefault()})),[c]:TB(u,(()=>{t.selectItemAtIndex(a,{type:9})}))},h=l.disabled?{onMouseDown:d.onMouseDown}:d;return{id:t.getItemId(a),role:"option","aria-selected":t.getState().highlightedIndex===a,...h,...l}},this.clearItems=()=>{this.items=[]},this.reset=function(e,n){void 0===e&&(e={}),e=LB(e),t.internalSetState((n=>{let{selectedItem:r}=n;return{isOpen:t.props.defaultIsOpen,highlightedIndex:t.props.defaultHighlightedIndex,inputValue:t.props.itemToString(r),...e}}),n)},this.toggleMenu=function(e,n){void 0===e&&(e={}),e=LB(e),t.internalSetState((n=>{let{isOpen:r}=n;return{isOpen:!r,...r&&{highlightedIndex:t.props.defaultHighlightedIndex},...e}}),(()=>{const{isOpen:r,highlightedIndex:i}=t.getState();r&&t.getItemCount()>0&&"number"===typeof i&&t.setHighlightedIndex(i,e),wB(n)()}))},this.openMenu=e=>{this.internalSetState({isOpen:!0},e)},this.closeMenu=e=>{this.internalSetState({isOpen:!1},e)},this.updateStatus=MB((()=>{const e=this.getState(),t=this.items[e.highlightedIndex],n=this.getItemCount(),r=this.props.getA11yStatusMessage({itemToString:this.props.itemToString,previousResultCount:this.previousResultCount,resultCount:n,highlightedItem:t,...e});this.previousResultCount=n,BB(r,this.props.environment.document)}),200);const{defaultHighlightedIndex:n,initialHighlightedIndex:r=n,defaultIsOpen:i,initialIsOpen:o=i,initialInputValue:a="",initialSelectedItem:s=null}=this.props,l=this.getState({highlightedIndex:r,isOpen:o,inputValue:a,selectedItem:s});null!=l.selectedItem&&void 0===this.props.initialInputValue&&(l.inputValue=this.props.itemToString(l.selectedItem)),this.state=l}internalClearTimeouts(){this.timeoutIds.forEach((e=>{clearTimeout(e)})),this.timeoutIds=[]}getState(e){return void 0===e&&(e=this.state),t=e,n=this.props,Object.keys(t).reduce(((e,r)=>(e[r]=kB(n,r)?n[r]:t[r],e)),{});var t,n}getItemCount(){let e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e}getItemNodeFromIndex(e){return this.props.environment.document.getElementById(this.getItemId(e))}scrollHighlightedItemIntoView(){{const e=this.getItemNodeFromIndex(this.getState().highlightedIndex);
2this.props.scrollIntoView(e,this._menuNode)}}moveHighlightedIndex(e,t){const n=this.getItemCount(),{highlightedIndex:r}=this.getState();if(n>0){const i=NB(e,r,n,(e=>this.getItemNodeFromIndex(e)));this.setHighlightedIndex(i,t)}}getStateAndHelpers(){const{highlightedIndex:e,inputValue:t,selectedItem:n,isOpen:r}=this.getState(),{itemToString:i}=this.props,{id:o}=this,{getRootProps:a,getToggleButtonProps:s,getLabelProps:l,getMenuProps:c,getInputProps:u,getItemProps:d,openMenu:h,closeMenu:p,toggleMenu:f,selectItem:m,selectItemAtIndex:g,selectHighlightedItem:v,setHighlightedIndex:y,clearSelection:b,clearItems:x,reset:w,setItemCount:_,unsetItemCount:E,internalSetState:S}=this;return{getRootProps:a,getToggleButtonProps:s,getLabelProps:l,getMenuProps:c,getInputProps:u,getItemProps:d,reset:w,openMenu:h,closeMenu:p,toggleMenu:f,selectItem:m,selectItemAtIndex:g,selectHighlightedItem:v,setHighlightedIndex:y,clearSelection:b,clearItems:x,setItemCount:_,unsetItemCount:E,setState:S,itemToString:i,id:o,highlightedIndex:e,inputValue:t,isOpen:r,selectedItem:n}}componentDidMount(){{const e=()=>{this.isMouseDown=!0},t=e=>{this.isMouseDown=!1;!jB(e.target,[this._rootNode,this._menuNode],this.props.environment)&&this.getState().isOpen&&this.reset({type:1},(()=>this.props.onOuterClick(this.getStateAndHelpers())))},n=()=>{this.isTouchMove=!1},r=()=>{this.isTouchMove=!0},i=e=>{const t=jB(e.target,[this._rootNode,this._menuNode],this.props.environment,!1);this.isTouchMove||t||!this.getState().isOpen||this.reset({type:16},(()=>this.props.onOuterClick(this.getStateAndHelpers())))},{environment:o}=this.props;o.addEventListener("mousedown",e),o.addEventListener("mouseup",t),o.addEventListener("touchstart",n),o.addEventListener("touchmove",r),o.addEventListener("touchend",i),this.cleanup=()=>{this.internalClearTimeouts(),this.updateStatus.cancel(),o.removeEventListener("mousedown",e),o.removeEventListener("mouseup",t),o.removeEventListener("touchstart",n),o.removeEventListener("touchmove",r),o.removeEventListener("touchend",i)}}}shouldScroll(e,t){const{highlightedIndex:n}=void 0===this.props.highlightedIndex?this.getState():this.props,{highlightedIndex:r}=void 0===t.highlightedIndex?e:t;return n&&this.getState().isOpen&&!e.isOpen||n!==r}componentDidUpdate(e,t){kB(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()}componentWillUnmount(){this.cleanup()}render(){const e=CB(this.props.children,_B);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;const t=CB(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:RB(t)?Object(We.cloneElement)(t,this.getRootProps(PB(t))):void 0:null}}return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:OB,itemToString:e=>null==e?"":String(e),onStateChange:_B,onInputValueChange:_B,onUserAction:_B,onChange:_B,onSelect:_B,onOuterClick:_B,selectedItemChanged:(e,t)=>e!==t,environment:"undefined"===typeof window?{}:window,stateReducer:(e,t)=>t,suppressRefError:!1,scrollIntoView:EB},e.stateChangeTypes=HB,e})();var WB=VB;MB(((e,t)=>{BB(e(),t)}),200);const GB={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?n(t)+" has been selected.":""},scrollIntoView:EB,circularNavigation:!1,environment:"undefined"===typeof window?{}:window};nB.exports.array.isRequired,nB.exports.func,nB.exports.func,nB.exports.func,nB.exports.bool,nB.exports.number,nB.exports.number,nB.exports.number,nB.exports.bool,nB.exports.bool,nB.exports.bool,nB.exports.any,nB.exports.any,nB.exports.any,nB.exports.string,nB.exports.string,nB.exports.string,nB.exports.func,nB.exports.string,nB.exports.func,nB.exports.func,nB.exports.func,nB.exports.func,nB.exports.func,nB.exports.shape({addEventListener:nB.exports.func,removeEventListener:nB.exports.func,document:nB.exports.shape({getElementById:nB.exports.func,activeElement:nB.exports.any,body:nB.exports.any})}),bB(bB({}
2,GB),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),nB.exports.array.isRequired,nB.exports.func,nB.exports.func,nB.exports.func,nB.exports.bool,nB.exports.number,nB.exports.number,nB.exports.number,nB.exports.bool,nB.exports.bool,nB.exports.bool,nB.exports.any,nB.exports.any,nB.exports.any,nB.exports.string,nB.exports.string,nB.exports.string,nB.exports.string,nB.exports.string,nB.exports.string,nB.exports.func,nB.exports.string,nB.exports.string,nB.exports.func,nB.exports.func,nB.exports.func,nB.exports.func,nB.exports.func,nB.exports.func,nB.exports.shape({addEventListener:nB.exports.func,removeEventListener:nB.exports.func,document:nB.exports.shape({getElementById:nB.exports.func,activeElement:nB.exports.any,body:nB.exports.any})}),nB.exports.array,nB.exports.array,nB.exports.array,nB.exports.func,nB.exports.func,nB.exports.func,nB.exports.number,nB.exports.number,nB.exports.number,nB.exports.func,nB.exports.func,nB.exports.string,nB.exports.string,nB.exports.shape({addEventListener:nB.exports.func,removeEventListener:nB.exports.func,document:nB.exports.shape({getElementById:nB.exports.func,activeElement:nB.exports.any,body:nB.exports.any})});const qB=Ye.c.li(a||(a=Object(Ve.a)(["\n  padding: 0 1.36666em;\n  font-weight: bold;\n  cursor: pointer;\n\n  > div {\n    display: flex;\n    align-items: center;\n    min-height: 3.5em;\n    padding: 0.83333em 0;\n    border-bottom: 1px solid #d9dce7;\n  }\n\n  &:last-child {\n    > div {\n      border: none;\n    }\n  }\n\n  :hover {\n    color: #1415fa;\n    background-color: #f7f7fb;\n  }\n"]))),XB=Ye.c.div(s||(s=Object(Ve.a)(["\n  position: relative;\n  flex-shrink: 0;\n  width: 2.2222em;\n  height: 2.2222em;\n  margin-right: 1em;\n\n  &:before {\n    content: '';\n    position: absolute;\n    top: 0px;\n    left: 0px;\n    width: 100%;\n    height: 100%;\n    border-radius: 100%;\n    background-color: ",";\n    filter: blur(5px);\n    opacity: 0.5;\n    z-index: 1;\n  }\n\n  svg,\n  img {\n    position: absolute;\n    top: 0;\n    left: 0;\n    flex-shrink: 0;\n    height: 2.222222em;\n    color: ",";\n    z-index: 2;\n  }\n"])),(e=>{let{color:t}=e;return t}),(e=>{let{color:t}=e;return t}));var YB,ZB,KB;function $B(){return $B=Object.assign?Object.assign.bind():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},$B.apply(this,arguments)}var JB=function(e){return We.createElement("svg",$B({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 300 300"},e),YB||(YB=We.createElement("circle",{cx:150,cy:150,r:115,stroke:"currentColor",strokeWidth:20})),ZB||(ZB=We.createElement("path",{fill:"currentColor",d:"M211.62 150a61.62 61.62 0 1 1-123.24 0 61.62 61.62 0 0 1 123.24 0Z"})),KB||(KB=We.createElement("path",{stroke:"currentColor",strokeWidth:21,d:"M150.5 300v-30m0-240V0M30 150.5H0m300 0h-30"})))},QB=Object.defineProperty,ez=Object.getOwnPropertySymbols,tz=Object.prototype.hasOwnProperty,nz=Object.prototype.propertyIsEnumerable,rz=(e,t,n)=>t in e?QB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const iz=Object(Ye.c)(JB)(l||(l=Object(Ve.a)(["\n  transform: scale(0.8);\n  color: #657096;\n"]))),oz=Object(Ye.c)(XB)(c||(c=Object(Ve.a)(["\n  img {\n    opacity: 1;\n  }\n"])));var az,sz,lz=ID((e=>{let{getItemProps:t,getText:n}=e;return Ge.a.createElement(qB,((e,t)=>{for(var n in t||(t={}))tz.call(t,n)&&rz(e,n,t[n]);if(ez)for(var n of ez(t))nz.call(t,n)&&rz(e,n,t[n]);return e})({className:"pcmap-search-item pcmap-search-item__your-location"},t({item:{id:"__your-location__"}})),Ge.a.createElement("div",null,Ge.a.createElement(oz,{className:"pcmap-search-item__icon"},Ge.a.createElement(iz,null)),n("Your location")))}));function cz(){return cz=Object.assign?Object.assign.bind():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},cz.apply(this,arguments)}var uz=Object.defineProperty,dz=Object.getOwnPropertySymbols,hz=Object.prototype.hasOwnProperty,pz=Object.prototype.propertyIsEnumerable,fz=(e,t,n)=>t in e?uz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const mz=Object(Ye.c)(qB)(u||(u=Object(Ve.a)(["\n  color: #939ab5;\n\n  :hover {\n    color: #657096;\n\n    svg {\n      color: #818aaa;\n    }\n  }\n"]))),gz=Object(Ye.c)((function(e){return We.createElement("svg",cz({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),az||(az=We.createElement("circle",{cx:10,cy:10,r:10,fill:"currentColor"})),sz||(sz=We.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25,d:"m11.5 6-4 4 4 4"})))}))(d||(d=Object(Ve.a)(["\n  padding: 0.41666em;\n  color: #b2b7ca;\n"])));var vz=ID((e=>{let{getItemProps:t,getText:n}=e;return Ge.a.createElement(mz,((e,t)=>
2{for(var n in t||(t={}))hz.call(t,n)&&fz(e,n,t[n]);if(dz)for(var n of dz(t))pz.call(t,n)&&fz(e,n,t[n]);return e})({className:"pcmap-search-item pcmap-search-item__back"},t({item:{id:"back"}})),Ge.a.createElement("div",null,Ge.a.createElement(XB,{className:"pcmap-search-item__icon"},Ge.a.createElement(gz,{className:"pcmap-search-item__icon"})),n("Back")))})),yz=Object.defineProperty,bz=Object.getOwnPropertySymbols,xz=Object.prototype.hasOwnProperty,wz=Object.prototype.propertyIsEnumerable,_z=(e,t,n)=>t in e?yz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ez=(e,t)=>{for(var n in t||(t={}))xz.call(t,n)&&_z(e,n,t[n]);if(bz)for(var n of bz(t))wz.call(t,n)&&_z(e,n,t[n]);return e};const Sz=e=>Boolean(e.occupants.some((e=>e.routable))||e.subCategories&&e.subCategories.some((e=>Sz(e)))),Mz=e=>Boolean(e.occupants.length||e.subCategories&&e.subCategories.some((e=>Mz(e))));function Tz(e){const{getItemProps:t,categories:n,showOnlyRoutable:r}=e;return n.filter((e=>{let t=e.showInCategoriesList;return t&=Mz(e),r&&(t&=Sz(e)),t})).map((e=>Ge.a.createElement(qB,Ez({key:e.id,className:"pcmap-search-item"},t({key:e.id,item:e})),Ge.a.createElement("div",null,Ge.a.createElement(XB,{className:"pcmap-search-item__icon",color:e.color},/^<svg /g.test(e.icon)?Ge.a.createElement("div",{dangerouslySetInnerHTML:{__html:e.icon}}):Ge.a.createElement("img",{src:e.icon,alt:e.display.name})),e.display.name))))}var Az=Object.defineProperty,Oz=Object.getOwnPropertySymbols,Cz=Object.prototype.hasOwnProperty,Rz=Object.prototype.propertyIsEnumerable,Pz=(e,t,n)=>t in e?Az(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Iz=Ye.c.div(h||(h=Object(Ve.a)(["\n  margin-top: 0.3em;\n  font-size: 0.83333em;\n  font-weight: normal;\n  color: #636f99;\n\n  span {\n    white-space: nowrap;\n  }\n"]))),Lz=Ye.c.div(p||(p=Object(Ve.a)(["\n  margin-top: 0.3em;\n  font-size: 0.83333em;\n  font-weight: normal;\n  color: ",";\n"])),(e=>{let{color:t}=e;return t})),kz=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});var Dz,Nz=aD(function(e){class t extends We.Component{render(){const t=this.props,{forwardedRef:n}=t,r=((e,t)=>{var n={};for(var r in e)CF.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&OF)for(var r of OF(e))t.indexOf(r)<0&&RF.call(e,r)&&(n[r]=e[r]);return n})(t,["forwardedRef"]);return We.createElement(LF.Consumer,null,(t=>We.createElement(e,IF(IF({ref:n},r),t))))}}var n;return PF(t,"symbol"!==typeof(n="displayName")?n+"":n,"withSearchEngineConsumer"),We.forwardRef(((e,n)=>{return We.createElement(t,(r=IF({},e),TF(r,AF({forwardedRef:n}))));var r}))}(lN(EN(aD((function(e){const{ordinals:t,category:n,searchQuery:r,route:i,getItemProps:o,searchOccupants:a,filterOccupants:s,showOnlyRoutable:l,options:{showOpeningState:c,searchAlongRouteMaxDistance:u}}=e,[d,h]=Ge.a.useState(null);Ge.a.useEffect((()=>{let e=null;if(r?e=a(r):n&&(e=((e,t)=>{if(!t)return[];const n=e=>{const t=e.subCategories?e.subCategories.flatMap(n):[];return[e.id,...t]},r=new Set(n(t));return[...e.values()].flatMap((e=>e.occupants)).filter((e=>r.has(e.categoryId)||e.extraCategoryIds.some((e=>r.has(e))))).sort(((e,t)=>kz.compare(e.display.name,t.display.name)))})(t,n)),l&&(e=e.filter((e=>e.routable))),i&&(e=e.filter((e=>{const{distance:t}=uO(e.coordinates,e.ordinalId,i);return Number.isFinite(t)&&t<=u}))),r){const t=new Set(e.map((e=>{let{id:t}=e;return t})));s((e=>{let{id:n}=e;return t.has(n)}))}h(e)}),[r,n,i,t,a,s,u,l]);const p=d&&d.map((e=>{const t=Ey(e,"display.name",null),n=Ey(e,"level.display.name",null),r=Ey(e,"level.building.display.name",null),i=Ey(e,"display.zone",null),a=Ey(e,"display.area",null),s=Ey(e,"rawProperties.hours",null),{icon:l,color:u}=e.category,d=c&&e.getOpeningState?e.getOpeningState():null;let h=d&&d.state,p=d&&d.stateName;!h&&s&&c&&(h=s.toLowerCase().match(/close/g)?"Closed":s.toLowerCase().match(/open/g)?"Open now":"Unknown",p=s),h=h&&h.toLowerCase().replace(" ","_");let f=[];return r&&f.push(r),n&&f.push(n),(i||a)&&(f=[],i&&f.push(i),a&&f.push(a),n&&f.push(n)),Ge.a.createElement(qB,((e,t)=>{for(var n in t||(t={}))Cz.call(t,n)&&Pz(e,n,t[n]);if(Oz)for(var n of Oz(t))Rz.call(t,n)&&Pz(e,n,t[n]);return e})({key:e.id,className:"pcmap-search-item"},o({key:e.id,item:e})),Ge.a.createElement("div",null,Ge.a.createElement(XB,{className:"pcmap-search-item__icon",color:u},/^<svg /g.test(l)?Ge.a.createElement("div",{dangerouslySetInnerHTML:{__html:l}}):Ge.a.createElement("img",{src:l,alt:t})),Ge.a.createElement("div",{className:"pcmap-search-item__header"},t,Ge.a.createElement(Iz,{className:"pcmap-search-item__location"},f.map(((e,t)=>Ge.a.createElement(Ge.a.Fragment,{key:e+t},t>0?" - ":"",Ge.a.createElement("span",null,e))))),h&&Ge.a.createElement(Lz,{className:"pcmap-search-item__state pcmap-search-item__state--".concat(h),color:h.includes("close")?"#ed3227":h.includes("open")?"#438428":"#f57c00"},p))))}));return p}))))));function Uz(){return Uz=Object.assign?Object.assign.bind():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},Uz.apply(this,arguments)}var jz;function Fz(){return Fz=Object.assign?Object.assign.bind():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},Fz.apply(this,arguments)}var Bz=Object.defineProperty,zz=Object.defineProperties,Hz=Object.getOwnPropertyDescriptors,Vz=Object.getOwnPropertySymbols,Wz=Object.prototype.hasOwnProperty,Gz=Object.prototype.propertyIsEnumerable,qz=(e,t,n)=>t in e?Bz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xz=(e,t)=>
2{for(var n in t||(t={}))Wz.call(t,n)&&qz(e,n,t[n]);if(Vz)for(var n of Vz(t))Gz.call(t,n)&&qz(e,n,t[n]);return e},Yz=(e,t)=>zz(e,Hz(t));const Zz=Object(Ye.b)(f||(f=Object(Ve.a)(["\n  box-shadow: 0px 4px 96px rgba(10, 10, 130, 0.09),\n    0px 2px 16px rgba(10, 10, 130, 0.08), 0px 1px 2px rgba(10, 10, 130, 0.24);\n  border-color: transparent;\n  border-radius: 6px;\n"]))),Kz=Object(Ye.b)(m||(m=Object(Ve.a)(["\n  border-radius: calc(3em / 2);\n"]))),$z=Ye.c.div(g||(g=Object(Ve.a)(["\n  font-size: 1em;\n  overflow: hidden;\n  border: 1px solid #d9dce7;\n  ",";\n  transition: border-radius 150ms, box-shadow 150ms;\n"])),(e=>{let{isOpen:t}=e;return t?Zz:Kz})),Jz=Ye.c.div((()=>Object(Ye.b)(v||(v=Object(Ve.a)(["\n    position: relative;\n    display: flex;\n\n    input {\n      flex: auto 1 0;\n      font-size: 1em;\n      width: 100%;\n      height: 3em;\n      padding-left: ",";\n      padding-right: ",";\n      border: 0;\n      border-radius: 0;\n      appearance: none;\n      outline: none;\n      user-select: text !important;\n\n      ::-ms-clear {\n        display: none;\n      }\n    }\n  "])),nC(18),nC(32)))),Qz=Ye.c.div(y||(y=Object(Ve.a)(["\n  position: absolute;\n  width: 100%;\n  height: 100%;\n"]))),eH=Ye.c.ul(b||(b=Object(Ve.a)(["\n  max-height: 50vh;\n  padding: 0.3125em 0;\n  margin: 0;\n  font-size: ",";\n  background-color: white;\n  list-style: none;\n  overflow-y: auto;\n  justify-content: ",";\n"])),nC(14),(e=>{let{shortList:t}=e;return t?"space-around":"flex-start"})),tH=Object(Ye.c)((function(e){return We.createElement("svg",Uz({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 11"},e),Dz||(Dz=We.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.3,d:"M10.2 10.2.7.8m9.5 0L.7 10.2 10.2.8z"})))}))(x||(x=Object(Ve.a)(["\n  align-self: center;\n  flex-shrink: 0;\n  width: 0.6875em;\n  height: 0.6875em;\n  padding: "," "," "," ",";\n  transform: translateX(-100%);\n  box-sizing: content-box;\n  color: #657096;\n  cursor: pointer;\n"])),nC(15),nC(20),nC(15),nC(10)),nH=Object(Ye.c)((function(e){return We.createElement("svg",Fz({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 13"},e),jz||(jz=We.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"m9 9.1 3.1 3m-1.6-6.4a4.9 4.9 0 1 1-9.8 0 4.9 4.9 0 0 1 9.8 0z"})))}))(w||(w=Object(Ve.a)(["\n  align-self: center;\n  flex-shrink: 0;\n  width: 0.8125em;\n  height: 0.8125em;\n  padding-right: ",";\n  transform: translateX(-100%);\n  box-sizing: content-box;\n  color: #657096;\n"])),nC(20)),rH=Object(Ye.c)(JB)(_||(_=Object(Ve.a)(["\n  align-self: center;\n  flex-shrink: 0;\n  width: ",";\n  height: ",";\n  padding: "," "," "," ",";\n  transform: translateX(-100%);\n  box-sizing: content-box;\n  color: #657096;\n  cursor: pointer;\n"])),nC(20),nC(20),nC(15),nC(15),nC(15),nC(10)),iH=e=>{var t;const{showList:n,selectedOccupant:r,selectedCategory:i,searchQuery:o}=e;return{isOpen:n||!1,searchQuery:o,selectedOccupant:null!=r?r:null,selectedCategory:null!=(t=null!=i?i:null==r?void 0:r.category)?t:null}},oH=(e,t)=>"set"===t.type?Xz(Xz({},e),t.payload):e,aH=e=>{if("__your-location__"===e.id)return"your-location";if("back"===e.id)return"back";if(e.poiType)return"category";if(e.category)return"occupant";throw new Error("The item type is not found")};function sH(e){var t,n,r,i,o;const{className:a,forwardedRef:s,route:l,placeholder:c,appendLeft:u,appendRight:d,showOnlyRoutable:h,showYourLocationOption:p,showYourLocationButton:f,onClear:m,categories:g,getCategory:v,getText:y,userLocation:b,filterOccupants:x,onFocus:w,options:{searchAlongRouteMaxDistance:_}}=e,[E,S]=Ge.a.useState(null),[M,T]=Ge.a.useState(null),[A,O]=Ge.a.useState(null),[C,R]=Ge.a.useReducer(oH,e,iH),P=e=>R({type:"set",payload:e}),I=void 0===e.searchQuery?C.searchQuery:e.searchQuery,L=t=>{void 0===e.searchQuery?P({searchQuery:t}):e.onSearchQueryChange&&e.onSearchQueryChange(t)}
2,k=void 0===e.selectedOccupant?C.selectedOccupant:e.selectedOccupant,D=t=>{void 0===e.selectedOccupant?P({selectedOccupant:t}):e.onOccupantSelect&&e.onOccupantSelect(t)},N=void 0===e.selectedCategory?C.selectedCategory:e.selectedCategory,U=t=>{void 0===e.selectedCategory?P({selectedCategory:t}):e.onCategorySelect&&e.onCategorySelect(t)},j=void 0===e.showList?C.isOpen:e.showList,F=N?N.fullPathIds[N.fullPathIds.length-2]:null,B=F?v(F):null,z=(null==(t=null==N?void 0:N.subCategories)?void 0:t.length)?N.subCategories:null,H=()=>{U(null),D(null),x(null)},V=Ge.a.useCallback((e=>{const t=e=>{const n=e.subCategories?e.subCategories.flatMap(t):[];return[e.id,...n]},n=new Set(t(e));x((e=>{let t=n.has(e.categoryId)||e.extraCategoryIds.some((e=>n.has(e)));return l&&(t&=Number.isFinite(e.distanceToRoute)&&e.distanceToRoute<=_),h&&(t&=e.routable),t}),{highlight:!0,addDistanceToRoute:l&&{route:l}})}),[x,h,l,_]);Ge.a.useEffect((()=>{N&&!k?V(N):(!N&&!l||k)&&x(null)}),[N,k,x,V,l]),Ge.a.useEffect((()=>{if(!A||!w)return;const e=()=>{w(E);E===document.activeElement&&(A.style.display="none")},t=()=>{A.style.display="block"};return A.addEventListener("click",e),E.addEventListener("blur",t),()=>{A.removeEventListener("click",e),E.removeEventListener("blur",t)}}),[A,E,w]),Ge.a.useEffect((()=>()=>{x(null)}),[x]);const W=e=>{if(e){switch(aH(e)){case"category":D(null),U(e);break;case"back":D(null),U(B);break;case"occupant":D(e);break;case"your-location":D({id:"__your-location__",name:"Your location",display:{name:y("Your location")},level:{ordinal:b.ordinal},coordinates:[b.latitude,b.longitude]});break;default:return}E.blur(),M&&(M.scrollTop=0)}};return Ge.a.createElement($z,{ref:s,className:"pcmap-search-input "+(j?"pcmap-search-input--opened ":"")+a,isOpen:j},u,Ge.a.createElement(WB,{isOpen:j,inputValue:null!=(o=null!=(i=null!=I?I:null==(n=null==k?void 0:k.display)?void 0:n.name)?i:null==(r=null==N?void 0:N.display)?void 0:r.name)?o:"",selectedItem:k||N,onSelect:W,onStateChange:t=>{var n;t.type===WB.stateChangeTypes.keyDownEscape&&(L(null),H()),void 0!==t.isOpen&&(n=t.isOpen,void 0===e.onListShow?P({isOpen:n}):n&&e.onListShow?e.onListShow():!n&&e.onListHide&&e.onListHide()),t.isOpen&&N&&V(N)},itemToString:e=>{var t,n;return null!=(n=null==(t=null==e?void 0:e.display)?void 0:t.name)?n:""},stateReducer:(e,t)=>((t.selectedItem&&["category","back"].includes(aH(t.selectedItem))||e.selectedItem&&["category","back"].includes(aH(e.selectedItem)))&&(t.isOpen=!0),t.type===WB.stateChangeTypes.mouseUp&&e.selectedItem&&["category","back"].includes(aH(e.selectedItem))&&(t.isOpen=!1),t.selectedItem&&["occupant","your-location"].includes(aH(t.selectedItem))&&(t.isOpen=!1),(t.type===WB.stateChangeTypes.touchEnd||t.type===WB.stateChangeTypes.blurInput||t.type===WB.stateChangeTypes.mouseUp&&!e.selectedItem)&&(t.inputValue=e.inputValue),t.type===WB.stateChangeTypes.keyDownEscape&&(t.selectedItem=null,t.inputValue="",t.isOpen=!0),t.type!==WB.stateChangeTypes.controlledPropUpdatedSelectedItem||t.inputValue||delete t.inputValue,t)},(e=>{let{getInputProps:t,getMenuProps:n,getItemProps:r,isOpen:i,openMenu:o,closeMenu:a,clearSelection:s}=e;return Ge.a.createElement("div",{className:"pcmap-search-input__combobox"},Ge.a.createElement(Jz,{className:"pcmap-search-input__input",extraPadding:f},Ge.a.createElement("input",Xz({ref:e=>S(e),type:"search",placeholder:c},t({onFocus:o,onBlur:a,onChange:e=>{return t=e.currentTarget.value,L(t),void H();var t}}))),w&&Ge.a.createElement(Qz,{ref:e=>O(e)}),f&&b?Ge.a.createElement(rH,{className:"pcmap-search-input__select-your-location",onClick:()=>W({id:"__your-location__"})}):N||k||I?Ge.a.createElement(tH,{className:"pcmap-search-input__clear",onClick:()=>{L(null),H(),s(),m&&m()}}):Ge.a.createElement(nH,{className:"pcmap-search-input__glass"})),i&&Ge.a.createElement(eH,Yz(Xz({className:"pcmap-search-list pcmap-search-list--".concat(N&&!z||I?"occupants":"categories"," ").concat(N?"pcmap-search-list-category-".concat(N.id):""),shortList:z&&z.length<5},n({},{suppressRefError:!0})),{ref:e=>T(e)}),p&&b&&!N&&!I&&Ge.a.createElement(lz,{key:"your-location",getItemProps:r}),N&&Ge.a.createElement(vz,{getItemProps:r}
2),N&&!z||I?Ge.a.createElement(Nz,{route:l,category:N,searchQuery:I,getItemProps:r,filterOccupants:x,showOnlyRoutable:h}):Ge.a.createElement(Tz,{showOnlyRoutable:h,categories:z||g,getItemProps:r})))})),d)}sH.defaultProps={showYourLocationOption:!0};var lH=ID(Rj(lN(EN(hU(aD(Ge.a.forwardRef(((e,t)=>Ge.a.createElement(sH,Yz(Xz({},e),{forwardedRef:t}))))))))));const cH=Ye.c.div((()=>Object(Ye.b)(E||(E=Object(Ve.a)(["\n    display: flex;\n\n    @media (orientation: portrait), (max-width: 600px) {\n      position: fixed;\n      left: 0;\n      flex-direction: column;\n      justify-content: center;\n      width: 100%;\n      height: 100%;\n      padding-top: ",";\n      padding-bottom: ",";\n      border-top-right-radius: ",";\n      border-top-left-radius: ",";\n      box-shadow: 0px 4px 96px rgba(10, 10, 130, 0.09),\n        0px 2px 16px rgba(10, 10, 130, 0.08),\n        0px 1px 2px rgba(10, 10, 130, 0.24);\n      background-color: white;\n      will-change: transform;\n      transition: ",";\n\n      * {\n        user-select: none;\n      }\n    }\n  "])),nC(20),nC(10),nC(10),nC(10),yH))),uH=Object(Ye.d)(S||(S=Object(Ve.a)(["\n  0%, 100% {\n    transform: translateY(0);\n  }\n  50% {\n    transform: translateY(-5px);\n  }\n"]))),dH=Ye.c.div(M||(M=Object(Ve.a)(["\n  animation: "," 2s infinite;\n"])),uH),hH=Ye.c.div((e=>{let{flip:t}=e;return Object(Ye.b)(A||(A=Object(Ve.a)(["\n    position: absolute;\n    bottom: ",";\n    left: 50%;\n    animation: "," 500ms forwards;\n  "])),nC(-2),(n=t?1:-1,r=t?-1:1,Object(Ye.d)(T||(T=Object(Ve.a)(["\n  0% {\n    transform: scaleY(",");\n    opacity: 1;\n  }\n  25% {\n    transform: scaleY(",");\n    opacity: 0;\n  }\n  75% {\n    transform: scaleY(",");\n    opacity: 0;\n  }\n  100% {\n    transform: scaleY(",");\n    opacity: 1;\n  }\n"])),n,n,r,r)));var n,r})),pH=Object(Ye.c)((function(e){return We.createElement("svg",eB({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 445 228"},e),JF||(JF=We.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M197.305 8.932c14.686-11.91 35.704-11.91 50.39 0l182.5 148c17.158 13.915 19.788 39.104 5.873 56.263-13.915 17.158-39.105 19.788-56.263 5.873L222.5 91.5 65.195 219.068c-17.159 13.915-42.348 11.285-56.263-5.873-13.915-17.159-11.285-42.348 5.873-56.263l182.5-148Z",clipRule:"evenodd"})))}))(O||(O=Object(Ve.a)(["\n  width: ",";\n  color: #d0d0d0;\n  transform: translateX(-50%);\n"])),nC(18)),fH=Ye.c.div(C||(C=Object(Ve.a)(["\n  position: absolute;\n  top: -",";\n  left: 0;\n  width: 100%;\n  height: ",";\n  padding-top: ",";\n  z-index: 1;\n  box-sizing: content-box;\n\n  ::before {\n    content: '';\n    display: block;\n    width: ",";\n    height: ",";\n    background-color: transparent;\n    margin: "," auto;\n    border-radius: ",";\n  }\n"])),nC(40),nC(20),nC(40),nC(40),nC(7),nC(5),nC(7)),mH=Object(Ye.c)(lH)(R||(R=Object(Ve.a)(["\n  height: 100%;\n\n  input {\n    padding: 0 2.5em 0 1.25em;\n  }\n\n  @media (orientation: portrait), (max-width: 600px) {\n    width: 100%;\n    border: none;\n    border-radius: 0;\n    box-shadow: none;\n\n    input {\n      height: 2.5em;\n      border-radius: ",";\n      background-color: #f3f2f2;\n      user-select: auto;\n    }\n\n    .pcmap-search-input__input {\n      width: 90%;\n      margin: 0 auto;\n    }\n\n    .pcmap-search-list {\n      font-size: 0.75em;\n    }\n\n    .pcmap-search-list--categories {\n      display: flex;\n\n      .pcmap-search-item {\n        margin: 0 ",";\n\n        :hover {\n          background-color: unset;\n        }\n\n        > div {\n          flex-direction: column;\n          border: 0;\n          text-align: center;\n          white-space: break-spaces;\n        }\n      }\n\n      .pcmap-search-item__icon {\n        margin: 0 0 ",";\n      }\n    }\n\n    .pcmap-search-list--occupants {\n      border-top: 1px solid #cccccc;\n      margin-top: ",";\n      padding-bottom: ",";\n    }\n  }\n"])),nC(10),(e=>{let{itemMargin:t}=e;return nC(t)}),nC(5),nC(10),nC(50)),gH=Object(Ye.c)(QF)(P||(P=Object(Ve.a)(["\n  position: absolute;\n  top: ",";\n  right: ",";\n  width: ",";\n  color: gainsboro;\n"])),nC(77),nC(5),nC(10)),vH=Object(Ye.c)(QF)(I||(I=Object(Ve.a)(["\n  position: absolute;\n  top: ",";\n  left: ",";\n  width: ",";\n  transform: rotate(180deg);\n  color: gainsboro;\n"])),nC(77),nC(5),nC(10)),yH="transform 300ms ease",bH="low",xH="categories",wH="middle",_H="high";var EH,SH,MH=ID(yD(aD(EN(lN((function(e){const{className:t,closeDirections:n,route:r,options:{keepSearchListsOpened:i,showCategoriesAlways:o},getText:a,events:s,setSelectedOccupants:l,getCategory:c}=e,{CATEGORIES_STATES:u,OCCUPANTS_STATES:d}=Ge.a.useMemo((()=>({CATEGORIES_STATES:o?[xH]:[bH,xH],OCCUPANTS_STATES:[bH,wH,_H]})),[o]),[h,p]=Ge.a.useState(!1),[f,m]=Ge.a.useState(null),[g,v]=Ge.a.useState(null),[y,b]=Ge.a.useState(null),[x,w]=Ge.a.useState(o?xH:bH),[_,E]=Ge.a.useState(u),[S,M]=Ge.a.useState(0),[T,A]=Ge.a.useState(0),[O,C]=Ge.a.useState(0),[R,P]=Ge.a.useState({[bH]:0,[xH]:0,[wH]:0,[_H]:0}),[I,L]=Ge.a.useState(!1),[k,D]=Ge.a.useState(!0),[N,U]=Ge.a.useState(null),j=Ge.a.useRef(0),[F,B]=Ge.a.useState(null),z=F&&F.parentElement,H=F&&F.querySelector(".pcmap-search-input__input"),V=F&&F.querySelector("input"),W=F&&F.querySelector(".pcmap-search-list"),G=window.matchMedia("(orientation: portrait), (max-width: 600px)").matches,q=Ge.a.useCallback((()=>
2{if(W.classList.contains("pcmap-search-list--occupants"))return D(!1),void L(!1);const e=W.scrollWidth-W.clientWidth-50,t=W.scrollLeft;D(t<e),L(50<t)}),[W]);Ge.a.useEffect((()=>{if(!G||!z||!W)return;const e=new QO(nA((e=>{e.forEach((e=>{let{target:t,contentRect:n}=e;const{height:r}=n;if(t===z&&M(r),t===W&&W.classList.contains("pcmap-search-list--categories")&&A(r),t===V){const e=F.getBoundingClientRect(),t=H.getBoundingClientRect();C(t.bottom-e.top+10)}}))})),100,{leading:!1,trailing:!0});return e.observe(z),e.observe(W),e.observe(V),()=>{e.disconnect()}}),[z,W,H,V,F,G]),Ge.a.useEffect((()=>{if(!G||!W||!V)return;const e=new MutationObserver((e=>{if(e.some((e=>"class"===e.attributeName))){const e=W.classList.contains("pcmap-search-list--occupants"),t=!e,n=V===document.activeElement;e&&x!==_H&&w(wH),t&&!n&&w(xH),q(),E(e?d:u)}}));return e.observe(W,{attributes:!0}),()=>{e.disconnect()}}),[x,W,q,V,G,u,d]),Ge.a.useEffect((()=>{if(F)return F.classList.add("pcmap-search-box--".concat(x)),()=>{F.classList.remove("pcmap-search-box--".concat(x))}}),[F,x]),Ge.a.useEffect((()=>{G&&P({[bH]:0,[xH]:-T,[wH]:-S/2,[_H]:-(S-O)})}),[S,T,O,G]),Ge.a.useLayoutEffect((()=>{if(G&&F&&W)switch(j.current=R[x],F.style.top="calc(100% - ".concat(O,"px)"),F.style.transform="translateY(".concat(j.current,"px)"),x){case bH:break;case xH:case wH:W.style.maxHeight="50vh";break;case _H:W.style.maxHeight="".concat(S-O,"px"),V.value||(F.style.top=0,F.style.transform="")}}),[x,R,S,O,F,W,V,G]),Ge.a.useEffect((()=>{V&&V.value||x!==_H&&E(u)}),[x,V,u]),Ge.a.useEffect((()=>{if(!G||!F||!N)return;const e=e=>{if(x!==bH)return;const t=e.composedPath().some((e=>{var t;return e.getAttribute&&(null==(t=e.getAttribute("class"))?void 0:t.includes("pcmap-search-input__clear"))}));t||(e.stopPropagation(),e.preventDefault(),w(_.includes(xH)?xH:wH))};let t=0;const n=e=>{F.style.top="calc(100% - ".concat(O,"px)"),F.style.transform="translateY(".concat(j.current,"px)"),F.style.transition="none",t=e.changedTouches[0].pageY,V.blur()},r=e=>{e.preventDefault(),e.stopPropagation();const n=t-e.changedTouches[0].pageY;j.current=((e,t)=>{const n=e-t,r=_[0],i=_[_.length-1];return n>R[r]?R[r]:n<R[i]?R[i]:n})(R[x],n),F.style.transform="translateY(".concat(j.current,"px)")},i=()=>{F.style.transition=yH;const e=(e=>{const t=R[x],n=Math.abs(t-e);if(n<50)return x;if(e<t){const t=_.indexOf(x);if(-1===t)return _[_.length-1];const n=_.slice(t+1);return 0===n.length?x:n.reduce(((t,n,r)=>{if(0===r)return t;const i=R[t];return e<i-50?n:t}),n[0])}{const t=_.indexOf(x);if(-1===t)return _[_.length-1];const n=_.slice(0,t).reverse();return 0===n.length?x:n.reduce(((t,n,r)=>{if(0===r)return t;const i=R[t];return e>i+50?n:t}),n[0])}})(j.current);j.current=R[e],F.style.transform="translateY(".concat(j.current,"px)"),e!==x&&setTimeout((()=>{w(e)}),100)};return F.addEventListener("click",e,!0),N.addEventListener("touchstart",n),N.addEventListener("touchmove",r),N.addEventListener("touchend",i),V.addEventListener("touchstart",n),V.addEventListener("touchmove",r),V.addEventListener("touchend",i),()=>{F.removeEventListener("click",e,!0),N.removeEventListener("touchstart",n),N.removeEventListener("touchmove",r),N.removeEventListener("touchend",i),V.removeEventListener("touchstart",n),V.removeEventListener("touchmove",r),V.removeEventListener("touchend",i)}}),[x,_,R,G,F,N,V,O]),Ge.a.useEffect((()=>{if(!G||!W)return;if(!W.classList.contains("pcmap-search-list--categories"))return;const e=nA(q,200);return W.addEventListener("scroll",e,{passive:!0}),()=>{W.removeEventListener("scroll",e,{passive:!0})}}),[W,q,G]),Ge.a.useEffect((()=>{if(!s)return;const e=e=>{e||m(null);const t=c(e);"Default"!==t.name&&(m(t),p(!1),setTimeout((()=>{w(bH)}),0))};return s.on("SearchBox#SelectCategory",e),()=>{s.off("SearchBox#SelectCategory",e)}}),[s,c]),Ge.a.useEffect((()=>{if(!s)return;const e=e=>{b(e),m(null),v(null),p(!0)};return s.on("SearchBox#Query",e),()=>{s.off("SearchBox#Query",e)}}),[s]);const X=x===_H||x===xH;return Ge.a.createElement(cH,{key:G,ref:e=>B(e),className:"pcmap-search-box ".concat(t||"")},G&&Ge.a.createElement(fH,{ref:e=>U(e),className:"pcmap-search-box__expand"},Ge.a.createElement(hH,{flip:X},Ge.a.createElement(dH,null,Ge.a.createElement(pH,null)))),Ge.a.createElement(mH,{itemMargin:5,className:"pcmap-search-box__input",route:r,placeholder:a(r?"Search along route...":"Search..."),showList:!(!G&&!i)||h,onListShow:()=>{n(),p(!0)},onListHide:()=>{p(!1)},searchQuery:y,onSearchQueryChange:e=>{b(e)},selectedOccupant:g,onOccupantSelect:e=>{if(l(e?[e.id]:[]),!e)return v(null),void s.emit("SearchBox#OccupantUnselected");v(e),s.emit("SearchBox#OccupantSelected",e),o&&"__your-location__"===e.id||w(bH)},selectedCategory:f,onCategorySelect:e=>{if(!e)return m(null),void s.emit("SearchBox#CategoryUnselected");m(e),s.emit("SearchBox#CategorySelected",e)},onFocus:e=>{F.style.transition="none",w(_H),E([...new Set([..._,_H])]),e.focus()}}),G&&I&&Ge.a.createElement(vH,{className:"pcmap-search-box__scroll-left"}),G&&k&&Ge.a.createElement(gH,{className:"pcmap-search-box__scroll-right"}))}))))));function TH(){return TH=Object.assign?Object.assign.bind():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},TH.apply(this,arguments)}var AH,OH;function CH(){return CH=Object.assign?Object.assign.bind():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},CH.apply(this,arguments)}const RH=Ye.c.div(L||(L=Object(Ve.a)(["\n  display: flex;\n  justify-content: space-between;\n  padding: "," ",";\n\n  > div {\n    line-height: 1.5;\n  }\n"])),nC(18),nC(20)),PH=Ye.c.div(k||(k=Object(Ve.a)(["\n  font-weight: bold;\n"]))),IH=Ye.c.div(D||(D=Object(Ve.a)(["\n  line-height: 1;\n  display: flex;\n  align-items: center;\n  margin-top: ",";\n"])),nC(5)),LH=Ye.c.a.attrs({role:"button"})(N||(N=Object(Ve.a)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  align-self: center;\n  padding: "," 1.75em;\n  border-radius: 1.75em;\n  line-height: 1.5;\n  color: white !important;\n  background-color: #0a0a82;\n  box-shadow: 0px 2px 16px rgba(10, 10, 130, 0.08),\n    0px 1px 2px rgba(10, 10, 130, 0.16);\n  cursor: pointer;\n"])),nC(10)),kH=Object(Ye.c)(LH)(U||(U=Object(Ve.a)(["\n  @media (orientation: landscape) and (min-width: 600px) {\n    al
2ign-self: center;\n  }\n"]))),DH=Object(Ye.c)(LH)(j||(j=Object(Ve.a)(["\n  display: none;\n  margin: "," ",";\n  font-weight: bold;\n  text-align: center;\n  background-color: #2f2f2f;\n  color: white !important;\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    display: block;\n  }\n"])),nC(15),nC(17)),NH=Ye.c.div(F||(F=Object(Ve.a)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  width: 100%;\n  min-height: 4.425em;\n  padding: 0.2em;\n  text-align: center;\n  color: white;\n  background-color: #1415fa;\n\n  a:first-child {\n    transform: rotate(180deg);\n  }\n"]))),UH=Ye.c.a.attrs({role:"button"})(B||(B=Object(Ve.a)(["\n  flex-grow: 0;\n  height: 100%;\n  ",";\n  cursor: pointer;\n\n  > img {\n    height: 100%;\n  }\n"])),(e=>{let{disabled:t}=e;return t?"opacity: 0.7":""})),jH=Ye.c.span(z||(z=Object(Ve.a)(["\n  flex-grow: 1;\n"]))),FH=Object(Ye.c)((function(e){return We.createElement("svg",TH({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 30"},e),EH||(EH=We.createElement("circle",{cx:15,cy:15,r:15,fill:"#F7F7FB"})),SH||(SH=We.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:2,d:"M12.94 11 18 15.5 12.94 20"})))}))(H||(H=Object(Ve.a)(["\n  width: 2.142857em;\n  height: 100%;\n  margin: 0 ",";\n  color: #1415fa;\n"])),nC(8)),BH=Object(Ye.c)((function(e){return We.createElement("svg",CH({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 15 15"},e),AH||(AH=We.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.1,d:"M6.93 8.29 4.1 4.62a.22.22 0 0 1 .3-.3l3.67 2.83a.81.81 0 1 1-1.14 1.14z"})),OH||(OH=We.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.1,d:"M2.9 2.9A6.5 6.5 0 1 0 7.5 1v2.82"})))}))(V||(V=Object(Ve.a)(["\n  width: 0.928571em;\n  margin-right: 0.357142em;\n  color: #5b5b70;\n"])));var zH=ID(aD(EN((function(e){const{stops:t,avoidStairs:n,route:r,steps:i,stepIdx:o,setStepIdx:a,userRoute:s,map:l,mapProjection:c,ordinals:u,setActiveOrdinal:d,setSelectedOccupants:h,fitPoints:p,refresh:f,onQRCodeShow:m,onEnd:g,options:{maxZoom:v,showQRCode:y,extraTimeOptions:b,getRouteTimeString:x,routeMaxZoom:w,routePointZoom:_,routeStartPointZoom:E,routeColor:S,routeExtraTimeColor:M,routeInactiveColor:T,routeInactiveVisible:A,routeDirectionColor:O,routeDirectionSpeed:C,routeMarkType:R,routePointsHighlight:P,getRoutePaddings:I,components:{Router:L}},getText:k}=e,D="__your-location__"===t[0].occupantId,N=t.slice(1).some((e=>"__your-location__"===e.occupantId)),[U,j]=We.useState(e.options.routeWidth),[F,B]=We.useState(null),[z,H]=We.useState(null),[V,W]=We.useState(" "),G=We.useRef(null),q=i[o],X=F&&F[q.stepIdx],Y=z&&z[0],Z=t[t.length-1],K=r.steps[q.stepIdx],$=q.stepIdx>0?r.steps[q.stepIdx-1]:null,J=We.useCallback(((e,t)=>{const{routeWidth:n,routeColor:r,routeExtraTimeColor:i,routeDirectionColor:o,routeDirectionSpeed:a,routeMarkType:s}=t,d=()=>f();return e.steps.map((e=>{const t=u.get(e.ordinal),h=e.points.map((e=>{let{type:u,coordinates:h}=e;if(h.length<2)return{type:u,dispose:()=>{}};const p=new AR(h,{map:l,mapProjection:c,routeWidth:n,routeColor:"extraTime"===u?i:r,routeDirectionColor:o,routeDirectionSpeed:a,routeMarkType:s});return p.addEventListener("needsUpdate",d),t.mapOrdinal.add(p),{type:u,mapRoute:p,dispose:()=>{p&&(p.removeEventListener("needsUpdate",d),t.mapOrdinal.remove(p),p.dispose())}}}));return{ordinalId:e.ordinal,mapRoutes:h,coordinates:e.points,routeIdx:e.routeIdx}}))}),[u,l,c,f]);We.useEffect((()=>{if(!s)return;const e=J(s,{routeWidth:U,routeColor:S,routeExtraTimeColor:M,routeDirectionColor:O,routeDirectionSpeed:C,routeMarkType:R});return e.forEach((e=>{e.mapRoutes.forEach((e=>{let{mapRoute:t}=e;t&&(t.priority=1,t.animate=!0)}))})),H(e),()=>{e.forEach((e=>{e.mapRoutes.forEach((e=>e.dispose()))})),f()}}),[s,U,S,M,O,C,R,J,f]),We.useEffect((()=>{if(!r)return;const e=J(r,{routeWidth:U,routeColor:S,routeExtraTimeColor:M,routeDirectionColor:O,routeDirectionSpeed:C,routeMarkType:R});return B(e),()=>{e.forEach((e=>
2{e.mapRoutes.forEach((e=>e.dispose()))})),f()}}),[r,U,S,M,O,C,R,J,f,D]),We.useEffect((()=>{const t=nA((t=>{let{zoom:n}=t;j(e.options.routeWidth*(e=>Math.min(10,Math.max(1*(v-e),1)))(n))}),10,{leading:!1,trailing:!0});return l.addEventListener("zoomChangeSequence",t),l.addEventListener("zoomChange",t),()=>{l.removeEventListener("zoomChangeSequence",t),l.removeEventListener("zoomChange",t)}}),[l,v,e.options.routeWidth]);const Q=We.useCallback(((e,t,n)=>{let{maxZoom:r}=n;d(e,{callback:()=>{var e,n,i,o,a;const s=null!=(e=I&&I())?e:{},l=null!=(n=s.paddingTop)?n:0,c=null!=(i=s.paddingLeft)?i:0,u=null!=(o=s.paddingRight)?o:0,d=null!=(a=s.paddingBottom)?a:0;p(t,{paddingTop:l,paddingLeft:c,paddingRight:u,paddingBottom:d,maxZoom:r})}})}),[I,d,p]);We.useEffect((()=>{F&&((null==Y?void 0:Y.ordinalId)!==(null==X?void 0:X.ordinalId)?F.forEach((e=>{if(X.ordinalId!==e.ordinalId)return;const t=X.routeIdx===e.routeIdx;e.mapRoutes.forEach((e=>{let{type:n,mapRoute:r}=e;r&&(r.priority=t?1:0,r.routeColor=t?"extraTime"===n?M:S:T,r.animate=t,r.visible=!!A||t)}))})):F.forEach((e=>{e.ordinalId===Y.ordinalId&&e.mapRoutes.forEach((e=>{let{mapRoute:t}=e;t&&(t.animate=!1,t.visible=!1)}))})))}),[X,F,Y,S,M,T,A]),We.useEffect((()=>{if(!X)return;if(!Number.isFinite(X.ordinalId))return void console.error("The ordinal of path is required");if(D&&!Y)return;if(D&&Y.ordinalId===X.ordinalId){const e=e=>{const t=e[e.length-1];return t.coordinates[t.coordinates.length-1]},t=e(K.points),n=e(Y.coordinates);if(t[0]!==n[0]||t[1]!==n[1])return}if(q===G.current)return;if(G.current=q,(null==Y?void 0:Y.ordinalId)===X.ordinalId){const e=q.point?[q.point]:Y.coordinates.flatMap((e=>{let{coordinates:t}=e;return t})),t=0===q.idx?E:w;return void Q(Y.ordinalId,e,{maxZoom:t})}const e=q.point?[q.point]:X.coordinates.flatMap((e=>{let{coordinates:t}=e;return t})),t=0===q.idx?E:q.point?_:w;Q(X.ordinalId,e,{maxZoom:t})}),[q,X,Y,K,w,_,E,D,Q]),We.useEffect((()=>{if(!P)return;const e=$?$.isTransitionPoint?$.transition[1].id:$.targetId:t[0].occupantId,n=K.targetId;h([e,n])}),[P,t,K,$,h]),We.useEffect((()=>{(async()=>{const{length:e,path:t}=r;if("function"===typeof x){const n=b?_f(t,b):null,r=await x(e,n);return void W(r)}const n=Math.ceil(e),i=Math.ceil(10*n)/10,o=n/1.1,a=Math.ceil(o/60),s=a-a%2,l=s+2,c="".concat(i," m / ").concat(s,"-").concat(l," min");W(c)})()}),[r,b,x]);const ee=e=>{if("next"===e&&o===i.length-1)return;if("prev"===e&&0===o)return;const t="next"===e?o+1:o-1,n=i[t],r=F[n.stepIdx];(null==Y?void 0:Y.ordinalId)===(null==r?void 0:r.ordinalId)&&n.titleDictionaryKey.startsWith("From")?a("next"===e?o+2:o-2):a(t)};if(L)return We.createElement(L,{t:k,stops:t,avoidStairs:n,route:r,steps:i,stepIdx:o,showQRCode:y,onQRCodeShow:m,onPrevStep:()=>ee("prev"),onNextStep:()=>ee("next"),onSetStep:e=>a(e),onEnd:g});const te=t.length>2?"End destination: {{point}}":"Route to {{point}}";return We.createElement(We.Fragment,null,We.createElement(RH,{className:"pcmap-route"},We.createElement("div",null,We.createElement(PH,{className:"pcmap-route__destination"},k(te).replace("{{point}}",k(Z.name))),We.createElement(IH,{className:"pcmap-route__info"},We.createElement(BH,null),V)),We.createElement(kH,{className:"pcmap-route__end",onClick:g},k("End"))),y&&!D&&!N&&We.createElement(DH,{className:"pcmap-route__showqrcode",onClick:m},k("Send route to phone")),We.createElement(NH,{className:"pcmap-route__switcher"},We.createElement(UH,{className:"pcmap-route__prev-step",disabled:0===o,onClick:()=>ee("prev")},We.createElement(FH,null)),We.createElement(jH,{dangerouslySetInnerHTML:{__html:q.title}}),We.createElement(UH,{className:"pcmap-route__next-step",disabled:o===i.length-1,onClick:()=>ee("next")},We.createElement(FH,null))))}))));const HH=Ye.c.div(W||(W=Object(Ve.a)(["\n  position: absolute;\n  top: 0;\n  left: 0;\n  display: block;\n  width: 100vw;\n  height: 100vh;\n  background-color: rgba(0, 0, 0, 0.45);\n  z-index: 10000;\n"]))),VH=e=>{let{children:t,className:n}=e;return Ge.a.createElement(HH,{className:"pcmap-shadowbox ".concat(n||"")},t)};var WH;function GH(){return GH=Object.assign?Object.assign.bind():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},GH.apply(this,arguments)}const qH=Ye.c.div(G||(G=Object(Ve.a)(["\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  width: ",";\n  padding: "," "," ",";\n  text-align: center;\n  background-color: white;\n  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);\n"])),nC(270),nC(30),nC(15),nC(15)),XH=Object(Ye.c)((function(e){return We.createElement("svg",GH({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 352 512"},e),WH||(WH=We.createElement("path",{fill:"currentColor",d:"m242.7 256 100-100a31.5 31.5 0 0 0 0-44.5l-22.2-22.3a31.5 31.5 0 0 0-44.4 0L176 189.2 76 89.3a31.5 31.5 0 0 0-44.5 0L9.2 111.5a31.5 31.5 0 0 0 0 44.4l
2100 100.1-100 100a31.5 31.5 0 0 0 0 44.5l22.3 22.3a31.5 31.5 0 0 0 44.4 0l100.1-100 100 100a31.5 31.5 0 0 0 44.5 0l22.3-22.2a31.5 31.5 0 0 0 0-44.5L242.8 256z"})))}))(q||(q=Object(Ve.a)(["\n  position: absolute;\n  top: 0;\n  right: 0;\n  width: 1em;\n  height: 1em;\n  margin: ",";\n  color: #b7b7b7;\n  cursor: pointer;\n"])),nC(8)),YH=Ye.c.div(X||(X=Object(Ve.a)(["\n  font-weight: bold;\n"]))),ZH=Ye.c.div(Y||(Y=Object(Ve.a)(["\n  svg {\n    width: ",";\n    height: ",";\n  }\n"])),nC(210),nC(210));function KH(e){const{routeQRCode:t,onClose:n,className:r}=e,{getText:i}=PD();return t?Ge.a.createElement(VH,{className:r},Ge.a.createElement(qH,{className:"pcmap-qrcode"},Ge.a.createElement(XH,{className:"pcmap-qrcode__close",onClick:n}),Ge.a.createElement(YH,{className:"pcmap-qrcode__message"},i("Scan QR code to open the route on your mobile device")),Ge.a.createElement(ZH,{className:"pcmap-qrcode__image",dangerouslySetInnerHTML:{__html:t}}))):null}function $H(e,t){return $H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$H(e,t)}function JH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$H(e,t)}function QH(){return QH=Object.assign?Object.assign.bind():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},QH.apply(this,arguments)}function eV(e){return eV="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},eV(e)}function tV(e){var t=function(e,t){if("object"!==eV(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eV(t)?t:String(t)}function nV(e,t,n){return(t=tV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rV(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 iV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rV(Object(n),!0).forEach((function(t){nV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oV(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var aV="function"===typeof Symbol&&Symbol.observable||"@@observable",sV=function(){return Math.random().toString(36).substring(7).split("").join(".")},lV={INIT:"@@redux/INIT"+sV(),REPLACE:"@@redux/REPLACE"+sV(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+sV()}};function cV(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(oV(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(oV(1));return n(cV)(e,t)}if("function"!==typeof e)throw new Error(oV(2));var i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(oV(3));return o}function d(e){if("function"!==typeof e)throw new Error(oV(4));if(l)throw new Error(oV(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(oV(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function h(e){if(!function(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(oV(7));if("undefined"===typeof e.type)throw new Error(oV(8));if(l)throw new Error(oV(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return h({type:lV.INIT}),(r={dispatch:h,subscribe:d,getState:u,replaceReducer:function(e){if("function"!==typeof e)throw new Error(oV(10));i=e,h({type:lV.REPLACE})}})[aV]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(oV(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[aV]=function(){return this},e},r}function uV(e,t){return function(){return t(e.apply(this,arguments))}}function dV(e,t){if("function"===typeof e)return uV(e,t);if("object"!==typeof e||null===e)throw new Error(oV(16));var n={};for(var r in e){var i=e[r];"function"===typeof i&&(n[r]=uV(i,t))}return n}function hV(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var pV=Ge.a.createContext(null);var fV=function(e){e()},mV=function(){return fV};var gV={notify:function(){},get:function(){return[]}};function vV(e,t){var n,r=gV;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=mV(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=gV)},getListeners:function(){return r}};return a}var yV="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?We.useLayoutEffect:We.useEffect;function bV(e){var t=e.store,n=e.context,r=e.children,i=Object(We.useMemo)((function(){var e=vV(t);return{store:t,subscription:e}}),[t]),o=Object(We.useMemo)((function(){return t.getState()}),[t]);yV((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,o]);var a=n||pV;return Ge.a.createElement(a.Provider,{value:i},r)}function xV(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 wV=uB(),_V={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},EV={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},SV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},MV={};function TV(e){return wV.isMemo(e)?SV:MV[e.$$typeof]||_V}MV[wV.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MV[wV.Memo]=SV;var AV=Object.defineProperty,OV=Object.getOwnPropertyNames,CV=Object.getOwnPropertySymbols,RV=Object.getOwnPropertyDescriptor,PV=Object.getPrototypeOf,IV=Object.prototype;var LV,kV=function e(t,n,r){if("string"!==typeof n){if(IV){var i=PV(n);i&&i!==IV&&e(t,i,r)}var o=OV(n);
2CV&&(o=o.concat(CV(n)));for(var a=TV(t),s=TV(n),l=0;l<o.length;++l){var c=o[l];if(!EV[c]&&(!r||!r[c])&&(!s||!s[c])&&(!a||!a[c])){var u=RV(n,c);try{AV(t,c,u)}catch(gB){}}}}return t},DV={exports:{}},NV={};!function(e){e.exports=function(){if(LV)return NV;LV=1;var e=60103,t=60106,n=60107,r=60108,i=60114,o=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,h=60121,p=60122,f=60117,m=60129,g=60131;if("function"===typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),n=v("react.fragment"),r=v("react.strict_mode"),i=v("react.profiler"),o=v("react.provider"),a=v("react.context"),s=v("react.forward_ref"),l=v("react.suspense"),c=v("react.suspense_list"),u=v("react.memo"),d=v("react.lazy"),h=v("react.block"),p=v("react.server.block"),f=v("react.fundamental"),m=v("react.debug_trace_mode"),g=v("react.legacy_hidden")}function y(h){if("object"===typeof h&&null!==h){var p=h.$$typeof;switch(p){case e:switch(h=h.type){case n:case i:case r:case l:case c:return h;default:switch(h=h&&h.$$typeof){case a:case s:case d:case u:case o:return h;default:return p}}case t:return p}}}var b=o,x=e,w=s,_=n,E=d,S=u,M=t,T=i,A=r,O=l;return NV.ContextConsumer=a,NV.ContextProvider=b,NV.Element=x,NV.ForwardRef=w,NV.Fragment=_,NV.Lazy=E,NV.Memo=S,NV.Portal=M,NV.Profiler=T,NV.StrictMode=A,NV.Suspense=O,NV.isAsyncMode=function(){return!1},NV.isConcurrentMode=function(){return!1},NV.isContextConsumer=function(e){return y(e)===a},NV.isContextProvider=function(e){return y(e)===o},NV.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===e},NV.isForwardRef=function(e){return y(e)===s},NV.isFragment=function(e){return y(e)===n},NV.isLazy=function(e){return y(e)===d},NV.isMemo=function(e){return y(e)===u},NV.isPortal=function(e){return y(e)===t},NV.isProfiler=function(e){return y(e)===i},NV.isStrictMode=function(e){return y(e)===r},NV.isSuspense=function(e){return y(e)===l},NV.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===n||e===i||e===m||e===r||e===l||e===c||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===f||e.$$typeof===h||e[0]===p)},NV.typeOf=y,NV}()}(DV);var UV=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],jV=["reactReduxForwardedRef"],FV=[],BV=[null,null];function zV(e,t){var n=e[1];return[t.payload,n+1]}function HV(e,t,n){yV((function(){return e.apply(void 0,t)}),n)}function VV(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function WV(e,t,n,r,i,o,a,s,l,c){if(e){var u=!1,d=null,h=function(){if(!u){var e,n,h=t.getState();try{e=r(h,i.current)}catch(gB){n=gB,d=gB}n||(d=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=h,n.trySubscribe(),h();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var GV=function(){return[null,0]};function qV(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,i=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,o=n.methodName,a=void 0===o?"connectAdvanced":o,s=n.renderCountProp,l=void 0===s?void 0:s,c=n.shouldHandleStateChanges,u=void 0===c||c,d=n.storeKey,h=void 0===d?"store":d,p=(n.withRef,n.forwardRef),f=void 0!==p&&p,m=n.context,g=void 0===m?pV:m,v=xV(n,UV),y=g;return function(t){var n=t.displayName||t.name||"Component",r=i(n),o=QH({},v,{getDisplayName:i,methodName:a,renderCountProp:l,shouldHandleStateChanges:u,storeKey:h,displayName:r,wrappedComponentName:n,WrappedComponent:t}),s=v.pure;var c=s?We.useMemo:function(e){return e()};function d(n){var r=Object(We.useMemo)((function(){var e=n.reactReduxForwardedRef,t=xV(n,jV);return[n.context,e,t]}),[n]),i=r[0],a=r[1],s=r[2],l=Object(We.useMemo)((function(){return i&&i.Consumer&&DV.exports.isContextConsumer(Ge.a.createElement(i.Consumer,null))?i:y}),[i,y]),d=Object(We.useContext)(l),h=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var p=h?n.store:d.store,f=Object(We.useMemo)((function(){return function(t){return e(t.dispatch,o)}(p)}),[p]),m=Object(We.useMemo)((function(){if(!u)return BV;var e=vV(p,h?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,h,d]),g=m[0],v=m[1],b=Object(We.useMemo)((function(){return h?d:QH({},d,{subscription:g})}),[h,d,g]),x=Object(We.useReducer)(zV,FV,GV),w=x[0][0],_=x[1];if(w&&w.error)throw w.error;var E=Object(We.useRef)(),S=Object(We.useRef)(s),M=Object(We.useRef)(),T=Object(We.useRef)(!1),A=c((function(){return M.current&&s===S.current?M.current:f(p.getState(),s)}),[p,w,s]);HV(VV,[S,E,T,s,A,M,v]),HV(WV,[u,p,g,f,S,E,T,M,v,_],[p,g,f]);var O=Object(We.useMemo)((function(){return Ge.a.createElement(t,QH({},A,{ref:a}))}),[a,t,A]);return Object(We.useMemo)((function(){return u?Ge.a.createElement(l.Provider,{value:b},O):O}),[l,O,b])}var p=s?Ge.a.memo(d):d;if(p.WrappedComponent=t,p.displayName=d.displayName=r,f){var m=Ge.a.forwardRef((function(e,t){return Ge.a.createElement(p,QH({},e,{reactReduxForwardedRef:t}))}));return m.displayName=r,m.WrappedComponent=t,kV(m,t)}return kV(p,t)}}function XV(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function YV(e,t){if(XV(e,t))return!0;
2if("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(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!XV(e[n[i]],t[n[i]]))return!1;return!0}function ZV(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function KV(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function $V(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=KV(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=KV(i),i=r(t,n)),i},r}}var JV=[function(e){return"function"===typeof e?$V(e):void 0},function(e){return e?void 0:ZV((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?ZV((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"===typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}];var QV=[function(e){return"function"===typeof e?$V(e):void 0},function(e){return e?void 0:ZV((function(){return{}}))}];function eW(e,t,n){return QH({},n,e,t)}var tW=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?i&&o(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return eW}}];var nW=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function rW(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function iW(e,t,n,r,i){var o,a,s,l,c,u=i.areStatesEqual,d=i.areOwnPropsEqual,h=i.areStatePropsEqual,p=!1;function f(i,p){var f=!d(p,a),m=!u(i,o,p,a);return o=i,a=p,f&&m?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):f?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?function(){var t=e(o,a),r=!h(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(i,u){return p?f(i,u):(s=e(o=i,a=u),l=t(r,a),c=n(s,l,a),p=!0,c)}}function oW(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=xV(t,nW),a=n(e,o),s=r(e,o),l=i(e,o);return(o.pure?iW:rW)(a,s,l,e,o)}var aW=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function sW(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function lW(e,t){return e===t}function cW(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?qV:n,i=t.mapStateToPropsFactories,o=void 0===i?QV:i,a=t.mapDispatchToPropsFactories,s=void 0===a?JV:a,l=t.mergePropsFactories,c=void 0===l?tW:l,u=t.selectorFactory,d=void 0===u?oW:u;return function(e,t,n,i){void 0===i&&(i={});var a=i,l=a.pure,u=void 0===l||l,h=a.areStatesEqual,p=void 0===h?lW:h,f=a.areOwnPropsEqual,m=void 0===f?YV:f,g=a.areStatePropsEqual,v=void 0===g?YV:g,y=a.areMergedPropsEqual,b=void 0===y?YV:y,x=xV(a,aW),w=sW(e,o,"mapStateToProps"),_=sW(t,s,"mapDispatchToProps"),E=sW(n,c,"mergeProps");return r(d,QH({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:_,initMergeProps:E,pure:u,areStatesEqual:p,areOwnPropsEqual:m,areStatePropsEqual:v,areMergedPropsEqual:b},x))}}var uW,dW=cW();function hW(e,t){var n=Object(We.useState)((function(){return{inputs:t,result:e()}}))[0],r=Object(We.useRef)(!0),i=Object(We.useRef)(n),o=r.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.current.inputs)),a=o?i.current:{inputs:t,result:e()};return Object(We.useEffect)((function(){r.current=!1,i.current=a}),[a]),a.result}uW=qe.unstable_batchedUpdates,fV=uW;var pW=hW,fW=function(e,t){return hW((function(){return e}),t)},mW="Invariant failed";var gW=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/2,y:(r+t)/2}}}
2,vW=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},yW=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},bW={top:0,right:0,bottom:0,left:0},xW=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?bW:n,i=e.border,o=void 0===i?bW:i,a=e.padding,s=void 0===a?bW:a,l=gW(vW(t,r)),c=gW(yW(t,o)),u=gW(yW(c,s));return{marginBox:l,borderBox:gW(t),paddingBox:c,contentBox:u,margin:r,border:o,padding:s}},wW=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){if(!e)throw new Error(mW)}(!1),n},_W=function(e,t){var n,r,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=i).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return xW({borderBox:l,border:o,margin:a,padding:s})},EW=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),_W(e,t)},SW=function(e,t){var n={top:wW(t.marginTop),right:wW(t.marginRight),bottom:wW(t.marginBottom),left:wW(t.marginLeft)},r={top:wW(t.paddingTop),right:wW(t.paddingRight),bottom:wW(t.paddingBottom),left:wW(t.paddingLeft)},i={top:wW(t.borderTopWidth),right:wW(t.borderRightWidth),bottom:wW(t.borderBottomWidth),left:wW(t.borderLeftWidth)};return xW({borderBox:e,margin:n,padding:r,border:i})},MW=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return SW(t,n)},TW=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function AW(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],i=t[n],!(r===i||TW(r)&&TW(i)))return!1;var r,i;return!0}function OW(e,t){var n;void 0===t&&(t=AW);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}}var CW=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t=i,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function RW(e,t){}RW.bind(null,"warn"),RW.bind(null,"error");function PW(){}function IW(e,t,n){var r=t.map((function(t){var r=function(e,t){return QH({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var LW=!0,kW="Invariant failed";function DW(e){this.message=e}function NW(e,t){if(!e)throw new DW(LW?kW:kW+": "+(t||""))}DW.prototype.toString=function(){return this.message};var UW=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).callbacks=null,t.unbind=PW,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof DW&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}JH(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=IW(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof DW))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(Ge.a.Component),jW=function(e){return e+1},FW=function(e,t){var n=e.droppableId===t.droppableId,r=jW(e.index),i=jW(t.index);return n?"\n      You have moved the item from position "+r+"\n      to position "+i+"\n    ":"\n    You have moved the item from position "+r+"\n    in list "+e.droppableId+"\n    to list "+t.droppableId+"\n    in position "+i+"\n  "},BW=function(e,t,n){return t.droppableId===n.droppableId?"\n      The item "+e+"\n      has been combined with "+n.draggableId:"\n      The item "+e+"\n      in list "+t.droppableId+"\n      has been combined with "+n.draggableId+"\n      in list "+n.droppableId+"\n    "},zW=function(e){return"\n  The item has returned to its starting position\n  of "+jW(e.index)+"\n"},HW={dragHandleUsageInstructions:"\n  Press space bar to start a drag.\n  When dragging you can use the arrow keys to move the item around and escape to cancel.\n  Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n  You have lifted an item in position "+jW(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return FW(e.source,t);
vendor: 20,554 bytes, line 2
2var n=e.combine;return n?BW(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+zW(e.source)+"\n    ";var t=e.destination,n=e.combine;return t?"\n      You have dropped the item.\n      "+FW(e.source,t)+"\n    ":n?"\n      You have dropped the item.\n      "+BW(e.draggableId,e.source,n)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+zW(e.source)+"\n  "}},VW={x:0,y:0},WW=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},GW=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},qW=function(e,t){return e.x===t.x&&e.y===t.y},XW=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},YW=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},ZW=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},KW=function(e,t){return Math.min.apply(Math,t.map((function(t){return ZW(e,t)})))},$W=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},JW=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},QW=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},eG=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=gW({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):gW(e)},tG=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,o=function(e,t){return t?JW(e,t.scroll.diff.displacement):e}(t.marginBox,i),a=function(e,t,n){var r;return n&&n.increasedBy?QH({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(o,r,n);return{page:t,withPlaceholder:n,active:eG(a,i)}},nG=function(e,t){e.frame||NW(!1);var n=e.frame,r=GW(t,n.scroll.initial),i=XW(r),o=QH({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}});return QH({},e,{frame:o,subject:tG({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o})})};function rG(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function iG(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function oG(e,t){if(e.find)return e.find(t);var n=iG(e,t);return-1!==n?e[n]:void 0}function aG(e){return Array.prototype.slice.call(e)}var sG=OW((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),lG=OW((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),cG=OW((function(e){return rG(e)})),uG=OW((function(e){return rG(e)})),dG=OW((function(e,t){var n=uG(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function hG(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function pG(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var fG=OW((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),mG=function(e,t){return e.descriptor.droppableId===t.descriptor.id},gG={point:VW,value:0},vG={invisible:{},visible:{},all:[]},yG={displaced:vG,displacedBy:gG,at:null},bG=function(e,t){return function(n){return e<=n&&n<=t}},xG=function(e){var t=bG(e.top,e.bottom),n=bG(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||(a&&o||s&&i)}},wG=function(e){var t=bG(e.top,e.bottom),n=bG(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},_G={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},EG={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},SG=function(e){var t=e.target,n=e.destination,r=e.viewport,i=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,a=i?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:VW;return JW(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,o)&&function(e,t,n){return n(t)(e)}(a,r,o)},MG=function(e){return SG(QH({},e,{isVisibleThroughFrameFn:xG}))},TG=function(e){return SG(QH({},e,{isVisibleThroughFrameFn:wG}))},AG=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,i=t.visible;if(r[e])return!1;var o=i[e];return!o||o.shouldAnimate};function OG(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return gW(vW(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!MG({target:s,destination:n,viewport:i,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c={draggableId:l,shouldAnimate:AG(l,a,o)};return e.visible[l]=c,e}),{all:[],visible:{},invisible:{}})}function CG(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:vG,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function RG(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=mG(t,r);if(null==s)return CG({insideDestination:n,inHomeList:c,displacedBy:o,destination:r});var u=oG(n,(function(e){return e.descriptor.index===s}));if(!u)return CG({insideDestination:n,inHomeList:c,displacedBy:o,destination:r});var d=fG(t,n),h=n.indexOf(u);return{displaced:OG({afterDragging:d.slice(h),destination:r,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function PG(e,t){return Boolean(t.effected[e])}var IG=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||NW(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,a=t?o+1:o-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:RG({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var h=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var a=i.draggableId,s=r[a].descriptor.index;return PG(a,o)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:o,displaced:s.displaced,draggables:i,combine:u.combine,afterCritical:c});return null==h?null:RG({draggable:r,insideDestination:a,destination:o,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:h})},LG=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=pG(n);i||NW(!1);var o=i.draggableId,a=r[o].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=Boolean(t.visible[r]||t.invisible[r]);return PG(r,n)?o?VW:XW(i.point):o?i.point:VW}({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return WW(a,s)},kG=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},DG=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},NG=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return YW(t.line,n.marginBox[t.end]+kG(t,r),DG(t,n.marginBox,r))},UG=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return YW(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),DG(t,n.marginBox,r))},jG=function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,a=dG(i.descriptor.id,r),s=n.page,l=i.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return YW(t.line,n.contentBox[t.start]+kG(t,r),DG(t,n.contentBox,r))}({axis:l,moveInto:i.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var h=r[d];if(PG(d,o))return UG({axis:l,moveRelativeTo:h.page,isMoving:s});var p=_W(h.page,u.point);return UG({axis:l,moveRelativeTo:p,isMoving:s})}var f=a[a.length-1];if(f.descriptor.id===n.descriptor.id)return s.borderBox.center;if(PG(f.descriptor.id,o)){var m=_W(f.page,XW(o.displacedBy.point));return NG({axis:l,moveRelativeTo:m,isMoving:s})}return NG({axis:l,moveRelativeTo:f.page,isMoving:s})},FG=function(e,t){var n=e.frame;return n?WW(t,n.scroll.diff.displacement):t},BG=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?jG({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:o}):LG({impact:t,draggables:i,afterCritical:o}):a}(e),n=e.droppable;return n?FG(n,t):t},zG=function(e,t){var n=GW(t,e.scroll.initial),r=XW(n);return{frame:gW({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function HG(e,t){return e.map((function(e){return t[e]}))}var VG=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return WW(e.scroll.diff.displacement,t)}(e.viewport,t),i=GW(r,n.page.borderBox.center);return WW(n.client.borderBox.center,i)},WG=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,a=e.onlyOnMainAxis,s=void 0!==a&&a,l=GW(r,t.page.borderBox.center),c={target:JW(t.page.borderBox,l),destination:n,withDroppableDisplacement:o,viewport:i};return s?function(e){return SG(QH({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=bG(e.top,e.bottom),r=bG(e.left,e.right);return function(e){return t===_G?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(c):TG(c)},GG=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.draggables,o=e.previousImpact,a=e.viewport,s=e.previousPageBorderBoxCenter,l=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var u=dG(r.descriptor.id,i),d=mG(n,r),h=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.previousImpact;if(!r.isCombineEnabled)return null;if(!hG(o))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return QH({},o,{at:t})}var s=o.displaced.all,l=s.length?s[0]:null;if(t)return l?a(l):null;var c=fG(n,i);if(!l)return c.length?a(c[c.length-1].descriptor.id):null;var u=iG(c,(function(e){return e.descriptor.id===l}));-1===u&&NW(!1);var d=u-1;return d<0?null:a(c[d].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:u,previousImpact:o})||IG({isMovingForward:t,isInHomeList:d,draggable:n,draggables:i,destination:r,insideDestination:u,previousImpact:o,viewport:a,afterCritical:c});if(!h)return null;var p=BG({impact:h,draggable:n,droppable:r,draggables:i,afterCritical:c});if(WG({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:VG({pageBorderBoxCenter:p,draggable:n,viewport:a}),impact:h,scrollJumpRequest:null};var f=GW(p,s),m=function(e){var t=e.impact,n=e.viewport,r=e.destination,i=e.draggables,o=e.maxScrollChange,a=zG(n,WW(n.scroll.current,o)),s=r.frame?nG(r,WW(r.frame.scroll.current,o)):r,l=t.displaced,c=OG({afterDragging:HG(l.all,i),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),u=OG({afterDragging:HG(l.all,i),destination:s,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),d={},h={},p=[l,c,u];return l.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,p);t?h[e]=t:d[e]=!0})),QH({},t,{displaced:{all:l.all,invisible:d,visible:h}})}({impact:h,viewport:a,destination:r,draggables:i,maxScrollChange:f});return{clientSelection:l,impact:m,scrollJumpRequest:f}},qG=function(e){var t=e.subject.active;return t||NW(!1),t},XG=function(e,t){var n=e.page.borderBox.center;return PG(e.descriptor.id,t)?GW(n,t.displacedBy.point):n},YG=function(e,t){var n=e.page.borderBox;return PG(e.descriptor.id,t)?JW(n,XW(t.displacedBy.point)):n},ZG=OW((function(e,t){var n=t[e.line];return{value:n,point:YW(e.line,n)}})),KG=function(e,t){return QH({},e,{scroll:QH({},e.scroll,{max:t})})},$G=function(e,t,n){var r=e.frame;mG(t,e)&&NW(!1),e.subject.withPlaceholder&&NW(!1);var i=ZG(e.axis,t.displaceBy).point,o=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return YW(r.line,t[r.line]);var i=e.subject.page.contentBox[r.size],o=dG(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0),a=o+t[r.line]-i;return a<=0?null:YW(r.line,a)}(e,i,n),a={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return QH({},e,{subject:tG({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var s=o?WW(r.scroll.max,o):r.scroll.max,l=KG(r,s);return QH({},e,{subject:tG({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l}),frame:l})},JG=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,i=e.droppables,o=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=bG(a[s.start],a[s.end]),c=cG(i).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return xG(o.frame)(qG(e))})).filter((function(e){var n=qG(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=qG(e),n=bG(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=qG(e)[s.crossAxisStart],i=qG(n)[s.crossAxisStart];return t?r-i:i-r})).filter((function(e,t,n){return qG(e)[s.crossAxisStart]===qG(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return bG(qG(e)[s.start],qG(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return qG(e)[s.start]-qG(t)[s.start]}))[0]:c.sort((function(e,t){var r=KW(n,QW(qG(e))),i=KW(n,QW(qG(t)));return r!==i?r-i:qG(e)[s.start]-qG(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:i,droppables:a,viewport:s});if(!c)return null;var u=dG(c.descriptor.id,o),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter((function(e){return TG({target:YG(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var i=ZW(t,FG(r,XG(e,o))),a=ZW(t,FG(r,XG(n,o)));return i<a?-1:a<i?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),h=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:vG,displacedBy:gG,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=BG({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:l}),d=mG(i,a)?a:$G(a,i,o);return WG({draggable:i,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var h=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),p=function(){var e=n.descriptor.index;return n.descriptor.id===i.descriptor.id||h?e:e+1}(),f=ZG(a.axis,i.displaceBy);return RG({draggable:i,insideDestination:r,destination:a,viewport:s,displacedBy:f,last:vG,index:p})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:o,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!h)return null;var p=BG({impact:h,draggable:r,droppable:c,draggables:o,afterCritical:l});return{clientSelection:VG({pageBorderBoxCenter:p,draggable:r,viewport:s}),impact:h,scrollJumpRequest:null}},QG=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},eq=function(e){var t=e.state,n=e.type,r=function(e,t){var n=QG(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),i=Boolean(r),o=t.dimensions.droppables[t.critical.droppable.id],a=r||o,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!i)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,h=t.dimensions,p=h.draggables,f=h.droppables;return l?GG({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):JG({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:p,droppables:f,viewport:t.viewport,afterCritical:t.afterCritical})};function tq(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function nq(e){var t=bG(e.top,e.bottom),n=bG(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function rq(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=cG(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,i=e.subject.active;if(!i)return!1;if(r=i,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(nq(i)(t.center))return!0;var o=e.axis,a=i.center[o.crossAxisLine],s=t[o.crossAxisStart],l=t[o.crossAxisEnd],c=bG(i[o.crossAxisStart],i[o.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,o=r.map((function(e){var n=e.axis,r=YW(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:ZW(i,r)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:i}):null}var iq=function(e,t){return gW(JW(e,t))};function oq(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var aq=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,s=e.afterCritical,l=iq(n.page.borderBox,t),c=rq({pageBorderBox:l,draggable:n,droppables:i});if(!c)return yG;var u=i[c],d=dG(u.descriptor.id,r),h=function(e,t){var n=e.frame;return n?iq(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var s=i.axis,l=ZG(i.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],h=oG(fG(t,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox,i=n[s.size]/4,o=PG(t,a),l=oq({displaced:r.displaced,id:t});return o?l?d>n[s.start]+i&&d<n[s.end]-i:u>n[s.start]-c+i&&u<n[s.end]-c-i:l?d>n[s.start]+c+i&&d<n[s.end]+c-i:u>n[s.start]+i&&u<n[s.end]-i}));return h?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:h.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:h,draggable:n,previousImpact:o,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,c=ZG(r.axis,n.displaceBy),u=c.value,d=t[l.start],h=t[l.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:oG(fG(n,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=PG(t,s),i=oq({displaced:o,id:t});return r?i?h<=n:d<n-u:i?h<=n+u:d<n})),inHomeList:mG(n,r)});return RG({draggable:n,insideDestination:i,destination:r,viewport:
vendor: 7,585 bytes, line 2
2a,last:o,displacedBy:c,index:p})}({pageBorderBoxWithDroppableScroll:h,draggable:n,destination:u,insideDestination:d,last:o.displaced,viewport:a,afterCritical:s})},sq=function(e,t){var n;return QH({},e,((n={})[t.descriptor.id]=t,n))},lq=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,i=QG(t),o=QG(n);if(!i)return r;if(i===o)return r;var a=r[i];if(!a.subject.withPlaceholder)return r;var s=function(e){var t=e.subject.withPlaceholder;t||NW(!1);var n=e.frame;if(!n)return QH({},e,{subject:tG({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||NW(!1);var i=KG(n,r);return QH({},e,{subject:tG({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null}),frame:i})}(a);return sq(r,s)},cq=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,i=e.viewport,o=e.impact,a=e.scrollJumpRequest,s=i||t.viewport,l=r||t.dimensions,c=n||t.current.client.selection,u=GW(c,t.initial.client.selection),d={offset:u,selection:c,borderBoxCenter:WW(t.initial.client.borderBoxCenter,u)},h={selection:WW(d.selection,s.scroll.current),borderBoxCenter:WW(d.borderBoxCenter,s.scroll.current),offset:WW(d.offset,s.scroll.diff.value)},p={client:d,page:h};if("COLLECTING"===t.phase)return QH({phase:"COLLECTING"},t,{dimensions:l,viewport:s,current:p});var f=l.draggables[t.critical.draggable.id],m=o||aq({pageOffset:h.offset,draggable:f,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:s,afterCritical:t.afterCritical}),g=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,i=e.previousImpact,o=e.impact,a=lq({previousImpact:i,impact:o,droppables:r}),s=QG(o);if(!s)return a;var l=r[s];if(mG(t,l))return a;if(l.subject.withPlaceholder)return a;var c=$G(l,t,n);return sq(a,c)}({draggable:f,impact:m,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return QH({},t,{current:p,dimensions:{draggables:l.draggables,droppables:g},impact:m,viewport:s,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})};var uq=function(e){var t=e.impact,n=e.viewport,r=e.draggables,i=e.destination,o=e.forceShouldAnimate,a=t.displaced,s=function(e,t){return e.map((function(e){return t[e]}))}(a.all,r);return QH({},t,{displaced:OG({afterDragging:s,destination:i,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:o,last:a})})},dq=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,s=BG({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:a});return VG({pageBorderBoxCenter:s,draggable:n,viewport:o})},hq=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&NW(!1);var i=t.impact,o=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=QG(i);u||NW(!1);var d=l[u],h=uq({impact:i,viewport:o,destination:d,draggables:s}),p=dq({impact:h,draggable:c,droppable:d,draggables:s,viewport:o,afterCritical:t.afterCritical});return cq({impact:h,clientSelection:p,state:t,dimensions:a,viewport:o})},pq=function(e){var t=e.draggable,n=e.home,r=e.draggables,i=e.viewport,o=ZG(n.axis,t.displaceBy),a=dG(n.descriptor.id,r),s=a.indexOf(t);-1===s&&NW(!1);var l,c=a.slice(s+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:o,effected:u};return{impact:{displaced:OG({afterDragging:c,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},fq=function(e){0},mq=function(e){0},gq=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,i=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,o=function(e){var t=e.frame;return t||NW(!1),t}(n[t]),a=o.scroll.diff.value,s=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,i=_W(t.client,n),o=EW(i,r);return QH({},t,{placeholder:QH({},t.placeholder,{client:i}),client:i,page:o})}({draggable:e,offset:WW(i,a),initialWindowScroll:r.scroll.initial});return s}))},vq=function(e){return"SNAP"===e.movementMode},yq=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:sq(e.droppables,t)}}(e.dimensions,t);return!vq(e)||n?cq({state:e,dimensions:r}):hq({state:e,dimensions:r})};function bq(e){return e.isDragging&&"SNAP"===e.movementMode?QH({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var xq={phase:"IDLE",completed:null,shouldFlush:!1},wq=function(e,t){if(void 0===e&&(e=xq),"FLUSH"===t.type)return QH({},xq,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&NW(!1);var n=t.payload,r=n.critical,i=n.clientSelection,o=n.viewport,a=n.dimensions,s=n.movementMode,l=a.draggables[r.draggable.id],c=a.droppables[r.droppable.id],u={selection:i,borderBoxCenter:l.client.borderBox.center,offset:VW},d={client:u,page:{selection:WW(u.selection,o.scroll.initial),borderBoxCenter:WW(u.selection,o.scroll.initial),offset:WW(u.selection,o.scroll.diff.value)}},h=cG(a.droppables).every((function(e){return!e.isFixedOnPage})),p=pq({draggable:l,home:c,draggables:a.draggables,viewport:o}),f=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:s,dimensions:a,initial:d,current:d,isWindowScrollAllowed:h,impact:f,afterCritical:p.afterCritical,onLiftImpact:f,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&NW(!1),QH({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&NW(!1),function(e){var t=e.state,n=e.published;fq();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return nG(n,e.scroll)})),i=QH({},t.dimensions.droppables,{},sG(r)),o=lG(gq({additions:n.additions,updatedDroppables:i,viewport:t.viewport})),a=QH({},t.dimensions.draggables,{},o);n.removals.forEach((function(e){delete a[e]}));var s={droppables:i,draggables:a},l=QG(t.impact),c=l?s.droppables[l]:null,u=s.draggables[t.critical.draggable.id],d=s.droppables[t.critical.droppable.id],h=pq({draggable:u,home:d,draggables:a,viewport:t.viewport}),p=h.impact,f=h.afterCritical,m=c&&c.isCombineEnabled?t.impact:p,g=aq({pageOffset:t.current.page.offset,draggable:s.draggables[t.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:m,viewport:t.viewport,afterCritical:f});mq();var v=QH({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:g,onLiftImpact:p,dimensions:s,afterCritical:f,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:QH({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;tq(e)||NW(!1);var m=t.payload.client;return qW(m,e.current.client.selection)?e:cq({state:e,clientSelection:m,impact:vq(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return bq(e);if("COLLECTING"===e.phase)return bq(e);tq(e)||NW(!1);var g=t.payload,v=g.id,y=g.newScroll,b=e.dimensions.droppables[v];if(!b)return e;var x=nG(b,y);return yq(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;tq(e)||NW(!1);var w=t.payload,_=w.id,E=w.isEnabled,S=e.dimensions.droppables[_];S||NW(!1),S.isEnabled===E&&NW(!1);var M=QH({},S,{isEnabled:E});return yq(e,M,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;tq(e)||NW(!1);var T=t.payload,A=T.id,O=T.isCombineEnabled,C=e.dimensions.droppables[A];
vendor: 19,326 bytes, line 2
2C||NW(!1),C.isCombineEnabled===O&&NW(!1);var R=QH({},C,{isCombineEnabled:O});return yq(e,R,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;tq(e)||NW(!1),e.isWindowScrollAllowed||NW(!1);var P=t.payload.newScroll;if(qW(e.viewport.scroll.current,P))return bq(e);var I=zG(e.viewport,P);return vq(e)?hq({state:e,viewport:I}):cq({state:e,viewport:I})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!tq(e))return e;var L=t.payload.maxScroll;if(qW(L,e.viewport.scroll.max))return e;var k=QH({},e.viewport,{scroll:QH({},e.viewport.scroll,{max:L})});return QH({phase:"DRAGGING"},e,{viewport:k})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&NW(!1);var D=eq({state:e,type:t.type});return D?cq({state:e,impact:D.impact,clientSelection:D.clientSelection,scrollJumpRequest:D.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var N=t.payload.reason;return"COLLECTING"!==e.phase&&NW(!1),QH({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:N})}if("DROP_ANIMATE"===t.type){var U=t.payload,j=U.completed,F=U.dropDuration,B=U.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&NW(!1),{phase:"DROP_ANIMATING",completed:j,dropDuration:F,newHomeClientOffset:B,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},_q=function(e){return{type:"LIFT",payload:e}},Eq=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Sq=function(){return{type:"COLLECTION_STARTING",payload:null}},Mq=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},Tq=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Aq=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Oq=function(e){return{type:"MOVE",payload:e}},Cq=function(){return{type:"MOVE_UP",payload:null}},Rq=function(){return{type:"MOVE_DOWN",payload:null}},Pq=function(){return{type:"MOVE_RIGHT",payload:null}},Iq=function(){return{type:"MOVE_LEFT",payload:null}},Lq=function(){return{type:"FLUSH",payload:null}},kq=function(e){return{type:"DROP_COMPLETE",payload:e}},Dq=function(e){return{type:"DROP",payload:e}},Nq=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Uq="cubic-bezier(.2,1,.1,1)",jq={drop:0,combining:.7},Fq={drop:.75},Bq=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",zq={fluid:"opacity "+Bq,snap:"transform "+Bq+", opacity "+Bq,drop:function(e){var t=e+"s "+Uq;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Bq,placeholder:"height "+Bq+", width "+Bq+", margin "+Bq},Hq=function(e){return qW(e,VW)?null:"translate("+e.x+"px, "+e.y+"px)"},Vq={moveTo:Hq,drop:function(e,t){var n=Hq(e);return n?t?n+" scale("+Fq.drop+")":n:null}},Wq=.33,Gq=.55,qq=Gq-Wq,Xq=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var i=t(),o=r.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&NW(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&NW(!1);var a=i.critical,s=i.dimensions,l=s.draggables[i.critical.draggable.id],c=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,o=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:QH({},r,{displaced:vG}),didDropInsideDroppable:!0}:{impact:uq({draggables:t,impact:a,destination:i,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),u=c.impact,d=c.didDropInsideDroppable,h=d?hG(u):null,p=d?pG(u):null,f={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:l.descriptor.id,type:l.descriptor.type,source:f,reason:o,mode:i.movementMode,destination:h,combine:p},g=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,a=r.draggables,s=r.droppables,l=QG(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=dq({impact:t,draggable:n,draggables:a,afterCritical:o,droppable:c||u,viewport:i});return GW(d,n.client.borderBox.center)}({impact:u,draggable:l,dimensions:s,viewport:i.viewport,afterCritical:i.afterCritical}),v={critical:i.critical,afterCritical:i.afterCritical,result:m,impact:u};if(!qW(i.current.client.offset,g)||Boolean(m.combine)){var y=function(e){var t=e.current,n=e.destination,r=e.reason,i=ZW(t,n);if(i<=0)return Wq;if(i>=1500)return Gq;var o=Wq+qq*(i/1500);return Number(("CANCEL"===r?.6*o:o).toFixed(2))}({current:i.current.client.offset,destination:g,reason:o});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:g,dropDuration:y,completed:v}))}else n(kq({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:o}))}else e(r)}}},Yq=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Zq(e){var t=e.onWindowScroll;var n=CW((function(){t(Yq())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),i=PW;function o(){return i!==PW}return{start:function(){o()&&NW(!1),i=IW(window,[r])},stop:function(){o()||NW(!1),n.cancel(),i(),i=PW},isActive:o}}var Kq=function(e){var t=Zq({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},$q=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=iG(e,(function(e){return e.timerId===t}));-1===n&&NW(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Jq=function(e,t){fq(),t(),mq()},Qq=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},eX=function(e,t,n,r){if(e){var i=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),i=function(i){t||n||(t=!0,e(i),clearTimeout(r))};return i.wasCalled=function(){return t},i}(n);e(t,{announce:i}),i.wasCalled()||n(r(t))}else n(r(t))},tX=function(e,t){var n=function(e,t){var n=$q(),r=null,i=function(n){r||NW(!1),r=null,Jq(0,(function(){return eX(e().onDragEnd,n,t,HW.onDragEnd)}))};return{beforeCapture:function(t,n){r&&NW(!1),Jq(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&NW(!1),Jq(0,(function(){var r=e().onBeforeDragStart;r&&r(Qq(t,n))}))},start:function(i,o){r&&NW(!1);var a=Qq(i,o);r={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},n.add((function(){Jq(0,(function(){return eX(e().onDragStart,a,t,HW.onDragStart)}))}))},update:function(i,o){var a=hG(o),s=pG(o);r||NW(!1);var l=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(i,r.lastCritical);l&&(r.lastCritical=i);var c,u,d=(u=a,!(null==(c=r.lastLocation)&&null==u||null!=c&&null!=u&&c.droppableId===u.droppableId&&c.index===u.index));d&&(r.lastLocation=a);var h=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,s);if(h&&(r.lastCombine=s),l||d||h){var p=QH({},Qq(i,r.mode),{combine:s,destination:a});n.add((function(){Jq(0,(function(){return eX(e().onDragUpdate,p,t,HW.onDragUpdate)}))}))}},flush:function(){r||NW(!1),n.flush()},drop:i,abort:function(){if(r){var e=QH({},Qq(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var i=r.payload.critical;return n.beforeStart(i,r.payload.movementMode),t(r),void n.start(i,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var o=r.payload.completed.result;return n.flush(),t(r),void n.drop(o)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},nX=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&NW(!1),e.dispatch(kq({completed:r.completed}))}else t(n)}}},rX=function(e){var t=null,n=null;return function(r){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(i),"DROP_ANIMATE"===i.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=IW(window,[o])}))}}}},iX=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(Dq({reason:r.reason})))}}}},oX=hV,aX=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,i=e.styleMarshal,o=e.getResponders,a=e.announce,s=e.autoScroller;return cV(wq,oX(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(oV(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return r=hV.apply(void 0,o)(n.dispatch),iV(iV({},n),{},{dispatch:r})}}}((t=i,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(i){if("LIFT"===i.type){var o=i.payload,a=o.id,s=o.clientSelection,l=o.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(kq({completed:c.completed})),"IDLE"!==n().phase&&NW(!1),r(Lq()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),h=d.critical,p=d.dimensions,f=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:h,dimensions:p,clientSelection:s,movementMode:l,viewport:f}})}else t(i)}}}}(n),Xq,nX,rX,iX,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var i=t.getState();return"DRAGGING"!==i.phase&&NW(!1),void e.start(i)}n(r),e.scroll(t.getState())}}}}(s),Kq,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),tX(o,a))))};var sX=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=GW({x:n,y:t},{x:i,y:r});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},lX=function(){var e=document.documentElement;return e||NW(!1),e},cX=function(){var e=lX();return sX({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},uX=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;fq();var i=function(){var e=Yq(),t=cX(),n=e.y,r=e.x,i=lX(),o=i.clientWidth,a=i.clientHeight;return{frame:gW({top:n,left:r,right:r+o,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:VW,displacement:VW}}}}(),o=i.scroll.current,a=t.droppable,s=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(o,n)})),l=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(o)})),c={draggables:lG(l),droppables:sG(s)};return mq(),{dimensions:c,critical:t,viewport:i}};function dX(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var hX=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame((function(){i=null,fq();var e=r,o=e.additions,a=e.removals,s=e.modified,l=Object.keys(o).map((function(e){return t.draggable.getById(e).getDimension(VW)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:l,removals:Object.keys(a),modified:c};r={additions:{},removals:{},modified:{}},mq(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],o()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],o()},stop:function(){i&&(cancelAnimationFrame(i),i=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(t){n||NW(!1);var i=n.critical.draggable;"ADDITION"===t.type&&dX(e,i,t.value)&&r.add(t.value),"REMOVAL"===t.type&&dX(e,i,t.value)&&r.remove(t.value)},o={updateDroppableIsEnabled:function(r,i){e.droppable.exists(r)||NW(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:i})},updateDroppableIsCombineEnabled:function(r,i){n&&(e.droppable.exists(r)||NW(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:i}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,i){n&&(e.droppable.exists(r)||NW(!1),t.updateDroppableScroll({id:r,newScroll:i}))},startPublishing:function(t){n&&NW(!1);var r=e.draggable.getById(t.draggableId),o=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:o.descriptor},s=e.subscribe(i);return n={critical:a,unsubscribe:s},uX({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return o},pX=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},fX=function(e){window.scrollBy(e.x,e.y)},mX=OW((function(e){return cG(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),gX=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var o=function(e,t){var n=oG(mX(t),(function(t){return t.frame||NW(!1),nq(t.frame.pageMarginBox)(e)}));return n}(t,r);return o},vX=.25,yX=.05,bX=28,xX=function(e){return Math.pow(e,2)},wX={stopDampeningAt:1200,accelerateAt:360},_X=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;return 0===i?0:(r-t)/i},EX=wX.accelerateAt,SX=wX.stopDampeningAt,MX=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,i=e.shouldUseTimeDampening,o=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return bX;if(e===t.startScrollingFrom)return 1;var n=_X({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=bX*xX(1-n);return Math.ceil(r)}(t,n);return 0===o?0:i?Math.max(function(e,t){var n=t,r=SX,i=Date.now()-n;if(i>=SX)return e;if(i<EX)return 1;var o=_X({startOfRange:EX,endOfRange:r,current:i}),a=e*xX(o);return Math.ceil(a)}(o,r),1):o},TX=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*vX,maxScrollValueAt:e[t.size]*yX}}(t,i);return n[i.end]<n[i.start]?MX({distanceToEdge:n[i.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o}):-1*MX({distanceToEdge:n[i.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o})},AX=$W((function(e){return 0===e?0:e})),OX=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},s=TX({container:n,distanceToEdges:a,dragStartTime:t,axis:_G,shouldUseTimeDampening:o}),l=TX({container:n,distanceToEdges:a,dragStartTime:t,axis:EG,shouldUseTimeDampening:o}),c=AX({x:l,y:s});if(qW(c,VW))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,i=n.height>t.height,o=n.width>t.width;return o||i?o&&i?null:{x:o?0:r.x,y:i?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?qW(u,VW)?null:u:null},CX=$W((function(e){return 0===e?0:e>0?1:-1})),RX=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,i=t.change,o=WW(n,i),a={x:e(o.x,r.x),y:e(o.y,r.y)};return qW(a,VW)?null:a}}(),PX=function(e){var t=e.max,n=e.current,r=e.change,i={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},o=CX(r),a=RX({max:i,current:n,change:o});return!a||(0!==o.x&&0===a.x||0!==o.y&&0===a.y)},IX=function(e,t){return PX({current:e.scroll.current,max:e.scroll.max,change:t})},LX=function(e,t){var n=e.frame;return!!n&&PX({current:n.scroll.current,max:n.scroll.max,change:t})},kX=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=OX({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return a&&IX(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void i(l)}var c=gX({center:a,destination:QG(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=OX({dragStartTime:i,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return s&&LX(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&o(c.descriptor.id,u)}},DX=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,i=function(e,t){if(!LX(e,t))return t;var r=function(e,t){var n=e.frame;return n&&LX(e,t)?RX({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var i=GW(t,r);
2return n(e.descriptor.id,i),GW(t,i)},o=function(e,t,n){if(!e)return n;if(!IX(t,n))return n;var i=function(e,t){if(!IX(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return RX({current:r,max:n,change:t})}(t,n);if(!i)return r(n),null;var o=GW(n,i);return r(o),GW(n,o)};return function(e){var n=e.scrollJumpRequest;if(n){var r=QG(e.impact);r||NW(!1);var a=i(e.dimensions.droppables[r],n);if(a){var s=e.viewport,l=o(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=WW(e.current.client.selection,n);t({client:r})}(e,l)}}}},NX=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=CW(t),i=CW(n),o=null,a=function(e){o||NW(!1);var t=o,n=t.shouldUseTimeDampening,a=t.dragStartTime;kX({state:e,scrollWindow:r,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){fq(),o&&NW(!1);var t=Date.now(),n=!1,r=function(){n=!0};kX({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},mq(),n&&a(e)},stop:function(){o&&(r.cancel(),i.cancel(),o=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),o=DX({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}},UX="data-rbd",jX=function(){var e=UX+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),FX=function(){var e=UX+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),BX=function(){var e=UX+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),zX={contextId:UX+"-scroll-container-context-id"},HX=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},VX=function(e){var t,n=(t=e,function(e){return"["+e+'="'+t+'"]'}),r=function(){var e="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ";return{selector:n(jX.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),i=[function(){var e="\n      transition: "+zq.outOfTheWay+";\n    ";return{selector:n(FX.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),r,{selector:n(BX.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n        cursor: grabbing;\n        cursor: -webkit-grabbing;\n        user-select: none;\n        -webkit-user-select: none;\n        -moz-user-select: none;\n        -ms-user-select: none;\n        overflow-anchor: none;\n      "}}];return{always:HX(i,"always"),resting:HX(i,"resting"),dragging:HX(i,"dragging"),dropAnimating:HX(i,"dropAnimating"),userCancel:HX(i,"userCancel")}},WX="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?We.useLayoutEffect:We.useEffect,GX=function(){var e=document.querySelector("head");return e||NW(!1),e},qX=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var XX=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function YX(e){return e instanceof XX(e).HTMLElement}function ZX(e,t){var n="["+jX.contextId+'="'+e+'"]',r=aG(document.querySelectorAll(n));if(!r.length)return null;var i=oG(r,(function(e){return e.getAttribute(jX.draggableId)===t}));return i&&YX(i)?i:null}function KX(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}var i={register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var i=t.descriptor.id,o=r(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||NW(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return rG(e.draggables).filter((function(e){return e.descriptor.type===t}))}};function o(t){return e.droppables[t]||null}return{draggable:i,droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||NW(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return rG(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var $X=Ge.a.createContext(null),JX=function(){var e=document.body;return e||NW(!1),e},QX={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},eY=function(e){return"rbd-announcement-"+e};var tY=0,nY={separator:"::"};function rY(e,t){return void 0===t&&(t=nY),pW((function(){return""+e+t.separator+tY++}),[t.separator,e])}var iY=Ge.a.createContext(null);function oY(e){0}function aY(e,t){oY()}function sY(e){var t=Object(We.useRef)(e);return Object(We.useEffect)((function(){t.current=e})),t}var lY,cY=27,uY=32,dY=37,hY=38,pY=39,fY=40,mY=((lY={})[13]=!0,lY[9]=!0,lY),gY=function(e){mY[e.keyCode]&&e.preventDefault()},vY=function(){var e="visibilitychange";return"undefined"===typeof document?e:oG([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),yY=0,bY=5;var xY,wY={type:"IDLE"};function _Y(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,o=e.clientY;if(t===yY){var a={x:n,y:o},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&NW(!1);var l=s.point;if(c=l,u=a,Math.abs(u.x-c.x)>=bY||Math.abs(u.y-c.y)>=bY){var c,u;e.preventDefault();var d=s.actions.fluidLift(a);i({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return e.keyCode===cY?(e.preventDefault(),void t()):void gY(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&NW(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:vY,fn:t}]}function EY(){}var SY=((xY={})[34]=!0,xY[33]=!0,xY[36]=!0,xY[35]=!0,xY);function MY(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return r.keyCode===cY?(r.preventDefault(),void n()):r.keyCode===uY?(r.preventDefault(),t(),void e.drop()):r.keyCode===fY?(r.preventDefault(),void e.moveDown()):r.keyCode===hY?(r.preventDefault(),void e.moveUp()):r.keyCode===pY?(r.preventDefault(),void e.moveRight()):r.keyCode===dY?(r.preventDefault(),void e.moveLeft()):void(SY[r.keyCode]?r.preventDefault():gY(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:vY,fn:n}]}var TY={type:"IDLE"},AY=.15;
vendor: 8,693 bytes, line 2
2var OY={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function CY(e,t){if(null==t)return!1;if(Boolean(OY[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&CY(e,t.parentElement)}function RY(e,t){var n=t.target;return!!YX(n)&&CY(e,n)}var PY=function(e){return gW(e.getBoundingClientRect()).center};var IY=function(){var e="matches";return"undefined"===typeof document?e:oG([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function LY(e,t){return null==e?null:e[IY](t)?e:LY(e.parentElement,t)}function kY(e,t){return e.closest?e.closest(t):LY(e,t)}function DY(e,t){var n,r=t.target;if(!((n=r)instanceof XX(n).Element))return null;var i=function(e){return"["+jX.contextId+'="'+e+'"]'}(e),o=kY(r,i);return o&&YX(o)?o:null}function NY(e){e.preventDefault()}function UY(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function jY(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return!!o&&(!!o.options.isEnabled&&!!pX(n.getState(),i))}function FY(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,o=e.draggableId,a=e.forceSensorStop,s=e.sourceEvent;if(!jY({lockAPI:t,store:r,registry:i,draggableId:o}))return null;var l=i.draggable.getById(o),c=function(e,t){var n="["+FX.contextId+'="'+e+'"]',r=oG(aG(document.querySelectorAll(n)),(function(e){return e.getAttribute(FX.id)===t}));return r&&YX(r)?r:null}(n,l.descriptor.id);if(!c)return null;if(s&&!l.options.canDragInteractiveElements&&RY(c,s))return null;var u=t.claim(a||PW),d="PRE_DRAG";function h(){return l.options.shouldRespectForcePress}function p(){return t.isActive(u)}var f=function(e,t){UY({expected:e,phase:d,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(e){function n(){t.release(),d="COMPLETED"}function i(t,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var o=IW(window,[{eventName:"click",fn:NY,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}n(),r.dispatch(Dq({reason:t}))}return"PRE_DRAG"!==d&&(n(),"PRE_DRAG"!==d&&NW(!1)),r.dispatch(_q(e.liftActionArgs)),d="DRAGGING",QH({isActive:function(){return UY({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:h,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}return{isActive:function(){return UY({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:h,fluidLift:function(e){var t=CW((function(e){f((function(){return Oq({client:e})}))}));return QH({},m({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return f(Cq)},moveRight:function(){return f(Pq)},moveDown:function(){return f(Rq)},moveLeft:function(){return f(Iq)}};return m({liftActionArgs:{id:o,clientSelection:PY(c),movementMode:"SNAP"},cleanup:PW,actions:e})},abort:function(){UY({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}}}var BY=[function(e){var t=Object(We.useRef)(wY),n=Object(We.useRef)(PW),r=pW((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&t.button===yY&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,a,{sourceEvent:t});if(i){t.preventDefault();var o={x:t.clientX,y:t.clientY};n.current(),c(i,o)}}}}}}),[e]),i=pW((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),o=fW((function(){n.current=IW(window,[i,r],{passive:!1,capture:!0})}),[i,r]),a=fW((function(){"IDLE"!==t.current.type&&(t.current=wY,n.current(),o())}),[o]),s=fW((function(){var e=t.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[a]),l=fW((function(){var e=_Y({cancel:s,completed:a,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=IW(window,e,{capture:!0,passive:!1})}),[s,a]),c=fW((function(e,n){"IDLE"!==t.current.type&&NW(!1),t.current={type:"PENDING",point:n,actions:e},l()}),[l]);WX((function(){return o(),function(){n.current()}}),[o])},function(e){var t=Object(We.useRef)(EY),n=pW((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&n.keyCode===uY){var i=e.findClosestDraggableId(n);if(i){var o=e.tryGetLock(i,l,{sourceEvent:n});if(o){n.preventDefault();var a=!0,s=o.snapLift();t.current(),t.current=IW(window,MY(s,l),{capture:!0,passive:!1})}}}function l(){a||NW(!1),a=!1,t.current(),r()}}}}),[e]),r=fW((function(){t.current=IW(window,[n],{passive:!1,capture:!0})}),[n]);WX((function(){return r(),function(){t.current()}}),[r])},function(e){var t=Object(We.useRef)(TY),n=Object(We.useRef)(PW),r=fW((function(){return t.current}),[]),i=fW((function(e){t.current=e}),[]),o=pW((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,s,{sourceEvent:t});if(i){var o=t.touches[0],a={x:o.clientX,y:o.clientY};n.current(),d(i,a)}}}}}}),[e]),a=fW((function(){n.current=IW(window,[o],{capture:!0,passive:!1})}),[o]),s=fW((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(TY),n.current(),a())}),[a,i]),l=fW((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=fW((function(){var e={capture:!0,passive:!1},t={cancel:l,completed:s,getPhase:r},i=IW(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var i=e.touches[0],o={x:i.clientX,y:i.clientY};e.preventDefault(),n.actions.move(o)}else t()}},{eventName:"touchend",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&NW(!1);var i=e.touches[0];if(i&&i.force>=AY){var o=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return o?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();o&&t()}}},{eventName:vY,fn:t}]}(t),e),o=IW(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(e.keyCode===cY&&e.preventDefault(),t()):t()}},{eventName:vY,fn:t}]}(t),e);n.current=function(){i(),o()}}),[l,r,s]),u=fW((function(){var e=r();"PENDING"!==e.type&&NW(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,i]),d=fW((function(e,t){"IDLE"!==r().type&&NW(!1);var n=setTimeout(u,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,r,i,u]);WX((function(){return a(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(TY))}}),[r,a,i]),WX((function(){return IW(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function zY(e){var t=e.contextId,n=e.store,r=e.registry,i=e.customSensors,o=e.enableDefaultSensors,a=[].concat(o?BY:[],i||[]),s=Object(We.useState)((function(){return function(){var e=null;function t(){e||NW(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&NW(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],l=fW((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);WX((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();l(e,t),e=t}))}),[s,n,l]),WX((function(){return s.tryAbandon}),[s.tryAbandon]);var c=fW((function(e){return jY({lockAPI:s,registry:r,store:n,draggableId:e})}),[s,r,n]),u=fW((function(e,i,o){return FY({lockAPI:s,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:i,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[t,s,r,n]),d=fW((function(e){return function(e,t){var n=DY(e,t);return n?n.getAttribute(jX.draggableId):null}(t,e)}),[t]),h=fW((function(e){var t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),p=fW((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==n.get
2State().phase&&n.dispatch(Lq()))}),[s,n]),f=fW(s.isClaimed,[s]),m=pW((function(){return{canGetLock:c,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:h,tryReleaseLock:p,isLockClaimed:f}}),[c,u,d,h,p,f]);oY();for(var g=0;g<a.length;g++)a[g](m)}var HY=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function VY(e){return e.current||NW(!1),e.current}function WY(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,i=e.nonce,o=e.dragHandleUsageInstructions,a=Object(We.useRef)(null);aY();var s=sY(e),l=fW((function(){return HY(s.current)}),[s]),c=function(e){var t=pW((function(){return eY(e)}),[e]),n=Object(We.useRef)(null);return Object(We.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),QH(e.style,QX),JX().appendChild(e),function(){setTimeout((function(){var t=JX();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),fW((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),u=function(e){var t=e.contextId,n=e.text,r=rY("hidden-text",{separator:"-"}),i=pW((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:r}).contextId+"-"+e.uniqueId;var e}),[r,t]);return Object(We.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",JX().appendChild(e),function(){var t=JX();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:o}),d=function(e,t){var n=pW((function(){return VX(e)}),[e]),r=Object(We.useRef)(null),i=Object(We.useRef)(null),o=fW(OW((function(e){var t=i.current;t||NW(!1),t.textContent=e})),[]),a=fW((function(e){var t=r.current;t||NW(!1),t.textContent=e}),[]);WX((function(){(r.current||i.current)&&NW(!1);var s=qX(t),l=qX(t);return r.current=s,i.current=l,s.setAttribute(UX+"-always",e),l.setAttribute(UX+"-dynamic",e),GX().appendChild(s),GX().appendChild(l),a(n.always),o(n.resting),function(){var e=function(e){var t=e.current;t||NW(!1),GX().removeChild(t),e.current=null};e(r),e(i)}}),[t,a,o,n.always,n.resting,e]);var s=fW((function(){return o(n.dragging)}),[o,n.dragging]),l=fW((function(e){o("DROP"!==e?n.userCancel:n.dropAnimating)}),[o,n.dropAnimating,n.userCancel]),c=fW((function(){i.current&&o(n.resting)}),[o,n.resting]);return pW((function(){return{dragging:s,dropping:l,resting:c}}),[s,l,c])}(t,i),h=fW((function(e){VY(a).dispatch(e)}),[]),p=pW((function(){return dV({publishWhileDragging:Eq,updateDroppableScroll:Mq,updateDroppableIsEnabled:Tq,updateDroppableIsCombineEnabled:Aq,collectionStarting:Sq},h)}),[h]),f=function(){var e=pW(KX,[]);return Object(We.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),m=pW((function(){return hX(f,p)}),[f,p]),g=pW((function(){return NX(QH({scrollWindow:fX,scrollDroppable:m.scrollDroppable},dV({move:Oq},h)))}),[m.scrollDroppable,h]),v=function(e){var t=Object(We.useRef)({}),n=Object(We.useRef)(null),r=Object(We.useRef)(null),i=Object(We.useRef)(!1),o=fW((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),a=fW((function(t){var n=ZX(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),s=fW((function(e,t){n.current===e&&(n.current=t)}),[]),l=fW((function(){r.current||i.current&&(r.current=requestAnimationFrame((function(){r.current=null;var e=n.current;e&&a(e)})))}),[a]),c=fW((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(jX.draggableId)===e&&(n.current=e)}),[]);return WX((function(){return i.current=!0,function(){i.current=!1;var e=r.current;e&&cancelAnimationFrame(e)}}),[]),pW((function(){return{register:o,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}}),[o,c,l,s])}(t),y=pW((function(){return aX({announce:c,autoScroller:g,dimensionMarshal:m,focusMarshal:v,getResponders:l,styleMarshal:d})}),[c,g,m,v,l,d]);a.current=y;var b=fW((function(){var e=VY(a);"IDLE"!==e.getState().phase&&e.dispatch(Lq())}),[]),x=fW((function(){var e=VY(a).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(pW((function(){return{isDragging:x,tryAbort:b}}),[x,b]));var w=fW((function(e){return pX(VY(a).getState(),e)}),[]),_=fW((function(){return tq(VY(a).getState())}),[]),E=pW((function(){return{marshal:m,focus:v,contextId:t,canLift:w,isMovementAllowed:_,dragHandleUsageInstructionsId:u,registry:f}}),[t,m,u,v,w,_,f]);return zY({contextId:t,store:y,registry:f,customSensors:r,enableDefaultSensors:!1!==e.enableDefaultSensors}),Object(We.useEffect)((function(){return b}),[b]),Ge.a.createElement(iY.Provider,{value:E},Ge.a.createElement(bV,{context:$X,store:y},e.children))}var GY=0;function qY(e){var t=pW((function(){return""+GY++}),[]),n=e.dragHandleUsageInstructions||HW.dragHandleUsageInstructions;return Ge.a.createElement(UW,null,(function(r){return Ge.a.createElement(WY,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var XY=function(e){return function(t){return e===t}},YY=XY("scroll"),ZY=XY("auto"),KY=(XY("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),$Y=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return KY(n,YY)||KY(n,ZY)},JY=function e(t){return null==t||t===document.body||t===document.documentElement?null:$Y(t)?t:e(t.parentElement)},QY=function(e){return{x:e.scrollLeft,y:e.scrollTop}},eZ=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},tZ=function(e){return{closestScrollable:JY(e),isFixedOnPage:eZ(e)}},nZ=function(e){var t=e.ref,n=e.descriptor,r=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,s=e.isCombine
vendor: 1,210 bytes, line 2
2Enabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=MW(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,i=n.paddingBox.left-t.scrollLeft,o=r+t.scrollHeight,a=i+t.scrollWidth,s=vW({top:r,right:a,bottom:o,left:i},n.border);return xW({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=EW(u,i),h=function(){if(!c)return null;var e=MW(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:EW(e,i),scroll:QY(c),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=sX({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:VW,displacement:VW}}}}(),u="vertical"===o?_G:EG;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:i,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:tG({page:s,withPlaceholder:null,axis:u,frame:c})}}
2({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:o,client:u,page:d,closest:h});return p},rZ={passive:!1},iZ={passive:!0},oZ=function(e){return e.shouldPublishImmediately?rZ:iZ};function aZ(e){var t=Object(We.useContext)(e);return t||NW(!1),t}var sZ=function(e){return e&&e.env.closestScrollable||null};function lZ(){}var cZ={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},uZ=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,i=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?cZ:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?zq.placeholder:null}};var dZ=Ge.a.memo((function(e){var t=Object(We.useRef)(null),n=fW((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),r=e.animate,i=e.onTransitionEnd,o=e.onClose,a=e.contextId,s=Object(We.useState)("open"===e.animate),l=s[0],c=s[1];Object(We.useEffect)((function(){return l?"open"!==r?(n(),c(!1),lZ):t.current?lZ:(t.current=setTimeout((function(){t.current=null,c(!1)})),n):lZ}),[r,l,n]);var u=fW((function(e){"height"===e.propertyName&&(i(),"close"===r&&o())}),[r,o,i]),d=uZ({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return Ge.a.createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":a,onTransitionEnd:u,ref:e.innerRef})})),hZ=Ge.a.createContext(null);var pZ=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).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return JH(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(Ge.a.PureComponent),fZ={dragging:5e3,dropAnimating:4500},mZ=function(e,t){return t?zq.drop(t.duration):e?zq.snap:zq.fluid},gZ=function(e,t){return e?t?jq.drop:jq.combining:null},vZ=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function yZ(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,i=e.dropping,o=Boolean(r),a=vZ(e),s=Boolean(i),l=s?Vq.drop(n,o):Vq.moveTo(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:mZ(a,i),transform:l,opacity:gZ(o,s),zIndex:s?fZ.dropAnimating:fZ.dragging,pointerEvents:"none"}}(e):(t=e,{transform:Vq.moveTo(t.offset),transition:t.shouldAnimateDisplacement?null:"none"});var t}function bZ(e){var t=rY("draggable"),n=e.descriptor,r=e.registry,i=e.getDraggableRef,o=e.canDragInteractiveElements,a=e.shouldRespectForcePress,s=e.isEnabled,l=pW((function(){return{canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:s}}),[o,s,a]),c=fW((function(e){var t=i();return t||NW(!1),function(e,t,n){void 0===n&&(n=VW);var r=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=SW(i,r),a=EW(o,n);return{descriptor:e,placeholder:{client:o,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:a}}(n,t,e)}),[n,i]),u=pW((function(){return{uniqueId:t,descriptor:n,options:l,getDimension:c}}),[n,c,l,t]),d=Object(We.useRef)(u),h=Object(We.useRef)(!0);WX((function(){return r.draggable.register(d.current),function(){return r.draggable.unregister(d.current)}}),[r.draggable]),WX((function(){if(h.current)h.current=!1;else{var e=d.current;d.current=u,r.draggable.update(u,e)}}),[u,r.draggable])}function xZ(e,t,n){aY()}function wZ(e){e.preventDefault()}var _Z=function(e,t){return e===t},EZ=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function SZ(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,comb
2ineWith:null}}var MZ={mapped:{type:"SECONDARY",offset:VW,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:SZ(null)}};var TZ=dW((function(){var e=function(){var e=OW((function(e,t){return{x:e,y:t}})),t=OW((function(e,t,n,r,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=OW((function(e,n,r,i,o,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,i,o,a,null)}}}));return function(r,i){if(r.isDragging){if(r.critical.draggable.id!==i.draggableId)return null;var o=r.current.client.offset,a=r.dimensions.draggables[i.draggableId],s=QG(r.impact),l=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(o.x,o.y),r.movementMode,a,i.isClone,s,l,c)}var u;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==i.draggableId)return null;var h=i.isClone,p=r.dimensions.draggables[i.draggableId],f=d.result,m=f.mode,g=EZ(f),v=function(e){return e.combine?e.combine.draggableId:null}(f),y={duration:r.dropDuration,curve:Uq,moveTo:r.newHomeClientOffset,opacity:v?jq.drop:null,scale:v?Fq.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:y,draggingOver:g,combineWith:v,mode:m,forceShouldAnimate:null,snapshot:t(m,h,g,v,y)}}}return null}}(),t=function(){var e=OW((function(e,t){return{x:e,y:t}})),t=OW(SZ),n=OW((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(VW,e,!0):null},i=function(t,i,o,a){var s=o.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=pG(o),u=c&&c.draggableId===t?i:null;if(!s){if(!l)return r(u);if(o.displaced.invisible[t])return null;var d=XW(a.displacedBy.point),h=e(d.x,d.y);return n(h,u,!0)}if(l)return r(u);var p=o.displacedBy.point,f=e(p.x,p.y);return n(f,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:i(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(n,r){return e(n,r)||t(n,r)||MZ}}),{dropAnimationFinished:Nq},null,{context:$X,pure:!0,areStatePropsEqual:_Z})((function(e){var t=Object(We.useRef)(null),n=fW((function(e){t.current=e}),[]),r=fW((function(){return t.current}),[]),i=aZ(iY),o=i.contextId,a=i.dragHandleUsageInstructionsId,s=i.registry,l=aZ(hZ),c=l.type,u=l.droppableId,d=pW((function(){return{id:e.draggableId,index:e.index,type:c,droppableId:u}}),[e.draggableId,e.index,c,u]),h=e.children,p=e.draggableId,f=e.isEnabled,m=e.shouldRespectForcePress,g=e.canDragInteractiveElements,v=e.isClone,y=e.mapped,b=e.dropAnimationFinished;xZ(),oY(),v||bZ(pW((function(){return{descriptor:d,registry:s,getDraggableRef:r,canDragInteractiveElements:g,shouldRespectForcePress:m,isEnabled:f}}),[d,s,r,g,m,f]));var x=pW((function(){return f?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":p,"data-rbd-drag-handle-context-id":o,draggable:!1,onDragStart:wZ}:null}),[o,a,p,f]),w=fW((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&b()}),[b,y]),_=pW((function(){var e=yZ(y),t="DRAGGING"===y.type&&y.dropping?w:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":p,style:e,onTransitionEnd:t},dragHandleProps:x}}),[o,x,p,y,w,n]),E=pW((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return h(_,y.snapshot,E)}));function AZ(e){return aZ(hZ).isUsingCloneFor!==e.draggableId||e.isClone?Ge.a.createElement(TZ,e):null}function OZ(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return Ge.a.createElement(AZ,QH({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var CZ=function(e,t){return e===t.droppable.type},RZ=function(e,t){return t.draggables[e.draggable.id]};var PZ,IZ={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombine
vendor: 4,299 bytes, line 2
2Enabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||NW(!1),document.body}},LZ=dW((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=QH({},e,{shouldAnimatePlaceholder:!1}),n=OW((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=OW((function(r,i,o,a,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:o,draggingOverWith:o?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!i)return t;if(!a)return e;var h={isDraggingOver:o,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:h,useClone:null}}));return function(n,i){var o=i.droppableId,a=i.type,s=!i.isDropDisabled,l=i.renderClone;if(n.isDragging){var c=n.critical;if(!CZ(a,c))return t;var u=RZ(c,n.dimensions),d=QG(n.impact)===o;return r(o,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var h=n.completed;if(!CZ(a,h.critical))return t;var p=RZ(h.critical,n.dimensions);return r(o,s,EZ(h.result)===o,QG(h.impact)===o,p,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var f=n.completed;if(!CZ(a,f.critical))return t;var m=QG(f.impact)===o,g=Boolean(f.impact.at&&"COMBINE"===f.impact.at.type),v=f.critical.droppable.id===o;return m?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:$X,pure:!0,areStatePropsEqual:_Z})((function(e){var t=Object(We.useContext)(iY);t||NW(!1);var n=t.contextId,r=t.isMovementAllowed,i=Object(We.useRef)(null),o=Object(We.useRef)(null),a=e.children,s=e.droppableId,l=e.type,c=e.mode,u=e.direction,d=e.ignoreContainerClipping,h=e.isDropDisabled,p=e.isCombineEnabled,f=e.snapshot,m=e.useClone,g=e.updateViewportMaxScroll,v=e.getContainerForClone,y=fW((function(){return i.current}),[]),b=fW((function(e){i.current=e}),[]),x=(fW((function(){return o.current}),[]),fW((function(e){o.current=e}),[]));aY();var w=fW((function(){r()&&g({maxScroll:cX()})}),[r,g]);!function(e){var t=Object(We.useRef)(null),n=aZ(iY),r=rY("droppable"),i=n.registry,o=n.marshal,a=sY(e),s=pW((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),l=Object(We.useRef)(s),c=pW((function(){return OW((function(e,n){t.current||NW(!1);var r={x:e,y:n};o.updateDroppableScroll(s.id,r)}))}),[s.id,o]),u=fW((function(){var e=t.current;return e&&e.env.closestScrollable?QY(e.env.closestScrollable):VW}),[]),d=fW((function(){var e=u();c(e.x,e.y)}),[u,c]),h=pW((function(){return CW(d)}),[d]),p=fW((function(){var e=t.current,n=sZ(e);e&&n||NW(!1),e.scrollOptions.shouldPublishImmediately?d():h()}),[h,d]),f=fW((function(e,r){t.current&&NW(!1);var i=a.current,o=i.getDroppableRef();o||NW(!1);var l=tZ(o),c={ref:o,descriptor:s,env:l,scrollOptions:r};t.current=c;var u=nZ({ref:o,descriptor:s,env:l,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=l.closestScrollable;return d&&(d.setAttribute(zX.contextId,n.contextId),d.addEventListener("scroll",p,oZ(c.scrollOptions))),u}),[n.contextId,s,p,a]),m=fW((function(){var e=t.current,n=sZ(e);return e&&n||NW(!1),QY(n)}),[]),g=fW((function(){var e=t.current;e||NW(!1);var n=sZ(e);t.current=null,n&&(h.cancel(),n.removeAttribute(zX.contextId),n.removeEventListener("scroll",p,oZ(e.scrollOptions)))}),[p,h]),v=fW((function(e){var n=t.current;n||NW(!1);var r=sZ(n);r||NW(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),y=pW((function(){return{getDimensionAndWatchScroll:f,getScrollWhileDragging:m,dragStopped:g,scroll:v}}),[g,f,m,v]),b=pW((function(){return{uniqueId:r,descriptor:s,callbacks:y}}),[y,s,r]);WX((function(){return l.current=b.descriptor,i.droppable.register(b),function(){t.current&&g(),i.droppable.unregister(b)}}),[y,s,g,b,o,i.droppable]),WX((function(){t.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)}),[e.isDropDisabled,o]),WX((function(){t.current&&o.updateDroppableIsCombine
2Enabled(l.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,o])}({droppableId:s,type:l,mode:c,direction:u,isDropDisabled:h,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:y});var _=Ge.a.createElement(pZ,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,i=e.animate;return Ge.a.createElement(dZ,{placeholder:r,onClose:t,innerRef:x,animate:i,contextId:n,onTransitionEnd:w})})),E=pW((function(){return{innerRef:b,placeholder:_,droppableProps:{"data-rbd-droppable-id":s,"data-rbd-droppable-context-id":n}}}),[n,s,_,b]),S=m?m.dragging.draggableId:null,M=pW((function(){return{droppableId:s,type:l,isUsingCloneFor:S}}),[s,S,l]);return Ge.a.createElement(hZ.Provider,{value:M},a(E,f),function(){if(!m)return null;var e=m.dragging,t=m.render,n=Ge.a.createElement(AZ,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return Xe.a.createPortal(n,v())}())}));function kZ(){return kZ=Object.assign?Object.assign.bind():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},kZ.apply(this,arguments)}LZ.defaultProps=IZ;var DZ;function NZ(){return NZ=Object.assign?Object.assign.bind():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},NZ.apply(this,arguments)}var UZ;function jZ(){return jZ=Object.assign?Object.assign.bind():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},jZ.apply(this,arguments)}var FZ,BZ;function zZ(){return zZ=Object.assign?Object.assign.bind():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},zZ.apply(this,arguments)}var HZ=Object.defineProperty,VZ=Object.defineProperties,WZ=Object.getOwnPropertyDescriptors,GZ=Object.getOwnPropertySymbols,qZ=Object.prototype.hasOwnProperty,XZ=Object.prototype.propertyIsEnumerable,YZ=(e,t,n)=>t in e?HZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ZZ=(e,t)=>{for(var n in t||(t={}))qZ.call(t,n)&&YZ(e,n,t[n]);if(GZ)for(var n of GZ(t))XZ.call(t,n)&&YZ(e,n,t[n]);return e},KZ=(e,t)=>VZ(e,WZ(t));const $Z=Object(Ye.c)(lH)(Z||(Z=Object(Ve.a)(["\n  position: relative;\n  display: flex;\n  align-items: center;\n  overflow: visible;\n  border: 0;\n  border-radius: 0;\n  box-shadow: none;\n\n  & > div:nth-child(2) {\n    flex-grow: 1;\n  }\n\n  input {\n    width: 100%;\n    height: calc("," - ",");\n    margin: ",";\n    border-radius: calc("," / 2);\n    border: 1px solid transparent;\n    flex-shrink: 0;\n    background-color: #f3f2f2;\n  }\n\n  ul {\n    position: fixed;\n    top: ",";\n    left: 0;\n    width: 100%;\n    max-height: ",";\n    z-index: 1;\n    border-bottom: 1px solid #d9dce7;\n  }\n\n  &.pcmap-search-input--opened input {\n    border: 1px solid #d9dce7;\n    background-color: white;\n  }\n\n  .pcmap-search-input__glass {\n    display: none;\n  }\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    input {\n      height: calc("," - ",");\n      border-radius: calc("," / 2);\n    }\n\n    ul {\n      left: ",";\n      width: ",";\n    }\n  }\n"])),nC(48),nC(7),nC(5),nC(54),nC(283),nC(300),nC(54),nC(10),nC(54),nC(24,14),nC(350,14)),JZ=Ye.c.div(K||(K=Object(Ve.a)(["\n  display: flex;\n  align-items: center;
2\n"]))),QZ=Ye.c.div($||($=Object(Ve.a)(["\n  display: flex;\n  flex-direction: column;\n  flex-grow: 1;\n"]))),eK=Ye.c.div(J||(J=Object(Ve.a)(["\n  position: relative;\n  max-height: calc(3.3em * 3.5);\n  overflow-y: auto;\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    height: auto;\n    max-height: calc(3.3em * 5.5);\n  }\n\n  ::-webkit-scrollbar {\n    display: none;\n  }\n"]))),tK=Ye.c.div(Q||(Q=Object(Ve.a)(["\n  position: relative;\n  height: 3.3em;\n"]))),nK=Ye.c.div(ee||(ee=Object(Ve.a)(["\n  padding: 0.5em 0;\n  ","\n"])),(e=>{let{$invisible:t}=e;return t?"visibility: hidden; pointer-events: none;":""})),rK=Object(Ye.c)((function(e){return We.createElement("svg",kZ({"aria-hidden":"true",viewBox:"0 0 24 24"},e),PZ||(PZ=We.createElement("path",{fill:"currentColor",d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})))}))(te||(te=Object(Ve.a)(["\n  width: 1.5em;\n  margin: 0 1em;\n  color: #0a0a82;\n"]))),iK=Object(Ye.c)((function(e){return We.createElement("svg",NZ({"aria-hidden":"true",viewBox:"0 0 24 24"},e),DZ||(DZ=We.createElement("path",{fill:"currentColor",d:"M12 2a10 10 0 1 0 0 20 10 10 0 1 0 0-20zm0 18a8.01 8.01 0 0 1 0-16 8.01 8.01 0 0 1 0 16zm3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"})))}))(ne||(ne=Object(Ve.a)(["\n  width: 3.5em;\n  padding: 0 1em;\n  color: #0a0a82;\n  cursor: pointer;\n"]))),oK=Object(Ye.c)((function(e){return We.createElement("svg",jZ({"aria-hidden":"true",viewBox:"0 0 24 24"},e),UZ||(UZ=We.createElement("path",{fill:"currentColor",d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 18a8.01 8.01 0 0 1 0-16 8.01 8.01 0 0 1 0 16z"})))}))(re||(re=Object(Ve.a)(["\n  width: 1.5em;\n  margin: 0 2em 0 1em;\n  color: #0a0a82;\n  cursor: pointer;\n"]))),aK=Ye.c.div(ie||(ie=Object(Ve.a)(["\n  display: flex;\n  align-items: center;\n  height: 3.3em;\n  font-weight: 500;\n  color: #525d84;\n  cursor: pointer;\n"]))),sK=Object(Ye.c)((function(e){return We.createElement("svg",zZ({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 17"},e),FZ||(FZ=We.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"m10.56 11.42 2.66 3.19 2.65-3.19M6.31 5.58 3.66 2.39 1 5.58"})),BZ||(BZ=We.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"M6.84.8a4.77 4.77 0 0 1 6.38 4.51v9.3m-3.19 1.59a4.77 4.77 0 0 1-6.37-4.51v-9.3"})))}))(oe||(oe=Object(Ve.a)(["\n  width: 3.3em;\n  padding: 2.5em 1em;\n  margin-left: 0.3em;\n  color: #0a0a82;\n  cursor: pointer;\n  ","\n"])),(e=>{let{$invisible:t}=e;return t?"visibility: hidden; pointer-events: none;":""})),lK=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const[n,r]=Ge.a.useState(t),i=e&&e.querySelector("input");return Ge.a.useEffect((()=>{if(!i||n)return;const e=e=>{e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),r(!0)};return i.addEventListener("mousedown",e,!0),()=>{i.removeEventListener("mousedown",e,!0)}}),[i,n]),Ge.a.useEffect((()=>{if(!e||!n)return;const t=t=>{t.composedPath().some((t=>t===e))||r(!1)};return document.addEventListener("click",t,!0),()=>{document.removeEventListener("click",t,!0)}}),[e,n]),Ge.a.useEffect((()=>{if(!e||!n)return;const t=e&&e.querySelector("ul");if(!t)return;const{bottom:r,left:i}=e.getBoundingClientRect();t.style.top="".concat(r,"px"),t.style.left="".concat(i,"px");const o=()=>{const{bottom:n,left:r}=e.getBoundingClientRect();t.style.top="".concat(n,"px"),t.style.left="".concat(r,"px")};return window.addEventListener("scroll",o,{passive:!0}),()=>{window.removeEventListener("scroll",o,{passive:!0})}}),[e,n]),{showList:n}};function cK(e){let{stop:t,index:n,onDelete:r,onChange:i,onOpen:o,onClose:a}=e;var s;const{getText:l}=PD(),[c,u]=Ge.a.useState(null),d="new"===t.type,{showList:h}=lK(c,d);return Ge.a.useEffect((()=>{h?o&&o():a&&a()}),[h,o,a]),"__your-location__"===t.occupantId&&(t.occupant.display={name:l("Your location")}),Ge.a.createElement(OZ,{isDragDisabled:h||"__your-location__"===t.occupantId,draggableId:(null!=(s=t.occupantId)?s:t.type)+n,index:n},(e=>{var o;return Ge.a.createElement(tK,KZ(ZZ({ref:e.innerRef},e.draggableProps),{className:"pcmap-stops__item"}),Ge.a.createElement($Z,{ref:e=>e&&u(e),className:"pcmap-directions__input",showList:h,showOnlyRoutable:!0,showYourLocationOption:0===n&&"__your-location__"!==t.occupantId,showYourLocationButton:0===n&&"__your-location__"!==t.occupantId,placeholder:l(0===n?"Choose start point":"Choose destination"),selectedOccupant:null!=(o=t.occupant)?o:null,onOccupantSelect:e=>{e&&i(n,e)},onClear:()=>{i(n,null)},appendLeft:Ge.a.createElement(nK,KZ(ZZ({},e.dragHandleProps),{className:"pcmap-stops__drag-area",$invisible:0===n&&"__your-location__"===t.occupantId}),Ge.a.createElement(rK,null)),appendRight:r&&Ge.a.createElement(iK,{className:"pcmap-stops__delete",onClick:()=>r(n)})}))}))}const uK=(e,t,n)=>{const r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r};function dK(e){let{stops:t,onChange:n}=e;const{getText:r}=PD(),{events:i}=vD(),[o,a]=Ge.a.useState(!1),s=e=>{n(t.filter(((t,n)=>n!==e)))},l=(e,r)=>{n(t.map(((t,n)=>n!==e?t:r?{latLng:{lat:r.coordinates[0],lng:r.coordinates[1]},ordinal:r.ordinalId,name:r.name,occupantId:r.id,occupant:r}:{type:"empty"}))),r&&i.emit("Directions#OccupantSelected",r)},c=()=>{n([...t,{type:"new"}])},u=()=>{"__your-location__"!==t[0].occupantId&&n([t[1],t[0]])};return Ge.a.createElement(qY,{onDragEnd:e=>{e.destination&&e.destination.index!==e.source.index&&(0===e.destination.index&&"__your-location__"===t[0].occupantId||n(uK(t,e.source.index,e.destination.index)))}},Ge.a.createElement(LZ,{droppableId:"list"},(e=>Ge.a.createElement(eK,KZ(ZZ({ref:e.innerRef},e.droppableProps),{className:"pcmap-stops"}),Ge.a.createElement(JZ,null,Ge.a.createElement(QZ,{className:"pcmap-stops__list"},t.map(((e,n)=>{var r;return Ge.a.createElement(cK,{key:(null!=(r=e.occupantId)?r:e.type)+n,stop:e,index:n,onDelete:t.length>2&&s,onChange:l,onOpen:0===n&&(()=>a(!0)),onClose:0===n&&(()=>a(!1))})})),e.placeholder),2===t.length&&Ge.a.createElement(sK,{className:"pcmap-stops__swap",$invisible:o||"__your-location__"===t[0].occupantId,onClick:u})),t.length<10&&t.every((e=>!["empty","new"].includes(e.type)))&&Ge.a.createElement(aK,{className:"pcmap-stops__add-destination",onClick:c},Ge.a.createElement(oK,null),r("Add destination"))))))}var hK,pK;function fK(){return fK=Object.assign?Object.assign.bind():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},fK.apply(this,arguments)}var mK,gK=function(e){return We.createElement("svg",fK({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 30"},e),hK||(hK=We.createElement("path",{fill:"currentColor",d:"M24.58 8.42c.56.56.56 1.46 0 2.02L13.15 21.87c-.56.55-1.46.55-2.02 0l-5.71-5.72a1.43 1.43 0 1 1 2.02-2.02l4.66 4.7 10.46-10.4a1.42 1.42 0 0 1 2.02 0Z"})),pK||(pK=We.createElement("rect",{width:28,height:28,x:1,y:1,stroke:"currentColor",strokeWidth:2,rx:4})))};function vK(){return vK=Object.assign?Object.assign.bind():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},vK.apply(this,arguments)}var yK=function(e){return We.createElement("svg",vK({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 30"},e),mK||(mK=We.createElement("rect",{width:28,height:28,x:1,y:1,stroke:"currentColor",strokeWidth:2,rx:4})))};const bK=Ye.c.section(ae||(ae=Object(Ve.a)(["\n  background-color: white;\n  border-radius: 0;\n  box-shadow: 0px 4px 96px rgba(10, 10, 130, 0.09),\n    0px 2px 16px rgba(10, 10, 130, 0.08), 0px 1px 2px rgba(10, 10, 130, 0.24);\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    border-radius: 6px;\n  }\n"]))),xK=Ye.c.header(se||(se=Object(Ve.a)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  padding: "," "," "," ",";\n"])),nC(18),nC(20),nC(15),nC(20)),wK=Ye.c.button(le||(le=Object(Ve.a)(["\n  padding: 0;\n  color: #0a0a82;\n  background-color: transparent;\n  cursor: pointer;\n  border: none;\n  appearance: none;
2\n"]))),_K=Ye.c.button(ce||(ce=Object(Ve.a)(["\n  padding: "," ",";\n  border-radius: ",";\n  border: none;\n  color: white;\n  background-color: #0a0a82;\n  box-shadow: 0px 2px 16px rgba(10, 10, 130, 0.08),\n    0px 1px 2px rgba(10, 10, 130, 0.16);\n  visibility: ",";\n  cursor: pointer;\n  appearance: none;\n"])),nC(10),nC(24),nC(24),(e=>{let{disabled:t}=e;return t?"hidden":"visible"})),EK=Ye.c.div(ue||(ue=Object(Ve.a)(["\n  padding: 0 0 ",";\n"])),nC(15)),SK=Ye.c.div(de||(de=Object(Ve.a)(["\n  display: flex;\n  justify-content: flex-start;\n  align-items: center;\n  margin: "," 0 ",";\n  padding: 0 ",";\n"])),nC(14),nC(5),nC(18)),MK=Ye.c.div(he||(he=Object(Ve.a)(["\n  padding: "," ",";\n  border: 1px solid;\n  margin: 0 "," "," ",";\n  border-radius: ",";\n  color: #e12c29;\n  background-color: #ffe3e3;\n"])),nC(5),nC(10),nC(20),nC(10),nC(20),nC(5)),TK=Ye.c.svg(pe||(pe=Object(Ve.a)(["\n  width: ",";\n  margin-right: ",";\n  color: #0a0a82;\n"])),nC(18),nC(10)),AK=Ye.c.input.attrs({type:"checkbox"})(fe||(fe=Object(Ve.a)(["\n  width: 0;\n  margin: 0;\n  appearance: none;\n  background-color: #fff;\n"]))),OK=Ye.c.label(me||(me=Object(Ve.a)(["\n  display: flex;\n  align-items: center;\n  margin-top: ",";\n  line-height: 1;\n  cursor: pointer;\n"])),nC(2));var CK=ID(aD(mj((function(e){const{stops:t,setStops:n,avoidStairs:r,setAvoidStairs:i,showRoute:o,hideRoute:a,route:s,steps:l,stepIdx:c,setStepIdx:u,routeQRCode:d,userRoute:h,className:p,onClose:f,getText:m}=e,[g,v]=We.useState(!1),[y,b]=We.useState(null);return We.useEffect((()=>{b(null)}),[t]),We.createElement(We.Fragment,null,We.createElement(bK,{className:"pcmap-directions ".concat(p||"")},!s&&We.createElement(We.Fragment,null,We.createElement(xK,{className:"pcmap-directions__header"},We.createElement(wK,{className:"pcmap-directions__close",onClick:f},m("Close")),We.createElement(_K,{className:"pcmap-directions__go",disabled:!t||t.reduce(((e,t)=>e.add(t.occupantId)),new Set).size<2||t.some((e=>["empty","new"].includes(e.type))),onClick:()=>{var e,t,n,r,i,a;try{b(null),o()}catch(s){console.error(s);const o=m(s.message),l=o===s.message?m("Unfortunately that route is not possible"):o.replaceAll("{{destination}}",null==(n=null==(t=null==(e=s.destination)?void 0:e.occupant)?void 0:t.display)?void 0:n.name).replaceAll("{{source}}",null==(a=null==(i=null==(r=s.source)?void 0:r.occupant)?void 0:i.display)?void 0:a.name);b({type:"error",message:l})}}},m("Start"))),We.createElement(EK,{className:"pcmap-directions__form"},y&&We.createElement(MK,null,y.message),We.createElement(dK,{stops:t,onChange:e=>n(e)}),We.createElement(SK,{className:"pcmap-directions__avoid-escalators"},We.createElement(OK,{htmlFor:"avoidStairs"},We.createElement(AK,{id:"avoidStairs",checked:r,onChange:()=>i(!r)}),We.createElement(TK,{as:r?gK:yK}),m("Avoid escalators and stairs"))))),s&&We.createElement(zH,{key:s.path.join("-"),stops:t,avoidStairs:r,route:s,steps:l,stepIdx:c,setStepIdx:u,userRoute:h,onEnd:a,onQRCodeShow:()=>v(!0)})),g&&d&&We.createElement(KH,{routeQRCode:d,onClose:()=>v(!1)}))})))),RK=Object.defineProperty,PK=Object.getOwnPropertySymbols,IK=Object.prototype.hasOwnProperty,LK=Object.prototype.propertyIsEnumerable,kK=(e,t,n)=>t in e?RK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DK=(e,t)=>{for(var n in t||(t={}))IK.call(t,n)&&kK(e,n,t[n]);if(PK)for(var n of PK(t))LK.call(t,n)&&kK(e,n,t[n]);return e},NK=(e,t)=>{var n={};for(var r in e)IK.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&PK)for(var r of PK(e))t.indexOf(r)<0&&LK.call(e,r)&&(n[r]=e[r]);return n};const UK=Ye.c.button(ge||(ge=Object(Ve.a)(["\n  position: relative;\n  width: ",";\n  height: ",";\n  line-height: 1;\n  border: 0;\n  color: ",";\n  background-color: transparent;\n  appearance: none;\n  cursor: pointer;\n\n  ::before {\n    content: '';\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: #d9dce7;\n    opacity: 0.2;\n    transition: transform 150ms;\n    z-index: -1;\n  }\n\n  :hover {\n    ::before {\n      transform: scale(1.4);\n    }\n  }\n\n  :focus {\n    outline: none;\n  }\n"])),nC(40),nC(40),(e=>{let{active:t}=e;return t?"white":"#0A0A82"})),jK=Ye.c.div(ve||(ve=Object(Ve.a)(["\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  width: 100%;\n  height: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  border-radius: 50%;\n  background-color: ",";\n  box-shadow: 0px 6px 32px rgba(10, 10, 130, 0.08),\n    0px 4px 16px rgba(10, 10, 130, 0.08), 0px 1px 4px rgba(10, 10, 130, 0.24);\n  user-select: none;\n"])),(e=>{let{active:t}=e;return t?"#636F99":"white"}));function FK(e){var t=e,{children:n,active:r}=t,i=NK(t,["children","active"]);return Ge.a.createElement(UK,DK({active:r},i),Ge.a.createElement(jK,{active:r},n))}var BK;function zK(){return zK=Object.assign?Object.assign.bind():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},zK.apply(this,arguments)}const HK=Ye.c.div(ye||(ye=Object(Ve.a)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n"]))),VK=Ye.c.div(be||(be=Object(Ve.a)(["\n  position: absolute;\n  ","\n  left: 50%;\n  transform: translateX(-50%);\n  display: flex;\n  flex-direction: column;\n  max-height: ",";\n  height: ",";\n  border-radius: calc("," / 2);\n  background-color: white;\n  overflow: hidden;\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    height: ",";\n    max-height: unset;\n  }\n"])),(e=>
2{let{expandToTop:t}=e;return t?"bottom: ".concat(nC(48),";"):"top: ".concat(nC(48),";")}),nC(300),(e=>{let{show:t}=e;return t?"auto":"0"}),nC(55),(e=>{let{show:t}=e;return t?"auto":"0"})),WK=Ye.c.div(xe||(xe=Object(Ve.a)(["\n  height: 100%;\n  overflow-y: auto;\n\n  ::-webkit-scrollbar {\n    display: none;\n  }\n"]))),GK=Object(Ye.c)((function(e){return We.createElement("svg",zK({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 512"},e),BK||(BK=We.createElement("path",{fill:"currentColor",d:"M6.1 359.3 25.9 379a12 12 0 0 0 17 0L224 198.4 405.1 379a12 12 0 0 0 17 0l19.8-19.8a12 12 0 0 0 0-17L232.5 133a12 12 0 0 0-17 0L6.1 342.3a12 12 0 0 0 0 17z"})))}))(we||(we=Object(Ve.a)(["\n  width: ",";\n  height: ",";\n  margin: 0 auto;\n  color: #bdbdbd;\n  opacity: ",";\n  transition: opacity 200ms;\n"])),nC(15),nC(40),(e=>{let{$show:t}=e;return t?1:0})),qK=Object(Ye.c)(GK)(_e||(_e=Object(Ve.a)([""]))),XK=Object(Ye.c)(GK)(Ee||(Ee=Object(Ve.a)(["\n  transform: rotate(180deg);\n"]))),YK=Ye.c.ul(Se||(Se=Object(Ve.a)(["\n  display: block;\n  min-width: ",";\n  margin: 0;\n  padding: 0;\n  color: #0a0a82;\n  background-color: white;\n  box-shadow: 0px 2px 16px rgba(10, 10, 130, 0.08),\n    0px 1px 2px rgba(10, 10, 130, 0.16);\n  list-style: none;\n  white-space: nowrap;\n  overflow: hidden;\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    li:first-child {\n      margin-top: ",";\n    }\n\n    li:last-child {\n      margin-bottom: ",";\n    }\n  }\n"])),nC(55),nC(16),nC(16)),ZK=Ye.c.li(Me||(Me=Object(Ve.a)(["\n  padding: ",";\n  text-align: center;\n  cursor: pointer;\n  color: ",";\n  background-color: ",";\n\n  &:hover {\n    background-color: ",";\n  }\n"])),nC(10),(e=>{let{selected:t}=e;return t?"white":"inherit"}),(e=>{let{selected:t}=e;return t?"#1415FA":"inherit"}),(e=>{let{selected:t}=e;return t?"#1415FA":"#F7F7FB"}));var KK=ID(aD(EN((function(e){const[t,n]=Ge.a.useState(!1),[r,i]=Ge.a.useState(!1),[o,a]=Ge.a.useState(!1),[s,l]=Ge.a.useState(!1),c=Ge.a.useRef(null),{className:u,map:d,ordinals:h,activeOrdinal:p,activeOrdinalId:f,setActiveOrdinal:m,applyOrdinalOptions:g,expandToTop:v,options:{applyOrdinalOptionsOnOrdinalChange:y,showLevelsAlways:b}}=e,x=window.matchMedia("(orientation: portrait), (max-width: 600px)").matches;Ge.a.useEffect((()=>{b||t&&!r?setTimeout((()=>i(!0)),500):!t&&r&&i(!1)}),[t,r,b]),Ge.a.useEffect((()=>{if(!t||!d)return;const e=d.container,r=e=>{e.composedPath().some((e=>"string"===typeof e.className&&(e.className.includes("pcmap-levels-list")||e.className.includes("pcmap-levels-button"))))||(n(!1),i(!1))};return e.addEventListener("click",r),e.addEventListener("touchstart",r),()=>{e.removeEventListener("click",r),e.removeEventListener("touchstart",r)}}),[d,t]);const w=nA((e=>{const t=e.target,n=t.scrollHeight-t.clientHeight-10,r=t.scrollTop;l(r<n),a(10<r)}),200);return Ge.a.createElement(HK,{className:"pcmap-levels-control ".concat(u||"")},Ge.a.createElement(FK,{className:"pcmap-levels-button ".concat(b||t?"pcmap-levels-button--activated":""),active:b||t,onClick:()=>{n(!t),i(!1)}},p.display.name),Ge.a.createElement(VK,{show:b||t,expandToTop:v,className:"pcmap-levels-list-container ".concat(b||t?"pcmap-levels-list--opened":"")},x&&Ge.a.createElement(qK,{onClick:()=>{c.current.scrollTop-=50},$show:o}),Ge.a.createElement(WK,{ref:c,className:"pcmap-levels-list__scrollable",onScroll:w},Ge.a.createElement(YK,{className:"pcmap-levels-list"},[...h.values()].filter((e=>!e.options.hidden)).sort(((e,t)=>Number(t.id)-Number(e.id))).map((e=>{const t=e.id===f;return Ge.a.createElement(ZK,{className:"pcmap-levels-item ".concat(t?"pcmap-levels-item--selected":""),key:e.id,selected:t,onClick:()=>r&&(e=>{n(!1),m(e.id,{fitMap:!1,callback:()=>{y&&g(e)}})})(e)},e.display.name)})))),x&&Ge.a.createElement(XK,{onClick:()=>{c.current.scrollTop+=50},$show:s})))}
2))));const $K=Ye.c.div(Te||(Te=Object(Ve.a)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n"]))),JK=Ye.c.ul(Ae||(Ae=Object(Ve.a)(["\n  position: absolute;\n  ","\n  left: 50%;\n  transform: translateX(-50%);\n  display: block;\n  min-width: ",";\n  margin: 0;\n  padding: 0;\n  border-radius: calc("," / 2);\n  color: #0a0a82;\n  background-color: white;\n  box-shadow: 0px 2px 16px rgba(10, 10, 130, 0.08),\n    0px 1px 2px rgba(10, 10, 130, 0.16);\n  list-style: none;\n  white-space: nowrap;\n  overflow: hidden;\n  transition: height ","ms;\n  height: ",";\n\n  li:first-child {\n    margin-top: ",";\n  }\n\n  li:last-child {\n    margin-bottom: ",";\n  }\n"])),(e=>{let{expandToTop:t}=e;return t?"bottom: ".concat(nC(48),";"):"top: ".concat(nC(48),";")}),nC(55),nC(55),500,(e=>{let{show:t}=e;return t?"auto":"0"}),nC(16),nC(16)),QK=Ye.c.li(Oe||(Oe=Object(Ve.a)(["\n  padding: ",";\n  text-align: center;\n  cursor: pointer;\n  color: ",";\n  background-color: ",";\n\n  &:hover {\n    background-color: ",";\n  }\n"])),nC(10),(e=>{let{selected:t}=e;return t?"white":"inherit"}),(e=>{let{selected:t}=e;return t?"#1415FA":"inherit"}),(e=>{let{selected:t}=e;return t?"#1415FA":"#F7F7FB"}));var e$,t$=ID((function(e){const[t,n]=Ge.a.useState(!1),[r,i]=Ge.a.useState(!1),{className:o,expandToTop:a,selectedLanguage:s,languages:l,setLanguage:c}=e;return Ge.a.useEffect((()=>{t&&!r?setTimeout((()=>i(!0)),500):!t&&r&&i(!1)}),[t,r]),Ge.a.useEffect((()=>{if(!t)return;const e=document.querySelector(".pcmap");if(!e)return;const r=e=>{e.composedPath().some((e=>"string"===typeof e.className&&e.className.includes("pcmap-languages-list")))||(n(!1),i(!1))};return e.addEventListener("click",r),()=>{e.removeEventListener("click",r)}}),[t]),Ge.a.createElement($K,{className:"pcmap-languages-control ".concat(o||"")},Ge.a.createElement(FK,{className:"pcmap-languages-button",active:t,onClick:()=>{n(!t),i(!1)}},s.toUpperCase()),Ge.a.createElement(JK,{show:t,expandToTop:a,className:"pcmap-languages-list"},[...l.values()].map((e=>{const t=e===s;return Ge.a.createElement(QK,{className:"pcmap-languages-item ".concat(t?"pcmap-languages-item--selected":""),key:e,selected:t,onClick:()=>r&&(e=>{n(!1),c(e)})(e)},e.toUpperCase())}))))}));function n$(){return n$=Object.assign?Object.assign.bind():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},n$.apply(this,arguments)}var r$=function(e){return We.createElement("svg",n$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},e),e$||(e$=We.createElement("path",{fill:"currentColor",d:"M560 160c-2 0-4 .4-6 1.2L384 224l-10.3-3.6C397 185.5 416 149.2 416 123 416 55 358.7 0 288 0S160 55.1 160 123c0 11.8 4 25.8 10.4 40.6L20.1 216C8 220.8 0 232.6 0 245.7V496c0 9.2 7.5 16 16 16 2 0 4-.4 6-1.2L192 448l172 60.7c13 4.3 27 4.4 40 .2L555.9 456c12.2-4.9 20.1-16.6 20.1-29.7V176c0-9.2-7.5-16-16-16zM176 419.8 31.9 473l-1.3-226.9L176 195.6zM288 32c52.9 0 96 40.8 96 91 0 27-38.1 88.9-96 156.8-57.9-67.9-96-129.8-96-156.8 0-50.2 43.1-91 96-91zm80 444.2-160-56.5V228.8c24.4 35.3 52.1 68 67.7 85.7 3.2 3.7 7.8 5.5 12.3 5.5s9-1.8 12.3-5.5c12.8-14.5 33.7-39.1 54.3-66.9l13.4 4.7zm32 .2V252.2L544.1 199l1.3 226.9zM312 128c0-13.3-10.8-24-24-24s-24 10.7-24 24c0 13.2 10.8 24 24 24s24-10.7 24-24z"})))};const i$=Ye.c.svg(Ce||(Ce=Object(Ve.a)(["\n  width: ",";\n  color: inherit;\n"])),nC(17));var o$,a$=EN((function(e){const{options:t}=oD(),{ordinal:n,center:r,zoom:i,rotation:o,tilt:a}=t,{className:s,setActiveOrdinal:l,setView:c,map:u}=e;return Ge.a.createElement(FK,{className:"pcmap-home-button ".concat(s||""),onClick:()=>{l(n,{fitMap:!1,callback:()=>{u&&c(r,{zoom:i,rotation:o,tilt:a})}})}},Ge.a.createElement(i$,{as:r$}))}));function s$(){return s$=Object.assign?Object.assign.bind():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},s$.apply(this,arguments)}var l$,c$;function u$(){return u$=Object.assign?Object.assign.bind():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},u$.apply(this,arguments)}const d$=Object(Ye.c)((function(e){return We.createElement("svg",s$({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 120 120"},e),o$||(o$=We.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M62 117.3c0 2.9 4 3.8 5.2 1.1L119 3.9c1-2.4-1.4-4.7-3.7-3.6L2.6 53.3c-2.7 1.3-1.7 5.3 1.2 5.3l55.5-1.4c1.6 0 2.8 1.2 2.8 2.7l-.1 57.4ZM71 78c-.1 3 4 3.8 5.
21 1l26-58.1c1-2.3-1.4-4.6-3.7-3.6L41 43.7c-2.7 1.2-1.8 5.2 1.2 5.2l26-.8c1.6 0 2.9 1.2 2.9 2.8l-.3 27Z",clipRule:"evenodd"})))}))(Re||(Re=Object(Ve.a)(["\n  width: ",";\n  margin: "," "," 0 0;\n  color: inherit;\n"])),nC(23),nC(3),nC(3)),h$=Object(Ye.c)((function(e){return We.createElement("svg",u$({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 120 120"},e),l$||(l$=We.createElement("path",{fill:"currentColor",d:"M56.2 2.1a2 2 0 0 1 2-2.1h1c1.2 0 2.1 1 2.1 2.1v16.5a2 2 0 0 1-2 2.1h-1a2 2 0 0 1-2.1-2V2Z"})),c$||(c$=We.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M91.6 119.4c1.6 1.6 4.2-.1 3.4-2.3l-34.2-91a2.1 2.1 0 0 0-4 0L24.1 117c-.7 2.2 2 3.8 3.5 2.2L57.3 88c.8-.8 2.1-.8 3 0l31.3 31.5ZM75 93c1.6 1.6 4.3-.1 3.4-2.3l-17.6-46a2.1 2.1 0 0 0-4 0l-17 45.8c-.7 2.2 2 3.9 3.6 2.2L57.3 78a2 2 0 0 1 3 0L75 93Z",clipRule:"evenodd"})))}))(Pe||(Pe=Object(Ve.a)(["\n  width: ",";\n  color: inherit;\n"])),nC(26));var p$,f$=EN(aD(hU((function(e){const{className:t,map:n,activeOrdinal:r,setActiveOrdinal:i,userLocation:o,userHeading:a,followMeMode:s,setFollowMeMode:l,options:c}=e,u=Ge.a.useRef({followMeMode:s});return Ge.a.useEffect((()=>{if(!s||!o||!n||!r)return;const e=[o.latitude,o.longitude],t=r.venue.bounds.containsPoint(e);!c.userPositionOnlyInVenue||t?(Np(n.center,e)>2&&n.setView(e,{animate:!0}),r.id!==o.ordinal&&i(o.ordinal,{keepFollowMeMode:!0})):l(!1)}),[n,c,s,o,r,i,l]),Ge.a.useEffect((()=>{s!==u.current.followMeMode&&("heading"===s?n.setRotationRange(-1/0,1/0):"heading"===u.current.followMeMode&&n.setRotationRange(c.minRotation,c.maxRotation),u.current.followMeMode=s),"heading"===s&&Number.isFinite(a)&&n.setRotation(-a,{animate:!1})}),[n,c,s,a]),Ge.a.useEffect((()=>{n&&(n.followMouseOnZoom=!s)}),[n,s]),Ge.a.createElement(FK,{className:"pcmap-followme-button ".concat(s?"pcmap-followme-button--enabled":""," ").concat(t||""),active:s,onClick:()=>{o&&(Number.isFinite(a)?l(!0===s?"heading":!s):l(!s))}},"heading"===s?Ge.a.createElement(h$,null):Ge.a.createElement(d$,null))}))));function m$(){return m$=Object.assign?Object.assign.bind():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},m$.apply(this,arguments)}var g$,v$=function(e){return We.createElement("svg",m$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},e),p$||(p$=We.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M9.3.9v16.2M.9 8.7h16.2"})))};function y$(){return y$=Object.assign?Object.assign.bind():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},y$.apply(this,arguments)}var b$=function(e){return We.createElement("svg",y$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 2"},e),g$||(g$=We.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M.9 1.3h16.2"})))};const x$=Ye.c.div(Ie||(Ie=Object(Ve.a)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  height: ",";\n"])),nC(88)),w$=Object(Ye.c)(FK)(Le||(Le=Object(Ve.a)(["\n  color: ",";\n"])),(e=>{let{disabled:t}=e;return t?"lightgrey":"#0a0a82"})),_$=Ye.c.svg(ke||(ke=Object(Ve.a)(["\n  width: ",";\n  color: inherit;\n"])),nC(17));var E$=EN(aD((function(e){let{className:t,map:n,options:r}=e;const[i,o]=Ge.a.useState(r.zoom),{minZoom:a,maxZoom:s,zoomSpeed:l}=r;return Ge.a.useEffect((()=>{if(!n)return;const e=I_((e=>{let{zoom:t}=e;o(t)}),500,{leading:!1,trailing:!0});return n.addEventListener("zoomChangeSequence",e),n.addEventListener("zoomChange",e),()=>{n.removeEventListener("zoomChangeSequence",e),n.removeEventListener("zoomChange",e)}}),[n]),Ge.a.createElement(x$,{className:"".concat(t," pcmap-zoom-control")},Ge.a.createElement(w$,{className:"pcmap-zoom-button pcmap-zoom-plus",disabled:s<=i,onClick:()=>{n.setZoom(i+l,{animate:!0,easing:"easeOutExpo",duration:500}),o(i+l)}},Ge.a.createElement(_$,{as:v$})),Ge.a.createElement(w$,{className:"pcmap-zoom-button pcmap-zoom-minus",disabled:i<=a,onClick:()=>{n.setZoom(i-l,{animate:!0,easing:"easeOutExpo",duration:500}),o(i-l)}},Ge.a.createElement(_$,{as:b$})))})));const S$=Object(Ye.c)(CK)(De||(De=Object(Ve.a)(["\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100vw;\n  z-index: 1000;\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    top: ",";\n    left: ",";\n    width: ",";\n  }\n"])),nC(32),nC(24),nC(350)),M$=Object(Ye.c)(MH)(Ne||(Ne=Object(Ve.a)(["\n  position: absolute;\n  z-index: 1000;\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    top: ",";\n    left: ",";\n    bottom: auto;\n\n    > div {\n      width: ",";\n    }\n  }\n"])),nC(32),nC(24),nC(310)),T$=Object(Ye.c)(f$)(Ue||(Ue=Object(Ve.a)(["\n  display: block;\n  position: absolute;\n  top: ",";\n  right: ",";\n  z-index: 998;\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    top: ",";\n  }\n"])),(e=>{let{isMobileRoute:t}=e;return t?"50%":"".concat(nC(130))}),nC(24),nC(80)),A$=Object(Ye.c)(KK)(je||(je=Object(Ve.a)(["\n  position: absolute;\n  ","\n  right: ",";\n  z-index: 999;\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    bottom: ",";\n    top: auto;\n  }\n"])),(e=>{let{placeBottom:t}=e;return t?"bottom: ".concat(nC(30),"; top: auto;"):"top: ".concat(nC(80),"; bottom: auto;")}),nC(24),nC(128)),O$=Object(Ye.c)(t$)(Fe||(Fe=Object(Ve.a)(["\n  position: absolute;\n  top: ",";\n  bottom: auto;\n  right: ",";\n  z-index: 999;\n"])),nC(30),nC(24)),C$=Object(Ye.c)(a$)((e=>{let{placeBottom:t}=e;return Object(Ye.b)(Be||(Be=Object(Ve.a)(["\n    display: none;\n    position: absolute !important;\n    ","\n    right: ",";\n    z-index: 998;\n\n    @media (orientation: landscape) and (min-width: 600px) {\n      bottom: ",";\n      top: auto;\n    }\n  "])),t?"bottom: ".concat(nC(30),"; top: auto;"):"top: ".concat(nC(80),"; bottom: auto;"),nC(24),nC(176))})),R$=Object(Ye.c)(E$)(ze||(ze=Object(Ve.a)(["\n  display: none;\n  position: absolute;\n  bottom: ",";\n  right: ",";\n  z-index: 998;\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    display: flex;\n  }\n"])),nC(32),nC(24)),P$=Ye.c.div.attrs({className:"pcmap-vendor-label"})(He||(He=Object(Ve.a)(["\n  position: absolute;\n  bottom: ",";\n  left: ",";\n  height: ",";\n  z-index: 400;\n\n  img {\n    height: 100%;\n  }\n\n  @media (orientation: landscape) and (min-width: 600px) {\n    bottom: ",";\n  }\n"])),(e=>{let{placeBottom:t}=e;return"".concat(nC(t?10:80))}),nC(10),nC(20),nC(10));var I$=EN(mj((function(e){const{mapLoaded:t,isDirectionsOpen:n,route:r,toggleDirections:i,closeDirections:o}=e,a=window.matchMedia("(orientation: portrait), (max-width: 600px)").matches,s=!a;return Ge.a.createElement(Ge.a.Fragment,null,Ge.a.createElement(NF,null),Ge.a.createElement(KF,null),t&&Ge.a.createElement(Ge.a.Fragment,null,n?Ge.a.createElement(S$,{onClose:o}):Ge.a.createElement(M$,{key:"search-box",onDirectionsToggle:i,closeDirections:o}),a&&r&&Ge.a.createElement(M$,{key:"search-box-along-route",onDirectionsToggle:i,closeDirections:o,route:r}),Ge.a.createElement(R$,null),Ge.a.createElement(T$,{isMobileRoute:a&&r}
2),Ge.a.createElement(A$,{placeBottom:s,expandToTop:s}),Ge.a.createElement(O$,null),Ge.a.createElement(C$,{placeBottom:s||a&&n}),Ge.a.createElement(P$,{placeBottom:n},Ge.a.createElement("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJIAAAAjCAYAAAB/7VNeAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAUGVYSWZNTQAqAAAACAACARIAAwAAAAEAAQAAh2kABAAAAAEAAAAmAAAAAAADoAEAAwAAAAEAAQAAoAIABAAAAAEAAACSoAMABAAAAAEAAAAjAAAAAK65xpUAAAIDaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA2LjAuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgICAgICAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDxleGlmOlBpeGVsWERpbWVuc2lvbj4xNDY8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MzU8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KrKoeTwAADTBJREFUeAHtmwmQFNUdh2eXMxxyyBVQzgAa5FJURExEuYIHSgRFiVWxEghoENQYYyXGWCYxaqyyEkE0WKuoIFiKQIyAAVQUCwUUXS8OkUvO5YZlgSXf15ne9M7OzC6HqXJ3/lUf/e7p9/r3/u/16yUrlsaOHj1aacmSJc0OHDhw8ZEjRy46fPjwWRQ/hfRsroWwD77Iysp6k7x5u3fvXjtkyJAC0jJWwUYgK1l/77333uz+/fs3RRzD4Vpoo6gQTLLiMfIOk/EVvEyZSXl5ebkI6kjSwpnEcjkCJZQxderUSq1ateqLF7q/oKCgK70uUSbVSCCoIwjpc/IfpO7LAwYM2J2qbCa9fI1AMZHMnz+/cq1ata45ePDg3xHSqak8UGlDgKC2UuaxQ4cOjUNMhjNWzkfAvU5gcRFdxcN//EREZGMIsCGXsZUrV75x1qxZ9YIfyPxTrkegSEi1a9fuVFhY+BgiqnO8nig6UrRhO6OrVKnSb8KECVWieZlw+RuBQEgsRdnwZ7xRI65pe2k++5/Ynj17Yrylxfbu3RvEk9VDSM3hptatW5+RttFM5rd+BII9Eq/4/RHCqwgjC6+UqlP5lPkMAS1dvXr1xh07dtRlL3U2QulYrVq12g0aNIg1bdo0VqdOnVilSpWK2qDOIdock5+fP2ngwIF7ijIygXI1ApXjvRnDA8/irMj9TWIHyTq6nvTx8NSgQYM2hwVGjhxZj7QrWA5H7dq169yNGzdmt2jRIibVq1cPipFfBWFdXrVq1YUkLA/rZq7lawSyFy9e3IQuXaIn4qEn9k4RbSLx9wsXLvxL7969i0RkwfHjx+/YunXrcwTvgkUIKrZixYrYypUrY/v377dIYLRxIXul5kRK/EC8SObyLR+BrKVLlw7lQT/PoWOw70noj0vRZA4YR6U7YBw8eHClJk2aDKed3yLGprytxdq2bRvjPCqGgIIm8XZ31qxZ8/GePXsmW96qUehSSNyUryctF/IhmSnMutApTm2uW+CTODu5JrPOJDpBwolRlfBQmANfQyr7Dhnd4K14AX/vkng42cWD2jVgH9LZd8l0oq2E7SkKDiJ9Nvg1IZ25r2gJ58IUSGWtyPBLRdELF2Fn/wrYAIcgaq5eHcH+NwPHaRl8AAWV8UQd9UTZ2dmeUCd6pS3kPZ1ORDQSmzZt2pGbb775TZawt4kOVpQbNmyI1a9fP+beSaP9lvxWLYLJhGShifA+OPiaD60RrIE7YDVErSaRi2EEWNaH5ZnVOXAdKKh/gEtq4mebW0l7JQ6XmEcUvwIF+QdIdZDq4P8NukAWWG8YOMg+kMZxHFzNB/MaeG/pzHseDOMhmZAU+u9gGzjG6b4a1Cd/JPwQXgfrJLMrSbwFPo5nhv2pRvw5UIThGaDj6/j0gk9hHVwAN4FiGlsZoTgbAgGFYjKOoaujeYhj8X+j6f/dt2/fqi5duqyylG9z7JliO3fuDDbfeiV+pyFLX/U0rdjh6yEUmg+mJYyGJ+HHEHqYGoQd+J+Cef+EHRCaArwGrOvseQGiYnLQEm0fCbb5DtheMi9ovbCur7drwTqaD6A/DADFfSzWksI94V/wPhyGqPUgYp8U8LuQTkhNyO8LH4FieQpS2SwyxkYynZx9YDj4G0+D4zIEzoTbYDmEv+/YdoXDPqwiC5eheIKfO7b16tUrsVNF5aOBnJycfJaufE7GY40bNw68kUcD7ps0vFFdRFklWqeUcCH5eqF7YC9cC5qz/2y4AR6GZyEqIqKBN1JgL4JL5oVQmu2mwCNwJ3QAl4j/l7Xkh76G1nAqJNrlJPgA7Xe6+3KCKTrFOAl+BHqzspqimQ5TQYG0Be1iUHSfQSgigsESaPqhEkJyedO4erZUz29vQUIp/3joiPACoSCYWL169WLulTibCmqSt4Nw1CuU0mJRtkp0pjpAWuht3C/MDFKS/+MPvwRfgHWTPSCSi5ltvgqKt2mxnG8uUpem9WZz4DSwf1FzWekNj4NewYmUyk4hox/kgP3eD9Y9VnuTCnreBvGKaiD0xPGk4hfFkhcm+eBF48FnQ30E8f0wP92Vsq3Il8B43Y/hoWJeNfLXsXTaseMxZ0ooaDt3DkwuQ0P+3iJwgM8qQ3mLPAQua7dAuqWY7JNizWllL8wH77MZRMWiN/0KXNLqgMJKZoqxG+gc3gH3N9a5GtKKgPxEs/9Rz7OY+BXQDsLnQPB/xrPNzjXKgw7w/Cf0SiQ3JDzsf8VThrJYFs+njfOiJTioDIV5mHaWs28K9zjRYqWFHVQ3jrpVB0tPYTsboCy2kkKF0KgshSmj+O4Af/NKiD5UoifdnHwKaTN8AHqdqPfsS/wN8L5WQKoJoQiHwDRwO7IH3Ag3BN+2jsWcqArGNrRnwfF+FG4Dl/5g9eEaWDYC8CaD9UwxuU9SAHEx6XaHzJ49WzWmtJkzZ3bCk11HnTbJCpH+EW2vOI4/enP2XQ+d4RnwoTorHfSymnsfB6VWWStQbh24vN0HZfLIlDte+x4VFckOeBt8SI1As//nQSgkhZFMSHoh27HuKxDaegIfwmVhQhmuCtkxXwur4uWduHfDn6AL+Cyehv7gM4lV7tix4yo+kbxP+FwTNL2SB5TsabKINsdrPYCYVPz0fv36ucwExv6pat26dS/gjW0sYulDouWLjHq+9ivSGZwjhTdVlJ8QqE18JByMp7usXAQO6m/AjumRFIazrKxWk4LO0KL7LmPFOZSbDI/AVaDX+CasBY1+AqEHsb8ub5+Cy5r9VtguNcshmSiqku4Spoii97mJ+CL4OZwGCitqXYncGk/I5uoyq3DVwxTYBqG53Dkm80DROiYPwAyvgZoQzQQeeCAkvZICqFGjRnA6jZjcK51J2jgqDJs7d+4bxL9EOPWJd+fMqBcfcU+DYiIiL/jmRrmVtD8PAW4xLY3pNRzUgkiZlwh78+EAmPc11IMGEO0o0aTWilTFfCxeLGzIgeoMzsTRYeJJvNqP6rAdfFDaEtAr6H1c1t6DcBKYdjckmmMxEO6D8xMy68Tj/bhOTMjTObSMpOUR1hMrpF2R9G
2jQSek2IxTRNOOBkBDL8yxnt5NgB4K9kmJys8yHWclCEKcgoP5kS2DUC86M8EhhUrErG+0jLJVTeYvLLZaRPKL7vAvCdTlZKQWxFT6Ea+ExSGfVyLwA9HKfpyuYIs96Y2A++ECXwsm002nMwfMBhraAwE/ASaV3mA4HQFsDDUEB6Jk1vZFjoRAvh0RzgivYS2EK+HuhvUFgbBg5jusn1JkEP9CdxXr06OGN/hqxhDdcJCaXOf5WKfBQvtEpME+u+fof4ztb8Gck1LOZYmY5bBHX1/hG54w7WaZnewl0rbr+VKaHuww6gm8dm+B4bC2VfgF6pbOOp4E0dVxuEoXkvTaCq2ED6IELQXN5+xi6GolbLa43wCgYmoTrSNOLOSnSjRfZKc0JGTzQJCVsN/jfIEHe5s2b5+BxHjQxWpi0YIlSUB426qUUjqfXeqRUhuicZTmU11WfTPNHdb0z4T64AmpC1JyB18ON8C4sgBOxuVQeD4rpZJrLrpM36pGM279BoGj01FH7iEiPSEJfwnrxdyJpicFVJNiWZZ1gx2p6rdHQDKKCcq/kGC8IljYCMf62+mBubu7DfLVvgxcZZlqiKSopzRCar/vTWNLmxL1daVWONd+BywGXOTvpZnIpOOiNoTO4lk+EOaDbP1F7iAa6QZsTbShS3wejx9kWSTPoPV8Jb0G4hBEMTCE5eUL7GYEnoZgDCDPjV8fJ/VUncGwcq2Ox1yl8O7gKLIIP4QzoA9NhRjF1jhs3rmDMmDGLWLpU/OlQwvRGfvbwLyRTGWL7N3mPDh06NDdVmYT0AuJbwEEK3XhCkRJRXeqnoLdwI+1DcUlQTK/AE6A3VFCJtouEz8Gy2iEw7JqvR0hm3pcP1vb0conmg9wP6+GrxMwUcZc1+7wpId/+OB7ef3RPY7GNsBfsu6YzeAGS9dP80HYQ+BLsZx54ryvA+y3N/M3ZsBIaQlvwHhzjyVDyTQuhZC1btuwcri9SoAUUM//4bfv27cHX/WIZ8Qj11lHm7vbt208p63e6ZO1k0r5dIxBd74I7x5sc5Q1uOZFfIorUbidJP+Pln6GNmRkRJRmgcpxUQkj2tUOHDgXbtm2bR/CP4BJSqiEiy73ABvypESNGuHRkrAKNQFIh2X9PsNkr5SAQN6zpNnK+xbl/eI2Dx/GjRo1abf2MVawRSCkkh6F79+6bEclfCbrRSmdLEdE4PJFvBhmrgCOQVkiOR7du3dZwHHA/QfdNJQyhfUn+xHbt2rkUpvVcJSpnEsrNCJQqJDbOhfzJ7BLEcg9hX0ujloeQcvg/a89mNtfRYal44VKF5JAgknw23wsIeigXnGsgoP0sZzPYXD/BH/57ppCxCjwCZRKS49OnT59dbL6nIqAn8EyeFM/jY+4jiCjxMK0CD2fF7Xrp3zsSxob/KNmev3QcxH83em/48OGvJ2RnohV0BP4DDKh/+TUVnO4AAAAASUVORK5CYII=",alt:"Point Maps"}))))})));function L$(e){let{options:t,eventEmitter:n}=e;return Ge.a.createElement(gD,{eventEmitter:n},Ge.a.createElement(iD,{options:t},Ge.a.createElement(RD,{dictionary:t.dictionary},Ge.a.createElement(sN,{categories:t.categories},Ge.a.createElement(_N,null,Ge.a.createElement(pU,null,Ge.a.createElement(fj,null,Ge.a.createElement(Cj,null,Ge.a.createElement(DF,null,Ge.a.createElement(I$,null))))))))))}var k$,D$,N$,U$=Object.defineProperty,j$=Object.getOwnPropertySymbols,F$=Object.prototype.hasOwnProperty,B$=Object.prototype.propertyIsEnumerable,z$=(e,t,n)=>t in e?U$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H$=(e,t)=>{for(var n in t||(t={}))F$.call(t,n)&&z$(e,n,t[n]);if(j$)for(var n of j$(t))B$.call(t,n)&&z$(e,n,t[n]);return e},V$=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},W$=(e,t,n)=>(V$(e,t,"read from private field"),n?n.call(e):t.get(e)),G$=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},q$=(e,t,n,r)=>(V$(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class X${constructor(e){var t;z$(this,"symbol"!==typeof(t="state")?t+"":t,{}),G$(this,k$,null),G$(this,D$,null),G$(this,N$,!1),console.group("%cPoint-Consulting:","color: #81beff; font-weight: bold;"),console.log("%cPCMap library %c(version: ".concat("429.1.1",", date: ","Mon, 25 Mar 2024 10:57:28 GMT",")"),"color: #81ffbe","color: #888"),q$(this,k$,e);const{container:n,geoData:r,styles:i,dictionary:o}=W$(this,k$);if(!n||"div"!==n.nodeName.toLowerCase())throw new Error('You must provide the HTMLDivElement as a "container" option');if(!r)throw new Error("You must provide the GeoJSON data as a geoData option");n.classList.add("pcmap"),Xk.init(r,i,o),q$(this,D$,new Ke),W$(this,D$).on("Map#StateChanged",(e=>{this.state=H$(H$({},this.state),e)})),Xe.a.render(Ge.a.createElement(L$,{options:e,eventEmitter:W$(this,D$)}),n),console.log("%cSuccessfully initialized","color: #81ffbe"),console.groupEnd()}once(){var e;null==(e=W$(this,D$))||e.once(...arguments)}on(){var e;null==(e=W$(this,D$))||e.on(...arguments)}off(){var e;null==(e=W$(this,D$))||e.removeListener(...arguments)}getOccupant(e){return Xk.occupantsMap.get(e)}setOccupantLocation(e,t){W$(this,D$).emit("Occupant#SetLocation",H$({id:e},t))}setSearchBoxCategory(e){W$(this,D$).emit("SearchBox#SelectCategory",e)}setSearchBoxQuery(e){W$(this,D$).emit("SearchBox#Query",e)}setDirections(e){W$(this,D$).emit("Directions#Set",e)}showDirections(e){W$(this,D$).emit("Directions#Show",e)}hideDirections(){W$(this,D$).emit("Directions#Hide")}clearDirections(){W$(this,D$).emit("Directions#Clear")}buildRoute(e){return new Promise(((t,n)=>{setTimeout((()=>n("Route buiding timeout")),1e3),W$(this,D$).once("Route#Built",(e=>t(e))),W$(this,D$).emit("Route#Build",e)}))}showRoute(e){W$(this,D$).emit("Route#Show",e)}hideRoute(){W$(this,D$).emit("Route#Hide")}addDestination(e){W$(this,D$).emit("Route#AddDestination",e)}showOrdinal(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{applyOrdinalOptions:n=!1}
2=t;W$(this,D$).emit("Ordinal#Show",{ordinalId:e,applyOrdinalOptions:n})}filterMarkers(e,t){W$(this,D$).emit("Markers#Filter",{filters:e,options:t})}addMarker(e){W$(this,D$).emit("Markers#AddMarker",{marker:e})}updateMarker(e){W$(this,D$).emit("Markers#UpdateMarker",{marker:e})}removeMarker(e){W$(this,D$).emit("Markers#RemoveMarker",{marker:e})}filterMapObjects(e){W$(this,D$).emit("Map#Filter",{predicate:e})}dimMapObjects(e){W$(this,D$).emit("Map#Dim",{predicate:e})}updateGeoData(e){W$(this,D$).emit("GeoData#Update",{rawGeoData:e})}setUserPosition(e){W$(this,D$).emit("User#SetUserLocation",{location:e})}setUserLocation(e){W$(this,D$).emit("User#SetUserLocation",{location:e})}setZoom(e,t){W$(this,D$).emit("Map#SetZoom",{zoom:e,options:t})}setZoomRange(e,t,n){W$(this,D$).emit("Map#SetZoomRange",{min:e,max:t,options:n})}setView(e,t){W$(this,D$).emit("Map#SetView",{center:e,options:t})}setRotation(e,t){W$(this,D$).emit("Map#SetRotation",{rotation:e,options:t})}setRotationRange(e,t,n){W$(this,D$).emit("Map#SetRotationRange",{min:e,max:t,options:n})}setTilt(e,t){W$(this,D$).emit("Map#SetTilt",{tilt:e,options:t})}setTiltRange(e,t,n){W$(this,D$).emit("Map#SetTiltRange",{min:e,max:t,options:n})}selectMarkers(e,t){W$(this,D$).emit("Map#SelectOccupants",{occupants:e,callback:t})}setLanguage(e){W$(this,D$).emit("Dictionary#SetLanguage",{language:e})}dispose(){W$(this,N$)||(q$(this,N$,!0),W$(this,D$).emit("Map#Dispose"),setTimeout((()=>{W$(this,D$).eventNames().forEach((e=>{W$(this,D$).removeAllListeners(e)})),Xe.a.unmountComponentAtNode(W$(this,k$).container),q$(this,k$,null),q$(this,D$,null),this.state=null})))}}k$=new WeakMap,D$=new WeakMap,N$=new WeakMap}).call(this,n(28),n(122)(e))},function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){function t(e,r,l,c,h){for(var p,f,m,g,x,_=0,E=0,S=0,M=0,T=0,I=0,k=m=p=0,N=0,U=0,j=0,F=0,B=l.length,z=B-1,H="",V="",W="",G="";N<B;){if(f=l.charCodeAt(N),N===z&&0!==E+M+S+_&&(0!==E&&(f=47===E?10:47),M=S=_=0,B++,z++),0===E+M+S+_){if(N===z&&(0<U&&(H=H.replace(d,"")),0<H.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:H+=l.charAt(N)}f=59}switch(f){case 123:for(p=(H=H.trim()).charCodeAt(0),m=1,F=++N;N<B;){switch(f=l.charCodeAt(N)){case 123:m++;break;case 125:m--;break;case 47:switch(f=l.charCodeAt(N+1)){case 42:case 47:e:{for(k=N+1;k<z;++k)switch(l.charCodeAt(k)){case 47:if(42===f&&42===l.charCodeAt(k-1)&&N+2!==k){N=k+1;break e}break;case 10:if(47===f){N=k+1;break e}}N=k}}break;case 91:f++;case 40:f++;case 34:case 39:for(;N++<z&&l.charCodeAt(N)!==f;);}if(0===m)break;N++}if(m=l.substring(F,N),0===p&&(p=(H=H.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<U&&(H=H.replace(d,"")),f=H.charCodeAt(1)){case 100:case 109:case 115:case 45:U=r;break;default:U=P}if(F=(m=t(r,U,m,f,h+1)).length,0<L&&(x=s(3,m,U=n(P,H,j),r,O,A,F,f,h,c),H=U.join(""),void 0!==x&&0===(F=(m=x.trim()).length)&&(f=0,m="")),0<F)switch(f){case 115:H=H.replace(w,a);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(v,"$1 $2"))+"{"+m+"}",m=1===R||2===R&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===c&&(V+=m,m="")}else m=""}
vendor: 8,906 bytes, line 2
2else m=t(r,n(r,H,j),m,c,h+1);W+=m,m=j=U=k=p=0,H="",f=l.charCodeAt(++N);break;case 125:case 59:if(1<(F=(H=(0<U?H.replace(d,""):H).trim()).length))switch(0===k&&(p=H.charCodeAt(0),45===p||96<p&&123>p)&&(F=(H=H.replace(" ",":")).length),0<L&&void 0!==(x=s(1,H,r,e,O,A,V.length,c,h,c))&&0===(F=(H=x.trim()).length)&&(H="\0\0"),p=H.charCodeAt(0),f=H.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){G+=H+l.charAt(N);break}default:58!==H.charCodeAt(F-1)&&(V+=i(H,p,f,H.charCodeAt(2)))}j=U=k=p=0,H="",f=l.charCodeAt(++N)}}switch(f){case 13:case 10:47===E?E=0:0===1+p&&107!==c&&0<H.length&&(U=1,H+="\0"),0<L*D&&s(0,H,r,e,O,A,V.length,c,h,c),A=1,O++;break;case 59:case 125:if(0===E+M+S+_){A++;break}default:switch(A++,g=l.charAt(N),f){case 9:case 32:if(0===M+_+E)switch(T){case 44:case 58:case 9:case 32:g="";break;default:32!==f&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===M+E+_&&(U=j=1,g="\f"+g);break;case 108:if(0===M+E+_+C&&0<k)switch(N-k){case 2:112===T&&58===l.charCodeAt(N-3)&&(C=T);case 8:111===I&&(C=I)}break;case 58:0===M+E+_&&(k=N);break;case 44:0===E+S+M+_&&(U=1,g+="\r");break;case 34:case 39:0===E&&(M=M===f?0:0===M?f:M);break;case 91:0===M+E+S&&_++;break;case 93:0===M+E+S&&_--;break;case 41:0===M+E+_&&S--;break;case 40:if(0===M+E+_){if(0===p)if(2*T+3*I===533);else p=1;S++}break;case 64:0===E+S+M+_+k+m&&(m=1);break;case 42:case 47:if(!(0<M+_+S))switch(E){case 0:switch(2*f+3*l.charCodeAt(N+1)){case 235:E=47;break;case 220:F=N,E=42}break;case 42:47===f&&42===T&&F+2!==N&&(33===l.charCodeAt(F+2)&&(V+=l.substring(F,N+1)),g="",E=0)}}0===E&&(H+=g)}I=T,T=f,N++}if(0<(F=V.length)){if(U=r,0<L&&(void 0!==(x=s(2,V,U,e,O,A,F,c,h,c))&&0===(V=x).length))return G+V+W;if(V=U.join(",")+"{"+V+"}",0!==R*C){switch(2!==R||o(V,2)||(C=0),C){case 111:V=V.replace(b,":-moz-$1")+V;break;case 112:V=V.replace(y,"::-webkit-input-$1")+V.replace(y,"::-moz-$1")+V.replace(y,":-ms-input-$1")+V}C=0}}return G+V+W}function n(e,t,n){var i=t.trim().split(m);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===R||2===R&&o(l,1)?"-webkit-"+l+l:l}if(0===R||2===R&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(T,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return p.test(a)?a.replace(h,":-webkit-")+a.replace(h,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(x,"tb");break;case 232:l=a.replace(x,"tb-rl");break;case 220:l=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(E,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(E,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===M.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),k(2!==t?r:r.replace(S,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,l,u){for(var d,h=0,p=t;h<L;++h)switch(d=I[h].call(c,e,p,n,r,i,o,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(k=null,e?"function"!==typeof e?R=1:(R=2,k=e):R=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<L){var i=s(-1,n,r,r,O,A,0,0,0,0);void 0!==i&&"string"===typeof i&&(n=i)}var o=t(P,r,n,0,0);return 0<L&&(void 0!==(i=s(-2,o,r,r,O,A,o.length,0,0,0))&&(o=i)),"",C=0,A=O=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,h=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,E=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,M=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,A=1,O=1,C=0,R=1,P=[],I=[],L=0,k=null,D=0;return c.use=function e(t){switch(t){case void 0:case null:L=I.length=0;break;default:if("function"===typeof t)I[L++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else D=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():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},r.apply(this,arguments)}var i=n(0);var o=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,150 bytes, line 2
2,t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),a="-ms-",s="-moz-",l="-webkit-",c="comm",u="rule",d="decl",h="@keyframes",p=Math.abs,f=String.fromCharCode,m=Object.assign;function g(e,t){return 45^w(e,0)?(((t<<2^w(e,0))<<2^w(e,1))<<2^w(e,2))<<2^w(e,3):0}function v(e){return e.trim()}function y(e,t){return(e=t.exec(e))?e[0]:e}function b(e,t,n){return e.replace(t,n)}function x(e,t){return e.indexOf(t)}function w(e,t){return 0|e.charCodeAt(t)}function _(e,t,n){return e.slice(t,n)}function E(e){return e.length}function S(e){return e.length}function M(e,t){return t.push(e),e}function T(e,t){return e.map(t).join("")}var A=1,O=1,C=0,R=0,P=0,I="";function L(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:A,column:O,length:a,return:""}}function k(e,t){return m(L("",null,null,"",null,null,0),e,{length:-e.length},t)}function D(){return P=R<C?w(I,R++):0,O++,10===P&&(O=1,A++),P}function N(){return w(I,R)}function U(){return R}function j(e,t){return _(I,e,t)}function F(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function B(e){return A=O=1,C=E(I=e),R=0,[]}function z(e){return I="",e}function H(e){return v(j(R-1,G(91===e?e+2:40===e?e+1:e)))}function V(e){for(;(P=N())&&P<33;)D();return F(e)>2||F(P)>3?"":" "}function W(e,t){for(;--t&&D()&&!(P<48||P>102||P>57&&P<65||P>70&&P<97););return j(e,U()+(t<6&&32==N()&&32==D()))}function G(e){for(;D();)switch(P){case e:return R;case 34:case 39:34!==e&&39!==e&&G(P);break;case 40:41===e&&G(e);break;case 92:D()}return R}function q(e,t){for(;D()&&e+P!==57&&(e+P!==84||47!==N()););return"/*"+j(t,R-1)+"*"+f(47===e?e:D())}function X(e){for(;!F(N());)D();return j(e,R)}function Y(e){return z(Z("",null,null,null,[""],e=B(e),0,[0],e))}function Z(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,h=0,p=0,m=0,g=1,v=1,y=1,_=0,S="",T=i,C=o,L=r,k=S;v;)switch(m=_,_=D()){case 40:if(108!=m&&58==w(k,d-1)){-1!=x(k+=b(H(_),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=H(_);break;case 9:case 10:case 13:case 32:k+=V(m);break;case 92:k+=W(U()-1,7);continue;case 47:switch(N()){case 42:case 47:M($(q(D(),U()),t,n),l);break;default:k+="/"}break;case 123*g:s[c++]=E(k)*y;case 125*g:case 59:case 0:switch(_){case 0:case 125:v=0;case 59+u:-1==y&&(k=b(k,/\f/g,"")),p>0&&E(k)-d&&M(p>32?J(k+";",r,n,d-1):J(b(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(M(L=K(k,t,n,c,u,i,s,S,T=[],C=[],d),o),123===_)if(0===u)Z(k,t,L,L,T,o,d,s,C);else switch(99===h&&110===w(k,3)?100:h){case 100:case 108:case 109:case 115:Z(e,L,L,r&&M(K(e,L,L,0,0,i,s,S,i,T=[],d),C),i,C,d,s,r?T:C);break;default:Z(k,L,L,L,[""],C,0,s,C)}}c=u=p=0,g=y=1,S=k="",d=a;break;case 58:d=1+E(k),p=m;default:if(g<1)if(123==_)--g;else if(125==_&&0==g++&&125==(P=R>0?w(I,--R):0,O--,10===P&&(O=1,A--),P))continue;switch(k+=f(_),_*g){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(E(k)-1)*y,y=1;break;case 64:45===N()&&(k+=H(D())),h=N(),u=d=E(S=k+=X(U())),_++;break;case 45:45===m&&2==E(k)&&(g=0)}}return o}function K(e,t,n,r,i,o,a,s,l,c,d){for(var h=i-1,f=0===i?o:[""],m=S(f),g=0,y=0,x=0;g<r;++g)for(var w=0,E=_(e,h+1,h=p(y=a[g])),M=e;w<m;++w)(M=v(y>0?f[w]+" "+E:b(E,/&\f/g,f[w])))&&(l[x++]=M);return L(e,t,n,0===i?u:s,l,c,d)}function $(e,t,n){return L(e,t,n,c,f(P),_(e,2,-2),0)}function J(e,t,n,r){return L(e,t,n,d,_(e,0,r),_(e,r+1,-1),r)}function Q(e,t){for(var n="",r=S(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ee(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case d:return e.return=e.return||e.value;case c:return"";case h:return e.return=e.value+"{"+Q(e.children,r)+"}";case u:e.value=e.props.join(",")}return E(n=Q(e.children,r))?e.return=e.value+"{"+n+"}":""}var te=n(47),ne=function(e,t,n){for(var r=0,i=0;r=i,i=N(),38===r&&12===i&&(t[n]=1),!F(i);)D();return j(e,R)},re=function(e,t){return z(function(e,t){var n=-1,r=44;do{switch(F(r)){case 0:38===r&&12===N()&&(t[n]=1),e[n]+=ne(R-1,t,n);break;case 2:e[n]+=H(r);break;case 4:if(44===r){e[++n]=58===N()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=f(r)}}while(r=D());return e}(B(e),t))},ie=new WeakMap,oe=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ie.get(n))&&!r){ie.set(e,!0);for(var i=[],o=re(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},ae=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function se(e,t){switch(g(e,t)){case 5103:return l+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return l+e+e;
2case 5349:case 4246:case 4810:case 6968:case 2756:return l+e+s+e+a+e+e;case 6828:case 4268:return l+e+a+e+e;case 6165:return l+e+a+"flex-"+e+e;case 5187:return l+e+b(e,/(\w+).+(:[^]+)/,l+"box-$1$2"+a+"flex-$1$2")+e;case 5443:return l+e+a+"flex-item-"+b(e,/flex-|-self/,"")+e;case 4675:return l+e+a+"flex-line-pack"+b(e,/align-content|flex-|-self/,"")+e;case 5548:return l+e+a+b(e,"shrink","negative")+e;case 5292:return l+e+a+b(e,"basis","preferred-size")+e;case 6060:return l+"box-"+b(e,"-grow","")+l+e+a+b(e,"grow","positive")+e;case 4554:return l+b(e,/([^-])(transform)/g,"$1"+l+"$2")+e;case 6187:return b(b(b(e,/(zoom-|grab)/,l+"$1"),/(image-set)/,l+"$1"),e,"")+e;case 5495:case 3959:return b(e,/(image-set\([^]*)/,l+"$1$`$1");case 4968:return b(b(e,/(.+:)(flex-)?(.*)/,l+"box-pack:$3"+a+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+l+e+e;case 4095:case 3583:case 4068:case 2532:return b(e,/(.+)-inline(.+)/,l+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(E(e)-1-t>6)switch(w(e,t+1)){case 109:if(45!==w(e,t+4))break;case 102:return b(e,/(.+:)(.+)-([^]+)/,"$1"+l+"$2-$3$1"+s+(108==w(e,t+3)?"$3":"$2-$3"))+e;case 115:return~x(e,"stretch")?se(b(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==w(e,t+1))break;case 6444:switch(w(e,E(e)-3-(~x(e,"!important")&&10))){case 107:return b(e,":",":"+l)+e;case 101:return b(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+l+(45===w(e,14)?"inline-":"")+"box$3$1"+l+"$2$3$1"+a+"$2box$3")+e}break;case 5936:switch(w(e,t+11)){case 114:return l+e+a+b(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return l+e+a+b(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return l+e+a+b(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return l+e+a+e+e}return e}var le=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case d:e.return=se(e.value,e.length);break;case h:return Q([k(e,{value:b(e.value,"@","@"+l)})],r);case u:if(e.length)return T(e.props,(function(t){switch(y(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Q([k(e,{props:[b(t,/:(read-\w+)/,":"+s+"$1")]})],r);case"::placeholder":return Q([k(e,{props:[b(t,/:(plac\w+)/,":"+l+"input-$1")]}),k(e,{props:[b(t,/:(plac\w+)/,":"+s+"$1")]}),k(e,{props:[b(t,/:(plac\w+)/,a+"input-$1")]})],r)}return""}))}}],ce=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||le;var i,a,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d=[ee,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],h=function(e){var t=S(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([oe,ae].concat(r,d));a=function(e,t,n,r){c=n,Q(Y(e?e+"{"+t.styles+"}":t.styles),h),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new o({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return p.sheet.hydrate(l),p};n(39);function ue(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var de=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},he=function(e,t,n){de(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var pe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fe=/[A-Z]|^ms/g,me=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ge=function(e){return 45===e.charCodeAt(1)},ve=function(e){return null!=e&&"boolean"!==typeof e},ye=Object(te.a)((function(e){return ge(e)?e:e.replace(fe,"-$&").toLowerCase()})),be=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(me,(function(e,t,n){return we={name:t,styles:n,next:we},t}))}return 1===pe[e]||ge(e)||"number"!==typeof t||0===t?t:t+"px"};function xe(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return we={name:n.name,styles:n.styles,next:we},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)we={name:r.name,styles:r.styles,next:we},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=xe(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":ve(a)&&(r+=ye(o)+":"+be(o,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=xe(e,t,a);switch(o){case"animation":case"animationName":r+=ye(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)ve(a[l])&&(r+=ye(o)+":"+be(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=we,o=n(e);return we=i,xe(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var we,_e=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Ee=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";we=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=xe(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=xe(n,t,e[a]),r&&(i+=o[a]);_e.lastIndex=0;for(var s,l="";null!==(s=_e.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:we}},Se=!!i.useInsertionEffect&&i.useInsertionEffect,Me=Se||function(e){return e()},Te=(Se||i.useLayoutEffect,{}.hasOwnProperty),Ae=i.createContext("undefined"!==typeof HTMLElement?ce({key:"css"}):null);var Oe=Ae.Provider,Ce=function(e){return Object(i.forwardRef)((function(t,n){var r=Object(i.useContext)(Ae);return e(t,r,n)}))};var Re=i.createContext({});var Pe="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ie=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return de(t,n,r),Me((function(){return he(t,n,r)})),null};var Le=Ce((function(e,t,n){var r=e.css;"string"===typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Pe],a=[r],s="";"string"===typeof e.className?s=ue(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=Ee(a,void 0,i.useContext(Re));s+=t.key+"-"+l.name;var c={};for(var u in e)Te.call(e,u)&&"css"!==u&&u!==Pe&&(c[u]=e[u]);return c.ref=n,c.className=s,i.createElement(i.Fragment,null,i.createElement(Ie,{cache:t,serialized:l,isStringTag:"string"===typeof o}),i.createElement(o,c))})),ke=(n(251),function(e,t){var n=arguments;if(null==t||!Te.call(t,"css"))return i.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Le,o[1]=function(e,t){var n={};for(var r in t)Te.call(t,r)&&(n[r]=t[r]);return n[Pe]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return i.createElement.apply(null,o)});function De(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ee(t)}var Ne=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};var Ue=function(e){var t=e.cache,n=e.serializedArr;return Me((function(){for(var e=0;e<n.length;e++)he(t,n[e],!1)})),null},je=Ce((function(e,t){var n=[],r=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=Ee(r,t.registered);return n.push(o),de(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(e,t,n){var r=[],i=ue(e,r,n);return r.length<2?n:i+t(r)}(t.registered,r,Ne(n))},theme:i.useContext(Re)},a=e.children(o);return!0,i.createElement(i.Fragment,null,i.createElement(Ue,{cache:t,serializedArr:n}),a)}));var Fe=n(2);function Be(e,t){if(null==e)return{};var n,r,i=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,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ze(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 He(e,t){if(e){if("string"===typeof e)return ze(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)?ze(e,t):void 0}}function Ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}
2finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||He(e,t)||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 We(e){return We="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},We(e)}function Ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e){var t=function(e,t){if("object"!=We(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=We(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==We(t)?t:t+""}function Xe(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,qe(r.key),r)}}function Ye(e,t,n){return t&&Xe(e.prototype,t),n&&Xe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ze(e,t){return Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ze(e,t)}function Ke(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ze(e,t)}function $e(e,t,n){return(t=qe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Je=n(16);function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function et(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 tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach((function(t){Qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nt(e)}function rt(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function it(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nt(e);if(t){var i=nt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return rt(this,n)}}var ot=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],at=function(){};function st(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function lt(e,t,n){var r=[n];if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push("".concat(st(e,i)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var ct=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===We(e)&&null!==e?[e]:[];var t},ut=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,tt({},Be(e,ot))};function dt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ht(e){return dt(e)?window.pageYOffset:e.scrollTop}function pt(e,t){dt(e)?window.scrollTo(0,t):e.scrollTop=t}function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:at,i=ht(e),o=t-i,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,i,o,n);pt(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function mt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}
2var gt=!1,vt={get passive(){return gt=!0}},yt="undefined"!==typeof window?window:{};yt.addEventListener&&yt.removeEventListener&&(yt.addEventListener("p",at,vt),yt.removeEventListener("p",at,!1));var bt=gt;function xt(e){return null!=e}function wt(e,t,n){return e?t:n}function _t(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,h=n.getBoundingClientRect(),p=h.bottom,f=h.height,m=h.top,g=n.offsetParent.getBoundingClientRect().top,v=a?window.innerHeight:dt(u=l)?window.innerHeight:u.clientHeight,y=ht(l),b=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),w=g-x,_=v-m,E=w+y,S=d-y-m,M=p-v+y+b,T=y+m-x,A=160;switch(i){case"auto":case"bottom":if(_>=f)return{placement:"bottom",maxHeight:t};if(S>=f&&!a)return o&&ft(l,M,A),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&_>=r)return o&&ft(l,M,A),{placement:"bottom",maxHeight:a?_-b:S-b};if("auto"===i||a){var O=t,C=a?w:E;return C>=r&&(O=Math.min(C-b-s.controlHeight,t)),{placement:"top",maxHeight:O}}if("bottom"===i)return o&&pt(l,M),{placement:"bottom",maxHeight:t};break;case"top":if(w>=f)return{placement:"top",maxHeight:t};if(E>=f&&!a)return o&&ft(l,T,A),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&w>=r){var R=t;return(!a&&E>=r||a&&w>=r)&&(R=a?w-x:E-x),o&&ft(l,T,A),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var Et=function(e){return"auto"===e?"bottom":e},St=Object(i.createContext)({getPortalPlacement:null}),Mt=function(e){Ke(n,e);var t=it(n);function n(){var e;Ge(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={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,i=n.maxMenuHeight,o=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var c="fixed"===a,u=_t({maxHeight:i,menuEl:t,minHeight:r,placement:o,shouldScroll:s&&!c,isFixedPosition:c,theme:l}),d=e.context.getPortalPlacement;d&&d(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Et(t);return tt(tt({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Ye(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(i.Component);Mt.contextType=St;var Tt=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},At=Tt,Ot=Tt,Ct=function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,a=e.innerProps;return ke("div",r({css:o("noOptionsMessage",e),className:i({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};Ct.defaultProps={children:"No options"};var Rt=function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,a=e.innerProps;return ke("div",r({css:o("loadingMessage",e),className:i({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};Rt.defaultProps={children:"Loading..."};var Pt,It=function(e){Ke(n,e);var t=it(n);function n(){var e;Ge(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={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Et(e.props.menuPlacement)&&e.setState({placement:n})},e}return Ye(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,i=e.className,o=e.controlElement,a=e.cx,s=e.innerProps,l=e.menuPlacement,c=e.menuPosition,u=e.getStyles,d="fixed"===c;if(!t&&!d||!o)return null;var h=this.state.placement||Et(l),p=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),f=d?0:window.pageYOffset,m=p[h]+f,g=ke("div",r({css:u("menuPortal",{offset:m,position:c,rect:p}),className:a({"menu-portal":!0},i)},s),n);return ke(St.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?Object(Je.createPortal)(g,t):g)}}]),n}(i.Component),Lt=["size"];var kt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Dt=function(e){var t=e.size,n=Be(e,Lt);return ke("svg",r({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:kt},n))},Nt=function(e){return ke(Dt,r({size:20},e),ke("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ut=function(e){return ke(Dt,r({size:20},e),ke("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},jt=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorContainer",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?i.neutral80:i.neutral40}}},Ft=jt,Bt=jt,zt=function(){var e=De.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Pt||(Pt=Object(Fe.a)(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),Ht=function(e){var t=e.delay,n=e.offset;return ke("span",{css:De({animation:"".concat(zt," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Vt=function(e){var t=e.className,n=e.cx,i=e.getStyles,o=e.innerProps,a=e.isRtl;return ke("div",r({css:i("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),ke(Ht,{delay:0,offset:a}),ke(Ht,{delay:160,offset:!0}),ke(Ht,{delay:320,offset:!a}))};Vt.defaultProps={size:4};var Wt=["data"],Gt=["innerRef","isDisabled","isHidden","inputClassName"],qt={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Xt={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":tt({content:'attr(data-value) " "',visibility:"hidden",
2whiteSpace:"pre"},qt)},Yt=function(e){return tt({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},qt)},Zt=function(e){var t=e.children,n=e.innerProps;return ke("div",n,t)};var Kt={ClearIndicator:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,a=e.innerProps;return ke("div",r({css:o("clearIndicator",e),className:i({indicator:!0,"clear-indicator":!0},n)},a),t||ke(Nt,null))},Control:function(e){var t=e.children,n=e.cx,i=e.getStyles,o=e.className,a=e.isDisabled,s=e.isFocused,l=e.innerRef,c=e.innerProps,u=e.menuIsOpen;return ke("div",r({ref:l,css:i("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":u},o)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,a=e.innerProps;return ke("div",r({css:o("dropdownIndicator",e),className:i({indicator:!0,"dropdown-indicator":!0},n)},a),t||ke(Ut,null))},DownChevron:Ut,CrossIcon:Nt,Group:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,a=e.Heading,s=e.headingProps,l=e.innerProps,c=e.label,u=e.theme,d=e.selectProps;return ke("div",r({css:o("group",e),className:i({group:!0},n)},l),ke(a,r({},s,{selectProps:d,theme:u,getStyles:o,cx:i}),c),ke("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,i=e.className,o=ut(e);o.data;var a=Be(o,Wt);return ke("div",r({css:t("groupHeading",e),className:n({"group-heading":!0},i)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,i=e.cx,o=e.innerProps,a=e.getStyles;return ke("div",r({css:a("indicatorsContainer",e),className:i({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return ke("span",r({},o,{css:i("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,i=e.getStyles,o=e.value,a=ut(e),s=a.innerRef,l=a.isDisabled,c=a.isHidden,u=a.inputClassName,d=Be(a,Gt);return ke("div",{className:n({"input-container":!0},t),css:i("input",e),"data-value":o||""},ke("input",r({className:n({input:!0},u),ref:s,style:Yt(c),disabled:l},d)))},LoadingIndicator:Vt,Menu:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,a=e.innerRef,s=e.innerProps;return ke("div",r({css:o("menu",e),className:i({menu:!0},n),ref:a},s),t)},MenuList:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,a=e.innerProps,s=e.innerRef,l=e.isMulti;return ke("div",r({css:o("menuList",e),className:i({"menu-list":!0,"menu-list--is-multi":l},n),ref:s},a),t)},MenuPortal:It,LoadingMessage:Rt,NoOptionsMessage:Ct,MultiValue:function(e){var t=e.children,n=e.className,r=e.components,i=e.cx,o=e.data,a=e.getStyles,s=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,d=r.Container,h=r.Label,p=r.Remove;return ke(je,null,(function(r){var f=r.css,m=r.cx;return ke(d,{data:o,innerProps:tt({className:m(f(a("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":l},n))},s),selectProps:u},ke(h,{data:o,innerProps:{className:m(f(a("multiValueLabel",e)),i({"multi-value__label":!0},n))},selectProps:u},t),ke(p,{data:o,innerProps:tt({className:m(f(a("multiValueRemove",e)),i({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},c),selectProps:u}))}))},MultiValueContainer:Zt,MultiValueLabel:Zt,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ke("div",r({role:"button"},n),t||ke(Nt,{size:14}))},Option:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,a=e.isDisabled,s=e.isFocused,l=e.isSelected,c=e.innerRef,u=e.innerProps;return ke("div",r({css:o("option",e),className:i({option:!0,"option--is-disabled":a,"option--is-focused":s,"option--is-selected":l},n),ref:c,"aria-disabled":a},u),t)},Placeholder:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,a=e.innerProps;return ke("div",r({css:o("placeholder",e),className:i({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,a=e.innerProps,s=e.isDisabled,l=e.isRtl;return ke("div",r({css:o("container",e),className:i({"--is-disabled":s,"--is-rtl":l},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,a=e.isDisabled,s=e.innerProps;return ke("div",r({css:o("singleValue",e),className:i({"single-value":!0,"single-value--is-disabled":a},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,i=e.cx,o=e.innerProps,a=e.isMulti,s=e.getStyles,l=e.hasValue;return ke("div",r({css:s("valueContainer",e),className:i({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":l},n)},o),t)}},$t=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Jt(e){return function(e){if(Array.isArray(e))return ze(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||He(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 Qt=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function en(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],i=t[n],!(r===i||Qt(r)&&Qt(i)))return!1;var r,i;return!0}var tn=function(e,t){var n;void 0===t&&(t=en);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}};for(var nn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},rn=function(e){return ke("span",r({css:nn},e))},on={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;
2switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(c(a,n),".");if("menu"===t){var u=s?" disabled":"",d="".concat(l?"selected":"focused").concat(u);return"option ".concat(o," ").concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},an=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,u=l.ariaLiveMessages,d=l.getOptionLabel,h=l.inputValue,p=l.isMulti,f=l.isOptionDisabled,m=l.isSearchable,g=l.menuIsOpen,v=l.options,y=l.screenReaderStatus,b=l.tabSelectsValue,x=l["aria-label"],w=l["aria-live"],_=Object(i.useMemo)((function(){return tt(tt({},on),u||{})}),[u]),E=Object(i.useMemo)((function(){var e,n="";if(t&&_.onChange){var r=t.option,i=t.options,o=t.removedValue,a=t.removedValues,l=t.value,c=o||r||(e=l,Array.isArray(e)?null:e),u=c?d(c):"",h=i||a||void 0,p=h?h.map(d):[],m=tt({isDisabled:c&&f(c,s),label:u,labels:p},t);n=_.onChange(m)}return n}),[t,_,f,s,d]),S=Object(i.useMemo)((function(){var e="",t=n||r,i=!!(n&&s&&s.includes(n));if(t&&_.onFocus){var o={focused:t,label:d(t),isDisabled:f(t,s),isSelected:i,options:v,context:t===n?"menu":"value",selectValue:s};e=_.onFocus(o)}return e}),[n,r,d,f,_,v,s]),M=Object(i.useMemo)((function(){var e="";if(g&&v.length&&_.onFilter){var t=y({count:o.length});e=_.onFilter({inputValue:h,resultsMessage:t})}return e}),[o,h,g,_,v,y]),T=Object(i.useMemo)((function(){var e="";if(_.guidance){var t=r?"value":g?"menu":"input";e=_.guidance({"aria-label":x,context:t,isDisabled:n&&f(n,s),isMulti:p,isSearchable:m,tabSelectsValue:b})}return e}),[x,n,r,p,f,m,g,_,s,b]),A="".concat(S," ").concat(M," ").concat(T),O=ke(i.Fragment,null,ke("span",{id:"aria-selection"},E),ke("span",{id:"aria-context"},A)),C="initial-input-focus"===(null===t||void 0===t?void 0:t.action);return ke(i.Fragment,null,ke(rn,{id:c},C&&O),ke(rn,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&!C&&O))},sn=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"}
2,{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],ln=new RegExp("["+sn.map((function(e){return e.letters})).join("")+"]","g"),cn={},un=0;un<sn.length;un++)for(var dn=sn[un],hn=0;hn<dn.letters.length;hn++)cn[dn.letters[hn]]=dn.base;var pn=function(e){return e.replace(ln,(function(e){return cn[e]}))},fn=tn(pn),mn=function(e){return e.replace(/^\s+|\s+$/g,"")},gn=function(e){return"".concat(e.label," ").concat(e.value)},vn=["innerRef"];function yn(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter((function(e){var t=Ve(e,1)[0];return!n.includes(t)})).reduce((function(e,t){var n=Ve(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})}(Be(e,vn),"onExited","in","enter","exit","appear");return ke("input",r({ref:t},n,{css:De({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var bn=function(e){e.preventDefault(),e.stopPropagation()};var xn=["boxSizing","height","overflow","paddingRight","position"],wn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function _n(e){e.preventDefault()}function En(e){e.stopPropagation()}function Sn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Mn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Tn=!("undefined"===typeof window||!window.document||!window.document.createElement),An=0,On={capture:!1,passive:!1};var Cn=function(){return document.activeElement&&document.activeElement.blur()},Rn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Pn(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,s=Object(i.useRef)(!1),l=Object(i.useRef)(!1),c=Object(i.useRef)(0),u=Object(i.useRef)(null),d=Object(i.useCallback)((function(e,t){if(null!==u.current){var i=u.current,c=i.scrollTop,d=i.scrollHeight,h=i.clientHeight,p=u.current,f=t>0,m=d-h-c,g=!1;m>t&&s.current&&(r&&r(e),s.current=!1),f&&l.current&&(a&&a(e),l.current=!1),f&&t>m?(n&&!s.current&&n(e),p.scrollTop=d,g=!0,s.current=!0):!f&&-t>c&&(o&&!l.current&&o(e),p.scrollTop=0,g=!0,l.current=!0),g&&bn(e)}}),[n,r,o,a]),h=Object(i.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=Object(i.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),f=Object(i.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=Object(i.useCallback)((function(e){if(e){var t=!!bt&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",f,t)}}),[f,p,h]),g=Object(i.useCallback)((function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",f,!1))}),[f,p,h]);return Object(i.useEffect)((function(){if(t){var e=u.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=Object(i.useRef)({}),a=Object(i.useRef)(null),s=Object(i.useCallback)((function(e){if(Tn){var t=document.body,n=t&&t.style;if(r&&xn.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&An<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;
2Object.keys(wn).forEach((function(e){var t=wn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Mn()&&(t.addEventListener("touchmove",_n,On),e&&(e.addEventListener("touchstart",Sn,On),e.addEventListener("touchmove",En,On))),An+=1}}),[r]),l=Object(i.useCallback)((function(e){if(Tn){var t=document.body,n=t&&t.style;An=Math.max(An-1,0),r&&An<1&&xn.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Mn()&&(t.removeEventListener("touchmove",_n,On),e&&(e.removeEventListener("touchstart",Sn,On),e.removeEventListener("touchmove",En,On)))}}),[r]);return Object(i.useEffect)((function(){if(t){var e=a.current;return s(e),function(){l(e)}}}),[t,s,l]),function(e){a.current=e}}({isEnabled:n});return ke(i.Fragment,null,n&&ke("div",{onClick:Cn,css:Rn}),t((function(e){o(e),a(e)})))}var In={clearIndicator:Bt,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,i=r.colors,o=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?i.neutral5:i.neutral0,borderColor:t?i.neutral10:n?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?i.primary:i.neutral30}}},dropdownIndicator:Ft,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.value,r=e.theme,i=r.spacing,o=r.colors;return tt({margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80,transform:n?"translateZ(0)":""},Xt)},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,i=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Ot,menu:function(e){var t,n=e.placement,r=e.theme,i=r.borderRadius,o=r.spacing,a=r.colors;return $e(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),$e(t,"backgroundColor",a.neutral0),$e(t,"borderRadius",i),$e(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),$e(t,"marginBottom",o.menuGutter),$e(t,"marginTop",o.menuGutter),$e(t,"position","absolute"),$e(t,"width","100%"),$e(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,i=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,i=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?i.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},noOptionsMessage:At,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,i=e.theme,o=i.spacing,a=i.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",curs
2or:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,n=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var Ln,kn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Dn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:mt(),captureMenuScroll:!mt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=tt({ignoreCase:!0,ignoreAccents:!0,stringify:gn,trim:!0,matchFrom:"any"},Ln),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,s=n.matchFrom,l=a?mn(t):t,c=a?mn(o(e)):o(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=fn(l),c=pn(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function Nn(e,t,n,r){return{type:"option",data:t,isDisabled:Hn(e,t,n),isSelected:Vn(e,t,n),label:Bn(e,t),value:zn(e,t),index:r}}function Un(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return Nn(e,n,t,r)})).filter((function(t){return Fn(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Nn(e,n,t,r);return Fn(e,o)?o:void 0})).filter(xt)}function jn(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Jt(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Fn(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!Gn(e)||!o)&&Wn(e,{label:a,value:s,data:i},r)}var Bn=function(e,t){return e.getOptionLabel(t)},zn=function(e,t){return e.getOptionValue(t)};function Hn(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Vn(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=zn(e,t);return n.some((function(t){return zn(e,t)===r}))}function Wn(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Gn=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},qn=1,Xn=function(e){Ke(n,e);var t=it(n);function n(e){var r;return Ge(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focu
vendor: 14,585 bytes, line 2
2sedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,a=r.state.selectValue,s=i&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:o});i?r.setValue([].concat(Jt(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter((function(e){return r.getOptionValue(e)!==i})),a=wt(t,o,o[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(wt(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),o=wt(e,i,i[0]||null);r.onChange(o,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return lt.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Bn(r.props,e)},r.getOptionValue=function(e){return zn(r.props,e)},r.getStyles=function(e,t){var n=In[e](t);n.boxSizing="border-box";var i=r.props.styles[e];return i?i(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,tt(tt({},Kt),e.components);var e},r.buildCategorizedOptions=function(){return Un(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return jn(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:tt({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!r.props.isDisabled){var t=r.props,n=t.isMulti,i=t.menuIsOpen;r.focusInput(),i?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"===typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&dt(e.target)&&r.props.onMenuClose():"function"===typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-r.initialTouchX),o=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=i>5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Gn(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,h=t.openMenuOnFocus,p=r.state,f=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!l&&("function"!==typeof u||(u(e),!e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!i)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!f||h&&r.isOptionSelected(f,g))return;r.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(r.isComposing)return;r.selectOption(f);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!f)return;r.selectOption(f);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++qn),r.state.selectValue=ct(e.value),r}return Ye(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(!function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?pt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&pt(e,Math.max(t.offsetTop-i,0))}(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(kn):tt(tt({},kn),this.props.theme):kn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,i=this.selectOption,o=this.setValue,a=this.props,s=a.isMulti,l=a.isRtl,c=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:i,selectProps:a,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Hn(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Vn(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Wn(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,a=e.inputValue,s=e.tabIndex,l=e.form,c=e.menuIsOpen,u=this.getComponents().Input,d=this.state,h=d.inputIsHidden,p=d.ariaSelection,f=this.commonProps,m=o||this.getElementId("input"),g=tt(tt(tt({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===p||void 0===p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?i.createElement(u,r({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:a},g)):i.createElement(yn,r({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:at,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:l,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,a=t.MultiValueLabel,s=t.MultiValueRemove,l=t.SingleValue,c=t.Placeholder,u=this.commonProps,d=this.props,h=d.controlShouldRenderValue,p=d.isDisabled,f=d.isMulti,m=d.inputValue,g=d.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,x=v.isFocused;if(!this.hasValue()||!h)return m?null:i.createElement(c,r({},u,{key:"placeholder",isDisabled:p,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),g);if(f)return y.map((function(t,l){var c=t===b,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return i.createElement(n,r({},u,{components:{Container:o,Label:a,Remove:s},isFocused:c,isDisabled:p,key:d,index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var w=y[0];return i.createElement(l,r({},u,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().
2ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||a)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,r({},t,{innerProps:l,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,s=this.state.isFocused;if(!e||!a)return null;return i.createElement(e,r({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:s}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused;return i.createElement(n,r({},o,{isDisabled:a,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,r({},t,{innerProps:a,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,a=t.Menu,s=t.MenuList,l=t.MenuPortal,c=t.LoadingMessage,u=t.NoOptionsMessage,d=t.Option,h=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,g=f.inputValue,v=f.isLoading,y=f.loadingMessage,b=f.minMenuHeight,x=f.maxMenuHeight,w=f.menuIsOpen,_=f.menuPlacement,E=f.menuPosition,S=f.menuPortalTarget,M=f.menuShouldBlockScroll,T=f.menuShouldScrollIntoView,A=f.noOptionsMessage,O=f.onMenuScrollToTop,C=f.onMenuScrollToBottom;if(!w)return null;var R,P=function(t,n){var o=t.type,a=t.data,s=t.isDisabled,l=t.isSelected,c=t.label,u=t.value,f=p===a,m=s?void 0:function(){return e.onOptionHover(a)},g=s?void 0:function(){return e.selectOption(a)},v="".concat(e.getElementId("option"),"-").concat(n),y={id:v,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return i.createElement(d,r({},h,{innerProps:y,data:a,isDisabled:s,isSelected:l,key:v,label:c,type:o,value:u,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())R=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,s=t.options,l=t.index,c="".concat(e.getElementId("group"),"-").concat(l),u="".concat(c,"-heading");return i.createElement(n,r({},h,{key:c,data:a,options:s,Heading:o,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return P(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return P(t,"".concat(t.index))}));else if(v){var I=y({inputValue:g});if(null===I)return null;R=i.createElement(c,h,I)}else{var L=A({inputValue:g});if(null===L)return null;R=i.createElement(u,h,L)}var k={minMenuHeight:b,maxMenuHeight:x,menuPlacement:_,menuPosition:E,menuShouldScrollIntoView:T},D=i.createElement(Mt,r({},h,k),(function(t){var n=t.ref,o=t.placerProps,l=o.placement,c=o.maxHeight;return i.createElement(a,r({},h,k,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:v,placement:l}),i.createElement(Pn,{captureEnabled:m,onTopArrive:O,onBottomArrive:C,lockEnabled:M},(function(t){return i.createElement(s,r({},h,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:v,maxHeight:c,focusedOption:p}),R)})))}));return S||"fixed"===E?i.createElement(l,r({},h,{appendTo:S,controlElement:this.controlRef,menuPlacement:_,menuPosition:E}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,s=this.state.selectValue;if(a&&!r){if(o){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return i.createElement("input",{name:a,type:"hidden",value:l})}var c=s.length>0?s.map((function(t,n){return i.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):i.createElement("input",{name:a,type:"hidden"});return i.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return i.createElement("input",{name:a,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,a=t.focusedValue,s=t.isFocused,l=t.selectValue,c=this.getFocusableOptions();return i.createElement(an,r({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:a,isFocused:s,selectValue:l,focusableOptions:c}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.
2SelectContainer,a=e.ValueContainer,s=this.props,l=s.className,c=s.id,u=s.isDisabled,d=s.menuIsOpen,h=this.state.isFocused,p=this.commonProps=this.getCommonProps();return i.createElement(o,r({},p,{className:l,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:h}),this.renderLiveRegion(),i.createElement(t,r({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:h,menuIsOpen:d}),i.createElement(a,r({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),i.createElement(n,r({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=e.options,c=e.value,u=e.menuIsOpen,d=e.inputValue,h=e.isMulti,p=ct(c),f={};if(n&&(c!==n.value||l!==n.options||u!==n.menuIsOpen||d!==n.inputValue)){var m=u?function(e,t){return jn(Un(e,t))}(e,p):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,p):null,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);f={selectValue:p,focusedOption:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var y=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},b=o,x=a&&s;return a&&!x&&(b={value:wt(h,p,p[0]||null),options:p,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null===o||void 0===o?void 0:o.action)&&(b=null),tt(tt(tt({},f),y),{},{prevProps:e,ariaSelection:b,prevWasFocused:x})}}]),n}(i.Component);Xn.defaultProps=Dn;n(237),n(241),n(243),n(247),n(79),n(248);var Yn=Object(i.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,s=void 0===a?null:a,l=e.inputValue,c=e.menuIsOpen,u=e.onChange,d=e.onInputChange,h=e.onMenuClose,p=e.onMenuOpen,f=e.value,m=Be(e,$t),g=Ve(Object(i.useState)(void 0!==l?l:n),2),v=g[0],y=g[1],b=Ve(Object(i.useState)(void 0!==c?c:o),2),x=b[0],w=b[1],_=Ve(Object(i.useState)(void 0!==f?f:s),2),E=_[0],S=_[1],M=Object(i.useCallback)((function(e,t){"function"===typeof u&&u(e,t),S(e)}),[u]),T=Object(i.useCallback)((function(e,t){var n;"function"===typeof d&&(n=d(e,t)),y(void 0!==n?n:e)}),[d]),A=Object(i.useCallback)((function(){"function"===typeof p&&p(),w(!0)}),[p]),O=Object(i.useCallback)((function(){"function"===typeof h&&h(),w(!1)}),[h]),C=void 0!==l?l:v,R=void 0!==c?c:x,P=void 0!==f?f:E;return tt(tt({},m),{},{inputValue:C,menuIsOpen:R,onChange:M,onInputChange:T,onMenuClose:O,onMenuOpen:A,value:P})}(e);return i.createElement(Xn,r({ref:t},n))}));i.Component,t.a=Yn},function(e,t,n){"use strict";n(131),n(135),n(136),n(91),"undefined"===typeof Promise&&(n(149).enable(),self.Promise=n(151)),"undefined"!==typeof window&&n(152),Object.assign=n(55)},function(e,t,n){"use strict";var r=n(5),i=n(59),o=n(15).f,a=n(53).f,s=r.Symbol;if(i("dispose"),s){var l=a(s,"dispose");l.enumerable&&l.configurable&&l.writable&&o(s,"dispose",{value:l.value,enumerable:!1,configurable:!1,writable:!1})}},function(e,t,n){"use strict";var r=n(5);e.exports=r},function(e,t,n){"use strict";var r=n(9);t.f=r},function(e,t,n){"use strict";var r=n(11),i=n(8),o=n(13),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},function(e,t,n){"use strict";n(59)("observable")},function(e,t,n){"use strict";n(59)("patternMatch")},function(e,t,n){"use strict";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){"use strict";var r=n(49)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},function(e,t,n){"use strict";var r=n(10),i=n(88),o=n(15),a=n(14),s=n(42),l=n(93);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),i=l(t),c=i.length,u=0;c>u;)o.f(e,n=i[u++],r[n]);return e}},function(e,t,n){"use strict";var r=n(42),i=n(95),o=n(26),a=function(e){return function(t,n,a){var s=r(t),l=o(s);if(0===l)return!e&&-1;var c,u=i(a,l);if(e&&n!==n){for(;l>u;)if((c=s[u++])!==c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},function(e,t,n){"use strict";var r=n(5),i=n(8),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},function(e,t,n){"use strict";var r=n(31),i=n(7),o=n(101),a=n(102),s=n(14),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},function(e,t,n){"use strict";var r=n(6),i=n(8),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===u||n!==c&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},function(e,t,n){"use strict";var r=n(6);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";var r=n(7),i=n(32);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},function(e,t,n){"use strict";var r=n(148),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},function(e,t,n){"use strict";var r=n(13);e.exports=function(e){return r(e)||null===e}},function(e,t,n){"use strict";var r=n(105),i=[ReferenceError,TypeError,RangeError],o=!1;function a(){o=!1,r._B=null,r._C=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,l={};function c(t){(e.allRejections||s(l[t].error,e.whitelist||i))&&(l[t].displayId=n++,e.onUnhandled?(l[t].logged=!0,e.onUnhandled(l[t].displayId,l[t].error)):(l[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)}))}(l[t].displayId,l[t].error)))}r._B=function(t){2===t._y&&l[t._E]&&(l[t._E].logged?function(t){l[t].logged&&(e.onHandled?e.onHandled(l[t].displayId,l[t].error):l[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+l[t].displayId+"):"),console.warn('  This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+l[t].displayId+".")))}(t._E):clearTimeout(l[t._E].timeout),delete l[t._E])},r._C=function(e,n){0===e._x&&(e._E=t++,l[e._E]={displayId:null,error:n,timeout:setTimeout(c.bind(null,e._E),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;function a(){for(;o<i.length;){var e=o;if(o+=1,i[e].call(),o>1024){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 s="undefined"!==typeof t?t:self,l=s.MutationObserver||s.WebKitMutationObserver;function c(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}r="function"===typeof l?function(e){var t=1,n=new l(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}
2),function(){t=-t,r.data=t}}(a):c(a),n.requestFlush=r,n.makeRequestCallFromTimer=c}).call(this,n(28))},function(e,t,n){"use strict";var r=n(105);e.exports=r;var i=u(!0),o=u(!1),a=u(null),s=u(void 0),l=u(0),c=u("");function u(e){var t=new r(r._D);return t._y=1,t._z=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 l;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(n){return new r((function(e,t){t(n)}))}return u(e)};var d=function(e){return"function"===typeof Array.from?(d=Array.from,Array.from(e)):(d=function(e){return Array.prototype.slice.call(e)},Array.prototype.slice.call(e))};function h(e){return{status:"fulfilled",value:e}}function p(e){return{status:"rejected",reason:e}}function f(e){if(e&&("object"===typeof e||"function"===typeof e)){if(e instanceof r&&e.then===r.prototype.then)return e.then(h,p);var t=e.then;if("function"===typeof t)return new r(t.bind(e)).then(h,p)}return h(e)}function m(e){if("function"===typeof AggregateError)return new AggregateError(e,"All promises were rejected");var t=new Error("All promises were rejected");return t.name="AggregateError",t.errors=e,t}r.all=function(e){var t=d(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._y;)s=s._z;return 1===s._y?o(a,s._z):(2===s._y&&n(s._z),void s.then((function(e){o(a,e)}),n))}var l=s.then;if("function"===typeof l)return void new r(l.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])}
2))},r.allSettled=function(e){return r.all(d(e).map(f))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){d(e).forEach((function(e){r.resolve(e).then(t,n)}))}))},r.prototype.catch=function(e){return this.then(null,e)},r.any=function(e){return new r((function(t,n){var i=d(e),o=!1,a=[];function s(e){o||(o=!0,t(e))}function l(e){a.push(e),a.length===i.length&&n(m(a))}0===i.length?n(m(a)):i.forEach((function(e){r.resolve(e).then(s,l)}))}))}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Headers",(function(){return u})),n.d(t,"Request",(function(){return v})),n.d(t,"Response",(function(){return x})),n.d(t,"DOMException",(function(){return _})),n.d(t,"fetch",(function(){return E}));var r="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof self&&self||"undefined"!==typeof e&&e||{},i={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!==typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function p(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:i.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():i.arrayBuffer&&i.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var e=d(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(){if(this._bodyArrayBuffer){var e=d(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i.blob)return this.blob().then(p);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=h(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8";return t.readAsText(e,i),n}(this._bodyBlob);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)},i.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(e,t){e=s(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[s(e)]},u.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},u.prototype.set=function(e,t){this.map[s(e)]=l(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),c(e)},u.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),c(e)},u.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),c(e)},i.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var g=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(e,t){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object c
2onstructor cannot be called as a function.');var n=(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 u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=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 u(t.headers)),this.method=function(e){var t=e.toUpperCase();return g.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function y(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 b(e){var t=new u;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(o){console.warn("Response "+o.message)}}})),t}function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},m.call(v.prototype),m.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var w=[301,302,303,307,308];x.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})};var _=r.DOMException;try{new _}catch(S){(_=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),_.prototype.constructor=_}function E(e,t){return new Promise((function(n,o){var a=new v(e,t);if(a.signal&&a.signal.aborted)return o(new _("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}if(c.onload=function(){var e={statusText:c.statusText,headers:b(c.getAllResponseHeaders()||"")};0===a.url.indexOf("file://")&&(c.status<200||c.status>599)?e.status=200:e.status=c.status,e.url="responseURL"in c?c.responseURL:e.headers.get("X-Request-URL");var t="response"in c?c.response:c.responseText;setTimeout((function(){n(new x(t,e))}),0)},c.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request timed out"))}),0)},c.onabort=function(){setTimeout((function(){o(new _("Aborted","AbortError"))}),0)},c.open(a.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?c.withCredentials=!0:"omit"===a.credentials&&(c.withCredentials=!1),"responseType"in c&&(i.blob?c.responseType="blob":i.arrayBuffer&&(c.responseType="arraybuffer")),t&&"object"===typeof t.headers&&!(t.headers instanceof u||r.Headers&&t.headers instanceof r.Headers)){var h=[];
2Object.getOwnPropertyNames(t.headers).forEach((function(e){h.push(s(e)),c.setRequestHeader(e,l(t.headers[e]))})),a.headers.forEach((function(e,t){-1===h.indexOf(t)&&c.setRequestHeader(t,e)}))}else a.headers.forEach((function(e,t){c.setRequestHeader(t,e)}));a.signal&&(a.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&a.signal.removeEventListener("abort",d)}),c.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,r.fetch||(r.fetch=E,r.Headers=u,r.Request=v,r.Response=x)}.call(this,n(28))},function(e,t,n){"use strict";n(154),n(155),n(156),n(162),n(163),n(172),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(91),n(205),n(212),n(222),n(223)},function(e,t,n){"use strict";n(67)("flat")},function(e,t,n){"use strict";n(67)("flatMap")},function(e,t,n){"use strict";var r=n(19),i=n(29),o=n(157),a=n(6),s=n(31),l=n(8),c=n(158),u=n(160),d=n(20),h=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){h.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n=l(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!i&&l(o)){var p=s("Promise").prototype.finally;h.finally!==p&&d(h,"finally",p,{unsafe:!0})}},function(e,t,n){"use strict";var r=n(5);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(14),i=n(106),o=n(41),a=n(9)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||o(n=r(s)[a])?t:i(n)}},function(e,t,n){"use strict";var r={};r[n(9)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(14),i=n(13),o=n(161);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(32),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var r=n(5),i=n(10),o=n(27),a=n(107),s=n(6),l=r.RegExp,c=l.prototype;i&&s((function(){var e=!0;try{l(".","d")}catch(s){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==r||n!==r}))&&o(c,"flags",{configurable:!0,get:a})},function(e,t,n){"use strict";var r=n(74),i=n(11),o=n(7),a=n(164),s=n(6),l=n(14),c=n(8),u=n(41),d=n(25),h=n(43),p=n(37),f=n(40),m=n(169),g=n(51),v=n(170),y=n(171),b=n(9)("replace"),x=Math.max,w=Math.min,_=o([].concat),E=o([].push),S=o("".indexOf),M=o("".slice),T="$0"==="a".replace(/./,"$0"),A=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,n){var o=A?"$":"$0";return[function(e,n){var r=f(this),o=u(e)?void 0:g(e,b);return o?i(o,e,r,n):i(t,p(r),e,n)},function(e,i){var a=l(this),s=p(e);if("string"==typeof i&&-1===S(i,o)&&-1===S(i,"$<")){var u=n(t,a,s,i);if(u.done)return u.value}var f=c(i);f||(i=p(i));var g,b=a.global;b&&(g=a.unicode,a.lastIndex=0);for(var T,A=[];null!==(T=y(a,s))&&(E(A,T),b);){""===p(T[0])&&(a.lastIndex=m(s,h(a.lastIndex),g))}for(var O,C="",R=0,P=0;P<A.length;P++){for(var I,L=p((T=A[P])[0]),k=x(w(d(T.index),s.length),0),D=[],N=1;N<T.length;N++)E(D,void 0===(O=T[N])?O:String(O));var U=T.groups;if(f){var j=_([L],D,k,s);void 0!==U&&E(j,U),I=p(r(i,void 0,j))}else I=v(L,s,k,D,U,i);k>=R&&(C+=M(s,R,k)+I,R=k+L.length)}return C+M(s,R)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!T||A)},function(e,t,n){"use strict";n(165);var r=n(11),i=n(20),o=n(75),a=n(6),s=n(9),l=n(22),c=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,d){var h=s(e),p=!a((function(){var t={};return t[h]=function(){return 7},7!==""[e](t)})),f=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={}
vendor: 4,254 bytes, line 2
2,n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!p||!f||n){var m=/./[h],g=t(h,""[e],(function(e,t,n,i,a){var s=t.exec;return s===o||s===u.exec?p&&!a?{done:!0,value:r(m,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}}));i(String.prototype,e,g[0]),i(u,h,g[1])}d&&l(u[h],"sham",!0)}},function(e,t,n){"use strict";var r=n(19),i=n(75);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,n){"use strict";var r=n(6),i=n(5).RegExp,o=r((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},function(e,t,n){"use strict";var r=n(6),i=n(5).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},function(e,t,n){"use strict";var r=n(6),i=n(5).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},function(e,t,n){"use strict";var r=n(76).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(7),i=n(17),o=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var p=n+e.length,f=r.length,m=u;return void 0!==d&&(d=i(d),m=c),s(h,m,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,p);case"<":c=d[l(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>f){var h=o(u/10);return 0===h?i:h<=f?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):i}c=r[u-1]}return void 0===c?"":c}))}},function(e,t,n){"use strict";var r=n(11),i=n(14),o=n(8),a=n(34),s=n(75),l=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var c=r(n,e,t);return null!==c&&i(c),c}if("RegExp"===a(e))return r(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";n(21)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";var r=n(9)("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(s){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(s){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(s){}return n}},function(e,t,n){"use strict";var r=n(5),i=n(7),o=n(10),a=n(108),s=n(71),l=n(22),c=n(27),u=n(109),d=n(6),h=n(56),p=n(25),f=n(43),m=n(110),g=n(175),v=n(178),y=n(54),b=n(45),x=n(111),w=n(46),_=n(112),E=n(100),S=n(36),M=n(18),T=s.PROPER,A=s.CONFIGURABLE,O="ArrayBuffer",C="DataView",R="prototype",P="Wrong index",I=M.getterFor(O),L=M.getterFor(C),k=M.set,D=r[O],N=D,U=N&&N[R],j=r[C],F=j&&j[R],B=Object.prototype,z=r.Array,H=r.RangeError,V=i(x),W=i([].reverse),G=v.pack,q=v.unpack,X=function(e){return[255&e]},Y=function(e){return[255&e,e>>8&255]},Z=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},K=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},$=function(e){return G(g(e),23,4)},J=function(e){return G(e,52,8)},Q=function(e,t,n){c(e[R],t,{configurable:!0,get:function(){return n(this)[t]}})},ee=function(e,t,n,r){var i=L(e),o=m(n),a=!!r;if(o+t>i.byteLength)throw new H(P);var s=i.bytes,l=o+i.byteOffset,c=w(s,l,l+t);return a?c:W(c)},te=function(e,t,n,r,i,o){var a=L(e),s=m(n),l=r(+i),c=!!o;if(s+t>a.byteLength)throw new H(P);for(var u=a.bytes,d=s+a.byteOffset,h=0;h<t;h++)u[d+h]=l[c?h:t-h-1]};if(a){var ne=T&&D.name!==O;d((function(){D(1)}))&&d((function(){new D(-1)}))&&!d((function(){return new D,new D(1.5),new D(NaN),1!==D.length||ne&&!A}))?ne&&A&&l(D,"name",O):((N=function(e){return h(this,U),_(new D(m(e)),this,N)})[R]=U,U.constructor=N,E(N,D)),b&&y(F)!==B&&b(F,B);var re=new j(new N(2)),ie=i(F.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||u(F,{setInt8:function(e,t){ie(this,e,t<<24>>24)},setUint8:function(e,t){ie(this,e,t<<24>>24)}},{unsafe:!0})}else U=(N=function(e){h(this,U);var t=m(e);k(this,{type:O,bytes:V(z(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)}
2)[R],F=(j=function(e,t,n){h(this,F),h(e,U);var r=I(e),i=r.byteLength,a=p(t);if(a<0||a>i)throw new H("Wrong offset");if(a+(n=void 0===n?i-a:f(n))>i)throw new H("Wrong length");k(this,{type:C,buffer:e,byteLength:n,byteOffset:a,bytes:r.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)})[R],o&&(Q(N,"byteLength",I),Q(j,"buffer",L),Q(j,"byteLength",L),Q(j,"byteOffset",L)),u(F,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return K(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return K(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return q(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return q(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,X,t)},setUint8:function(e,t){te(this,1,e,X,t)},setInt16:function(e,t){te(this,2,e,Y,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,Y,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,Z,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,Z,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,$,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,J,t,arguments.length>2&&arguments[2])}});S(N,O),S(j,C),e.exports={ArrayBuffer:N,DataView:j}},function(e,t,n){"use strict";var r=n(176);e.exports=Math.fround||function(e){return r(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},function(e,t,n){"use strict";var r=n(177),i=Math.abs,o=2220446049250313e-31,a=1/o;e.exports=function(e,t,n,s){var l=+e,c=i(l),u=r(l);if(c<s)return u*function(e){return e+a-a}(c/s/t)*s*t;var d=(1+t/o)*c,h=d-(d-c);return h>n||h!==h?u*(1/0):u*h}},function(e,t,n){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!==t?t:t<0?-1:1}},function(e,t,n){"use strict";var r=Array,i=Math.abs,o=Math.pow,a=Math.floor,s=Math.log,l=Math.LN2;e.exports={pack:function(e,t,n){var c,u,d,h=r(n),p=8*n-t-1,f=(1<<p)-1,m=f>>1,g=23===t?o(2,-24)-o(2,-77):0,v=e<0||0===e&&1/e<0?1:0,y=0;for((e=i(e))!==e||e===1/0?(u=e!==e?1:0,c=f):(c=a(s(e)/l),e*(d=o(2,-c))<1&&(c--,d*=2),(e+=c+m>=1?g/d:g*o(2,1-m))*d>=2&&(c++,d/=2),c+m>=f?(u=0,c=f):c+m>=1?(u=(e*d-1)*o(2,t),c+=m):(u=e*o(2,m-1)*o(2,t),c=0));t>=8;)h[y++]=255&u,u/=256,t-=8;for(c=c<<t|u,p+=t;p>0;)h[y++]=255&c,c/=256,p-=8;return h[--y]|=128*v,h},unpack:function(e,t){var n,r=e.length,i=8*r-t-1,a=(1<<i)-1,s=a>>1,l=i-7,c=r-1,u=e[c--],d=127&u;for(u>>=7;l>0;)d=256*d+e[c--],l-=8;for(n=d&(1<<-l)-1,d>>=-l,l+=t;l>0;)n=256*n+e[c--],l-=8;if(0===d)d=1-s;else{if(d===a)return n?NaN:u?-1/0:1/0;n+=o(2,t),d-=s}return(u?-1:1)*n*o(2,d-t)}}},function(e,t,n){"use strict";var r=n(13),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){"use strict";var r=n(25),i=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new i("The argument can't be less than 0");return t}},function(e,t,n){"use strict";var r=Math.round;e.exports=function(e){var t=r(e);return t<0?0:t>255?255:255&t}},function(e,t,n){"use strict";var r=n(23);e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},function(e,t,n){"use strict";var r=n(38),i=n(7),o=n(66),a=n(17),s=n(26),l=n(184),c=i([].push),u=function(e){var t=1===e,n=2===e,i=3===e,u=4===e,d=6===e,h=7===e,p=5===e||d;return function(f,m,g,v){for(var y,b,x=a(f),w=o(x),_=s(w),E=r(m,g),S=0,M=v||l,T=t?M(f,_):n||h?M(f,0):void 0;_>S;S++)if((p||S in w)&&(b=E(y=w[S],S,x),e))if(t)T[S]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:c(T,y)}else switch(e){case 4:return!1;case 7:c(T,y)}return d?-1:i||u?u:T}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},function(e,t,n){"use strict";var r=n(185);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){"use strict";var r=n(186),i=n(73),o=n(13),a=n(9)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===s||r(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},function(e,t,n){"use strict";var r=n(34);e.exports=Array.isArray||function(e){return"Array"===r(e)}},function(e,t,n){"use strict";var r=n(31),i=n(27),o=n(9),a=n(10),s=o("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(26);e.exports=function(e,t,n){for(var i=0,o=arguments.length>2?n:r(t),a=new e(o);o>i;)a[i]=t[i++];return a}},function(e,t,n){"use strict";n(21)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(21)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(21)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(21)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(21)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(21)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},function(e,t,n){"use strict";n(21)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(21)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";var r=n(24),i=n(111),o=n(117),a=n(23),s=n(11),l=n(7),c=n(6),u=r.aTypedArray,d=r.exportTypedArrayMethod,h=l("".slice);d("fill",(function(e){var t=arguments.length;u(this);var n="Big"===h(a(this),0,3)?o(e):+e;return s(i,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},function(e,t,n){"use strict";var r=n(77);(0,n(24).exportTypedArrayStaticMethod)("from",n(114),r)},function(e,t,n){"use strict";var r=n(24),i=n(77),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(5),i=n(11),o=n(24),a=n(26),s=n(113),l=n(17),c=n(6),u=r.RangeError,d=r.Int8Array,h=d&&d.prototype,p=h&&h.set,f=o.aTypedArray,m=o.exportTypedArrayMethod,g=!c((function(){var e=new Uint8ClampedArray(2);return i(p,e,{length:1,0:3},1),3!==e[1]})),v=g&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){f(this);var t=s(arguments.length>
21?arguments[1]:void 0,1),n=l(e);if(g)return i(p,this,n,t);var r=this.length,o=a(n),c=0;if(o+t>r)throw new u("Wrong length");for(;c<o;)this[t+c]=n[c++]}),!g||v)},function(e,t,n){"use strict";var r=n(5),i=n(115),o=n(6),a=n(32),s=n(118),l=n(24),c=n(202),u=n(203),d=n(85),h=n(204),p=l.aTypedArray,f=l.exportTypedArrayMethod,m=r.Uint16Array,g=m&&i(m.prototype.sort),v=!!g&&!(o((function(){g(new m(2),null)}))&&o((function(){g(new m(2),{})}))),y=!!g&&!o((function(){if(d)return d<74;if(c)return c<67;if(u)return!0;if(h)return h<602;var e,t,n=new m(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(g(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));f("sort",(function(e){return void 0!==e&&a(e),y?g(this,e):s(p(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!y||v)},function(e,t,n){"use strict";var r=n(30).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(30);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){"use strict";var r=n(30).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";n(206),n(209)},function(e,t,n){"use strict";var r=n(19),i=n(5),o=n(119).clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},function(e,t,n){"use strict";var r=n(30);
vendor: 5,720 bytes, line 2
2e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){"use strict";var r=n(5),i=n(34);e.exports="process"===i(r.process)},function(e,t,n){"use strict";var r=n(19),i=n(5),o=n(119).set,a=n(210),s=i.setImmediate?a(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},function(e,t,n){"use strict";var r=n(5),i=n(74),o=n(8),a=n(211),s=n(30),l=n(46),c=n(58),u=r.Function,d=/MSIE .\./.test(s)||a&&function(){var e=r.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}();e.exports=function(e,t){var n=t?2:1;return d?function(r,a){var s=c(arguments.length,1)>n,d=o(r)?r:u(r),h=s?l(arguments,n):[],p=s?function(){i(d,this,h)}:d;return t?e(p,a):e(p)}:e}},function(e,t,n){"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(e,t,n){"use strict";n(213)},function(e,t,n){"use strict";n(214);var r,i=n(19),o=n(10),a=n(120),s=n(5),l=n(38),c=n(7),u=n(20),d=n(27),h=n(56),p=n(12),f=n(215),m=n(216),g=n(46),v=n(76).codeAt,y=n(220),b=n(37),x=n(36),w=n(58),_=n(121),E=n(18),S=E.set,M=E.getterFor("URL"),T=_.URLSearchParams,A=_.getState,O=s.URL,C=s.TypeError,R=s.parseInt,P=Math.floor,I=Math.pow,L=c("".charAt),k=c(/./.exec),D=c([].join),N=c(1..toString),U=c([].pop),j=c([].push),F=c("".replace),B=c([].shift),z=c("".split),H=c("".slice),V=c("".toLowerCase),W=c([].unshift),G="Invalid scheme",q="Invalid host",X="Invalid port",Y=/[a-z]/i,Z=/[\d+-.a-z]/i,K=/\d/,$=/^0x/i,J=/^[0-7]+$/,Q=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,oe=/[\t\n\r]/g,ae=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)W(t,e%256),e=P(e/256);return D(t,".")}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+=N(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},se={},le=f({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=f({},le,{"#":1,"?":1,"{":1,"}":1}),ue=f({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),de=function(e,t){var n=v(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},he={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var n;return 2===e.length&&k(Y,L(e,0))&&(":"===(n=L(e,1))||!t&&"|"===n)},fe=function(e){var t;return e.length>1&&pe(H(e,0,2))&&(2===e.length||"/"===(t=L(e,2))||"\\"===t||"?"===t||"#"===t)},me=function(e){return"."===e||"%2e"===V(e)},ge={},ve={},ye={},be={},xe={},we={},_e={},Ee={},Se={},Me={},Te={},Ae={},Oe={},Ce={},Re={},Pe={},Ie={},Le={},ke={},De={},Ne={},Ue=function(e,t,n){var r,i,o,a=b(e);if(t){if(i=this.parse(a))throw new C(i);this.searchParams=null}else{if(void 0!==n&&(r=new Ue(n,!0)),i=this.parse(a,null,r))throw new C(i);(o=A(new T)).bindURL(this),this.searchParams=o}};Ue.prototype={type:"URL",parse:function(e,t,n){var i,o,a,s,l,c=this,u=t||ge,d=0,h="",f=!1,v=!1,y=!1;for(e=b(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=F(e,re,""),e=F(e,ie,"$1")),e=F(e,oe,""),i=m(e);d<=i.length;){switch(o=i[d],u){case ge:if(!o||!k(Y,o)){if(t)return G;u=ye;continue}h+=V(o),u=ve;break;case ve:if(o&&(k(Z,o)||"+"===o||"-"===o||"."===o))h+=V(o);else{if(":"!==o){if(t)return G;h="",u=ye,d=0;continue}if(t&&(c.isSpecial()!==p(he,h)||"file"===h&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=h,t)return void(c.isSpecial()&&he[c.scheme]===c.port&&(c.port=null));h="","file"===c.scheme?u=Ce:c.isSpecial()&&n&&n.scheme===c.scheme?u=be:c.isSpecial()?u=Ee:"/"===i[d+1]?(u=xe,d++):(c.cannotBeABaseURL=!0,j(c.path,""),u=ke)}break;case ye:if(!n||n.cannotBeABaseURL&&"#"!==o)return G;if(n.cannotBeABaseURL&&"#"===o){c.scheme=n.scheme,c.path=g(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=Ne;break}u="file"===n.scheme?Ce:we;continue;case be:if("/"!==o||"/"!==i[d+1]){u=we;continue}u=Se,d++;break;case xe:if("/"===o){u=Me;break}u=Le;continue;case we:if(c.scheme=n.scheme,o===r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query;else if("/"===o||"\\"===o&&c.isSpecial())u=_e;else if("?"===o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query="",u=De;else{if("#"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.path.length--,u=Le;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query,c.fragment="",u=Ne}break;case _e:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=Le;continue}u=Me}else u=Se;break;case Ee:if(u=Se,"/"!==o||"/"!==L(h,d+1))continue;d++;break;case Se:if("/"!==o&&"\\"!==o){u=Me;continue}break;case Me:if("@"===o){f&&(h="%40"+h),f=!0,a=m(h);for(var x=0;x<a.length;x++){var w=a[x];if(":"!==w||y){var _=de(w,ue);y?c.password+=_:c.username+=_}else y=!0}h=""}else if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(f&&""===h)return"Invalid authority";d-=m(h).length+1,h="",u=Te}else h+=o;break;case Te:case Ae:if(t&&"file"===c.scheme){u=Pe;continue}if(":"!==o||v){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(c.isSpecial()&&""===h)return q;if(t&&""===h&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(h))return s;if(h="",u=Ie,t)return;continue}"["===o?v=!0:"]"===o&&(v=!1),h+=o}else{if(""===h)return q;if(s=c.parseHost(h))return s;if(h="",u=Oe,t===Ae)return}break;
vendor: 5,230 bytes, line 2
2case Oe:if(!k(K,o)){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()||t){if(""!==h){var E=R(h,10);if(E>65535)return X;c.port=c.isSpecial()&&E===he[c.scheme]?null:E,h=""}if(t)return;u=Ie;continue}return X}h+=o;break;case Ce:if(c.scheme="file","/"===o||"\\"===o)u=Re;else{if(!n||"file"!==n.scheme){u=Le;continue}switch(o){case r:c.host=n.host,c.path=g(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=g(n.path),c.query="",u=De;break;case"#":c.host=n.host,c.path=g(n.path),c.query=n.query,c.fragment="",u=Ne;break;default:fe(D(g(i,d),""))||(c.host=n.host,c.path=g(n.path),c.shortenPath()),u=Le;continue}}break;case Re:if("/"===o||"\\"===o){u=Pe;break}n&&"file"===n.scheme&&!fe(D(g(i,d),""))&&(pe(n.path[0],!0)?j(c.path,n.path[0]):c.host=n.host),u=Le;continue;case Pe:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&pe(h))u=Le;else if(""===h){if(c.host="",t)return;u=Ie}else{if(s=c.parseHost(h))return s;if("localhost"===c.host&&(c.host=""),t)return;h="",u=Ie}continue}h+=o;break;case Ie:if(c.isSpecial()){if(u=Le,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==r&&(u=Le,"/"!==o))continue}else c.fragment="",u=Ne;else c.query="",u=De;break;case Le:if(o===r||"/"===o||"\\"===o&&c.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(l=V(l=h))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||j(c.path,"")):me(h)?"/"===o||"\\"===o&&c.isSpecial()||j(c.path,""):("file"===c.scheme&&!c.path.length&&pe(h)&&(c.host&&(c.host=""),h=L(h,0)+":"),j(c.path,h)),h="","file"===c.scheme&&(o===r||"?"===o||"#"===o))for(;c.path.length>1&&""===c.path[0];)B(c.path);"?"===o?(c.query="",u=De):"#"===o&&(c.fragment="",u=Ne)}else h+=de(o,ce);break;case ke:"?"===o?(c.query="",u=De):"#"===o?(c.fragment="",u=Ne):o!==r&&(c.path[0]+=de(o,se));break;case De:t||"#"!==o?o!==r&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":de(o,se)):(c.fragment="",u=Ne);break;case Ne:o!==r&&(c.fragment+=de(o,le))}d++}},parseHost:function(e){var t,n,r;if("["===L(e,0)){if("]"!==L(e,e.length-1))return q;if(t=function(e){var t,n,r,i,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,h=function(){return L(e,d)};if(":"===h()){if(":"!==L(e,1))return;d+=2,u=++c}for(;h();){if(8===c)return;if(":"!==h()){for(t=n=0;n<4&&k(ee,h());)t=16*t+R(h(),16),d++,n++;if("."===h()){if(0===n)return;if(d-=n,c>6)return;for(r=0;h();){if(i=null,r>0){if(!("."===h()&&r<4))return;d++}if(!k(K,h()))return;for(;k(K,h());){if(o=R(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}l[c]=256*l[c]+i,2!==++r&&4!==r||c++}if(4!==r)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;l[c++]=t}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(a=c-u,c=7;0!==c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!==c)return;return l}(H(e,1,-1)),!t)return q;this.host=t}else if(this.isSpecial()){if(e=y(e),k(te,e))return q;if(t=function(e){var t,n,r,i,o,a,s,l=z(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""===(i=l[r]))return e;if(o=10,i.length>1&&"0"===L(i,0)&&(o=k($,i)?16:8,i=H(i,8===o?1:2)),""===i)a=0;else{if(!k(10===o?Q:8===o?J:ee,i))return e;a=R(i,o)}j(n,a)}for(r=0;r<t;r++)if(a=n[r],r===t-1){if(a>=I(256,5-t))return null}else if(a>255)return null;for(s=U(n),r=0;r<n.length;r++)s+=n[r]*I(256,3-r);return s}(e),null===t)return q;this.host=t}else{if(k(ne,e))return q;for(t="",n=m(e),r=0;r<n.length;r++)t+=de(n[r],se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(he,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=ae(i),null!==o&&(c+=":"+o)):"file"===t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+D(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw new C(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new je(e.path[0]).origin}catch(n){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",ge)},getUsername:function(){return this.username},setUsername:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=de(t[n],ue)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=de(t[n],ue)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Te)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ae)},getPort:function(){var e=this.port;
vendor: 6,258 bytes, line 2
2return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=b(e))?this.port=null:this.parse(e,Oe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+D(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=b(e))?this.query=null:("?"===L(e,0)&&(e=H(e,1)),this.query="",this.parse(e,De)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=b(e))?("#"===L(e,0)&&(e=H(e,1)),this.fragment="",this.parse(e,Ne)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var je=function(e){var t=h(this,Fe),n=w(arguments.length,1)>1?arguments[1]:void 0,r=S(t,new Ue(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Fe=je.prototype,Be=function(e,t){return{get:function(){return M(this)[e]()},set:t&&function(e){return M(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(d(Fe,"href",Be("serialize","setHref")),d(Fe,"origin",Be("getOrigin")),d(Fe,"protocol",Be("getProtocol","setProtocol")),d(Fe,"username",Be("getUsername","setUsername")),d(Fe,"password",Be("getPassword","setPassword")),d(Fe,"host",Be("getHost","setHost")),d(Fe,"hostname",Be("getHostname","setHostname")),d(Fe,"port",Be("getPort","setPort")),d(Fe,"pathname",Be("getPathname","setPathname")),d(Fe,"search",Be("getSearch","setSearch")),d(Fe,"searchParams",Be("getSearchParams")),d(Fe,"hash",Be("getHash","setHash"))),u(Fe,"toJSON",(function(){return M(this).serialize()}),{enumerable:!0}),u(Fe,"toString",(function(){return M(this).serialize()}),{enumerable:!0}),O){var ze=O.createObjectURL,He=O.revokeObjectURL;ze&&u(je,"createObjectURL",l(ze,O)),He&&u(je,"revokeObjectURL",l(He,O))}x(je,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:je})},function(e,t,n){"use strict";var r=n(76).charAt,i=n(37),o=n(18),a=n(97),s=n(72),l="String Iterator",c=o.set,u=o.getterFor(l);a(String,"String",(function(e){c(this,{type:l,string:i(e),index:0})}),(function(){var e,t=u(this),n=t.string,i=t.index;return i>=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))}))},function(e,t,n){"use strict";var r=n(10),i=n(7),o=n(11),a=n(6),s=n(93),l=n(102),c=n(90),u=n(17),d=n(66),h=Object.assign,p=Object.defineProperty,f=i([].concat);e.exports=!h||a((function(){if(r&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==h({},e)[n]||s(h({},t)).join("")!==i}))?function(e,t){for(var n=u(e),i=arguments.length,a=1,h=l.f,p=c.f;i>a;)for(var m,g=d(arguments[a++]),v=h?f(s(g),h(g)):s(g),y=v.length,b=0;y>b;)m=v[b++],r&&!o(p,g,m)||(n[m]=g[m]);return n}:h},function(e,t,n){"use strict";var r=n(38),i=n(11),o=n(17),a=n(217),s=n(116),l=n(73),c=n(26),u=n(219),d=n(78),h=n(57),p=Array;e.exports=function(e){var t=o(e),n=l(this),f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m;g&&(m=r(m,f>2?arguments[2]:void 0));var v,y,b,x,w,_,E=h(t),S=0;if(!E||this===p&&s(E))for(v=c(t),y=n?new this(v):p(v);v>S;S++)_=g?m(t[S],S):t[S],u(y,S,_);else for(y=n?new this:[],w=(x=d(t,E)).next;!(b=i(w,x)).done;S++)_=g?a(x,m,[b.value,S],!0):b.value,u(y,S,_);return y.length=S,y}},function(e,t,n){"use strict";var r=n(14),i=n(218);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){i(e,"throw",a)}}},function(e,t,n){"use strict";var r=n(11),i=n(14),o=n(51);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(l){s=!0,a=l}if("throw"===t)throw n;if(s)throw a;return i(a),n}},function(e,t,n){"use strict";var r=n(10),i=n(15),o=n(33);e.exports=function(e,t,n){r?i.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){"use strict";var r=n(7),i=2147483647,o=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,c=r(a.exec),u=Math.floor,d=String.fromCharCode,h=r("".charCodeAt),p=r([].join),f=r([].push),m=r("".replace),g=r("".split),v=r("".toLowerCase),y=function(e){return e+22+75*(e<26)},b=function(e,t,n){var r=0;for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;)e=u(e/35),r+=36;return u(r+36*e/(e+38))},x=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=h(e,n++);if(i>=55296&&i<=56319&&n<r){var o=h(e,n++);56320===(64512&o)?f(t,((1023&i)<<10)+(1023&o)+65536):(f(t,i),n--)}else f(t,i)}return t}(e);var n,r,o=e.length,a=128,c=0,m=72;for(n=0;n<e.length;n++)(r=e[n])<128&&f(t,d(r));var g=t.length,v=g;for(g&&f(t,"-");v<o;){var x=i;for(n=0;n<e.length;n++)(r=e[n])>=a&&r<x&&(x=r);var w=v+1;if(x-a>u((i-c)/w))throw new l(s);for(c+=(x-a)*w,a=x,n=0;n<e.length;n++){if((r=e[n])<a&&++c>i)throw new l(s);if(r===a){for(var _=c,E=36;;){var S=E<=m?1:E>=m+26?26:E-m;if(_<S)break;var M=_-S,T=36-S;f(t,d(y(S+M%T))),_=u(M/T),E+=36}f(t,d(y(_))),m=b(c,w,v===g),c=0,v++}}c++,a++}return p(t,"")};e.exports=function(e){var t,n,r=[],i=g(m(v(e),a,"."),".");for(t=0;t<i.length;t++)n=i[t],f(r,c(o,n)?"xn--"+x(n):n);return p(r,".")}},function(e,t,n){"use strict";var r=n(5),i=n(10),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=o(r,e);return t&&t.value}},function(e,t,n){"use strict";var r=n(19),i=n(11);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},function(e,t,n){"use strict";n(121)},,,,function(e,t,n){"use strict";var r=n(55),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),o=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=
vendor: 4,385 bytes, line 2
2d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var h="function"===typeof Symbol&&Symbol.iterator;function p(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 f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var b=y.prototype=new v;b.constructor=y,r(b,g.prototype),b.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,o={},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)w.call(t,r)&&!_.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:x.current}}function S(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var M=/\/+/g;function T(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 A(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case o:l=!0}}if(l)return a=a(l=e),e=""===r?"."+T(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(M,"$&/")+"/"),A(a,t,n,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(M,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+T(s=e[c],c);l+=A(s,t,n,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=A(s=s.value,t,n,u=r+T(s,c++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function O(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function C(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,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)}))}if(1===e._status)return e._result;throw e._result}var R={current:null};function P(){var e=R.current;if(null===e)throw Error(p(321));return e}var I={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(p(143));return e}},t.Component=g,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(p(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)w.call(t,u)&&!_.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}}
vendor: 4,210 bytes, line 2
2,t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:C}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";var r=n(0),i=n(55),o=n(229);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=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),h=/^[: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]*$/,p=Object.prototype.hasOwnProperty,f={},m={};function g(e,t,n,r,i,o,a){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,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=v.hasOwnProperty(t)?v[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||"undefined"===typeof 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;
vendor: 7,707 bytes, line 2
2if(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!!p.call(m,e)||!p.call(f,e)&&(h.test(e)?m[e]=!0:(f[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))))}"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,b);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,E=60106,S=60107,M=60108,T=60114,A=60109,O=60110,C=60112,R=60113,P=60120,I=60115,L=60116,k=60121,D=60128,N=60129,U=60130,j=60131;if("function"===typeof Symbol&&Symbol.for){var F=Symbol.for;_=F("react.element"),E=F("react.portal"),S=F("react.fragment"),M=F("react.strict_mode"),T=F("react.profiler"),A=F("react.provider"),O=F("react.context"),C=F("react.forward_ref"),R=F("react.suspense"),P=F("react.suspense_list"),I=F("react.memo"),L=F("react.lazy"),k=F("react.block"),F("react.scope"),D=F("react.opaque.id"),N=F("react.debug_trace_mode"),U=F("react.offscreen"),j=F("react.legacy_hidden")}var B,z="function"===typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=z&&e[z]||e["@@iterator"])?e:null}function V(e){if(void 0===B)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var W=!1;function G(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var i=l.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function q(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return e=G(e.type,!1);case 11:return e=G(e.type.render,!1);case 22:return e=G(e.type._render,!1);case 1:return e=G(e.type,!0);default:return""}}function X(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 S:return"Fragment";case E:return"Portal";case T:return"Profiler";case M:return"StrictMode";case R:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case C:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case I:return X(e.type);case k:return X(e._render);case L:t=e._payload,e=e._init;try{return X(e(t))}catch(n){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Z(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Z(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof 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 $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Z(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(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 ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(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 te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(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")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(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 ie(e,t,n){"number"===t&&J(e.ownerDocument)===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="";
vendor: 4,173 bytes, line 2
2return 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=""+Y(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 se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(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:Y(n)}}function ce(e,t){var n=Y(t.value),r=Y(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 ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function he(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 pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var fe,me,ge=(me=function(e,t){if(e.namespaceURI!==de.svg||"innerHTML"in e)e.innerHTML=t;else{for((fe=fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fe.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 me(e,t)}))}:me);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={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},be=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var _e=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 Ee(e,t){if(t){if(_e[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 Se(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}}function Me(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.n
vendor: 3,897 bytes, line 2
2odeType?e.parentNode:e}var Te=null,Ae=null,Oe=null;function Ce(e){if(e=ni(e)){if("function"!==typeof Te)throw Error(a(280));var t=e.stateNode;t&&(t=ii(t),Te(e.stateNode,e.type,t))}}function Re(e){Ae?Oe?Oe.push(e):Oe=[e]:Ae=e}function Pe(){if(Ae){var e=Ae,t=Oe;if(Oe=Ae=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ie(e,t){return e(t)}function Le(e,t,n,r,i){return e(t,n,r,i)}function ke(){}var De=Ie,Ne=!1,Ue=!1;function je(){null===Ae&&null===Oe||(ke(),Pe())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=ii(n);if(null===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}var Be=!1;if(d)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){Be=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(me){Be=!1}function He(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ve=!1,We=null,Ge=!1,qe=null,Xe={onError:function(e){Ve=!0,We=e}};function Ye(e,t,n,r,i,o,a,s,l){Ve=!1,We=null,He.apply(Xe,arguments)}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(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 $e(e){if(Ze(e)!==e)throw Error(a(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(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 $e(i),e;if(o===r)return $e(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.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),!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 Qe(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,st=null,lt=null,ct=new Map,ut=new Map,dt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ft(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ut.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=pt(t,n,r,i,o),null!==t&&(null!==(t=ni(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function gt(e){var t=ti(e.target);if(null!==t){var n=Ze(t);
vendor: 7,425 bytes, line 2
2if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ni(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){vt(e)&&n.delete(t)}function bt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ni(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==at&&vt(at)&&(at=null),null!==st&&vt(st)&&(st=null),null!==lt&&vt(lt)&&(lt=null),ct.forEach(yt),ut.forEach(yt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function wt(e){function t(t){return xt(t,e)}if(0<ot.length){xt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&xt(at,e),null!==st&&xt(st,e),null!==lt&&xt(lt,e),ct.forEach(t),ut.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function _t(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:_t("Animation","AnimationEnd"),animationiteration:_t("Animation","AnimationIteration"),animationstart:_t("Animation","AnimationStart"),transitionend:_t("Transition","TransitionEnd")},St={},Mt={};function Tt(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in Mt)return St[e]=n[t];return e}d&&(Mt=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var At=Tt("animationend"),Ot=Tt("animationiteration"),Ct=Tt("animationstart"),Rt=Tt("transitionend"),Pt=new Map,It=new Map,Lt=["abort","abort",At,"animationEnd",Ot,"animationIteration",Ct,"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",Rt,"transitionEnd","waiting","waiting"];function kt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),It.set(r,t),Pt.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Dt=8;function Nt(e){if(0!==(1&e))return Dt=15,1;if(0!==(2&e))return Dt=14,2;if(0!==(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!==(32&e)?(Dt=11,32):0!==(t=192&e)?(Dt=10,t):0!==(256&e)?(Dt=9,256):0!==(t=3584&e)?(Dt=8,t):0!==(4096&e)?(Dt=7,4096):0!==(t=4186112&e)?(Dt=6,t):0!==(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!==(134217728&e)?(Dt=3,134217728):0!==(t=805306368&e)?(Dt=2,t):0!==(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function Ut(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Dt=15;else if(0!==(o=134217727&n)){var l=o&~a;0!==l?(r=Nt(l),i=Dt):0!==(s&=o)&&(r=Nt(s),i=Dt)}else 0!==(o=n&~a)?(r=Nt(o),i=Dt):0!==s&&(r=Nt(s),i=Dt);if(0===r)return 0;if(r=n&((0>(r=31-Vt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Nt(t),i<=Dt)return t;Dt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Vt(t)),r|=e[n],t&=~i;return r}function jt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Ft(10,t):e;case 10:return 0===(e=Bt(192&~t))?Ft(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&(0===(e=Bt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Bt(e){return e&-e}function zt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Vt(t)]=n}var Vt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/Gt|0)|0},Wt=Math.log,Gt=Math.LN2;var qt=o.unstable_UserBlockingPriority,Xt=o.unstable_runWithPriority,Yt=!0;function Zt(e,t,n,r){Ne||ke();var i=$t,o=Ne;Ne=!0;try{Le(i,e,t,n,r)}finally{(Ne=o)||je()}}function Kt(e,t,n,r){Xt(qt,$t.bind(null,e,t,n,r))}function $t(e,t,n,r){var i;if(Yt)if((i=0===(4&t))&&0<ot.length&&-1<ht.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var o=Jt(e,t,n,r);if(null===o)i&&ft(e,r);else{if(i){if(-1<ht.indexOf(e))return e=pt(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=mt(at,e,t,n,r,i),!0;case"dragenter":return st=mt(st,e,t,n,r,i),!0;case"mouseover":return lt=mt(lt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ct.set(o,mt(ct.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ut.set(o,mt(ut.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;ft(e,r)}kr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=Me(r);if(null!==(i=ti(i))){var o=Ze(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ke(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return kr(e,t,r,i,n),null}var Qt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Qt?Qt.value:Qt.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 tn=i.slice(e,1<t?1-t:void 0)}function rn(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}function on(){return!0}function an(){return!1}function sn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,cn,un,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=sn(dn),pn=i({},dn,{view:0,detail:0}),fn=sn(pn),mn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 8,706 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(ln=e.screenX-un.screenX,cn=e.screenY-un.screenY):cn=ln=0,un=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),gn=sn(mn),vn=sn(i({},mn,{dataTransfer:0})),yn=sn(i({},pn,{relatedTarget:0})),bn=sn(i({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=i({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wn=sn(xn),_n=sn(i({},dn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={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"},Mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Mn[e])&&!!t[e]}function An(){return Tn}var On=i({},pn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=sn(On),Rn=sn(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=sn(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),In=sn(i({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=i({},mn,{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:0,deltaMode:0}),kn=sn(Ln),Dn=[9,13,27,32],Nn=d&&"CompositionEvent"in window,Un=null;d&&"documentMode"in document&&(Un=document.documentMode);var jn=d&&"TextEvent"in window&&!Un,Fn=d&&(!Nn||Un&&8<Un&&11>=Un),Bn=String.fromCharCode(32),zn=!1;function Hn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var Gn={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 qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Gn[e.type]:"textarea"===t}function Xn(e,t,n,r){Re(r),0<(t=Nr(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Zn=null;function Kn(e){Or(e,0)}function $n(e){if($(ri(e)))return e}function Jn(e,t){if("change"===e)return t}var Qn=!1;if(d){var er;if(d){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"===typeof nr.oninput}er=tr}else er=!1;Qn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Yn&&(Yn.detachEvent("onpropertychange",ir),Zn=Yn=null)}function ir(e){if("value"===e.propertyName&&$n(Zn)){var t=[];if(Xn(t,Zn,e,Me(e)),e=Kn,Ne)e(t);else{Ne=!0;try{Ie(e,t)}finally{Ne=!1,je()}}}}function or(e,t,n){"focusin"===e?(rr(),Zn=n,(Yn=t).attachEvent("onpropertychange",ir)):"focusout"===e&&rr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Zn)}function sr(e,t){if("click"===e)return $n(t)}function lr(e,t){if("input"===e||"change"===e)return $n(t)}var cr="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 dr(e,t){if(cr(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])||!cr(e[n[r]],t[n[r]]))return!1;return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n,r=hr(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=hr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function gr(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 vr=d&&"documentMode"in document&&11>=document.documentMode,yr=null,br=null,xr=null,wr=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==yr||yr!==J(r)||("selectionStart"in(r=yr)&&gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},xr&&dr(xr,r)||(xr=r,0<(r=Nr(br,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}kt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur 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),kt("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),kt(Lt,2);for(var Er="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Sr<Er.length;Sr++)It.set(Er[Sr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Tr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Ar(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,l,c){if(Ye.apply(this,arguments),Ve){if(!Ve)throw Error(a(198));var u=We;Ve=!1,We=null,Ge||(Ge=!0,qe=u)}}(r,t,void 0,e),e.currentTarget=null}function Or(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;
vendor: 5,040 bytes, line 2
2Ar(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Ar(i,s,c),o=l}}}if(Ge)throw e=qe,Ge=!1,qe=null,e}function Cr(e,t){var n=oi(t),r=e+"__bubble";n.has(r)||(Lr(t,e,2,!1),n.add(r))}var Rr="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[Rr]||(e[Rr]=!0,s.forEach((function(t){Tr.has(t)||Ir(t,!1,e,null),Ir(t,!0,e,null)})))}function Ir(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Tr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=oi(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Lr(o,e,i,t),a.add(s))}function Lr(e,t,n,r){var i=It.get(t);switch(void 0===i?2:i){case 0:i=Zt;break;case 1:i=Kt;break;default:i=$t}n=i.bind(null,t,n,e),i=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function kr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=ti(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Ue)return e(t,n);Ue=!0;try{return De(e,t,n)}finally{Ue=!1,je()}}((function(){var r=o,i=Me(n),a=[];e:{var s=Pt.get(e);if(void 0!==s){var l=hn,c=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":c="focus",l=yn;break;case"focusout":c="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case At:case Ot:case Ct:l=bn;break;case Rt:l=In;break;case"scroll":l=fn;break;case"wheel":l=kn;break;case"copy":case"cut":case"paste":l=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Rn}var u=0!==(4&t),d=!u&&"scroll"===e,h=u?null!==s?s+"Capture":null:s;u=[];for(var p,f=r;null!==f;){var m=(p=f).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==h&&(null!=(m=Fe(f,h))&&u.push(Dr(f,m,p)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!ti(c)&&!c[Qr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ti(c):null)&&(c!==(d=Ze(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=gn,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=Rn,m="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==l?s:ri(l),p=null==c?s:ri(c),(s=new u(m,f+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,ti(i)===r&&((u=new u(h,f+"enter",c,n,i)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(h=c,f=0,p=u=l;p;p=Ur(p))f++;for(p=0,m=h;m;m=Ur(m))p++;for(;0<f-p;)u=Ur(u),f--;for(;0<p-f;)h=Ur(h),p--;for(;f--;){if(u===h||null!==h&&u===h.alternate)break e;u=Ur(u),h=Ur(h)}u=null}else u=null;null!==l&&jr(a,s,l,u,!1),null!==c&&null!==d&&jr(a,d,c,u,!0)}if("select"===(l=(s=r?ri(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Jn;else if(qn(s))if(Qn)g=lr;else{g=ar;var v=or}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=sr);switch(g&&(g=g(e,r))?Xn(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ie(s,"number",s.value)),v=r?ri(r):window,e){case"focusin":(qn(v)||"true"===v.contentEditable)&&(yr=v,br=r,xr=null);break;case"focusout":xr=br=yr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,_r(a,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":_r(a,n,i)}var y;if(Nn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Wn?Hn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Wn&&(y=nn()):(en="value"in(Qt=i)?Qt.value:Qt.textContent,Wn=!0)),0<(v=Nr(r,b)).length&&(b=new _n(b,e,null,n,i),a.push({event:b,listeners:v}
vendor: 4,953 bytes, line 2
2),y?b.data=y:null!==(y=Vn(n))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(zn=!0,Bn);case"textInput":return(e=t.data)===Bn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Nn&&Hn(e,t)?(e=nn(),tn=en=Qt=null,Wn=!1,e):null;switch(e){case"paste":default: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 Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Nr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Or(a,t)}))}function Dr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Fe(e,n))&&r.unshift(Dr(e,o,i)),null!=(o=Fe(e,t))&&r.push(Dr(e,o,i))),e=e.return}return r}function Ur(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function jr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Fe(n,o))&&a.unshift(Dr(n,l,s)):i||null!=(l=Fe(n,o))&&a.push(Dr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Fr(){}var Br=null,zr=null;function Hr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vr(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 Wr="function"===typeof setTimeout?setTimeout:void 0,Gr="function"===typeof clearTimeout?clearTimeout:void 0;function qr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Xr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Yr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Zr=0;var Kr=Math.random().toString(36).slice(2),$r="__reactFiber$"+Kr,Jr="__reactProps$"+Kr,Qr="__reactContainer$"+Kr,ei="__reactEvents$"+Kr;function ti(e){var t=e[$r];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qr]||n[$r]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Yr(e);null!==e;){if(n=e[$r])return n;e=Yr(e)}return t}n=(e=n).parentNode}return null}function ni(e){return!(e=e[$r]||e[Qr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ri(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ii(e){return e[Jr]||null}function oi(e){var t=e[ei];return void 0===t&&(t=e[ei]=new Set),t}var ai=[],si=-1;function li(e){return{current:e}}function ci(e){0>si||(e.current=ai[si],ai[si]=null,si--)}function ui(e,t){si++,ai[si]=e.current,e.current=t}var di={},hi=li(di),pi=li(!1),fi=di;function mi(e,t){var n=e.type.contextTypes;if(!n)return di;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)&&void 0!==e}function vi(){ci(pi),ci(hi)}function yi(e,t,n){if(hi.current!==di)throw Error(a(168));ui(hi,t),ui(pi,n)}function bi(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,X(t)||"Unknown",o));return i({},n,r)}function xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||di,fi=hi.current,ui(hi,e),ui(pi,pi.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=bi(e,t,fi),r.__reactInternalMemoizedMergedChildContext=e,ci(pi),ci(hi),ui(hi,e)):ci(pi),ui(pi,n)}var _i=null,Ei=null,Si=o.unstable_runWithPriority,Mi=o.unstable_scheduleCallback,Ti=o.unstable_cancelCallback,Ai=o.unstable_shouldYield,Oi=o.unstable_requestPaint,Ci=o.unstable_now,Ri=o.unstable_getCurrentPriorityLevel,Pi=o.unstable_ImmediatePriority,Ii=o.unstable_UserBlockingPriority,Li=o.unstable_NormalPriority,ki=o.unstable_LowPriority,Di=o.unstable_IdlePriority,Ni={},Ui=void 0!==Oi?Oi:function(){},ji=null,Fi=null,Bi=!1,zi=Ci(),Hi=1e4>zi?Ci:function(){return Ci()-zi};function Vi(){switch(Ri()){case Pi:return 99;case Ii:return 98;case Li:return 97;case ki:return 96;case Di:return 95;default:throw Error(a(332))}}function Wi(e){switch(e){case 99:return Pi;case 98:return Ii;case 97:return Li;case 96:return ki;case 95:return Di;default:throw Error(a(332))}}function Gi(e,t){return e=Wi(e),Si(e,t)}
2function qi(e,t,n){return e=Wi(e),Mi(e,t,n)}function Xi(){if(null!==Fi){var e=Fi;Fi=null,Ti(e)}Yi()}function Yi(){if(!Bi&&null!==ji){Bi=!0;var e=0;try{var t=ji;Gi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),ji=null}catch(n){throw null!==ji&&(ji=ji.slice(e+1)),Mi(Pi,Xi),n}finally{Bi=!1}}}var Zi=w.ReactCurrentBatchConfig;function Ki(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}return t}var $i=li(null),Ji=null,Qi=null,eo=null;function to(){eo=Qi=Ji=null}function no(e){var t=$i.current;ci($i),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function io(e,t){Ji=e,eo=Qi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Na=!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===Qi){if(null===Ji)throw Error(a(308));Qi=t,Ji.dependencies={lanes:0,firstContext:t,responders:null}}else Qi=Qi.next=t;return e._currentValue}var ao=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function uo(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 ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function po(e,t,n,r){var o=e.updateQueue;ao=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var h=(d=d.updateQueue).lastBaseUpdate;h!==s&&(null===h?d.firstBaseUpdate=u:h.next=u,d.lastBaseUpdate=c)}}if(null!==a){for(h=o.baseState,s=0,d=u=c=null;;){l=a.lane;var p=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,m=a;switch(l=t,p=n,m.tag){case 1:if("function"===typeof(f=m.payload)){h=f.call(p,h,l);break e}h=f;break e;case 3:f.flags=-4097&f.flags|64;case 0:if(null===(l="function"===typeof(f=m.payload)?f.call(p,h,l):f)||void 0===l)break e;h=i({},h,l);break e;case 2:ao=!0}}null!==a.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[a]:l.push(a))}else p={eventTime:p,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=p,c=h):d=d.next=p,s|=l;if(null===(a=a.next)){if(null===(l=o.shared.pending))break;a=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===d&&(c=h),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,zs|=s,e.lanes=s,e.memoizedState=h}}function fo(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=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var mo=(new r.Component).refs;function go(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var vo={isMounted:function(e){return!!(e=e._reactInternals)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hl(),i=pl(e),o=co(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),uo(e,o),fl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hl(),i=pl(e),o=co(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),uo(e,o),fl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hl(),r=pl(e),i=co(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),uo(e,i),fl(e,r,n)}};function yo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!dr(n,r)||!dr(i,o))}function bo(e,t,n){var r=!1,i=di,o=t.contextType;return"object"===typeof o&&null!==o?o=oo(o):(i=gi(t)?fi:hi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?mi(e,i):di),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function xo(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&&vo.enqueueReplaceState(t,t.state,null)}function wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=mo,so(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=oo(o):(o=gi(t)?fi:hi.current,i.context=mi(e,o)),po(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&&vo.enqueueReplaceState(i,i.state,null),po(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var _o=Array.isArray;function Eo(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===mo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function So(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.flags=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=ql(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.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Kl(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=Eo(e,t,n
vendor: 6,269 bytes, line 2
2),r.return=e,r):((r=Xl(n.type,n.key,n.props,null,e.mode,r)).ref=Eo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$l(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Yl(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=Kl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Xl(t.type,t.key,t.props,null,e.mode,n)).ref=Eo(e,null,t),n.return=e,n;case E:return(t=$l(t,e.mode,n)).return=e,t}if(_o(t)||H(t))return(t=Yl(t,e.mode,n,null)).return=e,t;So(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:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?n.type===S?d(e,t,n.props.children,r,i):c(e,t,n,r):null;case E:return n.key===i?u(e,t,n,r):null}if(_o(n)||H(n))return null!==i?null:d(e,t,n,r,null);So(e,n)}return null}function f(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return l(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===S?d(t,e,r.props.children,i,r.key):c(t,e,r,i);case E:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(_o(r)||H(r))return d(t,e=e.get(n)||null,r,i,null);So(t,r)}return null}function m(i,a,s,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(i,d),c;if(null===d){for(;m<s.length;m++)null!==(d=h(i,s[m],l))&&(a=o(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(i,d);m<s.length;m++)null!==(g=f(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),c}function g(i,s,l,c){var u=H(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=h(i,y.value,c))&&(s=o(y,s,g),null===d?u=y:d.sibling=y,d=y);return u}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=f(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),u}return function(e,r,o,l){var c="object"===typeof o&&null!==o&&o.type===S&&null===o.key;c&&(o=o.props.children);var u="object"===typeof o&&null!==o;if(u)switch(o.$$typeof){case _:e:{for(u=o.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(o.type===S){n(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}}else if(c.elementType===o.type){n(e,c.sibling),(r=i(c,o.props)).ref=Eo(e,c,o),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}o.type===S?((r=Yl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Xl(o.type,o.key,o.props,null,e.mode,l)).ref=Eo(e,r,o),l.return=e,e=l)}return s(e);case E: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=$l(o,e.mode,l)).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=Kl(o,e.mode,l)).return=e,e=r),s(e);if(_o(o))return m(e,r,o,l);if(H(o))return g(e,r,o,l);if(u&&So(e,o),"undefined"===typeof o&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,X(e.type)||"Component"))}return n(e,r)}}var To=Mo(!0),Ao=Mo(!1),Oo={},Co=li(Oo),Ro=li(Oo),Po=li(Oo);function Io(e){if(e===Oo)throw Error(a(174));return e}function Lo(e,t){switch(ui(Po,t),ui(Ro,e),ui(Co,Oo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ci(Co),ui(Co,t)}function ko(){ci(Co),ci(Ro),ci(Po)}function Do(e){Io(Po.current);var t=Io(Co.current),n=pe(t,e.type);t!==n&&(ui(Ro,e),ui(Co,n))}function No(e){Ro.current===e&&(ci(Co),ci(Ro))}var Uo=li(0);function jo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))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}var Fo=null,Bo=null,zo=!1;function Ho(e,t){var n=Wl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Vo(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);default:return!1}}function Wo(e){if(zo){var t=Bo;if(t){var n=t;if(!Vo(e,t)){if(!(t=Xr(n.nextSibling))||!Vo(e,t))return e.flags=-1025&e.flags|2,zo=!1,void(Fo=e);Ho(Fo,n)}Fo=e,Bo=Xr(t.firstChild)}else e.flags=-1025&e.flags|2,zo=!1,Fo=e}}function Go(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Fo=e}function qo(e){if(e!==Fo)return!1;if(!zo)return Go(e),zo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vr(t,e.memoizedProps))for(t=Bo;t;)Ho(e,t),t=Xr(t.nextSibling);if(Go(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){if(0===t){Bo=Xr(e.nextSibling);break e}t--}
vendor: 8,287 bytes, line 2
2else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Bo=null}}else Bo=Fo?Xr(e.stateNode.nextSibling):null;return!0}function Xo(){Bo=Fo=null,zo=!1}var Yo=[];function Zo(){for(var e=0;e<Yo.length;e++)Yo[e]._workInProgressVersionPrimary=null;Yo.length=0}var Ko=w.ReactCurrentDispatcher,$o=w.ReactCurrentBatchConfig,Jo=0,Qo=null,ea=null,ta=null,na=!1,ra=!1;function ia(){throw Error(a(321))}function oa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function aa(e,t,n,r,i,o){if(Jo=o,Qo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ko.current=null===e||null===e.memoizedState?Ia:La,e=n(r,i),ra){o=0;do{if(ra=!1,!(25>o))throw Error(a(301));o+=1,ta=ea=null,t.updateQueue=null,Ko.current=ka,e=n(r,i)}while(ra)}if(Ko.current=Pa,t=null!==ea&&null!==ea.next,Jo=0,ta=ea=Qo=null,na=!1,t)throw Error(a(300));return e}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ta?Qo.memoizedState=ta=e:ta=ta.next=e,ta}function la(){if(null===ea){var e=Qo.alternate;e=null!==e?e.memoizedState:null}else e=ea.next;var t=null===ta?Qo.memoizedState:ta.next;if(null!==t)ta=t,ea=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ea=e).memoizedState,baseState:ea.baseState,baseQueue:ea.baseQueue,queue:ea.queue,next:null},null===ta?Qo.memoizedState=ta=e:ta=ta.next=e}return ta}function ca(e,t){return"function"===typeof t?t(e):t}function ua(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ea,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 l=s=o=null,c=i;do{var u=c.lane;if((Jo&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,Qo.lanes|=u,zs|=u}c=c.next}while(null!==c&&c!==i);null===l?o=r:l.next=s,cr(r,t.memoizedState)||(Na=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function da(e){var t=la(),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);cr(o,t.memoizedState)||(Na=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ha(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Jo&e)===e)&&(t._workInProgressVersionPrimary=r,Yo.push(t))),e)return n(t._source);throw Yo.push(t),Error(a(350))}function pa(e,t,n,r){var i=Ls;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),l=Ko.current,c=l.useState((function(){return ha(i,t,n)})),u=c[1],d=c[0];c=ta;var h=e.memoizedState,p=h.refs,f=p.getSnapshot,m=h.source;h=h.subscribe;var g=Qo;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=u;var e=o(t._source);if(!cr(s,e)){e=n(t._source),cr(d,e)||(u(e),e=pl(g),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var l=31-Vt(a),c=1<<l;r[l]|=e,a&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=pl(g);i.mutableReadLanes|=r&i.pendingLanes}catch(o){n((function(){throw o}))}}))}),[t,r]),cr(f,n)&&cr(m,t)&&cr(h,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:d}).dispatch=u=Ra.bind(null,Qo,e),c.queue=e,c.baseQueue=null,d=ha(i,t,n),c.memoizedState=c.baseState=d),d}function fa(e,t,n){return pa(la(),e,t,n)}function ma(e){var t=sa();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e}).dispatch=Ra.bind(null,Qo,e),[t.memoizedState,e]}function ga(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Qo.updateQueue)?(t={lastEffect:null},Qo.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 va(e){return e={current:e},sa().memoizedState=e}function ya(){return la().memoizedState}function ba(e,t,n,r){var i=sa();Qo.flags|=e,i.memoizedState=ga(1|t,n,void 0,void 0===r?null:r)}function xa(e,t,n,r){var i=la();r=void 0===r?null:r;var o=void 0;if(null!==ea){var a=ea.memoizedState;if(o=a.destroy,null!==r&&oa(r,a.deps))return void ga(t,n,o,r)}Qo.flags|=e,i.memoizedState=ga(1|t,n,o,r)}function wa(e,t){return ba(516,4,e,t)}function _a(e,t){return xa(516,4,e,t)}function Ea(e,t){return xa(4,2,e,t)}function Sa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ma(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,xa(4,2,Sa.bind(null,t,e),n)}function Ta(){}function Aa(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Oa(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ca(e,t){var n=Vi();Gi(98>n?98:n,(function(){e(!0)})),Gi(97<n?97:n,(function(){var n=$o.transition;$o.transition=1;try{e(!1),t()}finally{$o.transition=n}}))}function Ra(e,t,n){var r=hl(),i=pl(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Qo||null!==a&&a===Qo)ra=na=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,cr(l,s))return}catch(c){}fl(e,i,r)}}var Pa={readContext:oo,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useOpaqueIdentifier:ia,unstable_isNewReconciler:!1},Ia={readContext:oo,useCallback:function(e,t){return sa().memoizedState=[e,void 0===t?null:t],e},useContext:oo,useEffect:wa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ba(4,2,Sa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ba(4,2,e,t)},useMemo:function(e,t){var n=sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sa();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=Ra.bind(null,Qo,e),[r.memoizedState,e]},useRef:va,useState:ma,useDebugValue:Ta,useDeferredValue:function(e){var t=ma(e),n=t[0],r=t[1];return wa((function(){var t=$o.transition;$o.transition=1;try{r(e)}finally{$o.transition=t}}),[e]),n},useTransition:function(){var e=ma(!1),t=e[0];return va(e=Ca.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=sa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},pa(r,e,t,n)},useOpaqueIdentifier:function(){if(zo){var e=!1,t=function(e){return{$$typeof:D,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Zr++).toString(36))),Error(a(355))})),n=ma(t)[1];return 0===(2&Qo.mode)&&(Qo.flags|=516,ga(5,(function(){n("r:"+(Zr++).toString(36))}),void 0,null)),t}return ma(t="r:"+(Zr++).toString(36)),t},unstable_isNewReconciler:!1},La={readContext:oo,useCallback:Aa,useContext:oo,useEffect:_a,useImperativeHandle:Ma,useLayoutEffect:Ea,useMemo:Oa,useReducer:ua,useRef:ya,useState:function(){return ua(ca)},useDebugValue:Ta,useDeferredValue:function(e){var t=ua(ca),n=t[0],r=t[1];return _a((function(){var t=$o.transition;$o.transition=1;try{r(e)}finally{$o.transition=t}}),[e]),n},useTransition:function(){var e=ua(ca)[0];return[ya().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return ua(ca)[0]},unstable_isNewReconciler:!1},ka={readContext:oo,useCallback:Aa,useContext:oo,useEffect:_a,useImperativeHandle:Ma,useLayoutEffect:Ea,useMemo:Oa,useReducer:da,useRef
2:ya,useState:function(){return da(ca)},useDebugValue:Ta,useDeferredValue:function(e){var t=da(ca),n=t[0],r=t[1];return _a((function(){var t=$o.transition;$o.transition=1;try{r(e)}finally{$o.transition=t}}),[e]),n},useTransition:function(){var e=da(ca)[0];return[ya().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return da(ca)[0]},unstable_isNewReconciler:!1},Da=w.ReactCurrentOwner,Na=!1;function Ua(e,t,n,r){t.child=null===e?Ao(t,null,n,r):To(t,e.child,n,r)}function ja(e,t,n,r,i){n=n.render;var o=t.ref;return io(t,i),r=aa(e,t,n,r,o,i),null===e||Na?(t.flags|=1,Ua(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,os(e,t,i))}function Fa(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!==typeof a||Gl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ba(e,t,a,r,i,o))}return a=e.child,0===(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:dr)(i,r)&&e.ref===t.ref)?os(e,t,o):(t.flags|=1,(e=ql(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ba(e,t,n,r,i,o){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Na=!1,0===(o&i))return t.lanes=e.lanes,os(e,t,o);0!==(16384&e.flags)&&(Na=!0)}return Va(e,t,n,r,o)}function za(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},_l(t,n);else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},_l(t,e),null;t.memoizedState={baseLanes:0},_l(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,_l(t,r);return Ua(e,t,i,n),t.child}function Ha(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Va(e,t,n,r,i){var o=gi(n)?fi:hi.current;return o=mi(t,o),io(t,i),n=aa(e,t,n,r,o,i),null===e||Na?(t.flags|=1,Ua(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,os(e,t,i))}function Wa(e,t,n,r,i){if(gi(n)){var o=!0;xi(t)}else o=!1;if(io(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),bo(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 l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=oo(c):c=mi(t,c=gi(n)?fi:hi.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&xo(t,a,r,c),ao=!1;var h=t.memoizedState;a.state=h,po(t,r,a,i),l=t.memoizedState,s!==r||h!==l||pi.current||ao?("function"===typeof u&&(go(t,n,u,r),l=t.memoizedState),(s=ao||yo(t,n,s,r,h,l,c))?(d||"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.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,lo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ki(t.type,s),a.props=c,d=t.pendingProps,h=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=oo(l):l=mi(t,l=gi(n)?fi:hi.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||h!==l)&&xo(t,a,r,l),ao=!1,h=t.memoizedState,a.state=h,po(t,r,a,i);var f=t.memoizedState;s!==d||h!==f||pi.current||ao?("function"===typeof p&&(go(t,n,p,r),f=t.memoizedState),(c=ao||yo(t,n,c,r,h,f,l))?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),r=!1)}return Ga(e,t,n,r,o,i)}function Ga(e,t,n,r,i,o){Ha(e,t);var a=0!==(64&t.flags);if(!r&&!a)return i&&wi(t,n,!1),os(e,t,o);r=t.stateNode,Da.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=To(t,e.child,null,o),t.child=To(t,null,s,o)):Ua(e,t,s,o),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),Lo(e,t.containerInfo)}var Xa,Ya,Za,Ka,$a={dehydrated:null,retryLane:0};function Ja(e,t,n){var r,i=t.pendingProps,o=Uo.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?
vendor: 4,237 bytes, line 2
2(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ui(Uo,1&o),null===e?(void 0!==i.fallback&&Wo(t),e=i.children,o=i.fallback,a?(e=Qa(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,e):"number"===typeof i.unstable_expectedLoadTime?(e=Qa(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,t.lanes=33554432,e):((n=Zl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=ts(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=$a,i):(n=es(e,t,i.children,n),t.memoizedState=null,n))}function Qa(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0===(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Zl(t,i,0,null),n=Yl(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function es(e,t,n,r){var i=e.child;return e=i.sibling,n=ql(i,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ts(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0===(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=ql(a,s),null!==e?r=ql(e,r):(r=Yl(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ro(e.return,t)}function rs(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function is(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ua(e,t,r.children,n),0!==(2&(r=Uo.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(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(ui(Uo,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===jo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rs(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===jo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rs(t,!0,n,null,o,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function os(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),zs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=ql(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ql(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!zo)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 ss(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:case 17:return gi(t.type)&&vi(),null;case 3:return ko(),ci(pi),ci(hi),Zo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Ya(t),null;case 5:No(t);var o=Io(Po.current);if(n=t.type,null!==e&&null!=t.stateNode)Za(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Io(Co.current),qo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;
2switch(r[$r]=t,r[Jr]=s,n){case"dialog":Cr("cancel",r),Cr("close",r);break;case"iframe":case"object":case"embed":Cr("load",r);break;case"video":case"audio":for(e=0;e<Mr.length;e++)Cr(Mr[e],r);break;case"source":Cr("error",r);break;case"img":case"image":case"link":Cr("error",r),Cr("load",r);break;case"details":Cr("toggle",r);break;case"input":ee(r,s),Cr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Cr("invalid",r);break;case"textarea":le(r,s),Cr("invalid",r)}for(var c in Ee(n,s),e=null,s)s.hasOwnProperty(c)&&(o=s[c],"children"===c?"string"===typeof o?r.textContent!==o&&(e=["children",o]):"number"===typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(c)&&null!=o&&"onScroll"===c&&Cr("scroll",r));switch(n){case"input":K(r),re(r,s,!0);break;case"textarea":K(r),ue(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===o.nodeType?o:o.ownerDocument,e===de.html&&(e=he(n)),e===de.html?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[$r]=t,e[Jr]=r,Xa(e,t,!1,!1),t.stateNode=e,c=Se(n,r),n){case"dialog":Cr
vendor: 6,001 bytes, line 2
2("cancel",e),Cr("close",e),o=r;break;case"iframe":case"object":case"embed":Cr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Mr.length;o++)Cr(Mr[o],e);o=r;break;case"source":Cr("error",e),o=r;break;case"img":case"image":case"link":Cr("error",e),Cr("load",e),o=r;break;case"details":Cr("toggle",e),o=r;break;case"input":ee(e,r),o=Q(e,r),Cr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Cr("invalid",e);break;case"textarea":le(e,r),o=se(e,r),Cr("invalid",e);break;default:o=r}Ee(n,o);var u=o;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?we(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===s?"string"===typeof d?("textarea"!==n||""!==d)&&ve(e,d):"number"===typeof d&&ve(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Cr("scroll",e):null!=d&&x(e,s,d,c))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Fr)}Hr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ka(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Io(Po.current),Io(Co.current),qo(t)?(r=t.stateNode,n=t.memoizedProps,r[$r]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[$r]=t,t.stateNode=r)}return null;case 13:return ci(Uo),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qo(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Uo.current)?0===js&&(js=3):(0!==js&&3!==js||(js=4),null===Ls||0===(134217727&zs)&&0===(134217727&Hs)||yl(Ls,Ds))),(r||n)&&(t.flags|=4),null);case 4:return ko(),Ya(t),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return no(t),null;case 19:if(ci(Uo),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(c=r.rendering))if(s)as(r,!1);else{if(0!==js||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=jo(e))){for(t.flags|=64,as(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ui(Uo,1&Uo.current|2),t.child}e=e.sibling}null!==r.tail&&Hi()>qs&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=jo(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!zo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Hi()-r.renderingStartTime>qs&&1073741824!==n&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Hi(),n.sibling=null,t=Uo.current,ui(Uo,s?1&t|2:1&t),n):null;case 23:case 24:return El(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function ls(e){switch(e.tag){case 1:gi(e.type)&&vi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(ko(),ci(pi),ci(hi),Zo(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return No(e),null;case 13:return ci(Uo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ci(Uo),null;case 4:return ko(),null;case 10:return no(e),null;case 23:case 24:return El(),null;default:return null}}function cs(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function us(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Xa=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}},Ya=function(){},Za=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Io(Co.current);var a,s=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Fr)}for(d in Ee(n,r),n=null,o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var c=o[d];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(c=null!=o?o[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(n||(n={}),n[a]=u[a])}
2else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Cr("scroll",e),s||c===u||(s=[])):"object"===typeof u&&null!==u&&u.$$typeof===D?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Ka=function(e,t,n,r){n!==r&&(t.flags|=4)};var ds="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=co(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ks||(Ks=!0,$s=r),us(0,t)},n}function ps(e,t,n){(n=co(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return us(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Js?Js=new Set([this]):Js.add(this),us(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"===typeof WeakSet?WeakSet:Set;function ms(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Bl(e,n)}else t.current=null}function gs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ki(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo))}throw Error(a(163))}function vs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Ul(n,e),Nl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ki(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}fo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Hr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))))}throw Error(a(163))}function ys(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=xe("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bs(e,t){if(Ei&&"function"===typeof Ei.onCommitFiberUnmount)try{Ei.onCommitFiberUnmount(_i,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Ul(t,n);else{r=t;try{i()}catch(o){Bl(r,o)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Bl(t,o)}break;case 5:ms(t);break;case 4:Ms(e,t)}}function xs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ws(e){return 5===e.tag||3===e.tag||4===e.tag}function _s(e){e:{for(var t=e.return;null!==t;){if(ws(t))break e;t=t.return}throw Error(a(160))}var n=t;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.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ws(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.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}
vendor: 5,142 bytes, line 2
2if(!(2&n.flags)){n=n.stateNode;break e}}r?Es(e,n,t):Ss(e,n,t)}function Es(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(Es(e,t,n),e=e.sibling;null!==e;)Es(e,t,n),e=e.sibling}function Ss(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Ss(e,t,n),e=e.sibling;null!==e;)Ss(e,t,n),e=e.sibling}function Ms(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,l=i,c=l;;)if(bs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(bs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Ts(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,i),t=Se(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?we(n,l):"dangerouslySetInnerHTML"===s?ge(n,l):"children"===s?ve(n,l):x(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!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((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Gs=Hi(),ys(t.child,!0)),void As(t);case 19:return void As(t);case 23:case 24:return void ys(t,null!==t.memoizedState)}throw Error(a(163))}function As(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=Hl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Os(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Cs=Math.ceil,Rs=w.ReactCurrentDispatcher,Ps=w.ReactCurrentOwner,Is=0,Ls=null,ks=null,Ds=0,Ns=0,Us=li(0),js=0,Fs=null,Bs=0,zs=0,Hs=0,Vs=0,Ws=null,Gs=0,qs=1/0;function Xs(){qs=Hi()+500}var Ys,Zs=null,Ks=!1,$s=null,Js=null,Qs=!1,el=null,tl=90,nl=[],rl=[],il=null,ol=0,al=null,sl=-1,ll=0,cl=0,ul=null,dl=!1;function hl(){return 0!==(48&Is)?Hi():-1!==sl?sl:sl=Hi()}function pl(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Vi()?1:2;if(0===ll&&(ll=Bs),0!==Zi.transition){0!==cl&&(cl=null!==Ws?Ws.pendingLanes:0),e=ll;var t=4186112&~cl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Vi(),0!==(4&Is)&&98===e?e=Ft(12,ll):e=Ft(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ll),e}function fl(e,t,n){if(50<ol)throw ol=0,al=null,Error(a(185));if(null===(e=ml(e,t)))return null;Ht(e,t,n),e===Ls&&(Hs|=t,4===js&&yl(e,Ds));var r=Vi();1===t?0!==(8&Is)&&0===(48&Is)?bl(e):(gl(e,n),0===Is&&(Xs(),Xi())):(0===(4&Is)||98!==r&&99!==r||(null===il?il=new Set([e]):il.add(e)),gl(e,n)),Ws=e}function ml(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function gl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Vt(s),c=1<<l,u=o[l];if(-1===u){if(0===(c&r)||0!==(c&i)){u=t,Nt(c);var d=Dt;o[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=Ut(e,e===Ls?Ds:0),t=Dt,0===r)null!==n&&(n!==Ni&&Ti(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ni&&Ti(n)}15===t?(n=bl.bind(null,e),null===ji?(ji=[n],Fi=Mi(Pi,Yi)):ji.push(n),n=Ni):14===t?n=qi(99,bl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;
vendor: 1,684 bytes, line 2
2case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=qi(n,vl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function vl(e){if(sl=-1,cl=ll=0,0!==(48&Is))throw Error(a(327));var t=e.callbackNode;if(Dl()&&e.callbackNode!==t)return null;var n=Ut(e,e===Ls?Ds:0);if(0===n)return null;var r=n,i=Is;Is|=16;var o=Tl();for(Ls===e&&Ds===r||(Xs(),Sl(e,r));;)try{Cl();break}catch(l){Ml(e,l)}if(to(),Rs.current=o,Is=i,null!==ks?r=0:(Ls=null,Ds=0,r=js),0!==(Bs&Hs))Sl(e,0);else if(0!==r){if(2===r&&(Is|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=jt(e))&&(r=Al(e,n))),1===r)throw t=Fs,Sl(e,0),yl(e,n),gl(e,Hi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Il(e);break;case 3:if(yl(e,n),(62914560&n)===n&&10<(r=Gs+500-Hi())){if(0!==Ut(e,0))break;if(((i=e.suspendedLanes)&n)!==n){hl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Wr(Il.bind(null,e),r);break}Il(e);break;case 4:if(yl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Vt(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=Hi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cs(n/1960))-n)){e.timeoutHandle=Wr(Il.bind(null,e),n);break}Il(e);break;default:throw Error(a(329))}}return gl(e,Hi()),e.callbackNode===t?vl.bind(null,e):null}function yl(e,t){for(t&=~Vs,t&=~Hs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),r=1<<n;e[n]=-1,t&=~r}}function bl(e){if(0!==(48&Is))throw Error(a(327));if(Dl(),e===Ls&&0!==(e.expiredLanes&Ds)){var t=Ds,n=Al(e,t);0!==(Bs&Hs)&&(n=Al(e,t=Ut(e,t)))}
vendor: 5,528 bytes, line 2
2else n=Al(e,t=Ut(e,0));if(0!==e.tag&&2===n&&(Is|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=jt(e))&&(n=Al(e,t))),1===n)throw n=Fs,Sl(e,0),yl(e,t),gl(e,Hi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Il(e),gl(e,Hi()),null}function xl(e,t){var n=Is;Is|=1;try{return e(t)}finally{0===(Is=n)&&(Xs(),Xi())}}function wl(e,t){var n=Is;Is&=-2,Is|=8;try{return e(t)}finally{0===(Is=n)&&(Xs(),Xi())}}function _l(e,t){ui(Us,Ns),Ns|=t,Bs|=t}function El(){Ns=Us.current,ci(Us)}function Sl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Gr(n)),null!==ks)for(n=ks.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&vi();break;case 3:ko(),ci(pi),ci(hi),Zo();break;case 5:No(r);break;case 4:ko();break;case 13:case 19:ci(Uo);break;case 10:no(r);break;case 23:case 24:El()}n=n.return}Ls=e,ks=ql(e.current,null),Ds=Ns=Bs=t,js=0,Fs=null,Vs=Hs=zs=0}function Ml(e,t){for(;;){var n=ks;try{if(to(),Ko.current=Pa,na){for(var r=Qo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}na=!1}if(Jo=0,ta=ea=Qo=null,ra=!1,Ps.current=null,null===n||null===n.return){js=1,Fs=t,ks=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Ds,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l;if(0===(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!==(1&Uo.current),h=a;do{var p;if(p=13===h.tag){var f=h.memoizedState;if(null!==f)p=null!==f.dehydrated;else{var m=h.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(p){var g=h.updateQueue;if(null===g){var v=new Set;v.add(c),h.updateQueue=v}else g.add(c);if(0===(2&h.mode)){if(h.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=co(-1,1);y.tag=2,uo(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new ds,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var x=zl.bind(null,o,c,s);c.then(x,x)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(null!==h);l=Error((X(s.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.")}5!==js&&(js=2),l=cs(l,s),h=a;do{switch(h.tag){case 3:o=l,h.flags|=4096,t&=-t,h.lanes|=t,ho(h,hs(0,o,t));break e;case 1:o=l;var w=h.type,_=h.stateNode;if(0===(64&h.flags)&&("function"===typeof w.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Js||!Js.has(_)))){h.flags|=4096,t&=-t,h.lanes|=t,ho(h,ps(h,o,t));break e}}h=h.return}while(null!==h)}Pl(n)}catch(E){t=E,ks===n&&null!==n&&(ks=n=n.return);continue}break}}function Tl(){var e=Rs.current;return Rs.current=Pa,null===e?Pa:e}function Al(e,t){var n=Is;Is|=16;var r=Tl();for(Ls===e&&Ds===t||Sl(e,t);;)try{Ol();break}catch(i){Ml(e,i)}if(to(),Is=n,Rs.current=r,null!==ks)throw Error(a(261));return Ls=null,Ds=0,js}function Ol(){for(;null!==ks;)Rl(ks)}function Cl(){for(;null!==ks&&!Ai();)Rl(ks)}function Rl(e){var t=Ys(e.alternate,e,Ns);e.memoizedProps=e.pendingProps,null===t?Pl(e):ks=t,Ps.current=null}function Pl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ss(n,t,Ns)))return void(ks=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ns)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ls(t)))return n.flags&=2047,void(ks=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(ks=t);ks=t=e}while(null!==t);0===js&&(js=5)}function Il(e){var t=Vi();return Gi(99,Ll.bind(null,e,t)),null}function Ll(e,t){do{Dl()}while(null!==el);if(0!==(48&Is))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var c=31-Vt(o),u=1<<c;i[c]=0,s[c]=-1,l[c]=-1,o&=~u}if(null!==il&&0===(24&r)&&il.has(e)&&il.delete(e),e===Ls&&(ks=Ls=null,Ds=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Is,Is|=32,Ps.current=null,Br=Yt,gr(s=mr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,o=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(T){l=null;break e}var d=0,h=-1,p=-1,f=0,m=0,g=s,v=null;t:for(;;){for(var y;g!==l||0!==o&&3!==g.nodeType||(h=d+o),g!==c||0!==u&&3!==g.nodeType||(p=d+u),3===g.nodeType&&(d+=g.nodeValue.length),null!==(y=g.firstChild);)v=g,g=y;for(;;){if(g===s)break t;if(v===l&&++f===o&&(h=d),v===c&&++m===u&&(p=d),null!==(y=g.nextSibling))break;v=(g=v).parentNode}g=y}
2l=-1===h||-1===p?null:{start:h,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;zr={focusedElem:s,selectionRange:l},Yt=!1,ul=null,dl=!1,Zs=r;do{try{kl()}catch(T){if(null===Zs)throw Error(a(330));Bl(Zs,T),Zs=Zs.nextEffect}}while(null!==Zs);ul=null,Zs=r;do{try{for(s=e;null!==Zs;){var b=Zs.flags;if(16&b&&ve(Zs.stateNode,""),128&b){var x=Zs.alternate;if(null!==x){var w=x.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&b){case 2:_s(Zs),Zs.flags&=-3;break;case 6:_s(Zs),Zs.flags&=-3,Ts(Zs.alternate,Zs);break;case 1024:Zs.flags&=-1025;break;case 1028:Zs.flags&=-1025,Ts(Zs.alternate,Zs);break;case 4:Ts(Zs.alternate,Zs);break;case 8:Ms(s,l=Zs);var _=l.alternate;xs(l),null!==_&&xs(_)}Zs=Zs.nextEffect}}catch(T){if(null===Zs)throw Error(a(330));Bl(Zs,T),Zs=Zs.nextEffect}}while(null!==Zs);if(w=zr,x=mr(),b=w.focusedElem,s=w.selectionRange,x!==b&&b&&b.ownerDocument&&fr(b.ownerDocument.documentElement,b)){null!==s&&gr(b)&&(x=s.start,void 0===(w=s.end)&&(w=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(w,b.value.length)):(w=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),l=b.textContent.length,_=Math.min(s.start,l),s=void 0===s.end?_:Math.min(s.end,l),!w.extend&&_>s&&(l=s,s=_,_=l),l=pr(b,_),o=pr(b,s),l&&o&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((x=x.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),_>s?(w.addRange(x),w.extend(o.node,o.offset)):(x.setEnd(o.node,o.offset),w.addRange(x))))),x=[];for(w=b;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<x.length;b++)(w=x[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Yt=!!Br,zr=Br=null,e.current=n,Zs=r;do{try{for(b=e;null!==Zs;){var E=Zs.flags;if(36&E&&vs(b,Zs.alternate,Zs),128&E){x=void 0;var S=Zs.ref;if(null!==S){var M=Zs.stateNode;Zs.tag,x=M,"function"===typeof S?S(x):S.current=x}}Zs=Zs.nextEffect}}catch(T){if(null===Zs)throw Error(a(330));Bl(Zs,T),Zs=Zs.nextEffect}}while(null!==Zs);Zs=null,Ui(),Is=i}else e.current=n;if(Qs)Qs=!1,el=e,tl=t;else for(Zs=r;null!==Zs;)t=Zs.nextEffect,Zs.nextEffect=null,8&Zs.flags&&((E=Zs).sibling=null,E.stateNode=null),Zs=t;if(0===(r=e.pendingLanes)&&(Js=null),1===r?e===al?ol++:(ol=0,al=e):ol=0,n=n.stateNode,Ei&&"function"===typeof Ei.onCommitFiberRoot)try{Ei.onCommitFiberRoot(_i,n,void 0,64===(64&n.current.flags))}catch(T){}if(gl(e,Hi()),Ks)throw Ks=!1,e=$s,$s=null,e;return 0!==(8&Is)||Xi(),null}function kl(){for(;null!==Zs;){var e=Zs.alternate;dl||null===ul||(0!==(8&Zs.flags)?Qe(Zs,ul)&&(dl=!0):13===Zs.tag&&Os(e,Zs)&&Qe(Zs,ul)&&(dl=!0));var t=Zs.flags;0!==(256&t)&&gs(e,Zs),0===(512&t)||Qs||(Qs=!0,qi(97,(function(){return Dl(),null}))),Zs=Zs.nextEffect}}function Dl(){if(90!==tl){var e=97<tl?97:tl;return tl=90,Gi(e,jl)}return!1}function Nl(e,t){nl.push(t,e),Qs||(Qs=!0,qi(97,(function(){return Dl(),null})))}function Ul(e,t){rl.push(t,e),Qs||(Qs=!0,qi(97,(function(){return Dl(),null})))}function jl(){if(null===el)return!1;var e=el;if(el=null,0!==(48&Is))throw Error(a(331));var t=Is;Is|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===o)throw Error(a(330));Bl(o,c)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(c){if(null===o)throw Error(a(330));Bl(o,c)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Is=t,Xi(),!0}function Fl(e,t,n){uo(e,t=hs(0,t=cs(n,t),1)),t=hl(),null!==(e=ml(e,1))&&(Ht(e,1,t),gl(e,t))}function Bl(e,t){if(3===e.tag)Fl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Fl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Js||!Js.has(r))){var i=ps(n,e=cs(t,e),1);if(uo(n,i),i=hl(),null!==(n=ml(n,1)))Ht(n,1,i),gl(n,i);else if("function"===typeof r.componentDidCatch&&(null===Js||!Js.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function zl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=hl(),e.pingedLanes|=e.suspendedLanes&n,Ls===e&&(Ds&n)===n&&(4===js||3===js&&(62914560&Ds)===Ds&&500>Hi()-Gs?Sl(e,0):Vs|=n),gl(e,t)}function Hl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Vi()?1:2:(0===ll&&(ll=Bs),0===(t=Bt(62914560&~ll))&&(t=4194304))),n=hl(),null!==(e=ml(e,t))&&(Ht(e,t,n),gl(e,n))}function Vl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 4,433 bytes, line 2
2ype=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.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Wl(e,t,n,r){return new Vl(e,t,n,r)}function Gl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ql(e,t){var n=e.alternate;return null===n?((n=Wl(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.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xl(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)Gl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Yl(n.children,i,o,t);case N:s=8,i|=16;break;case M:s=8,i|=1;break;case T:return(e=Wl(12,n,t,8|i)).elementType=T,e.type=T,e.lanes=o,e;case R:return(e=Wl(13,n,t,i)).type=R,e.elementType=R,e.lanes=o,e;case P:return(e=Wl(19,n,t,i)).elementType=P,e.lanes=o,e;case U:return Zl(n,i,o,t);case j:return(e=Wl(24,n,t,i)).elementType=j,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case A:s=10;break e;case O:s=9;break e;case C:s=11;break e;case I:s=14;break e;case L:s=16,r=null;break e;case k:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Wl(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Yl(e,t,n,r){return(e=Wl(7,e,r,t)).lanes=n,e}function Zl(e,t,n,r){return(e=Wl(23,e,r,t)).elementType=U,e.lanes=n,e}function Kl(e,t,n){return(e=Wl(6,e,null,t)).lanes=n,e}function $l(e,t,n){return(t=Wl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.mutableSourceEagerHydrationData=null}function Ql(e,t,n,r){var i=t.current,o=hl(),s=pl(i);e:if(n){t:{if(Ze(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(gi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(gi(c)){n=bi(n,c,l);break e}}n=l}else n=di;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),uo(i,t),fl(i,s,o),s}function ec(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nc(e,t){tc(e,t),(e=e.alternate)&&tc(e,t)}function rc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Jl(e,t,null!=n&&!0===n.hydrate),t=Wl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,so(t),e[Qr]=n.current,Pr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function ic(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function oc(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=ec(a);s.call(e)}}Ql(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 rc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var l=i;
vendor: 7,091 bytes, line 2
2i=function(){var e=ec(a);l.call(e)}}wl((function(){Ql(t,a,e,i)}))}return ec(a)}function ac(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ic(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ys=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||pi.current)Na=!0;else{if(0===(n&r)){switch(Na=!1,t.tag){case 3:qa(t),Xo();break;case 5:Do(t);break;case 1:gi(t.type)&&xi(t);break;case 4:Lo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ui($i,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Ja(e,t,n):(ui(Uo,1&Uo.current),null!==(t=os(e,t,n))?t.sibling:null);ui(Uo,1&Uo.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return is(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(Uo,Uo.current),r)break;return null;case 23:case 24:return t.lanes=0,za(e,t,n)}return os(e,t,n)}Na=0!==(16384&e.flags)}else Na=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=mi(t,hi.current),io(t,n),i=aa(null,t,r,e,i,n),t.flags|=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;xi(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=vo,t.stateNode=i,i._reactInternals=t,wo(t,r,e,n),t=Ga(null,t,r,!0,o,n)}else t.tag=0,Ua(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"===typeof e)return Gl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===C)return 11;if(e===I)return 14}return 2}(i),e=Ki(i,e),o){case 0:t=Va(null,t,i,e,n);break e;case 1:t=Wa(null,t,i,e,n);break e;case 11:t=ja(null,t,i,e,n);break e;case 14:t=Fa(null,t,i,Ki(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Va(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 1:return r=t.type,i=t.pendingProps,Wa(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 3:if(qa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,lo(e,t),po(t,r,null,n),(r=t.memoizedState.element)===i)Xo(),t=os(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Bo=Xr(t.stateNode.containerInfo.firstChild),Fo=t,o=zo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Yo.push(o);for(n=Ao(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ua(e,t,r,n),Xo();t=t.child}return t;case 5:return Do(t),null===e&&Wo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,Vr(r,i)?s=null:null!==o&&Vr(r,o)&&(t.flags|=16),Ha(e,t),Ua(e,t,s,n),t.child;case 6:return null===e&&Wo(t),null;case 13:return Ja(e,t,n);case 4:return Lo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=To(t,null,r,n):Ua(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ja(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 7:return Ua(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ua(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 l=t.type._context;if(ui($i,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=cr(l,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!pi.current){t=os(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&o)){1===l.tag&&((u=co(-1,n&-n)).tag=2,uo(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ro(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Ua(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.flags|=1,Ua(e,t,r,n),t.child;case 14:return o=Ki(i=t.type,t.pendingProps),Fa(e,t,i,o=Ki(i.type,o),r,n);case 15:return Ba(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ki(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,gi(r)?(e=!0,xi(t)):e=!1,io(t,n),bo(t,r,i),wo(t,r,i,n),Ga(null,t,r,!0,e,n);case 19:return is(e,t,n);case 23:case 24:return za(e,t,n)}throw Error(a(156,t.tag))},rc.prototype.render=function(e){Ql(e,this._internalRoot,null,null)},rc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ql(null,e,null,(function(){t[Qr]=null}))},et=function(e){13===e.tag&&(fl(e,4,hl()),nc(e,4))},tt=function(e){13===e.tag&&(fl(e,67108864,hl()),nc(e,67108864))},nt=function(e){if(13===e.tag){var t=hl(),n=pl(e);fl(e,n,t),nc(e,n)}},rt=function(e,t){return t()},Te=function(e,t,n){switch(t){case"input":if(ne(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=ii(r);if(!i)throw Error(a(90));$(r),ne(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ie=xl,Le=function(e,t,n,r,i){var o=Is;Is|=4;try{return Gi(98,e.bind(null,t,n,r,i))}finally{0===(Is=o)&&(Xs(),Xi())}},ke=function(){0===(49&Is)&&(function(){if(null!==il){var e=il;il=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,gl(e,Hi())}))}Xi()}(),Dl())},De=function(e,t){var n=Is;Is|=2;try{return e(t)}finally{0===(Is=n)&&(Xs(),Xi())}};var sc={Events:[ni,ri,ii,Re,Pe,Dl,{current:!1}]},lc={findFiberByHostInstance:ti,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cc={bundleType:lc.bundleType,version:lc.version,rendererPackageName:lc.rendererPackageName,rendererConfig:lc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:lc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{_i=uc.inject(cc),Ei=uc}catch(me){}}
vendor: 6,368 bytes, line 2
2t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sc,t.createPortal=ac,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Is;if(0!==(48&n))return e(t);Is|=1;try{if(e)return Gi(99,e.bind(null,t))}finally{Is=n,Xi()}},t.hydrate=function(e,t,n){if(!ic(t))throw Error(a(200));return oc(null,e,t,!0,n)},t.render=function(e,t,n){if(!ic(t))throw Error(a(200));return oc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ic(e))throw Error(a(40));return!!e._reactRootContainer&&(wl((function(){oc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Qr]=null}))})),!0)},t.unstable_batchedUpdates=xl,t.unstable_createPortal=function(e,t){return ac(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ic(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return oc(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(230)},function(e,t,n){"use strict";var r,i,o,a;if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,d=null,h=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(n){throw setTimeout(h,0),n}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(h,0))},i=function(e,t){d=setTimeout(e,t)},o=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,f=window.clearTimeout;if("undefined"!==typeof console){var m=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://reactjs.org/link/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,v=null,y=-1,b=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,_=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();x=e+b;try{v(!0,e)?_.postMessage(null):(g=!1,v=null)}catch(n){throw _.postMessage(null),n}}else g=!1},r=function(e){v=e,g||(g=!0,_.postMessage(null))},i=function(e,n){y=p((function(){e(t.unstable_now())}),n)},o=function(){f(y),y=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function M(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,l=e[s];if(void 0!==a&&0>T(a,n))void 0!==l&&0>T(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var A=[],O=[],C=1,R=null,P=3,I=!1,L=!1,k=!1;function D(e){for(var t=S(O);null!==t;){if(null===t.callback)M(O);else{if(!(t.startTime<=e))break;M(O),t.sortIndex=t.expirationTime,E(A,t)}t=S(O)}}function N(e){if(k=!1,D(e),!L)if(null!==S(A))L=!0,r(U);else{var t=S(O);null!==t&&i(N,t.startTime-e)}}function U(e,n){L=!1,k&&(k=!1,o()),I=!0;var r=P;try{for(D(n),R=S(A);null!==R&&(!(R.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=R.callback;if("function"===typeof a){R.callback=null,P=R.priorityLevel;var s=a(R.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?R.callback=s:R===S(A)&&M(A),D(n)}else M(A);R=S(A)}if(null!==R)var l=!0;else{var c=S(O);null!==c&&i(N,c.startTime-n),l=!1}return l}finally{R=null,P=r,I=!1}}var j=a;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(){L||I||(L=!0,r(U))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return S(A)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=j,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:C++,callback:n,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,E(O,e),null===S(A)&&e===S(O)&&(k?o():k=!0,i(N,a-s))):(e.sortIndex=l,E(A,e),L||I||(L=!0,r(U))),e},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},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 l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);
2if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(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 f(e,t)),1!==c.length||u||s(p)},f.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";var r,i=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case a:case l:case s:case p:case f:return e;default:switch(e=e&&e.$$typeof){case d:case u:case h:case g:case m:case c:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=c,t.Element=i,t.ForwardRef=h,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=p,t.SuspenseList=f,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return y(e)===u},t.isContextProvider=function(e){return y(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return y(e)===h},t.isFragment=function(e){return y(e)===a},t.isLazy=function(e){return y(e)===g},t.isMemo=function(e){return y(e)===m},t.isPortal=function(e){return y(e)===o},t.isProfiler=function(e){return y(e)===l},t.isStrictMode=function(e){return y(e)===s},t.isSuspense=function(e){return y(e)===p},t.isSuspenseList=function(e){return y(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===l||e===s||e===p||e===f||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===h||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=y},function(e,t,n){"use strict";e.exports=n(234)},function(e,t,n){"use strict";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,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=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,w=r?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case h:case a:case l:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case v:case g:case c:return e;default:return t}}case o:return t}}}function E(e){return _(e)===h}t.AsyncMode=d,t.ConcurrentMode=h,t.ContextConsumer=u,t.ContextProvider=c,t.Element=i,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||_(e)===d},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===l},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===h||e===l||e===s||e===f||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===x||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_},function(e,t,n){"use strict";n(55);var r=n(0),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}
2var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},function(e,t,n){},function(e,t,n){var r=n(238),i=n(239),o=n(123),a=n(240);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},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.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(242);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},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.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(244),i=n(245),o=n(123),a=n(246);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(124);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},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.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(249);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(79).default,i=n(250);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(79).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():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.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}]]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.