@deephaven/embed-chart 0.37.4-logout.0 → 0.37.4-logout.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1175 @@
1
+ import{g as yg,c as Jt,a as Rl}from"./helpers-042e6b4d.js";var XE={},O6={get exports(){return XE},set exports(e){XE=e}},Yd={};/*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */var KE=Object.getOwnPropertySymbols,k6=Object.prototype.hasOwnProperty,M6=Object.prototype.propertyIsEnumerable;function R6(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function P6(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Pl=P6()?Object.assign:function(e,t){for(var r,n=R6(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)k6.call(r,o)&&(n[o]=r[o]);if(KE){i=KE(r);for(var l=0;l<i.length;l++)M6.call(r,i[l])&&(n[i[l]]=r[i[l]])}}return n},zt={},I6={get exports(){return zt},set exports(e){zt=e}},yr={};/** @license React v17.0.2
6
+ * react.production.min.js
7
+ *
8
+ * Copyright (c) Facebook, Inc. and its affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */var R2=Pl,Df=60103,uM=60106;yr.Fragment=60107;yr.StrictMode=60108;yr.Profiler=60114;var lM=60109,sM=60110,fM=60112;yr.Suspense=60113;var cM=60115,hM=60116;if(typeof Symbol=="function"&&Symbol.for){var qi=Symbol.for;Df=qi("react.element"),uM=qi("react.portal"),yr.Fragment=qi("react.fragment"),yr.StrictMode=qi("react.strict_mode"),yr.Profiler=qi("react.profiler"),lM=qi("react.provider"),sM=qi("react.context"),fM=qi("react.forward_ref"),yr.Suspense=qi("react.suspense"),cM=qi("react.memo"),hM=qi("react.lazy")}var QE=typeof Symbol=="function"&&Symbol.iterator;function F6(e){return e===null||typeof e!="object"?null:(e=QE&&e[QE]||e["@@iterator"],typeof e=="function"?e:null)}function Xd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 dM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pM={};function $f(e,t,r){this.props=e,this.context=t,this.refs=pM,this.updater=r||dM}$f.prototype.isReactComponent={};$f.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Xd(85));this.updater.enqueueSetState(this,e,t,"setState")};$f.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function vM(){}vM.prototype=$f.prototype;function P2(e,t,r){this.props=e,this.context=t,this.refs=pM,this.updater=r||dM}var I2=P2.prototype=new vM;I2.constructor=P2;R2(I2,$f.prototype);I2.isPureReactComponent=!0;var F2={current:null},mM=Object.prototype.hasOwnProperty,gM={key:!0,ref:!0,__self:!0,__source:!0};function yM(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)mM.call(t,n)&&!gM.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){for(var s=Array(l),f=0;f<l;f++)s[f]=arguments[f+2];i.children=s}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)i[n]===void 0&&(i[n]=l[n]);return{$$typeof:Df,type:e,key:a,ref:o,props:i,_owner:F2.current}}function N6(e,t){return{$$typeof:Df,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function N2(e){return typeof e=="object"&&e!==null&&e.$$typeof===Df}function L6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var ZE=/\/+/g;function c1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?L6(""+e.key):t.toString(36)}function D0(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Df:case uM:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+c1(o,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(ZE,"$&/")+"/"),D0(i,t,r,"",function(f){return f})):i!=null&&(N2(i)&&(i=N6(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(ZE,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){a=e[l];var s=n+c1(a,l);o+=D0(a,t,r,s,i)}else if(s=F6(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=n+c1(a,l++),o+=D0(a,t,r,s,i);else if(a==="object")throw t=""+e,Error(Xd(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return o}function zv(e,t,r){if(e==null)return e;var n=[],i=0;return D0(e,n,"","",function(a){return t.call(r,a,i++)}),n}function D6(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(r){e._status===0&&(r=r.default,e._status=1,e._result=r)},function(r){e._status===0&&(e._status=2,e._result=r)})}if(e._status===1)return e._result;throw e._result}var bM={current:null};function ao(){var e=bM.current;if(e===null)throw Error(Xd(321));return e}var $6={ReactCurrentDispatcher:bM,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:F2,IsSomeRendererActing:{current:!1},assign:R2};yr.Children={map:zv,forEach:function(e,t,r){zv(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return zv(e,function(){t++}),t},toArray:function(e){return zv(e,function(t){return t})||[]},only:function(e){if(!N2(e))throw Error(Xd(143));return e}};yr.Component=$f;yr.PureComponent=P2;yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$6;yr.cloneElement=function(e,t,r){if(e==null)throw Error(Xd(267,e));var n=R2({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=F2.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)mM.call(t,s)&&!gM.hasOwnProperty(s)&&(n[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){l=Array(s);for(var f=0;f<s;f++)l[f]=arguments[f+2];n.children=l}return{$$typeof:Df,type:e.type,key:i,ref:a,props:n,_owner:o}};yr.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:sM,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:lM,_context:e},e.Consumer=e};yr.createElement=yM;yr.createFactory=function(e){var t=yM.bind(null,e);return t.type=e,t};yr.createRef=function(){return{current:null}};yr.forwardRef=function(e){return{$$typeof:fM,render:e}};yr.isValidElement=N2;yr.lazy=function(e){return{$$typeof:hM,_payload:{_status:-1,_result:e},_init:D6}};yr.memo=function(e,t){return{$$typeof:cM,type:e,compare:t===void 0?null:t}};yr.useCallback=function(e,t){return ao().useCallback(e,t)};yr.useContext=function(e,t){return ao().useContext(e,t)};yr.useDebugValue=function(){};yr.useEffect=function(e,t){return ao().useEffect(e,t)};yr.useImperativeHandle=function(e,t,r){return ao().useImperativeHandle(e,t,r)};yr.useLayoutEffect=function(e,t){return ao().useLayoutEffect(e,t)};yr.useMemo=function(e,t){return ao().useMemo(e,t)};yr.useReducer=function(e,t,r){return ao().useReducer(e,t,r)};yr.useRef=function(e){return ao().useRef(e)};yr.useState=function(e){return ao().useState(e)};yr.version="17.0.2";(function(e){e.exports=yr})(I6);const wr=yg(zt);/** @license React v17.0.2
13
+ * react-jsx-runtime.production.min.js
14
+ *
15
+ * Copyright (c) Facebook, Inc. and its affiliates.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */var B6=zt,xM=60103;Yd.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var JE=Symbol.for;xM=JE("react.element"),Yd.Fragment=JE("react.fragment")}var z6=B6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,U6=Object.prototype.hasOwnProperty,j6={key:!0,ref:!0,__self:!0,__source:!0};function wM(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)U6.call(t,n)&&!j6.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:xM,type:e,key:a,ref:o,props:i,_owner:z6.current}}Yd.jsx=wM;Yd.jsxs=wM;(function(e){e.exports=Yd})(O6);var pd={},G6={get exports(){return pd},set exports(e){pd=e}},Ni={},vw={},W6={get exports(){return vw},set exports(e){vw=e}},_M={};/** @license React v0.20.2
20
+ * scheduler.production.min.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */(function(e){var t,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var s=null,f=null,d=function(){if(s!==null)try{var we=e.unstable_now();s(!0,we),s=null}catch(qe){throw setTimeout(d,0),qe}};t=function(we){s!==null?setTimeout(t,0,we):(s=we,setTimeout(d,0))},r=function(we,qe){f=setTimeout(we,qe)},n=function(){clearTimeout(f)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var g=window.setTimeout,v=window.clearTimeout;if(typeof console<"u"){var y=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof y!="function"&&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 E=!1,k=null,x=-1,w=5,_=0;e.unstable_shouldYield=function(){return e.unstable_now()>=_},i=function(){},e.unstable_forceFrameRate=function(we){0>we||125<we?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<we?Math.floor(1e3/we):5};var C=new MessageChannel,T=C.port2;C.port1.onmessage=function(){if(k!==null){var we=e.unstable_now();_=we+w;try{k(!0,we)?T.postMessage(null):(E=!1,k=null)}catch(qe){throw T.postMessage(null),qe}}else E=!1},t=function(we){k=we,E||(E=!0,T.postMessage(null))},r=function(we,qe){x=g(function(){we(e.unstable_now())},qe)},n=function(){v(x),x=-1}}function F(we,qe){var st=we.length;we.push(qe);e:for(;;){var Ke=st-1>>>1,ct=we[Ke];if(ct!==void 0&&0<j(ct,qe))we[Ke]=qe,we[st]=ct,st=Ke;else break e}}function L(we){return we=we[0],we===void 0?null:we}function V(we){var qe=we[0];if(qe!==void 0){var st=we.pop();if(st!==qe){we[0]=st;e:for(var Ke=0,ct=we.length;Ke<ct;){var yt=2*(Ke+1)-1,qt=we[yt],Yt=yt+1,Qe=we[Yt];if(qt!==void 0&&0>j(qt,st))Qe!==void 0&&0>j(Qe,qt)?(we[Ke]=Qe,we[Yt]=st,Ke=Yt):(we[Ke]=qt,we[yt]=st,Ke=yt);else if(Qe!==void 0&&0>j(Qe,st))we[Ke]=Qe,we[Yt]=st,Ke=Yt;else break e}}return qe}return null}function j(we,qe){var st=we.sortIndex-qe.sortIndex;return st!==0?st:we.id-qe.id}var te=[],ge=[],me=1,ke=null,Fe=3,Le=!1,ut=!1,nt=!1;function De(we){for(var qe=L(ge);qe!==null;){if(qe.callback===null)V(ge);else if(qe.startTime<=we)V(ge),qe.sortIndex=qe.expirationTime,F(te,qe);else break;qe=L(ge)}}function We(we){if(nt=!1,De(we),!ut)if(L(te)!==null)ut=!0,t(_t);else{var qe=L(ge);qe!==null&&r(We,qe.startTime-we)}}function _t(we,qe){ut=!1,nt&&(nt=!1,n()),Le=!0;var st=Fe;try{for(De(qe),ke=L(te);ke!==null&&(!(ke.expirationTime>qe)||we&&!e.unstable_shouldYield());){var Ke=ke.callback;if(typeof Ke=="function"){ke.callback=null,Fe=ke.priorityLevel;var ct=Ke(ke.expirationTime<=qe);qe=e.unstable_now(),typeof ct=="function"?ke.callback=ct:ke===L(te)&&V(te),De(qe)}else V(te);ke=L(te)}if(ke!==null)var yt=!0;else{var qt=L(ge);qt!==null&&r(We,qt.startTime-qe),yt=!1}return yt}finally{ke=null,Fe=st,Le=!1}}var He=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(we){we.callback=null},e.unstable_continueExecution=function(){ut||Le||(ut=!0,t(_t))},e.unstable_getCurrentPriorityLevel=function(){return Fe},e.unstable_getFirstCallbackNode=function(){return L(te)},e.unstable_next=function(we){switch(Fe){case 1:case 2:case 3:var qe=3;break;default:qe=Fe}var st=Fe;Fe=qe;try{return we()}finally{Fe=st}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=He,e.unstable_runWithPriority=function(we,qe){switch(we){case 1:case 2:case 3:case 4:case 5:break;default:we=3}var st=Fe;Fe=we;try{return qe()}finally{Fe=st}},e.unstable_scheduleCallback=function(we,qe,st){var Ke=e.unstable_now();switch(typeof st=="object"&&st!==null?(st=st.delay,st=typeof st=="number"&&0<st?Ke+st:Ke):st=Ke,we){case 1:var ct=-1;break;case 2:ct=250;break;case 5:ct=1073741823;break;case 4:ct=1e4;break;default:ct=5e3}return ct=st+ct,we={id:me++,callback:qe,priorityLevel:we,startTime:st,expirationTime:ct,sortIndex:-1},st>Ke?(we.sortIndex=st,F(ge,we),L(te)===null&&we===L(ge)&&(nt?n():nt=!0,r(We,st-Ke))):(we.sortIndex=ct,F(te,we),ut||Le||(ut=!0,t(_t))),we},e.unstable_wrapCallback=function(we){var qe=Fe;return function(){var st=Fe;Fe=qe;try{return we.apply(this,arguments)}finally{Fe=st}}}})(_M);(function(e){e.exports=_M})(W6);/** @license React v17.0.2
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var bg=zt,Ur=Pl,wn=vw;function dt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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(!bg)throw Error(dt(227));var SM=new Set,vd={};function Il(e,t){bf(e,t),bf(e+"Capture",t)}function bf(e,t){for(vd[e]=t,e=0;e<t.length;e++)SM.add(t[e])}var Ja=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),H6=/^[: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]*$/,eA=Object.prototype.hasOwnProperty,tA={},rA={};function q6(e){return eA.call(rA,e)?!0:eA.call(tA,e)?!1:H6.test(e)?rA[e]=!0:(tA[e]=!0,!1)}function V6(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Y6(e,t,r,n){if(t===null||typeof t>"u"||V6(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function qn(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Rn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rn[e]=new qn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rn[t]=new qn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rn[e]=new qn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rn[e]=new qn(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){Rn[e]=new qn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rn[e]=new qn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rn[e]=new qn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rn[e]=new qn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rn[e]=new qn(e,5,!1,e.toLowerCase(),null,!1,!1)});var L2=/[\-:]([a-z])/g;function D2(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(L2,D2);Rn[t]=new qn(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(L2,D2);Rn[t]=new qn(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(L2,D2);Rn[t]=new qn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rn[e]=new qn(e,1,!1,e.toLowerCase(),null,!1,!1)});Rn.xlinkHref=new qn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rn[e]=new qn(e,1,!1,e.toLowerCase(),null,!0,!0)});function $2(e,t,r,n){var i=Rn.hasOwnProperty(t)?Rn[t]:null,a=i!==null?i.type===0:n?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");a||(Y6(t,r,i,n)&&(r=null),n||i===null?q6(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Fl=bg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fh=60103,ol=60106,Uo=60107,B2=60108,Hh=60114,z2=60109,U2=60110,xg=60112,qh=60113,om=60120,wg=60115,j2=60116,G2=60121,W2=60128,EM=60129,H2=60130,mw=60131;if(typeof Symbol=="function"&&Symbol.for){var mn=Symbol.for;Fh=mn("react.element"),ol=mn("react.portal"),Uo=mn("react.fragment"),B2=mn("react.strict_mode"),Hh=mn("react.profiler"),z2=mn("react.provider"),U2=mn("react.context"),xg=mn("react.forward_ref"),qh=mn("react.suspense"),om=mn("react.suspense_list"),wg=mn("react.memo"),j2=mn("react.lazy"),G2=mn("react.block"),mn("react.scope"),W2=mn("react.opaque.id"),EM=mn("react.debug_trace_mode"),H2=mn("react.offscreen"),mw=mn("react.legacy_hidden")}var nA=typeof Symbol=="function"&&Symbol.iterator;function oh(e){return e===null||typeof e!="object"?null:(e=nA&&e[nA]||e["@@iterator"],typeof e=="function"?e:null)}var h1;function Nh(e){if(h1===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);h1=t&&t[1]||""}return`
34
+ `+h1+e}var d1=!1;function Uv(e,t){if(!e||d1)return"";d1=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var n=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){n=s}e.call(t.prototype)}else{try{throw Error()}catch(s){n=s}e()}}catch(s){if(s&&n&&typeof s.stack=="string"){for(var i=s.stack.split(`
35
+ `),a=n.stack.split(`
36
+ `),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==a[l])return`
37
+ `+i[o].replace(" at new "," at ");while(1<=o&&0<=l);break}}}finally{d1=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Nh(e):""}function X6(e){switch(e.tag){case 5:return Nh(e.type);case 16:return Nh("Lazy");case 13:return Nh("Suspense");case 19:return Nh("SuspenseList");case 0:case 2:case 15:return e=Uv(e.type,!1),e;case 11:return e=Uv(e.type.render,!1),e;case 22:return e=Uv(e.type._render,!1),e;case 1:return e=Uv(e.type,!0),e;default:return""}}function rf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Uo:return"Fragment";case ol:return"Portal";case Hh:return"Profiler";case B2:return"StrictMode";case qh:return"Suspense";case om:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case U2:return(e.displayName||"Context")+".Consumer";case z2:return(e._context.displayName||"Context")+".Provider";case xg:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case wg:return rf(e.type);case G2:return rf(e._render);case j2:t=e._payload,e=e._init;try{return rf(e(t))}catch{}}return null}function iu(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function AM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function K6(e){var t=AM(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jv(e){e._valueTracker||(e._valueTracker=K6(e))}function TM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=AM(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function um(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gw(e,t){var r=t.checked;return Ur({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function iA(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=iu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function CM(e,t){t=t.checked,t!=null&&$2(e,"checked",t,!1)}function yw(e,t){CM(e,t);var r=iu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bw(e,t.type,r):t.hasOwnProperty("defaultValue")&&bw(e,t.type,iu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function aA(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function bw(e,t,r){(t!=="number"||um(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Q6(e){var t="";return bg.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function xw(e,t){return e=Ur({children:void 0},t),(t=Q6(t.children))&&(e.children=t),e}function nf(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+iu(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ww(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(dt(91));return Ur({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oA(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(dt(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(dt(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:iu(r)}}function OM(e,t){var r=iu(t.value),n=iu(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function uA(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var _w={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function kM(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 Sw(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?kM(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gv,MM=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==_w.svg||"innerHTML"in e)e.innerHTML=t;else{for(Gv=Gv||document.createElement("div"),Gv.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Gv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function md(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Vh={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},Z6=["Webkit","ms","Moz","O"];Object.keys(Vh).forEach(function(e){Z6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vh[t]=Vh[e]})});function RM(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Vh.hasOwnProperty(e)&&Vh[e]?(""+t).trim():t+"px"}function PM(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=RM(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var J6=Ur({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 Ew(e,t){if(t){if(J6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(dt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(dt(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(dt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(dt(62))}}function Aw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 q2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tw=null,af=null,of=null;function lA(e){if(e=Qd(e)){if(typeof Tw!="function")throw Error(dt(280));var t=e.stateNode;t&&(t=Cg(t),Tw(e.stateNode,e.type,t))}}function IM(e){af?of?of.push(e):of=[e]:af=e}function FM(){if(af){var e=af,t=of;if(of=af=null,lA(e),t)for(e=0;e<t.length;e++)lA(t[e])}}function V2(e,t){return e(t)}function NM(e,t,r,n,i){return e(t,r,n,i)}function Y2(){}var LM=V2,ul=!1,p1=!1;function X2(){(af!==null||of!==null)&&(Y2(),FM())}function e8(e,t,r){if(p1)return e(t,r);p1=!0;try{return LM(e,t,r)}finally{p1=!1,X2()}}function gd(e,t){var r=e.stateNode;if(r===null)return null;var n=Cg(r);if(n===null)return null;r=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(dt(231,t,typeof r));return r}var Cw=!1;if(Ja)try{var uh={};Object.defineProperty(uh,"passive",{get:function(){Cw=!0}}),window.addEventListener("test",uh,uh),window.removeEventListener("test",uh,uh)}catch{Cw=!1}function t8(e,t,r,n,i,a,o,l,s){var f=Array.prototype.slice.call(arguments,3);try{t.apply(r,f)}catch(d){this.onError(d)}}var Yh=!1,lm=null,sm=!1,Ow=null,r8={onError:function(e){Yh=!0,lm=e}};function n8(e,t,r,n,i,a,o,l,s){Yh=!1,lm=null,t8.apply(r8,arguments)}function i8(e,t,r,n,i,a,o,l,s){if(n8.apply(this,arguments),Yh){if(Yh){var f=lm;Yh=!1,lm=null}else throw Error(dt(198));sm||(sm=!0,Ow=f)}}function Nl(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function DM(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function sA(e){if(Nl(e)!==e)throw Error(dt(188))}function a8(e){var t=e.alternate;if(!t){if(t=Nl(e),t===null)throw Error(dt(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return sA(i),e;if(a===n)return sA(i),t;a=a.sibling}throw Error(dt(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,l=i.child;l;){if(l===r){o=!0,r=i,n=a;break}if(l===n){o=!0,n=i,r=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===r){o=!0,r=a,n=i;break}if(l===n){o=!0,n=a,r=i;break}l=l.sibling}if(!o)throw Error(dt(189))}}if(r.alternate!==n)throw Error(dt(190))}if(r.tag!==3)throw Error(dt(188));return r.stateNode.current===r?e:t}function $M(e){if(e=a8(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)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 fA(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var BM,K2,zM,UM,kw=!1,pa=[],Xo=null,Ko=null,Qo=null,yd=new Map,bd=new Map,lh=[],cA="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 Mw(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function hA(e,t){switch(e){case"focusin":case"focusout":Xo=null;break;case"dragenter":case"dragleave":Ko=null;break;case"mouseover":case"mouseout":Qo=null;break;case"pointerover":case"pointerout":yd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bd.delete(t.pointerId)}}function sh(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e=Mw(t,r,n,i,a),t!==null&&(t=Qd(t),t!==null&&K2(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function o8(e,t,r,n,i){switch(t){case"focusin":return Xo=sh(Xo,e,t,r,n,i),!0;case"dragenter":return Ko=sh(Ko,e,t,r,n,i),!0;case"mouseover":return Qo=sh(Qo,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return yd.set(a,sh(yd.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,bd.set(a,sh(bd.get(a)||null,e,t,r,n,i)),!0}return!1}function u8(e){var t=ll(e.target);if(t!==null){var r=Nl(t);if(r!==null){if(t=r.tag,t===13){if(t=DM(r),t!==null){e.blockedOn=t,UM(e.lanePriority,function(){wn.unstable_runWithPriority(e.priority,function(){zM(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $0(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=eS(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=Qd(r),t!==null&&K2(t),e.blockedOn=r,!1;t.shift()}return!0}function dA(e,t,r){$0(e)&&r.delete(t)}function l8(){for(kw=!1;0<pa.length;){var e=pa[0];if(e.blockedOn!==null){e=Qd(e.blockedOn),e!==null&&BM(e);break}for(var t=e.targetContainers;0<t.length;){var r=eS(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&pa.shift()}Xo!==null&&$0(Xo)&&(Xo=null),Ko!==null&&$0(Ko)&&(Ko=null),Qo!==null&&$0(Qo)&&(Qo=null),yd.forEach(dA),bd.forEach(dA)}function fh(e,t){e.blockedOn===t&&(e.blockedOn=null,kw||(kw=!0,wn.unstable_scheduleCallback(wn.unstable_NormalPriority,l8)))}function jM(e){function t(i){return fh(i,e)}if(0<pa.length){fh(pa[0],e);for(var r=1;r<pa.length;r++){var n=pa[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Xo!==null&&fh(Xo,e),Ko!==null&&fh(Ko,e),Qo!==null&&fh(Qo,e),yd.forEach(t),bd.forEach(t),r=0;r<lh.length;r++)n=lh[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<lh.length&&(r=lh[0],r.blockedOn===null);)u8(r),r.blockedOn===null&&lh.shift()}function Wv(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Hs={animationend:Wv("Animation","AnimationEnd"),animationiteration:Wv("Animation","AnimationIteration"),animationstart:Wv("Animation","AnimationStart"),transitionend:Wv("Transition","TransitionEnd")},v1={},GM={};Ja&&(GM=document.createElement("div").style,"AnimationEvent"in window||(delete Hs.animationend.animation,delete Hs.animationiteration.animation,delete Hs.animationstart.animation),"TransitionEvent"in window||delete Hs.transitionend.transition);function _g(e){if(v1[e])return v1[e];if(!Hs[e])return e;var t=Hs[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in GM)return v1[e]=t[r];return e}var WM=_g("animationend"),HM=_g("animationiteration"),qM=_g("animationstart"),VM=_g("transitionend"),YM=new Map,Q2=new Map,s8=["abort","abort",WM,"animationEnd",HM,"animationIteration",qM,"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",VM,"transitionEnd","waiting","waiting"];function Z2(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Q2.set(n,t),YM.set(n,i),Il(i,[n])}}var f8=wn.unstable_now;f8();var Fr=8;function zs(e){if(1&e)return Fr=15,1;if(2&e)return Fr=14,2;if(4&e)return Fr=13,4;var t=24&e;return t!==0?(Fr=12,t):e&32?(Fr=11,32):(t=192&e,t!==0?(Fr=10,t):e&256?(Fr=9,256):(t=3584&e,t!==0?(Fr=8,t):e&4096?(Fr=7,4096):(t=4186112&e,t!==0?(Fr=6,t):(t=62914560&e,t!==0?(Fr=5,t):e&67108864?(Fr=4,67108864):e&134217728?(Fr=3,134217728):(t=805306368&e,t!==0?(Fr=2,t):1073741824&e?(Fr=1,1073741824):(Fr=8,e))))))}function c8(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function h8(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 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(dt(358,e))}}function xd(e,t){var r=e.pendingLanes;if(r===0)return Fr=0;var n=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(a!==0)n=a,i=Fr=15;else if(a=r&134217727,a!==0){var s=a&~o;s!==0?(n=zs(s),i=Fr):(l&=a,l!==0&&(n=zs(l),i=Fr))}else a=r&~o,a!==0?(n=zs(a),i=Fr):l!==0&&(n=zs(l),i=Fr);if(n===0)return 0;if(n=31-au(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&!(t&o)){if(zs(t),i<=Fr)return t;Fr=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-au(t),i=1<<r,n|=e[r],t&=~i;return n}function XM(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function fm(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Us(24&~t),e===0?fm(10,t):e;case 10:return e=Us(192&~t),e===0?fm(8,t):e;case 8:return e=Us(3584&~t),e===0&&(e=Us(4186112&~t),e===0&&(e=512)),e;case 2:return t=Us(805306368&~t),t===0&&(t=268435456),t}throw Error(dt(358,e))}function Us(e){return e&-e}function m1(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Sg(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-au(t),e[t]=r}var au=Math.clz32?Math.clz32:v8,d8=Math.log,p8=Math.LN2;function v8(e){return e===0?32:31-(d8(e)/p8|0)|0}var m8=wn.unstable_UserBlockingPriority,g8=wn.unstable_runWithPriority,B0=!0;function y8(e,t,r,n){ul||Y2();var i=J2,a=ul;ul=!0;try{NM(i,e,t,r,n)}finally{(ul=a)||X2()}}function b8(e,t,r,n){g8(m8,J2.bind(null,e,t,r,n))}function J2(e,t,r,n){if(B0){var i;if((i=(t&4)===0)&&0<pa.length&&-1<cA.indexOf(e))e=Mw(null,e,t,r,n),pa.push(e);else{var a=eS(e,t,r,n);if(a===null)i&&hA(e,n);else{if(i){if(-1<cA.indexOf(e)){e=Mw(a,e,t,r,n),pa.push(e);return}if(o8(a,e,t,r,n))return;hA(e,n)}lR(e,t,n,null,r)}}}}function eS(e,t,r,n){var i=q2(n);if(i=ll(i),i!==null){var a=Nl(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=DM(a),i!==null)return i;i=null}else if(o===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return lR(e,t,n,i,r),null}var Go=null,tS=null,z0=null;function KM(){if(z0)return z0;var e,t=tS,r=t.length,n,i="value"in Go?Go.value:Go.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return z0=i.slice(e,1<n?1-n:void 0)}function U0(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Hv(){return!0}function pA(){return!1}function gi(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Hv:pA,this.isPropagationStopped=pA,this}return Ur(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Hv)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Hv)},persist:function(){},isPersistent:Hv}),t}var Bf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rS=gi(Bf),Kd=Ur({},Bf,{view:0,detail:0}),x8=gi(Kd),g1,y1,ch,Eg=Ur({},Kd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nS,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ch&&(ch&&e.type==="mousemove"?(g1=e.screenX-ch.screenX,y1=e.screenY-ch.screenY):y1=g1=0,ch=e),g1)},movementY:function(e){return"movementY"in e?e.movementY:y1}}),vA=gi(Eg),w8=Ur({},Eg,{dataTransfer:0}),_8=gi(w8),S8=Ur({},Kd,{relatedTarget:0}),b1=gi(S8),E8=Ur({},Bf,{animationName:0,elapsedTime:0,pseudoElement:0}),A8=gi(E8),T8=Ur({},Bf,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),C8=gi(T8),O8=Ur({},Bf,{data:0}),mA=gi(O8),k8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},M8={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"},R8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function P8(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=R8[e])?!!t[e]:!1}function nS(){return P8}var I8=Ur({},Kd,{key:function(e){if(e.key){var t=k8[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=U0(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?M8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nS,charCode:function(e){return e.type==="keypress"?U0(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?U0(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),F8=gi(I8),N8=Ur({},Eg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gA=gi(N8),L8=Ur({},Kd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nS}),D8=gi(L8),$8=Ur({},Bf,{propertyName:0,elapsedTime:0,pseudoElement:0}),B8=gi($8),z8=Ur({},Eg,{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}),U8=gi(z8),j8=[9,13,27,32],iS=Ja&&"CompositionEvent"in window,Xh=null;Ja&&"documentMode"in document&&(Xh=document.documentMode);var G8=Ja&&"TextEvent"in window&&!Xh,QM=Ja&&(!iS||Xh&&8<Xh&&11>=Xh),yA=String.fromCharCode(32),bA=!1;function ZM(e,t){switch(e){case"keyup":return j8.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function JM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qs=!1;function W8(e,t){switch(e){case"compositionend":return JM(t);case"keypress":return t.which!==32?null:(bA=!0,yA);case"textInput":return e=t.data,e===yA&&bA?null:e;default:return null}}function H8(e,t){if(qs)return e==="compositionend"||!iS&&ZM(e,t)?(e=KM(),z0=tS=Go=null,qs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return QM&&t.locale!=="ko"?null:t.data;default:return null}}var q8={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 xA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!q8[e.type]:t==="textarea"}function eR(e,t,r,n){IM(n),t=cm(t,"onChange"),0<t.length&&(r=new rS("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Kh=null,wd=null;function V8(e){aR(e,0)}function Ag(e){var t=Ys(e);if(TM(t))return e}function Y8(e,t){if(e==="change")return t}var tR=!1;if(Ja){var x1;if(Ja){var w1="oninput"in document;if(!w1){var wA=document.createElement("div");wA.setAttribute("oninput","return;"),w1=typeof wA.oninput=="function"}x1=w1}else x1=!1;tR=x1&&(!document.documentMode||9<document.documentMode)}function _A(){Kh&&(Kh.detachEvent("onpropertychange",rR),wd=Kh=null)}function rR(e){if(e.propertyName==="value"&&Ag(wd)){var t=[];if(eR(t,wd,e,q2(e)),e=V8,ul)e(t);else{ul=!0;try{V2(e,t)}finally{ul=!1,X2()}}}}function X8(e,t,r){e==="focusin"?(_A(),Kh=t,wd=r,Kh.attachEvent("onpropertychange",rR)):e==="focusout"&&_A()}function K8(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ag(wd)}function Q8(e,t){if(e==="click")return Ag(t)}function Z8(e,t){if(e==="input"||e==="change")return Ag(t)}function J8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oi=typeof Object.is=="function"?Object.is:J8,eL=Object.prototype.hasOwnProperty;function _d(e,t){if(Oi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!eL.call(t,r[n])||!Oi(e[r[n]],t[r[n]]))return!1;return!0}function SA(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function EA(e,t){var r=SA(e);e=0;for(var n;r;){if(r.nodeType===3){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=SA(r)}}function nR(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function AA(){for(var e=window,t=um();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=um(e.document)}return t}function Rw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var tL=Ja&&"documentMode"in document&&11>=document.documentMode,Vs=null,Pw=null,Qh=null,Iw=!1;function TA(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Iw||Vs==null||Vs!==um(n)||(n=Vs,"selectionStart"in n&&Rw(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Qh&&_d(Qh,n)||(Qh=n,n=cm(Pw,"onSelect"),0<n.length&&(t=new rS("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Vs)))}Z2("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);Z2("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);Z2(s8,2);for(var CA="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_1=0;_1<CA.length;_1++)Q2.set(CA[_1],0);bf("onMouseEnter",["mouseout","mouseover"]);bf("onMouseLeave",["mouseout","mouseover"]);bf("onPointerEnter",["pointerout","pointerover"]);bf("onPointerLeave",["pointerout","pointerover"]);Il("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Il("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Il("onBeforeInput",["compositionend","keypress","textInput","paste"]);Il("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Il("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Il("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),iR=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lh));function OA(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,i8(n,t,void 0,e),e.currentTarget=null}function aR(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],s=l.instance,f=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;OA(i,l,f),a=s}else for(o=0;o<n.length;o++){if(l=n[o],s=l.instance,f=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;OA(i,l,f),a=s}}}if(sm)throw e=Ow,sm=!1,Ow=null,e}function Nr(e,t){var r=fR(t),n=e+"__bubble";r.has(n)||(uR(t,e,2,!1),r.add(n))}var kA="_reactListening"+Math.random().toString(36).slice(2);function oR(e){e[kA]||(e[kA]=!0,SM.forEach(function(t){iR.has(t)||MA(t,!1,e,null),MA(t,!0,e,null)}))}function MA(e,t,r,n){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,a=r;if(e==="selectionchange"&&r.nodeType!==9&&(a=r.ownerDocument),n!==null&&!t&&iR.has(e)){if(e!=="scroll")return;i|=2,a=n}var o=fR(a),l=e+"__"+(t?"capture":"bubble");o.has(l)||(t&&(i|=4),uR(a,e,i,t),o.add(l))}function uR(e,t,r,n){var i=Q2.get(t);switch(i===void 0?2:i){case 0:i=y8;break;case 1:i=b8;break;default:i=J2}r=i.bind(null,t,r,e),i=void 0,!Cw||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function lR(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;l!==null;){if(o=ll(l),o===null)return;if(s=o.tag,s===5||s===6){n=a=o;continue e}l=l.parentNode}}n=n.return}e8(function(){var f=a,d=q2(r),g=[];e:{var v=YM.get(e);if(v!==void 0){var y=rS,E=e;switch(e){case"keypress":if(U0(r)===0)break e;case"keydown":case"keyup":y=F8;break;case"focusin":E="focus",y=b1;break;case"focusout":E="blur",y=b1;break;case"beforeblur":case"afterblur":y=b1;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=vA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=_8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=D8;break;case WM:case HM:case qM:y=A8;break;case VM:y=B8;break;case"scroll":y=x8;break;case"wheel":y=U8;break;case"copy":case"cut":case"paste":y=C8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=gA}var k=(t&4)!==0,x=!k&&e==="scroll",w=k?v!==null?v+"Capture":null:v;k=[];for(var _=f,C;_!==null;){C=_;var T=C.stateNode;if(C.tag===5&&T!==null&&(C=T,w!==null&&(T=gd(_,w),T!=null&&k.push(Sd(_,T,C)))),x)break;_=_.return}0<k.length&&(v=new y(v,E,null,r,d),g.push({event:v,listeners:k}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",v&&!(t&16)&&(E=r.relatedTarget||r.fromElement)&&(ll(E)||E[zf]))break e;if((y||v)&&(v=d.window===d?d:(v=d.ownerDocument)?v.defaultView||v.parentWindow:window,y?(E=r.relatedTarget||r.toElement,y=f,E=E?ll(E):null,E!==null&&(x=Nl(E),E!==x||E.tag!==5&&E.tag!==6)&&(E=null)):(y=null,E=f),y!==E)){if(k=vA,T="onMouseLeave",w="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(k=gA,T="onPointerLeave",w="onPointerEnter",_="pointer"),x=y==null?v:Ys(y),C=E==null?v:Ys(E),v=new k(T,_+"leave",y,r,d),v.target=x,v.relatedTarget=C,T=null,ll(d)===f&&(k=new k(w,_+"enter",E,r,d),k.target=C,k.relatedTarget=x,T=k),x=T,y&&E)t:{for(k=y,w=E,_=0,C=k;C;C=Ms(C))_++;for(C=0,T=w;T;T=Ms(T))C++;for(;0<_-C;)k=Ms(k),_--;for(;0<C-_;)w=Ms(w),C--;for(;_--;){if(k===w||w!==null&&k===w.alternate)break t;k=Ms(k),w=Ms(w)}k=null}else k=null;y!==null&&RA(g,v,y,k,!1),E!==null&&x!==null&&RA(g,x,E,k,!0)}}e:{if(v=f?Ys(f):window,y=v.nodeName&&v.nodeName.toLowerCase(),y==="select"||y==="input"&&v.type==="file")var F=Y8;else if(xA(v))if(tR)F=Z8;else{F=K8;var L=X8}else(y=v.nodeName)&&y.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(F=Q8);if(F&&(F=F(e,f))){eR(g,F,r,d);break e}L&&L(e,v,f),e==="focusout"&&(L=v._wrapperState)&&L.controlled&&v.type==="number"&&bw(v,"number",v.value)}switch(L=f?Ys(f):window,e){case"focusin":(xA(L)||L.contentEditable==="true")&&(Vs=L,Pw=f,Qh=null);break;case"focusout":Qh=Pw=Vs=null;break;case"mousedown":Iw=!0;break;case"contextmenu":case"mouseup":case"dragend":Iw=!1,TA(g,r,d);break;case"selectionchange":if(tL)break;case"keydown":case"keyup":TA(g,r,d)}var V;if(iS)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else qs?ZM(e,r)&&(j="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(j="onCompositionStart");j&&(QM&&r.locale!=="ko"&&(qs||j!=="onCompositionStart"?j==="onCompositionEnd"&&qs&&(V=KM()):(Go=d,tS="value"in Go?Go.value:Go.textContent,qs=!0)),L=cm(f,j),0<L.length&&(j=new mA(j,e,null,r,d),g.push({event:j,listeners:L}),V?j.data=V:(V=JM(r),V!==null&&(j.data=V)))),(V=G8?W8(e,r):H8(e,r))&&(f=cm(f,"onBeforeInput"),0<f.length&&(d=new mA("onBeforeInput","beforeinput",null,r,d),g.push({event:d,listeners:f}),d.data=V))}aR(g,t)})}function Sd(e,t,r){return{instance:e,listener:t,currentTarget:r}}function cm(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=gd(e,r),a!=null&&n.unshift(Sd(e,a,i)),a=gd(e,t),a!=null&&n.push(Sd(e,a,i))),e=e.return}return n}function Ms(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function RA(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var l=r,s=l.alternate,f=l.stateNode;if(s!==null&&s===n)break;l.tag===5&&f!==null&&(l=f,i?(s=gd(r,a),s!=null&&o.unshift(Sd(r,s,l))):i||(s=gd(r,a),s!=null&&o.push(Sd(r,s,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}function hm(){}var S1=null,E1=null;function sR(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Fw(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var PA=typeof setTimeout=="function"?setTimeout:void 0,rL=typeof clearTimeout=="function"?clearTimeout:void 0;function aS(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function uf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function IA(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var A1=0;function nL(e){return{$$typeof:W2,toString:e,valueOf:e}}var Tg=Math.random().toString(36).slice(2),Wo="__reactFiber$"+Tg,dm="__reactProps$"+Tg,zf="__reactContainer$"+Tg,FA="__reactEvents$"+Tg;function ll(e){var t=e[Wo];if(t)return t;for(var r=e.parentNode;r;){if(t=r[zf]||r[Wo]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=IA(e);e!==null;){if(r=e[Wo])return r;e=IA(e)}return t}e=r,r=e.parentNode}return null}function Qd(e){return e=e[Wo]||e[zf],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ys(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(dt(33))}function Cg(e){return e[dm]||null}function fR(e){var t=e[FA];return t===void 0&&(t=e[FA]=new Set),t}var Nw=[],Xs=-1;function vu(e){return{current:e}}function Dr(e){0>Xs||(e.current=Nw[Xs],Nw[Xs]=null,Xs--)}function Vr(e,t){Xs++,Nw[Xs]=e.current,e.current=t}var ou={},$n=vu(ou),ri=vu(!1),bl=ou;function xf(e,t){var r=e.type.contextTypes;if(!r)return ou;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ni(e){return e=e.childContextTypes,e!=null}function pm(){Dr(ri),Dr($n)}function NA(e,t,r){if($n.current!==ou)throw Error(dt(168));Vr($n,t),Vr(ri,r)}function cR(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(dt(108,rf(t)||"Unknown",i));return Ur({},r,n)}function j0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ou,bl=$n.current,Vr($n,e),Vr(ri,ri.current),!0}function LA(e,t,r){var n=e.stateNode;if(!n)throw Error(dt(169));r?(e=cR(e,t,bl),n.__reactInternalMemoizedMergedChildContext=e,Dr(ri),Dr($n),Vr($n,e)):Dr(ri),Vr(ri,r)}var oS=null,pl=null,iL=wn.unstable_runWithPriority,uS=wn.unstable_scheduleCallback,Lw=wn.unstable_cancelCallback,aL=wn.unstable_shouldYield,DA=wn.unstable_requestPaint,Dw=wn.unstable_now,oL=wn.unstable_getCurrentPriorityLevel,Og=wn.unstable_ImmediatePriority,hR=wn.unstable_UserBlockingPriority,dR=wn.unstable_NormalPriority,pR=wn.unstable_LowPriority,vR=wn.unstable_IdlePriority,T1={},uL=DA!==void 0?DA:function(){},Va=null,G0=null,C1=!1,$A=Dw(),Ln=1e4>$A?Dw:function(){return Dw()-$A};function wf(){switch(oL()){case Og:return 99;case hR:return 98;case dR:return 97;case pR:return 96;case vR:return 95;default:throw Error(dt(332))}}function mR(e){switch(e){case 99:return Og;case 98:return hR;case 97:return dR;case 96:return pR;case 95:return vR;default:throw Error(dt(332))}}function xl(e,t){return e=mR(e),iL(e,t)}function Ed(e,t,r){return e=mR(e),uS(e,t,r)}function Sa(){if(G0!==null){var e=G0;G0=null,Lw(e)}gR()}function gR(){if(!C1&&Va!==null){C1=!0;var e=0;try{var t=Va;xl(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),Va=null}catch(r){throw Va!==null&&(Va=Va.slice(e+1)),uS(Og,Sa),r}finally{C1=!1}}}var lL=Fl.ReactCurrentBatchConfig;function Yi(e,t){if(e&&e.defaultProps){t=Ur({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var vm=vu(null),mm=null,Ks=null,gm=null;function lS(){gm=Ks=mm=null}function sS(e){var t=vm.current;Dr(vm),e.type._context._currentValue=t}function yR(e,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t){if(r===null||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,r!==null&&(r.childLanes|=t);e=e.return}}function lf(e,t){mm=e,gm=Ks=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ki=!0),e.firstContext=null)}function Ii(e,t){if(gm!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(gm=e,t=1073741823),t={context:e,observedBits:t,next:null},Ks===null){if(mm===null)throw Error(dt(308));Ks=t,mm.dependencies={lanes:0,firstContext:t,responders:null}}else Ks=Ks.next=t;return e._currentValue}var Do=!1;function fS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function bR(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 Zo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jo(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function BA(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ad(e,t,r,n){var i=e.updateQueue;Do=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,f=s.next;s.next=null,o===null?a=f:o.next=f,o=s;var d=e.alternate;if(d!==null){d=d.updateQueue;var g=d.lastBaseUpdate;g!==o&&(g===null?d.firstBaseUpdate=f:g.next=f,d.lastBaseUpdate=s)}}if(a!==null){g=i.baseState,o=0,d=f=s=null;do{l=a.lane;var v=a.eventTime;if((n&l)===l){d!==null&&(d=d.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,E=a;switch(l=t,v=r,E.tag){case 1:if(y=E.payload,typeof y=="function"){g=y.call(v,g,l);break e}g=y;break e;case 3:y.flags=y.flags&-4097|64;case 0:if(y=E.payload,l=typeof y=="function"?y.call(v,g,l):y,l==null)break e;g=Ur({},g,l);break e;case 2:Do=!0}}a.callback!==null&&(e.flags|=32,l=i.effects,l===null?i.effects=[a]:l.push(a))}else v={eventTime:v,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(f=d=v,s=g):d=d.next=v,o|=l;if(a=a.next,a===null){if(l=i.shared.pending,l===null)break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}while(1);d===null&&(s=g),i.baseState=s,i.firstBaseUpdate=f,i.lastBaseUpdate=d,Jd|=o,e.lanes=o,e.memoizedState=g}}function zA(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(dt(191,i));i.call(n)}}}var xR=new bg.Component().refs;function ym(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ur({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var kg={isMounted:function(e){return(e=e._reactInternals)?Nl(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=vi(),i=eu(e),a=Zo(n,i);a.payload=t,r!=null&&(a.callback=r),Jo(e,a),tu(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=vi(),i=eu(e),a=Zo(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),Jo(e,a),tu(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=vi(),n=eu(e),i=Zo(r,n);i.tag=2,t!=null&&(i.callback=t),Jo(e,i),tu(e,n,r)}};function UA(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!_d(r,n)||!_d(i,a):!0}function wR(e,t,r){var n=!1,i=ou,a=t.contextType;return typeof a=="object"&&a!==null?a=Ii(a):(i=ni(t)?bl:$n.current,n=t.contextTypes,a=(n=n!=null)?xf(e,i):ou),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=kg,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function jA(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&kg.enqueueReplaceState(t,t.state,null)}function $w(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=xR,fS(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Ii(a):(a=ni(t)?bl:$n.current,i.context=xf(e,a)),Ad(e,r,i,n),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(ym(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&kg.enqueueReplaceState(i,i.state,null),Ad(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var qv=Array.isArray;function hh(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(dt(309));var n=r.stateNode}if(!n)throw Error(dt(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var o=n.refs;o===xR&&(o=n.refs={}),a===null?delete o[i]:o[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(dt(284));if(!r._owner)throw Error(dt(290,e))}return e}function Vv(e,t){if(e.type!=="textarea")throw Error(dt(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _R(e){function t(x,w){if(e){var _=x.lastEffect;_!==null?(_.nextEffect=w,x.lastEffect=w):x.firstEffect=x.lastEffect=w,w.nextEffect=null,w.flags=8}}function r(x,w){if(!e)return null;for(;w!==null;)t(x,w),w=w.sibling;return null}function n(x,w){for(x=new Map;w!==null;)w.key!==null?x.set(w.key,w):x.set(w.index,w),w=w.sibling;return x}function i(x,w){return x=lu(x,w),x.index=0,x.sibling=null,x}function a(x,w,_){return x.index=_,e?(_=x.alternate,_!==null?(_=_.index,_<w?(x.flags=2,w):_):(x.flags=2,w)):w}function o(x){return e&&x.alternate===null&&(x.flags=2),x}function l(x,w,_,C){return w===null||w.tag!==6?(w=P1(_,x.mode,C),w.return=x,w):(w=i(w,_),w.return=x,w)}function s(x,w,_,C){return w!==null&&w.elementType===_.type?(C=i(w,_.props),C.ref=hh(x,w,_),C.return=x,C):(C=V0(_.type,_.key,_.props,null,x.mode,C),C.ref=hh(x,w,_),C.return=x,C)}function f(x,w,_,C){return w===null||w.tag!==4||w.stateNode.containerInfo!==_.containerInfo||w.stateNode.implementation!==_.implementation?(w=I1(_,x.mode,C),w.return=x,w):(w=i(w,_.children||[]),w.return=x,w)}function d(x,w,_,C,T){return w===null||w.tag!==7?(w=hf(_,x.mode,C,T),w.return=x,w):(w=i(w,_),w.return=x,w)}function g(x,w,_){if(typeof w=="string"||typeof w=="number")return w=P1(""+w,x.mode,_),w.return=x,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Fh:return _=V0(w.type,w.key,w.props,null,x.mode,_),_.ref=hh(x,null,w),_.return=x,_;case ol:return w=I1(w,x.mode,_),w.return=x,w}if(qv(w)||oh(w))return w=hf(w,x.mode,_,null),w.return=x,w;Vv(x,w)}return null}function v(x,w,_,C){var T=w!==null?w.key:null;if(typeof _=="string"||typeof _=="number")return T!==null?null:l(x,w,""+_,C);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Fh:return _.key===T?_.type===Uo?d(x,w,_.props.children,C,T):s(x,w,_,C):null;case ol:return _.key===T?f(x,w,_,C):null}if(qv(_)||oh(_))return T!==null?null:d(x,w,_,C,null);Vv(x,_)}return null}function y(x,w,_,C,T){if(typeof C=="string"||typeof C=="number")return x=x.get(_)||null,l(w,x,""+C,T);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Fh:return x=x.get(C.key===null?_:C.key)||null,C.type===Uo?d(w,x,C.props.children,T,C.key):s(w,x,C,T);case ol:return x=x.get(C.key===null?_:C.key)||null,f(w,x,C,T)}if(qv(C)||oh(C))return x=x.get(_)||null,d(w,x,C,T,null);Vv(w,C)}return null}function E(x,w,_,C){for(var T=null,F=null,L=w,V=w=0,j=null;L!==null&&V<_.length;V++){L.index>V?(j=L,L=null):j=L.sibling;var te=v(x,L,_[V],C);if(te===null){L===null&&(L=j);break}e&&L&&te.alternate===null&&t(x,L),w=a(te,w,V),F===null?T=te:F.sibling=te,F=te,L=j}if(V===_.length)return r(x,L),T;if(L===null){for(;V<_.length;V++)L=g(x,_[V],C),L!==null&&(w=a(L,w,V),F===null?T=L:F.sibling=L,F=L);return T}for(L=n(x,L);V<_.length;V++)j=y(L,x,V,_[V],C),j!==null&&(e&&j.alternate!==null&&L.delete(j.key===null?V:j.key),w=a(j,w,V),F===null?T=j:F.sibling=j,F=j);return e&&L.forEach(function(ge){return t(x,ge)}),T}function k(x,w,_,C){var T=oh(_);if(typeof T!="function")throw Error(dt(150));if(_=T.call(_),_==null)throw Error(dt(151));for(var F=T=null,L=w,V=w=0,j=null,te=_.next();L!==null&&!te.done;V++,te=_.next()){L.index>V?(j=L,L=null):j=L.sibling;var ge=v(x,L,te.value,C);if(ge===null){L===null&&(L=j);break}e&&L&&ge.alternate===null&&t(x,L),w=a(ge,w,V),F===null?T=ge:F.sibling=ge,F=ge,L=j}if(te.done)return r(x,L),T;if(L===null){for(;!te.done;V++,te=_.next())te=g(x,te.value,C),te!==null&&(w=a(te,w,V),F===null?T=te:F.sibling=te,F=te);return T}for(L=n(x,L);!te.done;V++,te=_.next())te=y(L,x,V,te.value,C),te!==null&&(e&&te.alternate!==null&&L.delete(te.key===null?V:te.key),w=a(te,w,V),F===null?T=te:F.sibling=te,F=te);return e&&L.forEach(function(me){return t(x,me)}),T}return function(x,w,_,C){var T=typeof _=="object"&&_!==null&&_.type===Uo&&_.key===null;T&&(_=_.props.children);var F=typeof _=="object"&&_!==null;if(F)switch(_.$$typeof){case Fh:e:{for(F=_.key,T=w;T!==null;){if(T.key===F){switch(T.tag){case 7:if(_.type===Uo){r(x,T.sibling),w=i(T,_.props.children),w.return=x,x=w;break e}break;default:if(T.elementType===_.type){r(x,T.sibling),w=i(T,_.props),w.ref=hh(x,T,_),w.return=x,x=w;break e}}r(x,T);break}else t(x,T);T=T.sibling}_.type===Uo?(w=hf(_.props.children,x.mode,C,_.key),w.return=x,x=w):(C=V0(_.type,_.key,_.props,null,x.mode,C),C.ref=hh(x,w,_),C.return=x,x=C)}return o(x);case ol:e:{for(T=_.key;w!==null;){if(w.key===T)if(w.tag===4&&w.stateNode.containerInfo===_.containerInfo&&w.stateNode.implementation===_.implementation){r(x,w.sibling),w=i(w,_.children||[]),w.return=x,x=w;break e}else{r(x,w);break}else t(x,w);w=w.sibling}w=I1(_,x.mode,C),w.return=x,x=w}return o(x)}if(typeof _=="string"||typeof _=="number")return _=""+_,w!==null&&w.tag===6?(r(x,w.sibling),w=i(w,_),w.return=x,x=w):(r(x,w),w=P1(_,x.mode,C),w.return=x,x=w),o(x);if(qv(_))return E(x,w,_,C);if(oh(_))return k(x,w,_,C);if(F&&Vv(x,_),typeof _>"u"&&!T)switch(x.tag){case 1:case 22:case 0:case 11:case 15:throw Error(dt(152,rf(x.type)||"Component"))}return r(x,w)}}var bm=_R(!0),SR=_R(!1),Zd={},ya=vu(Zd),Td=vu(Zd),Cd=vu(Zd);function sl(e){if(e===Zd)throw Error(dt(174));return e}function Bw(e,t){switch(Vr(Cd,t),Vr(Td,e),Vr(ya,Zd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Sw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Sw(t,e)}Dr(ya),Vr(ya,t)}function _f(){Dr(ya),Dr(Td),Dr(Cd)}function GA(e){sl(Cd.current);var t=sl(ya.current),r=Sw(t,e.type);t!==r&&(Vr(Td,e),Vr(ya,r))}function cS(e){Td.current===e&&(Dr(ya),Dr(Td))}var Hr=vu(0);function xm(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xa=null,Ho=null,ba=!1;function ER(e,t){var r=ki(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function WA(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function zw(e){if(ba){var t=Ho;if(t){var r=t;if(!WA(e,t)){if(t=uf(r.nextSibling),!t||!WA(e,t)){e.flags=e.flags&-1025|2,ba=!1,Xa=e;return}ER(Xa,r)}Xa=e,Ho=uf(t.firstChild)}else e.flags=e.flags&-1025|2,ba=!1,Xa=e}}function HA(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xa=e}function Yv(e){if(e!==Xa)return!1;if(!ba)return HA(e),ba=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Fw(t,e.memoizedProps))for(t=Ho;t;)ER(e,t),t=uf(t.nextSibling);if(HA(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(dt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ho=uf(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ho=null}}else Ho=Xa?uf(e.stateNode.nextSibling):null;return!0}function O1(){Ho=Xa=null,ba=!1}var sf=[];function hS(){for(var e=0;e<sf.length;e++)sf[e]._workInProgressVersionPrimary=null;sf.length=0}var Zh=Fl.ReactCurrentDispatcher,Ri=Fl.ReactCurrentBatchConfig,Od=0,Qr=null,Nn=null,kn=null,wm=!1,Jh=!1;function Zn(){throw Error(dt(321))}function dS(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Oi(e[r],t[r]))return!1;return!0}function pS(e,t,r,n,i,a){if(Od=a,Qr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zh.current=e===null||e.memoizedState===null?fL:cL,e=r(n,i),Jh){a=0;do{if(Jh=!1,!(25>a))throw Error(dt(301));a+=1,kn=Nn=null,t.updateQueue=null,Zh.current=hL,e=r(n,i)}while(Jh)}if(Zh.current=Am,t=Nn!==null&&Nn.next!==null,Od=0,kn=Nn=Qr=null,wm=!1,t)throw Error(dt(300));return e}function fl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kn===null?Qr.memoizedState=kn=e:kn=kn.next=e,kn}function Ll(){if(Nn===null){var e=Qr.alternate;e=e!==null?e.memoizedState:null}else e=Nn.next;var t=kn===null?Qr.memoizedState:kn.next;if(t!==null)kn=t,Nn=e;else{if(e===null)throw Error(dt(310));Nn=e,e={memoizedState:Nn.memoizedState,baseState:Nn.baseState,baseQueue:Nn.baseQueue,queue:Nn.queue,next:null},kn===null?Qr.memoizedState=kn=e:kn=kn.next=e}return kn}function va(e,t){return typeof t=="function"?t(e):t}function dh(e){var t=Ll(),r=t.queue;if(r===null)throw Error(dt(311));r.lastRenderedReducer=e;var n=Nn,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var l=o=a=null,s=i;do{var f=s.lane;if((Od&f)===f)l!==null&&(l=l.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),n=s.eagerReducer===e?s.eagerState:e(n,s.action);else{var d={lane:f,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};l===null?(o=l=d,a=n):l=l.next=d,Qr.lanes|=f,Jd|=f}s=s.next}while(s!==null&&s!==i);l===null?a=n:l.next=o,Oi(n,t.memoizedState)||(Ki=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function ph(e){var t=Ll(),r=t.queue;if(r===null)throw Error(dt(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Oi(a,t.memoizedState)||(Ki=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function qA(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(Od&e)===e)&&(t._workInProgressVersionPrimary=n,sf.push(t))),e)return r(t._source);throw sf.push(t),Error(dt(350))}function AR(e,t,r,n){var i=Hn;if(i===null)throw Error(dt(349));var a=t._getVersion,o=a(t._source),l=Zh.current,s=l.useState(function(){return qA(i,t,r)}),f=s[1],d=s[0];s=kn;var g=e.memoizedState,v=g.refs,y=v.getSnapshot,E=g.source;g=g.subscribe;var k=Qr;return e.memoizedState={refs:v,source:t,subscribe:n},l.useEffect(function(){v.getSnapshot=r,v.setSnapshot=f;var x=a(t._source);if(!Oi(o,x)){x=r(t._source),Oi(d,x)||(f(x),x=eu(k),i.mutableReadLanes|=x&i.pendingLanes),x=i.mutableReadLanes,i.entangledLanes|=x;for(var w=i.entanglements,_=x;0<_;){var C=31-au(_),T=1<<C;w[C]|=x,_&=~T}}},[r,t,n]),l.useEffect(function(){return n(t._source,function(){var x=v.getSnapshot,w=v.setSnapshot;try{w(x(t._source));var _=eu(k);i.mutableReadLanes|=_&i.pendingLanes}catch(C){w(function(){throw C})}})},[t,n]),Oi(y,r)&&Oi(E,t)&&Oi(g,n)||(e={pending:null,dispatch:null,lastRenderedReducer:va,lastRenderedState:d},e.dispatch=f=gS.bind(null,Qr,e),s.queue=e,s.baseQueue=null,d=qA(i,t,r),s.memoizedState=s.baseState=d),d}function TR(e,t,r){var n=Ll();return AR(n,e,t,r)}function vh(e){var t=fl();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:va,lastRenderedState:e},e=e.dispatch=gS.bind(null,Qr,e),[t.memoizedState,e]}function _m(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Qr.updateQueue,t===null?(t={lastEffect:null},Qr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function VA(e){var t=fl();return e={current:e},t.memoizedState=e}function Sm(){return Ll().memoizedState}function Uw(e,t,r,n){var i=fl();Qr.flags|=e,i.memoizedState=_m(1|t,r,void 0,n===void 0?null:n)}function vS(e,t,r,n){var i=Ll();n=n===void 0?null:n;var a=void 0;if(Nn!==null){var o=Nn.memoizedState;if(a=o.destroy,n!==null&&dS(n,o.deps)){_m(t,r,a,n);return}}Qr.flags|=e,i.memoizedState=_m(1|t,r,a,n)}function YA(e,t){return Uw(516,4,e,t)}function Em(e,t){return vS(516,4,e,t)}function CR(e,t){return vS(4,2,e,t)}function OR(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kR(e,t,r){return r=r!=null?r.concat([e]):null,vS(4,2,OR.bind(null,t,e),r)}function mS(){}function MR(e,t){var r=Ll();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&dS(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function RR(e,t){var r=Ll();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&dS(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function sL(e,t){var r=wf();xl(98>r?98:r,function(){e(!0)}),xl(97<r?97:r,function(){var n=Ri.transition;Ri.transition=1;try{e(!1),t()}finally{Ri.transition=n}})}function gS(e,t,r){var n=vi(),i=eu(e),a={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Qr||o!==null&&o===Qr)Jh=wm=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,r);if(a.eagerReducer=o,a.eagerState=s,Oi(s,l))return}catch{}finally{}tu(e,i,n)}}var Am={readContext:Ii,useCallback:Zn,useContext:Zn,useEffect:Zn,useImperativeHandle:Zn,useLayoutEffect:Zn,useMemo:Zn,useReducer:Zn,useRef:Zn,useState:Zn,useDebugValue:Zn,useDeferredValue:Zn,useTransition:Zn,useMutableSource:Zn,useOpaqueIdentifier:Zn,unstable_isNewReconciler:!1},fL={readContext:Ii,useCallback:function(e,t){return fl().memoizedState=[e,t===void 0?null:t],e},useContext:Ii,useEffect:YA,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Uw(4,2,OR.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Uw(4,2,e,t)},useMemo:function(e,t){var r=fl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=fl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=gS.bind(null,Qr,e),[n.memoizedState,e]},useRef:VA,useState:vh,useDebugValue:mS,useDeferredValue:function(e){var t=vh(e),r=t[0],n=t[1];return YA(function(){var i=Ri.transition;Ri.transition=1;try{n(e)}finally{Ri.transition=i}},[e]),r},useTransition:function(){var e=vh(!1),t=e[0];return e=sL.bind(null,e[1]),VA(e),[e,t]},useMutableSource:function(e,t,r){var n=fl();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},AR(n,e,t,r)},useOpaqueIdentifier:function(){if(ba){var e=!1,t=nL(function(){throw e||(e=!0,r("r:"+(A1++).toString(36))),Error(dt(355))}),r=vh(t)[1];return!(Qr.mode&2)&&(Qr.flags|=516,_m(5,function(){r("r:"+(A1++).toString(36))},void 0,null)),t}return t="r:"+(A1++).toString(36),vh(t),t},unstable_isNewReconciler:!1},cL={readContext:Ii,useCallback:MR,useContext:Ii,useEffect:Em,useImperativeHandle:kR,useLayoutEffect:CR,useMemo:RR,useReducer:dh,useRef:Sm,useState:function(){return dh(va)},useDebugValue:mS,useDeferredValue:function(e){var t=dh(va),r=t[0],n=t[1];return Em(function(){var i=Ri.transition;Ri.transition=1;try{n(e)}finally{Ri.transition=i}},[e]),r},useTransition:function(){var e=dh(va)[0];return[Sm().current,e]},useMutableSource:TR,useOpaqueIdentifier:function(){return dh(va)[0]},unstable_isNewReconciler:!1},hL={readContext:Ii,useCallback:MR,useContext:Ii,useEffect:Em,useImperativeHandle:kR,useLayoutEffect:CR,useMemo:RR,useReducer:ph,useRef:Sm,useState:function(){return ph(va)},useDebugValue:mS,useDeferredValue:function(e){var t=ph(va),r=t[0],n=t[1];return Em(function(){var i=Ri.transition;Ri.transition=1;try{n(e)}finally{Ri.transition=i}},[e]),r},useTransition:function(){var e=ph(va)[0];return[Sm().current,e]},useMutableSource:TR,useOpaqueIdentifier:function(){return ph(va)[0]},unstable_isNewReconciler:!1},dL=Fl.ReactCurrentOwner,Ki=!1;function Jn(e,t,r,n){t.child=e===null?SR(t,null,r,n):bm(t,e.child,r,n)}function XA(e,t,r,n,i){r=r.render;var a=t.ref;return lf(t,i),n=pS(e,t,r,n,a,i),e!==null&&!Ki?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ka(e,t,i)):(t.flags|=1,Jn(e,t,n,i),t.child)}function KA(e,t,r,n,i,a){if(e===null){var o=r.type;return typeof o=="function"&&!SS(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,PR(e,t,o,n,i,a)):(e=V0(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,!(i&a)&&(i=o.memoizedProps,r=r.compare,r=r!==null?r:_d,r(i,n)&&e.ref===t.ref)?Ka(e,t,a):(t.flags|=1,e=lu(o,n),e.ref=t.ref,e.return=t,t.child=e)}function PR(e,t,r,n,i,a){if(e!==null&&_d(e.memoizedProps,n)&&e.ref===t.ref)if(Ki=!1,(a&i)!==0)e.flags&16384&&(Ki=!0);else return t.lanes=e.lanes,Ka(e,t,a);return jw(e,t,r,n,a)}function k1(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden"||n.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},Kv(t,r);else if(r&1073741824)t.memoizedState={baseLanes:0},Kv(t,a!==null?a.baseLanes:r);else return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Kv(t,e),null;else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Kv(t,n);return Jn(e,t,i,r),t.child}function IR(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function jw(e,t,r,n,i){var a=ni(r)?bl:$n.current;return a=xf(t,a),lf(t,i),r=pS(e,t,r,n,a,i),e!==null&&!Ki?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ka(e,t,i)):(t.flags|=1,Jn(e,t,r,i),t.child)}function QA(e,t,r,n,i){if(ni(r)){var a=!0;j0(t)}else a=!1;if(lf(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),wR(t,r,n),$w(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,f=r.contextType;typeof f=="object"&&f!==null?f=Ii(f):(f=ni(r)?bl:$n.current,f=xf(t,f));var d=r.getDerivedStateFromProps,g=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||s!==f)&&jA(t,o,n,f),Do=!1;var v=t.memoizedState;o.state=v,Ad(t,n,o,i),s=t.memoizedState,l!==n||v!==s||ri.current||Do?(typeof d=="function"&&(ym(t,r,d,n),s=t.memoizedState),(l=Do||UA(t,r,l,n,v,s,f))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4)):(typeof o.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=s),o.props=n,o.state=s,o.context=f,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{o=t.stateNode,bR(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:Yi(t.type,l),o.props=f,g=t.pendingProps,v=o.context,s=r.contextType,typeof s=="object"&&s!==null?s=Ii(s):(s=ni(r)?bl:$n.current,s=xf(t,s));var y=r.getDerivedStateFromProps;(d=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==g||v!==s)&&jA(t,o,n,s),Do=!1,v=t.memoizedState,o.state=v,Ad(t,n,o,i);var E=t.memoizedState;l!==g||v!==E||ri.current||Do?(typeof y=="function"&&(ym(t,r,y,n),E=t.memoizedState),(f=Do||UA(t,r,f,n,v,E,s))?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,E,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,E,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=E),o.props=n,o.state=E,o.context=s,n=f):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=256),n=!1)}return Gw(e,t,r,n,a,i)}function Gw(e,t,r,n,i,a){IR(e,t);var o=(t.flags&64)!==0;if(!n&&!o)return i&&LA(t,r,!1),Ka(e,t,a);n=t.stateNode,dL.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=bm(t,e.child,null,a),t.child=bm(t,null,l,a)):Jn(e,t,l,a),t.memoizedState=n.state,i&&LA(t,r,!0),t.child}function ZA(e){var t=e.stateNode;t.pendingContext?NA(e,t.pendingContext,t.pendingContext!==t.context):t.context&&NA(e,t.context,!1),Bw(e,t.containerInfo)}var Xv={dehydrated:null,retryLane:0};function JA(e,t,r){var n=t.pendingProps,i=Hr.current,a=!1,o;return(o=(t.flags&64)!==0)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||n.fallback===void 0||n.unstable_avoidThisFallback===!0||(i|=1),Vr(Hr,i&1),e===null?(n.fallback!==void 0&&zw(t),e=n.children,i=n.fallback,a?(e=e3(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Xv,e):typeof n.unstable_expectedLoadTime=="number"?(e=e3(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Xv,t.lanes=33554432,e):(r=ES({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?a?(n=r3(e,t,n.children,n.fallback,r),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},a.childLanes=e.childLanes&~r,t.memoizedState=Xv,n):(r=t3(e,t,n.children,r),t.memoizedState=null,r):a?(n=r3(e,t,n.children,n.fallback,r),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},a.childLanes=e.childLanes&~r,t.memoizedState=Xv,n):(r=t3(e,t,n.children,r),t.memoizedState=null,r)}function e3(e,t,r,n){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},!(i&2)&&a!==null?(a.childLanes=0,a.pendingProps=t):a=ES(t,i,0,null),r=hf(r,i,n,null),a.return=e,r.return=e,a.sibling=r,e.child=a,r}function t3(e,t,r,n){var i=e.child;return e=i.sibling,r=lu(i,{mode:"visible",children:r}),!(t.mode&2)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function r3(e,t,r,n,i){var a=t.mode,o=e.child;e=o.sibling;var l={mode:"hidden",children:r};return!(a&2)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,o=r.lastEffect,o!==null?(t.firstEffect=r.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):r=lu(o,l),e!==null?n=lu(e,n):(n=hf(n,a,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function n3(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),yR(e.return,t)}function M1(e,t,r,n,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i,o.lastEffect=a)}function i3(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Jn(e,t,n.children,r),n=Hr.current,n&2)n=n&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&n3(e,r);else if(e.tag===19)n3(e,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Vr(Hr,n),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&xm(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),M1(t,!1,i,r,a,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xm(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}M1(t,!0,r,null,a,t.lastEffect);break;case"together":M1(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ka(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Jd|=t.lanes,r&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(dt(153));if(t.child!==null){for(e=t.child,r=lu(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=lu(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var FR,Ww,NR,LR;FR=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Ww=function(){};NR=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,sl(ya.current);var a=null;switch(r){case"input":i=gw(e,i),n=gw(e,n),a=[];break;case"option":i=xw(e,i),n=xw(e,n),a=[];break;case"select":i=Ur({},i,{value:void 0}),n=Ur({},n,{value:void 0}),a=[];break;case"textarea":i=ww(e,i),n=ww(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=hm)}Ew(r,n);var o;r=null;for(f in i)if(!n.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var l=i[f];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(vd.hasOwnProperty(f)?a||(a=[]):(a=a||[]).push(f,null));for(f in n){var s=n[f];if(l=i!=null?i[f]:void 0,n.hasOwnProperty(f)&&s!==l&&(s!=null||l!=null))if(f==="style")if(l){for(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(r||(r={}),r[o]=s[o])}else r||(a||(a=[]),a.push(f,r)),r=s;else f==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(f,s)):f==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(f,""+s):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(vd.hasOwnProperty(f)?(s!=null&&f==="onScroll"&&Nr("scroll",e),a||l===s||(a=[])):typeof s=="object"&&s!==null&&s.$$typeof===W2?s.toString():(a=a||[]).push(f,s))}r&&(a=a||[]).push("style",r);var f=a;(t.updateQueue=f)&&(t.flags|=4)}};LR=function(e,t,r,n){r!==n&&(t.flags|=4)};function mh(e,t){if(!ba)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function pL(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ni(t.type)&&pm(),null;case 3:return _f(),Dr(ri),Dr($n),hS(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Yv(t)?t.flags|=4:n.hydrate||(t.flags|=256)),Ww(t),null;case 5:cS(t);var i=sl(Cd.current);if(r=t.type,e!==null&&t.stateNode!=null)NR(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(dt(166));return null}if(e=sl(ya.current),Yv(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Wo]=t,n[dm]=a,r){case"dialog":Nr("cancel",n),Nr("close",n);break;case"iframe":case"object":case"embed":Nr("load",n);break;case"video":case"audio":for(e=0;e<Lh.length;e++)Nr(Lh[e],n);break;case"source":Nr("error",n);break;case"img":case"image":case"link":Nr("error",n),Nr("load",n);break;case"details":Nr("toggle",n);break;case"input":iA(n,a),Nr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Nr("invalid",n);break;case"textarea":oA(n,a),Nr("invalid",n)}Ew(r,a),e=null;for(var o in a)a.hasOwnProperty(o)&&(i=a[o],o==="children"?typeof i=="string"?n.textContent!==i&&(e=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(e=["children",""+i]):vd.hasOwnProperty(o)&&i!=null&&o==="onScroll"&&Nr("scroll",n));switch(r){case"input":jv(n),aA(n,a,!0);break;case"textarea":jv(n),uA(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=hm)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(o=i.nodeType===9?i:i.ownerDocument,e===_w.html&&(e=kM(r)),e===_w.html?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Wo]=t,e[dm]=n,FR(e,t,!1,!1),t.stateNode=e,o=Aw(r,n),r){case"dialog":Nr("cancel",e),Nr("close",e),i=n;break;case"iframe":case"object":case"embed":Nr("load",e),i=n;break;case"video":case"audio":for(i=0;i<Lh.length;i++)Nr(Lh[i],e);i=n;break;case"source":Nr("error",e),i=n;break;case"img":case"image":case"link":Nr("error",e),Nr("load",e),i=n;break;case"details":Nr("toggle",e),i=n;break;case"input":iA(e,n),i=gw(e,n),Nr("invalid",e);break;case"option":i=xw(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Ur({},n,{value:void 0}),Nr("invalid",e);break;case"textarea":oA(e,n),i=ww(e,n),Nr("invalid",e);break;default:i=n}Ew(r,i);var l=i;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?PM(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&MM(e,s)):a==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&md(e,s):typeof s=="number"&&md(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(vd.hasOwnProperty(a)?s!=null&&a==="onScroll"&&Nr("scroll",e):s!=null&&$2(e,a,s,o))}switch(r){case"input":jv(e),aA(e,n,!1);break;case"textarea":jv(e),uA(e);break;case"option":n.value!=null&&e.setAttribute("value",""+iu(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?nf(e,!!n.multiple,a,!1):n.defaultValue!=null&&nf(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=hm)}sR(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)LR(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(dt(166));r=sl(Cd.current),sl(ya.current),Yv(t)?(n=t.stateNode,r=t.memoizedProps,n[Wo]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Wo]=t,t.stateNode=n)}return null;case 13:return Dr(Hr),n=t.memoizedState,t.flags&64?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&Yv(t):r=e.memoizedState!==null,n&&!r&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Hr.current&1?Mn===0&&(Mn=3):((Mn===0||Mn===3)&&(Mn=4),Hn===null||!(Jd&134217727)&&!(jf&134217727)||ff(Hn,Dn))),(n||r)&&(t.flags|=4),null);case 4:return _f(),Ww(t),e===null&&oR(t.stateNode.containerInfo),null;case 10:return sS(t),null;case 17:return ni(t.type)&&pm(),null;case 19:if(Dr(Hr),n=t.memoizedState,n===null)return null;if(a=(t.flags&64)!==0,o=n.rendering,o===null)if(a)mh(n,!1);else{if(Mn!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(o=xm(e),o!==null){for(t.flags|=64,mh(n,!1),a=o.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Vr(Hr,Hr.current&1|2),t.child}e=e.sibling}n.tail!==null&&Ln()>Kw&&(t.flags|=64,a=!0,mh(n,!1),t.lanes=33554432)}else{if(!a)if(e=xm(o),e!==null){if(t.flags|=64,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),mh(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!ba)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Ln()-n.renderingStartTime>Kw&&r!==1073741824&&(t.flags|=64,a=!0,mh(n,!1),t.lanes=33554432);n.isBackwards?(o.sibling=t.child,t.child=o):(r=n.last,r!==null?r.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Ln(),r.sibling=null,t=Hr.current,Vr(Hr,a?t&1|2:t&1),r):null;case 23:case 24:return _S(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(dt(156,t.tag))}function vL(e){switch(e.tag){case 1:ni(e.type)&&pm();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(_f(),Dr(ri),Dr($n),hS(),t=e.flags,t&64)throw Error(dt(285));return e.flags=t&-4097|64,e;case 5:return cS(e),null;case 13:return Dr(Hr),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Dr(Hr),null;case 4:return _f(),null;case 10:return sS(e),null;case 23:case 24:return _S(),null;default:return null}}function yS(e,t){try{var r="",n=t;do r+=X6(n),n=n.return;while(n);var i=r}catch(a){i=`
38
+ Error generating stack: `+a.message+`
39
+ `+a.stack}return{value:e,source:t,stack:i}}function Hw(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var mL=typeof WeakMap=="function"?WeakMap:Map;function DR(e,t,r){r=Zo(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Cm||(Cm=!0,Qw=n),Hw(e,t)},r}function $R(e,t,r){r=Zo(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return Hw(e,t),n(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(ma===null?ma=new Set([this]):ma.add(this),Hw(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}var gL=typeof WeakSet=="function"?WeakSet:Set;function a3(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){ru(e,r)}else t.current=null}function yL(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:Yi(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&aS(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(dt(163))}function bL(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,i&4&&i&1&&(VR(r,e),CL(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Yi(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&zA(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}zA(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&sR(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&jM(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(dt(163))}function o3(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=RM("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function u3(e,t){if(pl&&typeof pl.onCommitFiberUnmount=="function")try{pl.onCommitFiberUnmount(oS,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if(n&4)VR(t,r);else{n=t;try{i()}catch(a){ru(n,a)}}r=r.next}while(r!==e)}break;case 1:if(a3(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){ru(t,a)}break;case 5:a3(t);break;case 4:BR(e,t)}}function l3(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 s3(e){return e.tag===5||e.tag===3||e.tag===4}function f3(e){e:{for(var t=e.return;t!==null;){if(s3(t))break e;t=t.return}throw Error(dt(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(dt(161))}r.flags&16&&(md(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||s3(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?qw(e,r,t):Vw(e,r,t)}function qw(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=hm));else if(n!==4&&(e=e.child,e!==null))for(qw(e,t,r),e=e.sibling;e!==null;)qw(e,t,r),e=e.sibling}function Vw(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Vw(e,t,r),e=e.sibling;e!==null;)Vw(e,t,r),e=e.sibling}function BR(e,t){for(var r=t,n=!1,i,a;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(dt(160));switch(i=n.stateNode,n.tag){case 5:a=!1;break e;case 3:i=i.containerInfo,a=!0;break e;case 4:i=i.containerInfo,a=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var o=e,l=r,s=l;;)if(u3(o,s),s.child!==null&&s.tag!==4)s.child.return=s,s=s.child;else{if(s===l)break e;for(;s.sibling===null;){if(s.return===null||s.return===l)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}a?(o=i,l=r.stateNode,o.nodeType===8?o.parentNode.removeChild(l):o.removeChild(l)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,a=!0,r.child.return=r,r=r.child;continue}}else if(u3(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function R1(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var i=e!==null?e.memoizedProps:n;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,a!==null){for(r[dm]=n,e==="input"&&n.type==="radio"&&n.name!=null&&CM(r,n),Aw(e,i),t=Aw(e,n),i=0;i<a.length;i+=2){var o=a[i],l=a[i+1];o==="style"?PM(r,l):o==="dangerouslySetInnerHTML"?MM(r,l):o==="children"?md(r,l):$2(r,o,l,t)}switch(e){case"input":yw(r,n);break;case"textarea":OM(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,a=n.value,a!=null?nf(r,!!n.multiple,a,!1):e!==!!n.multiple&&(n.defaultValue!=null?nf(r,!!n.multiple,n.defaultValue,!0):nf(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(dt(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,jM(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(wS=Ln(),o3(t.child,!0)),c3(t);return;case 19:c3(t);return;case 17:return;case 23:case 24:o3(t,t.memoizedState!==null);return}throw Error(dt(163))}function c3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new gL),t.forEach(function(n){var i=ML.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function xL(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var wL=Math.ceil,Tm=Fl.ReactCurrentDispatcher,bS=Fl.ReactCurrentOwner,er=0,Hn=null,hn=null,Dn=0,wl=0,Yw=vu(0),Mn=0,Mg=null,Uf=0,Jd=0,jf=0,xS=0,Xw=null,wS=0,Kw=1/0;function Gf(){Kw=Ln()+500}var $t=null,Cm=!1,Qw=null,ma=null,uu=!1,ed=null,Dh=90,Zw=[],Jw=[],Za=null,td=0,e_=null,W0=-1,Ya=0,H0=0,rd=null,q0=!1;function vi(){return er&48?Ln():W0!==-1?W0:W0=Ln()}function eu(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return wf()===99?1:2;if(Ya===0&&(Ya=Uf),lL.transition!==0){H0!==0&&(H0=Xw!==null?Xw.pendingLanes:0),e=Ya;var t=4186112&~H0;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=wf(),er&4&&e===98?e=fm(12,Ya):(e=c8(e),e=fm(e,Ya)),e}function tu(e,t,r){if(50<td)throw td=0,e_=null,Error(dt(185));if(e=Rg(e,t),e===null)return null;Sg(e,t,r),e===Hn&&(jf|=t,Mn===4&&ff(e,Dn));var n=wf();t===1?er&8&&!(er&48)?t_(e):(Fi(e,r),er===0&&(Gf(),Sa())):(!(er&4)||n!==98&&n!==99||(Za===null?Za=new Set([e]):Za.add(e)),Fi(e,r)),Xw=e}function Rg(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}function Fi(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-au(o),s=1<<l,f=a[l];if(f===-1){if(!(s&n)||s&i){f=t,zs(s);var d=Fr;a[l]=10<=d?f+250:6<=d?f+5e3:-1}}else f<=t&&(e.expiredLanes|=s);o&=~s}if(n=xd(e,e===Hn?Dn:0),t=Fr,n===0)r!==null&&(r!==T1&&Lw(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==T1&&Lw(r)}t===15?(r=t_.bind(null,e),Va===null?(Va=[r],G0=uS(Og,gR)):Va.push(r),r=T1):t===14?r=Ed(99,t_.bind(null,e)):(r=h8(t),r=Ed(r,zR.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function zR(e){if(W0=-1,H0=Ya=0,er&48)throw Error(dt(327));var t=e.callbackNode;if(mu()&&e.callbackNode!==t)return null;var r=xd(e,e===Hn?Dn:0);if(r===0)return null;var n=r,i=er;er|=16;var a=WR();(Hn!==e||Dn!==n)&&(Gf(),cf(e,n));do try{EL();break}catch(l){GR(e,l)}while(1);if(lS(),Tm.current=a,er=i,hn!==null?n=0:(Hn=null,Dn=0,n=Mn),Uf&jf)cf(e,0);else if(n!==0){if(n===2&&(er|=64,e.hydrate&&(e.hydrate=!1,aS(e.containerInfo)),r=XM(e),r!==0&&(n=$h(e,r))),n===1)throw t=Mg,cf(e,0),ff(e,r),Fi(e,Ln()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(dt(345));case 2:el(e);break;case 3:if(ff(e,r),(r&62914560)===r&&(n=wS+500-Ln(),10<n)){if(xd(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){vi(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=PA(el.bind(null,e),n);break}el(e);break;case 4:if(ff(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var o=31-au(r);a=1<<o,o=n[o],o>i&&(i=o),r&=~a}if(r=i,r=Ln()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wL(r/1960))-r,10<r){e.timeoutHandle=PA(el.bind(null,e),r);break}el(e);break;case 5:el(e);break;default:throw Error(dt(329))}}return Fi(e,Ln()),e.callbackNode===t?zR.bind(null,e):null}function ff(e,t){for(t&=~xS,t&=~jf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-au(t),n=1<<r;e[r]=-1,t&=~n}}function t_(e){if(er&48)throw Error(dt(327));if(mu(),e===Hn&&e.expiredLanes&Dn){var t=Dn,r=$h(e,t);Uf&jf&&(t=xd(e,t),r=$h(e,t))}else t=xd(e,0),r=$h(e,t);if(e.tag!==0&&r===2&&(er|=64,e.hydrate&&(e.hydrate=!1,aS(e.containerInfo)),t=XM(e),t!==0&&(r=$h(e,t))),r===1)throw r=Mg,cf(e,0),ff(e,t),Fi(e,Ln()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,el(e),Fi(e,Ln()),null}function _L(){if(Za!==null){var e=Za;Za=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Fi(t,Ln())})}Sa()}function UR(e,t){var r=er;er|=1;try{return e(t)}finally{er=r,er===0&&(Gf(),Sa())}}function jR(e,t){var r=er;er&=-2,er|=8;try{return e(t)}finally{er=r,er===0&&(Gf(),Sa())}}function Kv(e,t){Vr(Yw,wl),wl|=t,Uf|=t}function _S(){wl=Yw.current,Dr(Yw)}function cf(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,rL(r)),hn!==null)for(r=hn.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&pm();break;case 3:_f(),Dr(ri),Dr($n),hS();break;case 5:cS(n);break;case 4:_f();break;case 13:Dr(Hr);break;case 19:Dr(Hr);break;case 10:sS(n);break;case 23:case 24:_S()}r=r.return}Hn=e,hn=lu(e.current,null),Dn=wl=Uf=t,Mn=0,Mg=null,xS=jf=Jd=0}function GR(e,t){do{var r=hn;try{if(lS(),Zh.current=Am,wm){for(var n=Qr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}wm=!1}if(Od=0,kn=Nn=Qr=null,Jh=!1,bS.current=null,r===null||r.return===null){Mn=1,Mg=t,hn=null;break}e:{var a=e,o=r.return,l=r,s=t;if(t=Dn,l.flags|=2048,l.firstEffect=l.lastEffect=null,s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=s;if(!(l.mode&2)){var d=l.alternate;d?(l.updateQueue=d.updateQueue,l.memoizedState=d.memoizedState,l.lanes=d.lanes):(l.updateQueue=null,l.memoizedState=null)}var g=(Hr.current&1)!==0,v=o;do{var y;if(y=v.tag===13){var E=v.memoizedState;if(E!==null)y=E.dehydrated!==null;else{var k=v.memoizedProps;y=k.fallback===void 0?!1:k.unstable_avoidThisFallback!==!0?!0:!g}}if(y){var x=v.updateQueue;if(x===null){var w=new Set;w.add(f),v.updateQueue=w}else x.add(f);if(!(v.mode&2)){if(v.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var _=Zo(-1,1);_.tag=2,Jo(l,_)}l.lanes|=1;break e}s=void 0,l=t;var C=a.pingCache;if(C===null?(C=a.pingCache=new mL,s=new Set,C.set(f,s)):(s=C.get(f),s===void 0&&(s=new Set,C.set(f,s))),!s.has(l)){s.add(l);var T=kL.bind(null,a,f,l);f.then(T,T)}v.flags|=4096,v.lanes=t;break e}v=v.return}while(v!==null);s=Error((rf(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
40
+
41
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Mn!==5&&(Mn=2),s=yS(s,l),v=o;do{switch(v.tag){case 3:a=s,v.flags|=4096,t&=-t,v.lanes|=t;var F=DR(v,a,t);BA(v,F);break e;case 1:a=s;var L=v.type,V=v.stateNode;if(!(v.flags&64)&&(typeof L.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(ma===null||!ma.has(V)))){v.flags|=4096,t&=-t,v.lanes|=t;var j=$R(v,a,t);BA(v,j);break e}}v=v.return}while(v!==null)}qR(r)}catch(te){t=te,hn===r&&r!==null&&(hn=r=r.return);continue}break}while(1)}function WR(){var e=Tm.current;return Tm.current=Am,e===null?Am:e}function $h(e,t){var r=er;er|=16;var n=WR();Hn===e&&Dn===t||cf(e,t);do try{SL();break}catch(i){GR(e,i)}while(1);if(lS(),er=r,Tm.current=n,hn!==null)throw Error(dt(261));return Hn=null,Dn=0,Mn}function SL(){for(;hn!==null;)HR(hn)}function EL(){for(;hn!==null&&!aL();)HR(hn)}function HR(e){var t=YR(e.alternate,e,wl);e.memoizedProps=e.pendingProps,t===null?qR(e):hn=t,bS.current=null}function qR(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=vL(t),r!==null){r.flags&=2047,hn=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=pL(r,t,wl),r!==null){hn=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||wl&1073741824||!(r.mode&4)){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){hn=t;return}hn=t=e}while(t!==null);Mn===0&&(Mn=5)}function el(e){var t=wf();return xl(99,AL.bind(null,e,t)),null}function AL(e,t){do mu();while(ed!==null);if(er&48)throw Error(dt(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(dt(177));e.callbackNode=null;var n=r.lanes|r.childLanes,i=n,a=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 o=e.eventTimes,l=e.expirationTimes;0<a;){var s=31-au(a),f=1<<s;i[s]=0,o[s]=-1,l[s]=-1,a&=~f}if(Za!==null&&!(n&24)&&Za.has(e)&&Za.delete(e),e===Hn&&(hn=Hn=null,Dn=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=er,er|=32,bS.current=null,S1=B0,o=AA(),Rw(o)){if("selectionStart"in o)l={start:o.selectionStart,end:o.selectionEnd};else e:if(l=(l=o.ownerDocument)&&l.defaultView||window,(f=l.getSelection&&l.getSelection())&&f.rangeCount!==0){l=f.anchorNode,a=f.anchorOffset,s=f.focusNode,f=f.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var d=0,g=-1,v=-1,y=0,E=0,k=o,x=null;t:for(;;){for(var w;k!==l||a!==0&&k.nodeType!==3||(g=d+a),k!==s||f!==0&&k.nodeType!==3||(v=d+f),k.nodeType===3&&(d+=k.nodeValue.length),(w=k.firstChild)!==null;)x=k,k=w;for(;;){if(k===o)break t;if(x===l&&++y===a&&(g=d),x===s&&++E===f&&(v=d),(w=k.nextSibling)!==null)break;k=x,x=k.parentNode}k=w}l=g===-1||v===-1?null:{start:g,end:v}}else l=null;l=l||{start:0,end:0}}else l=null;E1={focusedElem:o,selectionRange:l},B0=!1,rd=null,q0=!1,$t=n;do try{TL()}catch(te){if($t===null)throw Error(dt(330));ru($t,te),$t=$t.nextEffect}while($t!==null);rd=null,$t=n;do try{for(o=e;$t!==null;){var _=$t.flags;if(_&16&&md($t.stateNode,""),_&128){var C=$t.alternate;if(C!==null){var T=C.ref;T!==null&&(typeof T=="function"?T(null):T.current=null)}}switch(_&1038){case 2:f3($t),$t.flags&=-3;break;case 6:f3($t),$t.flags&=-3,R1($t.alternate,$t);break;case 1024:$t.flags&=-1025;break;case 1028:$t.flags&=-1025,R1($t.alternate,$t);break;case 4:R1($t.alternate,$t);break;case 8:l=$t,BR(o,l);var F=l.alternate;l3(l),F!==null&&l3(F)}$t=$t.nextEffect}}catch(te){if($t===null)throw Error(dt(330));ru($t,te),$t=$t.nextEffect}while($t!==null);if(T=E1,C=AA(),_=T.focusedElem,o=T.selectionRange,C!==_&&_&&_.ownerDocument&&nR(_.ownerDocument.documentElement,_)){for(o!==null&&Rw(_)&&(C=o.start,T=o.end,T===void 0&&(T=C),"selectionStart"in _?(_.selectionStart=C,_.selectionEnd=Math.min(T,_.value.length)):(T=(C=_.ownerDocument||document)&&C.defaultView||window,T.getSelection&&(T=T.getSelection(),l=_.textContent.length,F=Math.min(o.start,l),o=o.end===void 0?F:Math.min(o.end,l),!T.extend&&F>o&&(l=o,o=F,F=l),l=EA(_,F),a=EA(_,o),l&&a&&(T.rangeCount!==1||T.anchorNode!==l.node||T.anchorOffset!==l.offset||T.focusNode!==a.node||T.focusOffset!==a.offset)&&(C=C.createRange(),C.setStart(l.node,l.offset),T.removeAllRanges(),F>o?(T.addRange(C),T.extend(a.node,a.offset)):(C.setEnd(a.node,a.offset),T.addRange(C)))))),C=[],T=_;T=T.parentNode;)T.nodeType===1&&C.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<C.length;_++)T=C[_],T.element.scrollLeft=T.left,T.element.scrollTop=T.top}B0=!!S1,E1=S1=null,e.current=r,$t=n;do try{for(_=e;$t!==null;){var L=$t.flags;if(L&36&&bL(_,$t.alternate,$t),L&128){C=void 0;var V=$t.ref;if(V!==null){var j=$t.stateNode;switch($t.tag){case 5:C=j;break;default:C=j}typeof V=="function"?V(C):V.current=C}}$t=$t.nextEffect}}catch(te){if($t===null)throw Error(dt(330));ru($t,te),$t=$t.nextEffect}while($t!==null);$t=null,uL(),er=i}else e.current=r;if(uu)uu=!1,ed=e,Dh=t;else for($t=n;$t!==null;)t=$t.nextEffect,$t.nextEffect=null,$t.flags&8&&(L=$t,L.sibling=null,L.stateNode=null),$t=t;if(n=e.pendingLanes,n===0&&(ma=null),n===1?e===e_?td++:(td=0,e_=e):td=0,r=r.stateNode,pl&&typeof pl.onCommitFiberRoot=="function")try{pl.onCommitFiberRoot(oS,r,void 0,(r.current.flags&64)===64)}catch{}if(Fi(e,Ln()),Cm)throw Cm=!1,e=Qw,Qw=null,e;return er&8||Sa(),null}function TL(){for(;$t!==null;){var e=$t.alternate;q0||rd===null||($t.flags&8?fA($t,rd)&&(q0=!0):$t.tag===13&&xL(e,$t)&&fA($t,rd)&&(q0=!0));var t=$t.flags;t&256&&yL(e,$t),!(t&512)||uu||(uu=!0,Ed(97,function(){return mu(),null})),$t=$t.nextEffect}}function mu(){if(Dh!==90){var e=97<Dh?97:Dh;return Dh=90,xl(e,OL)}return!1}function CL(e,t){Zw.push(t,e),uu||(uu=!0,Ed(97,function(){return mu(),null}))}function VR(e,t){Jw.push(t,e),uu||(uu=!0,Ed(97,function(){return mu(),null}))}function OL(){if(ed===null)return!1;var e=ed;if(ed=null,er&48)throw Error(dt(331));var t=er;er|=32;var r=Jw;Jw=[];for(var n=0;n<r.length;n+=2){var i=r[n],a=r[n+1],o=i.destroy;if(i.destroy=void 0,typeof o=="function")try{o()}catch(s){if(a===null)throw Error(dt(330));ru(a,s)}}for(r=Zw,Zw=[],n=0;n<r.length;n+=2){i=r[n],a=r[n+1];try{var l=i.create;i.destroy=l()}catch(s){if(a===null)throw Error(dt(330));ru(a,s)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return er=t,Sa(),!0}function h3(e,t,r){t=yS(r,t),t=DR(e,t,1),Jo(e,t),t=vi(),e=Rg(e,1),e!==null&&(Sg(e,1,t),Fi(e,t))}function ru(e,t){if(e.tag===3)h3(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){h3(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ma===null||!ma.has(n))){e=yS(t,e);var i=$R(r,e,1);if(Jo(r,i),i=vi(),r=Rg(r,1),r!==null)Sg(r,1,i),Fi(r,i);else if(typeof n.componentDidCatch=="function"&&(ma===null||!ma.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function kL(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=vi(),e.pingedLanes|=e.suspendedLanes&r,Hn===e&&(Dn&r)===r&&(Mn===4||Mn===3&&(Dn&62914560)===Dn&&500>Ln()-wS?cf(e,0):xS|=r),Fi(e,t)}function ML(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Ya===0&&(Ya=Uf),t=Us(62914560&~Ya),t===0&&(t=4194304)):t=wf()===99?1:2:t=1),r=vi(),e=Rg(e,t),e!==null&&(Sg(e,t,r),Fi(e,r))}var YR;YR=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||ri.current)Ki=!0;else if(r&n)Ki=!!(e.flags&16384);else{switch(Ki=!1,t.tag){case 3:ZA(t),O1();break;case 5:GA(t);break;case 1:ni(t.type)&&j0(t);break;case 4:Bw(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;Vr(vm,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?JA(e,t,r):(Vr(Hr,Hr.current&1),t=Ka(e,t,r),t!==null?t.sibling:null);Vr(Hr,Hr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return i3(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Vr(Hr,Hr.current),n)break;return null;case 23:case 24:return t.lanes=0,k1(e,t,r)}return Ka(e,t,r)}else Ki=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=xf(t,$n.current),lf(t,r),i=pS(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ni(n)){var a=!0;j0(t)}else a=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,fS(t);var o=n.getDerivedStateFromProps;typeof o=="function"&&ym(t,n,o,e),i.updater=kg,t.stateNode=i,i._reactInternals=t,$w(t,n,e,r),t=Gw(null,t,n,!0,a,r)}else t.tag=0,Jn(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=PL(i),e=Yi(i,e),a){case 0:t=jw(null,t,i,e,r);break e;case 1:t=QA(null,t,i,e,r);break e;case 11:t=XA(null,t,i,e,r);break e;case 14:t=KA(null,t,i,Yi(i.type,e),n,r);break e}throw Error(dt(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yi(n,i),jw(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yi(n,i),QA(e,t,n,i,r);case 3:if(ZA(t),n=t.updateQueue,e===null||n===null)throw Error(dt(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,bR(e,t),Ad(t,n,null,r),n=t.memoizedState.element,n===i)O1(),t=Ka(e,t,r);else{if(i=t.stateNode,(a=i.hydrate)&&(Ho=uf(t.stateNode.containerInfo.firstChild),Xa=t,a=ba=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)a=e[i],a._workInProgressVersionPrimary=e[i+1],sf.push(a);for(r=SR(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else Jn(e,t,n,r),O1();t=t.child}return t;case 5:return GA(t),e===null&&zw(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Fw(n,i)?o=null:a!==null&&Fw(n,a)&&(t.flags|=16),IR(e,t),Jn(e,t,o,r),t.child;case 6:return e===null&&zw(t),null;case 13:return JA(e,t,r);case 4:return Bw(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=bm(t,null,n,r):Jn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yi(n,i),XA(e,t,n,i,r);case 7:return Jn(e,t,t.pendingProps,r),t.child;case 8:return Jn(e,t,t.pendingProps.children,r),t.child;case 12:return Jn(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var l=t.type._context;if(Vr(vm,l._currentValue),l._currentValue=a,o!==null)if(l=o.value,a=Oi(l,a)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(l,a):1073741823)|0,a===0){if(o.children===i.children&&!ri.current){t=Ka(e,t,r);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var f=s.firstContext;f!==null;){if(f.context===n&&f.observedBits&a){l.tag===1&&(f=Zo(-1,r&-r),f.tag=2,Jo(l,f)),l.lanes|=r,f=l.alternate,f!==null&&(f.lanes|=r),yR(l.return,r),s.lanes|=r;break}f=f.next}}else o=l.tag===10&&l.type===t.type?null:l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Jn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,n=a.children,lf(t,r),i=Ii(i,a.unstable_observedBits),n=n(i),t.flags|=1,Jn(e,t,n,r),t.child;case 14:return i=t.type,a=Yi(i,t.pendingProps),a=Yi(i.type,a),KA(e,t,i,a,n,r);case 15:return PR(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yi(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ni(n)?(e=!0,j0(t)):e=!1,lf(t,r),wR(t,n,i),$w(t,n,i,r),Gw(null,t,n,!0,e,r);case 19:return i3(e,t,r);case 23:return k1(e,t,r);case 24:return k1(e,t,r)}throw Error(dt(156,t.tag))};function RL(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ki(e,t,r,n){return new RL(e,t,r,n)}function SS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function PL(e){if(typeof e=="function")return SS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xg)return 11;if(e===wg)return 14}return 2}function lu(e,t){var r=e.alternate;return r===null?(r=ki(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function V0(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")SS(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Uo:return hf(r.children,i,a,t);case EM:o=8,i|=16;break;case B2:o=8,i|=1;break;case Hh:return e=ki(12,r,t,i|8),e.elementType=Hh,e.type=Hh,e.lanes=a,e;case qh:return e=ki(13,r,t,i),e.type=qh,e.elementType=qh,e.lanes=a,e;case om:return e=ki(19,r,t,i),e.elementType=om,e.lanes=a,e;case H2:return ES(r,i,a,t);case mw:return e=ki(24,r,t,i),e.elementType=mw,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z2:o=10;break e;case U2:o=9;break e;case xg:o=11;break e;case wg:o=14;break e;case j2:o=16,n=null;break e;case G2:o=22;break e}throw Error(dt(130,e==null?e:typeof e,""))}return t=ki(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function hf(e,t,r,n){return e=ki(7,e,n,t),e.lanes=r,e}function ES(e,t,r,n){return e=ki(23,e,n,t),e.elementType=H2,e.lanes=r,e}function P1(e,t,r){return e=ki(6,e,null,t),e.lanes=r,e}function I1(e,t,r){return t=ki(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function IL(e,t,r){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=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=m1(0),this.expirationTimes=m1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=m1(0),this.mutableSourceEagerHydrationData=null}function FL(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ol,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Om(e,t,r,n){var i=t.current,a=vi(),o=eu(i);e:if(r){r=r._reactInternals;t:{if(Nl(r)!==r||r.tag!==1)throw Error(dt(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ni(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(dt(171))}if(r.tag===1){var s=r.type;if(ni(s)){r=cR(r,s,l);break e}}r=l}else r=ou;return t.context===null?t.context=r:t.pendingContext=r,t=Zo(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),Jo(i,t),tu(i,o,a),o}function F1(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function d3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function AS(e,t){d3(e,t),(e=e.alternate)&&d3(e,t)}function NL(){return null}function TS(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new IL(e,t,r!=null&&r.hydrate===!0),t=ki(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,fS(t),e[zf]=r.current,oR(e.nodeType===8?e.parentNode:e),n)for(e=0;e<n.length;e++){t=n[e];var i=t._getVersion;i=i(t._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[t,i]:r.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=r}TS.prototype.render=function(e){Om(e,this._internalRoot,null,null)};TS.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Om(null,e,null,function(){t[zf]=null})};function ep(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function LL(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new TS(e,0,t?{hydrate:!0}:void 0)}function Pg(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i=="function"){var l=i;i=function(){var f=F1(o);l.call(f)}}Om(t,o,e,i)}else{if(a=r._reactRootContainer=LL(r,n),o=a._internalRoot,typeof i=="function"){var s=i;i=function(){var f=F1(o);s.call(f)}}jR(function(){Om(t,o,e,i)})}return F1(o)}BM=function(e){if(e.tag===13){var t=vi();tu(e,4,t),AS(e,4)}};K2=function(e){if(e.tag===13){var t=vi();tu(e,67108864,t),AS(e,67108864)}};zM=function(e){if(e.tag===13){var t=vi(),r=eu(e);tu(e,r,t),AS(e,r)}};UM=function(e,t){return t()};Tw=function(e,t,r){switch(t){case"input":if(yw(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Cg(n);if(!i)throw Error(dt(90));TM(n),yw(n,i)}}}break;case"textarea":OM(e,r);break;case"select":t=r.value,t!=null&&nf(e,!!r.multiple,t,!1)}};V2=UR;NM=function(e,t,r,n,i){var a=er;er|=4;try{return xl(98,e.bind(null,t,r,n,i))}finally{er=a,er===0&&(Gf(),Sa())}};Y2=function(){!(er&49)&&(_L(),mu())};LM=function(e,t){var r=er;er|=2;try{return e(t)}finally{er=r,er===0&&(Gf(),Sa())}};function XR(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ep(t))throw Error(dt(200));return FL(e,t,null,r)}var DL={Events:[Qd,Ys,Cg,IM,FM,mu,{current:!1}]},gh={findFiberByHostInstance:ll,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},$L={bundleType:gh.bundleType,version:gh.version,rendererPackageName:gh.rendererPackageName,rendererConfig:gh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Fl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=$M(e),e===null?null:e.stateNode},findFiberByHostInstance:gh.findFiberByHostInstance||NL,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qv.isDisabled&&Qv.supportsFiber)try{oS=Qv.inject($L),pl=Qv}catch{}}Ni.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=DL;Ni.createPortal=XR;Ni.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(dt(188)):Error(dt(268,Object.keys(e)));return e=$M(t),e=e===null?null:e.stateNode,e};Ni.flushSync=function(e,t){var r=er;if(r&48)return e(t);er|=1;try{if(e)return xl(99,e.bind(null,t))}finally{er=r,Sa()}};Ni.hydrate=function(e,t,r){if(!ep(t))throw Error(dt(200));return Pg(null,e,t,!0,r)};Ni.render=function(e,t,r){if(!ep(t))throw Error(dt(200));return Pg(null,e,t,!1,r)};Ni.unmountComponentAtNode=function(e){if(!ep(e))throw Error(dt(40));return e._reactRootContainer?(jR(function(){Pg(null,null,e,!1,function(){e._reactRootContainer=null,e[zf]=null})}),!0):!1};Ni.unstable_batchedUpdates=UR;Ni.unstable_createPortal=function(e,t){return XR(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Ni.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!ep(r))throw Error(dt(200));if(e==null||e._reactInternals===void 0)throw Error(dt(38));return Pg(e,t,r,!1,n)};Ni.version="17.0.2";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}t(),e.exports=Ni})(G6);const Bh=yg(pd);var fr={},BL={get exports(){return fr},set exports(e){fr=e}},zL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",UL=zL,jL=UL;function KR(){}function QR(){}QR.resetWarningCache=KR;var GL=function(){function e(n,i,a,o,l,s){if(s!==jL){var f=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 f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var r={array:e,bigint: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:QR,resetWarningCache:KR};return r.PropTypes=r,r};BL.exports=GL();var WL=function(){},HL=WL(),oo=function(e){return e!==HL&&e!==null},qL=oo,VL=Array.prototype.forEach,YL=Object.create,XL=function(e,t){var r;for(r in e)t[r]=e[r]},CS=function(e){var t=YL(null);return VL.call(arguments,function(r){qL(r)&&XL(Object(r),t)}),t},KL=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},N1,p3;function QL(){return p3||(p3=1,N1=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),N1}var ZL=KL()?Math.sign:QL(),JL=ZL,eD=Math.abs,tD=Math.floor,rD=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:JL(e)*tD(eD(e)))},nD=rD,iD=Math.max,Dl=function(e){return iD(0,nD(e))},aD=Dl,ZR=function(e,t,r){var n;return isNaN(e)?(n=t,n>=0?r&&n?n-1:n:1):e===!1?!1:aD(e)},Ea=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},oD=oo,Ji=function(e){if(!oD(e))throw new TypeError("Cannot use null or undefined");return e},uD=Ea,lD=Ji,sD=Function.prototype.bind,v3=Function.prototype.call,fD=Object.keys,cD=Object.prototype.propertyIsEnumerable,hD=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(lD(r)),uD(n),i=fD(r),o&&i.sort(typeof o=="function"?sD.call(o,r):void 0),typeof e!="function"&&(e=i[e]),v3.call(e,i,function(l,s){return cD.call(r,l)?v3.call(n,a,r[l],l,r,s):t})}},Ig=hD("forEach"),$l={},r_={},dD={get exports(){return r_},set exports(e){r_=e}},pD=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},L1,m3;function vD(){return m3||(m3=1,L1=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),L1}var D1,g3;function mD(){if(g3)return D1;g3=1;var e=oo,t=Object.keys;return D1=function(r){return t(e(r)?Object(r):r)},D1}var $1,y3;function gD(){return y3||(y3=1,$1=vD()()?Object.keys:mD()),$1}var B1,b3;function yD(){if(b3)return B1;b3=1;var e=gD(),t=Ji,r=Math.max;return B1=function(n,i){var a,o,l=r(arguments.length,2),s;for(n=Object(t(n)),s=function(f){try{n[f]=i[f]}catch(d){a||(a=d)}},o=1;o<l;++o)i=arguments[o],e(i).forEach(s);if(a!==void 0)throw a;return n},B1}var Fg=pD()?Object.assign:yD(),bD=oo,xD={function:!0,object:!0},OS=function(e){return bD(e)&&xD[typeof e]||!1};(function(e){var t=Fg,r=OS,n=oo,i=Error.captureStackTrace;e.exports=function(a){var o=new Error(a),l=arguments[1],s=arguments[2];return n(s)||r(l)&&(s=l,l=null),n(s)&&t(o,s),n(l)&&(o.code=l),i&&i(o,e.exports),o}})(dD);var km={},x3={get exports(){return km},set exports(e){km=e}},z1,w3;function JR(){if(w3)return z1;w3=1;var e=Ji,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return z1=function(a,o){var l,s=Object(e(o));if(a=Object(e(a)),n(s).forEach(function(f){try{t(a,f,r(o,f))}catch(d){l=d}}),typeof i=="function"&&i(s).forEach(function(f){try{t(a,f,r(o,f))}catch(d){l=d}}),l!==void 0)throw l;return a},z1}var _3=Dl,eP=function(e,t){return t},U1,S3,E3,A3;try{Object.defineProperty(eP,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}eP.length===1?(U1={configurable:!0,writable:!1,enumerable:!1},S3=Object.defineProperty,x3.exports=function(e,t){return t=_3(t),e.length===t?e:(U1.value=t,S3(e,"length",U1))}):(A3=JR(),E3=function(){var e=[];return function(t){var r,n=0;if(e[t])return e[t];for(r=[];t--;)r.push("a"+(++n).toString(36));return new Function("fn","return function ("+r.join(", ")+") { return fn.apply(this, arguments); };")}}(),x3.exports=function(e,t){var r;if(t=_3(t),e.length===t)return e;r=E3(t)(e);try{A3(r,e)}catch{}return r});var mi={},wD={get exports(){return mi},set exports(e){mi=e}},_D=void 0,Wf=function(e){return e!==_D&&e!==null},SD=Wf,ED={object:!0,function:!0,undefined:!0},kS=function(e){return SD(e)?hasOwnProperty.call(ED,typeof e):!1},AD=kS,TD=function(e){if(!AD(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},CD=TD,OD=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!CD(e)},kD=OD,MD=/^\s*class[\s{/}]/,RD=Function.prototype.toString,tP=function(e){return!(!kD(e)||MD.test(RD.call(e)))},j1="razdwatrzy",PD=function(){return typeof j1.contains!="function"?!1:j1.contains("dwa")===!0&&j1.contains("foo")===!1},G1,T3;function ID(){if(T3)return G1;T3=1;var e=String.prototype.indexOf;return G1=function(t){return e.call(this,t,arguments[1])>-1},G1}var rP=PD()?String.prototype.contains:ID(),Y0=Wf,C3=tP,nP=Fg,iP=CS,nd=rP,FD=wD.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],Y0(e)?(r=nd.call(e,"c"),n=nd.call(e,"e"),i=nd.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?nP(iP(a),o):o};FD.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],Y0(t)?C3(t)?Y0(r)?C3(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,Y0(e)?(n=nd.call(e,"c"),i=nd.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?nP(iP(a),o):o};var Mm={},ND={get exports(){return Mm},set exports(e){Mm=e}};(function(e,t){var r=mi,n=Ea,i=Function.prototype.apply,a=Function.prototype.call,o=Object.create,l=Object.defineProperty,s=Object.defineProperties,f=Object.prototype.hasOwnProperty,d={configurable:!0,enumerable:!1,writable:!0},g,v,y,E,k,x,w;g=function(_,C){var T;return n(C),f.call(this,"__ee__")?T=this.__ee__:(T=d.value=o(null),l(this,"__ee__",d),d.value=null),T[_]?typeof T[_]=="object"?T[_].push(C):T[_]=[T[_],C]:T[_]=C,this},v=function(_,C){var T,F;return n(C),F=this,g.call(this,_,T=function(){y.call(F,_,T),i.call(C,this,arguments)}),T.__eeOnceListener__=C,this},y=function(_,C){var T,F,L,V;if(n(C),!f.call(this,"__ee__"))return this;if(T=this.__ee__,!T[_])return this;if(F=T[_],typeof F=="object")for(V=0;L=F[V];++V)(L===C||L.__eeOnceListener__===C)&&(F.length===2?T[_]=F[V?0:1]:F.splice(V,1));else(F===C||F.__eeOnceListener__===C)&&delete T[_];return this},E=function(_){var C,T,F,L,V;if(f.call(this,"__ee__")&&(L=this.__ee__[_],!!L))if(typeof L=="object"){for(T=arguments.length,V=new Array(T-1),C=1;C<T;++C)V[C-1]=arguments[C];for(L=L.slice(),C=0;F=L[C];++C)i.call(F,this,V)}else switch(arguments.length){case 1:a.call(L,this);break;case 2:a.call(L,this,arguments[1]);break;case 3:a.call(L,this,arguments[1],arguments[2]);break;default:for(T=arguments.length,V=new Array(T-1),C=1;C<T;++C)V[C-1]=arguments[C];i.call(L,this,V)}},k={on:g,once:v,off:y,emit:E},x={on:r(g),once:r(v),off:r(y),emit:r(E)},w=s({},x),e.exports=t=function(_){return _==null?o(w):s(Object(_),x)},t.methods=k})(ND,Mm);var W1,O3;function LD(){return O3||(O3=1,W1=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),Boolean(r&&r!==t&&r[1]==="dwa"))}),W1}var H1,k3;function DD(){return k3||(k3=1,H1=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),H1}var q1,M3;function $D(){if(M3)return q1;M3=1;var e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};return q1=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}(),q1}var V1,R3;function Ng(){return R3||(R3=1,V1=DD()()?globalThis:$D()),V1}var Y1,P3;function BD(){if(P3)return Y1;P3=1;var e=Ng(),t={object:!0,symbol:!0};return Y1=function(){var r=e.Symbol,n;if(typeof r!="function")return!1;n=r("test symbol");try{String(n)}catch{return!1}return!(!t[typeof r.iterator]||!t[typeof r.toPrimitive]||!t[typeof r.toStringTag])},Y1}var X1,I3;function zD(){return I3||(I3=1,X1=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),X1}var K1,F3;function aP(){if(F3)return K1;F3=1;var e=zD();return K1=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},K1}var Q1,N3;function UD(){if(N3)return Q1;N3=1;var e=mi,t=Object.create,r=Object.defineProperty,n=Object.prototype,i=t(null);return Q1=function(a){for(var o=0,l,s;i[a+(o||"")];)++o;return a+=o||"",i[a]=!0,l="@@"+a,r(n,l,e.gs(null,function(f){s||(s=!0,r(this,l,e(f)),s=!1)})),l},Q1}var Z1,L3;function jD(){if(L3)return Z1;L3=1;var e=mi,t=Ng().Symbol;return Z1=function(r){return Object.defineProperties(r,{hasInstance:e("",t&&t.hasInstance||r("hasInstance")),isConcatSpreadable:e("",t&&t.isConcatSpreadable||r("isConcatSpreadable")),iterator:e("",t&&t.iterator||r("iterator")),match:e("",t&&t.match||r("match")),replace:e("",t&&t.replace||r("replace")),search:e("",t&&t.search||r("search")),species:e("",t&&t.species||r("species")),split:e("",t&&t.split||r("split")),toPrimitive:e("",t&&t.toPrimitive||r("toPrimitive")),toStringTag:e("",t&&t.toStringTag||r("toStringTag")),unscopables:e("",t&&t.unscopables||r("unscopables"))})},Z1}var J1,D3;function GD(){if(D3)return J1;D3=1;var e=mi,t=aP(),r=Object.create(null);return J1=function(n){return Object.defineProperties(n,{for:e(function(i){return r[i]?r[i]:r[i]=n(String(i))}),keyFor:e(function(i){var a;t(i);for(a in r)if(r[a]===i)return a})})},J1}var eb,$3;function WD(){if($3)return eb;$3=1;var e=mi,t=aP(),r=Ng().Symbol,n=UD(),i=jD(),a=GD(),o=Object.create,l=Object.defineProperties,s=Object.defineProperty,f,d,g;if(typeof r=="function")try{String(r()),g=!0}catch{}else r=null;return d=function(y){if(this instanceof d)throw new TypeError("Symbol is not a constructor");return f(y)},eb=f=function v(y){var E;if(this instanceof v)throw new TypeError("Symbol is not a constructor");return g?r(y):(E=o(d.prototype),y=y===void 0?"":String(y),l(E,{__description__:e("",y),__name__:e("",n(y))}))},i(f),a(f),l(d.prototype,{constructor:e(f),toString:e("",function(){return this.__name__})}),l(f.prototype,{toString:e(function(){return"Symbol ("+t(this).__description__+")"}),valueOf:e(function(){return t(this)})}),s(f.prototype,f.toPrimitive,e("",function(){var v=t(this);return typeof v=="symbol"?v:v.toString()})),s(f.prototype,f.toStringTag,e("c","Symbol")),s(d.prototype,f.toStringTag,e("c",f.prototype[f.toStringTag])),s(d.prototype,f.toPrimitive,e("c",f.prototype[f.toPrimitive])),eb}var tb,B3;function Bl(){return B3||(B3=1,tb=BD()()?Ng().Symbol:WD()),tb}var rb,z3;function Lg(){if(z3)return rb;z3=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return rb=function(r){return e.call(r)===t},rb}var nb,U3;function HD(){if(U3)return nb;U3=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return nb=function(r){return typeof r=="function"&&t(e.call(r))},nb}var ib,j3;function Dg(){if(j3)return ib;j3=1;var e=Object.prototype.toString,t=e.call("");return ib=function(r){return typeof r=="string"||r&&typeof r=="object"&&(r instanceof String||e.call(r)===t)||!1},ib}var ab,G3;function qD(){if(G3)return ab;G3=1;var e=Bl().iterator,t=Lg(),r=HD(),n=Dl,i=Ea,a=Ji,o=oo,l=Dg(),s=Array.isArray,f=Function.prototype.call,d={configurable:!0,enumerable:!0,writable:!0,value:null},g=Object.defineProperty;return ab=function(v){var y=arguments[1],E=arguments[2],k,x,w,_,C,T,F,L,V,j;if(v=Object(a(v)),o(y)&&i(y),!this||this===Array||!r(this)){if(!y){if(t(v))return C=v.length,C!==1?Array.apply(null,v):(_=new Array(1),_[0]=v[0],_);if(s(v)){for(_=new Array(C=v.length),x=0;x<C;++x)_[x]=v[x];return _}}_=[]}else k=this;if(!s(v)){if((V=v[e])!==void 0){for(F=i(V).call(v),k&&(_=new k),L=F.next(),x=0;!L.done;)j=y?f.call(y,E,L.value,x):L.value,k?(d.value=j,g(_,x,d)):_[x]=j,L=F.next(),++x;C=x}else if(l(v)){for(C=v.length,k&&(_=new k),x=0,w=0;x<C;++x)j=v[x],x+1<C&&(T=j.charCodeAt(0),T>=55296&&T<=56319&&(j+=v[++x])),j=y?f.call(y,E,j,w):j,k?(d.value=j,g(_,w,d)):_[w]=j,++w;C=w}}if(C===void 0)for(C=n(v.length),k&&(_=new k(C)),x=0;x<C;++x)j=y?f.call(y,E,v[x],x):v[x],k?(d.value=j,g(_,x,d)):_[x]=j;return k&&(d.value=null,_.length=C),_},ab}var ob,W3;function $g(){return W3||(W3=1,ob=LD()()?Array.from:qD()),ob}var VD=$g(),YD=Array.isArray,XD=function(e){return YD(e)?e:VD(e)},KD=XD,QD=oo,ZD=Ea,JD=Array.prototype.slice,oP;oP=function(e){return this.map(function(t,r){return t?t(e[r]):e[r]}).concat(JD.call(e,this.length))};var e$=function(e){return e=KD(e),e.forEach(function(t){QD(t)&&ZD(t)}),oP.bind(e)},Zv=Ea,t$=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:Zv(e.get)},e.set!==void 0?(t.set=Zv(e.set),e.delete&&(t.delete=Zv(e.delete)),e.clear&&(t.clear=Zv(e.clear)),t):(t.set=t.get,t))},Jv=r_,e0=km,yh=mi,uP=Mm.methods,r$=e$,n$=t$,ub=Function.prototype.apply,lb=Function.prototype.call,H3=Object.create,i$=Object.defineProperties,a$=uP.on,o$=uP.emit,u$=function(e,t,r){var n=H3(null),i,a,o,l,s,f,d,g,v,y,E,k,x,w,_;return t!==!1?a=t:isNaN(e.length)?a=1:a=e.length,r.normalizer&&(y=n$(r.normalizer),o=y.get,l=y.set,s=y.delete,f=y.clear),r.resolvers!=null&&(_=r$(r.resolvers)),o?w=e0(function(C){var T,F,L=arguments;if(_&&(L=_(L)),T=o(L),T!==null&&hasOwnProperty.call(n,T))return E&&i.emit("get",T,L,this),n[T];if(L.length===1?F=lb.call(e,this,L[0]):F=ub.call(e,this,L),T===null){if(T=o(L),T!==null)throw Jv("Circular invocation","CIRCULAR_INVOCATION");T=l(L)}else if(hasOwnProperty.call(n,T))throw Jv("Circular invocation","CIRCULAR_INVOCATION");return n[T]=F,k&&i.emit("set",T,null,F),F},a):t===0?w=function(){var C;if(hasOwnProperty.call(n,"data"))return E&&i.emit("get","data",arguments,this),n.data;if(arguments.length?C=ub.call(e,this,arguments):C=lb.call(e,this),hasOwnProperty.call(n,"data"))throw Jv("Circular invocation","CIRCULAR_INVOCATION");return n.data=C,k&&i.emit("set","data",null,C),C}:w=function(C){var T,F=arguments,L;if(_&&(F=_(arguments)),L=String(F[0]),hasOwnProperty.call(n,L))return E&&i.emit("get",L,F,this),n[L];if(F.length===1?T=lb.call(e,this,F[0]):T=ub.call(e,this,F),hasOwnProperty.call(n,L))throw Jv("Circular invocation","CIRCULAR_INVOCATION");return n[L]=T,k&&i.emit("set",L,null,T),T},i={original:e,memoized:w,profileName:r.profileName,get:function(C){return _&&(C=_(C)),o?o(C):String(C[0])},has:function(C){return hasOwnProperty.call(n,C)},delete:function(C){var T;hasOwnProperty.call(n,C)&&(s&&s(C),T=n[C],delete n[C],x&&i.emit("delete",C,T))},clear:function(){var C=n;f&&f(),n=H3(null),i.emit("clear",C)},on:function(C,T){return C==="get"?E=!0:C==="set"?k=!0:C==="delete"&&(x=!0),a$.call(this,C,T)},emit:o$,updateEnv:function(){e=i.original}},o?d=e0(function(C){var T,F=arguments;_&&(F=_(F)),T=o(F),T!==null&&i.delete(T)},a):t===0?d=function(){return i.delete("data")}:d=function(C){return _&&(C=_(arguments)[0]),i.delete(C)},g=e0(function(){var C,T=arguments;return t===0?n.data:(_&&(T=_(T)),o?C=o(T):C=String(T[0]),n[C])}),v=e0(function(){var C,T=arguments;return t===0?i.has("data"):(_&&(T=_(T)),o?C=o(T):C=String(T[0]),C===null?!1:i.has(C))}),i$(w,{__memoized__:yh(!0),delete:yh(d),clear:yh(i.clear),_get:yh(g),_has:yh(v)}),i},l$=Ea,s$=Ig,q3=$l,f$=u$,c$=ZR,h$=function e(t){var r,n,i;if(l$(t),r=Object(arguments[1]),r.async&&r.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!r.force?t:(n=c$(r.length,t.length,r.async&&q3.async),i=f$(t,n,r),s$(q3,function(a,o){r[o]&&a(r[o],i,r)}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized)},sb,V3;function d$(){return V3||(V3=1,sb=function(e){var t,r,n=e.length;if(!n)return"";for(t=String(e[r=0]);--n;)t+=""+e[++r];return t}),sb}var fb,Y3;function p$(){return Y3||(Y3=1,fb=function(e){return e?function(t){for(var r=String(t[0]),n=0,i=e;--i;)r+=""+t[++n];return r}:function(){return""}}),fb}var cb,X3;function v$(){return X3||(X3=1,cb=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),cb}var hb,K3;function m$(){return K3||(K3=1,hb=function(e){return e!==e}),hb}var db,Q3;function g$(){return Q3||(Q3=1,db=v$()()?Number.isNaN:m$()),db}var pb,Z3;function MS(){if(Z3)return pb;Z3=1;var e=g$(),t=Dl,r=Ji,n=Array.prototype.indexOf,i=Object.prototype.hasOwnProperty,a=Math.abs,o=Math.floor;return pb=function(l){var s,f,d,g;if(!e(l))return n.apply(this,arguments);for(f=t(r(this).length),d=arguments[1],isNaN(d)?d=0:d>=0?d=o(d):d=t(this.length)-o(a(d)),s=d;s<f;++s)if(i.call(this,s)&&(g=this[s],e(g)))return s;return-1},pb}var vb,J3;function y$(){if(J3)return vb;J3=1;var e=MS(),t=Object.create;return vb=function(){var r=0,n=[],i=t(null);return{get:function(a){var o=0,l=n,s,f=a.length;if(f===0)return l[f]||null;if(l=l[f]){for(;o<f-1;){if(s=e.call(l[0],a[o]),s===-1)return null;l=l[1][s],++o}return s=e.call(l[0],a[o]),s===-1?null:l[1][s]||null}return null},set:function(a){var o=0,l=n,s,f=a.length;if(f===0)l[f]=++r;else{for(l[f]||(l[f]=[[],[]]),l=l[f];o<f-1;)s=e.call(l[0],a[o]),s===-1&&(s=l[0].push(a[o])-1,l[1].push([[],[]])),l=l[1][s],++o;s=e.call(l[0],a[o]),s===-1&&(s=l[0].push(a[o])-1),l[1][s]=++r}return i[r]=a,r},delete:function(a){var o=0,l=n,s,f=i[a],d=f.length,g=[];if(d===0)delete l[d];else if(l=l[d]){for(;o<d-1;){if(s=e.call(l[0],f[o]),s===-1)return;g.push(l,s),l=l[1][s],++o}if(s=e.call(l[0],f[o]),s===-1)return;for(a=l[1][s],l[0].splice(s,1),l[1].splice(s,1);!l[0].length&&g.length;)s=g.pop(),l=g.pop(),l[0].splice(s,1),l[1].splice(s,1)}delete i[a]},clear:function(){n=[],i=t(null)}}},vb}var mb,eT;function b$(){if(eT)return mb;eT=1;var e=MS();return mb=function(){var t=0,r=[],n=[];return{get:function(i){var a=e.call(r,i[0]);return a===-1?null:n[a]},set:function(i){return r.push(i[0]),n.push(++t),t},delete:function(i){var a=e.call(n,i);a!==-1&&(r.splice(a,1),n.splice(a,1))},clear:function(){r=[],n=[]}}},mb}var gb,tT;function x$(){if(tT)return gb;tT=1;var e=MS(),t=Object.create;return gb=function(r){var n=0,i=[[],[]],a=t(null);return{get:function(o){for(var l=0,s=i,f;l<r-1;){if(f=e.call(s[0],o[l]),f===-1)return null;s=s[1][f],++l}return f=e.call(s[0],o[l]),f===-1?null:s[1][f]||null},set:function(o){for(var l=0,s=i,f;l<r-1;)f=e.call(s[0],o[l]),f===-1&&(f=s[0].push(o[l])-1,s[1].push([[],[]])),s=s[1][f],++l;return f=e.call(s[0],o[l]),f===-1&&(f=s[0].push(o[l])-1),s[1][f]=++n,a[n]=o,n},delete:function(o){for(var l=0,s=i,f,d=[],g=a[o];l<r-1;){if(f=e.call(s[0],g[l]),f===-1)return;d.push(s,f),s=s[1][f],++l}if(f=e.call(s[0],g[l]),f!==-1){for(o=s[1][f],s[0].splice(f,1),s[1].splice(f,1);!s[0].length&&d.length;)f=d.pop(),s=d.pop(),s[0].splice(f,1),s[1].splice(f,1);delete a[o]}},clear:function(){i=[[],[]],a=t(null)}}},gb}var rT={},yb,nT;function RS(){if(nT)return yb;nT=1;var e=Ea,t=Ig,r=Function.prototype.call;return yb=function(n,i){var a={},o=arguments[2];return e(i),t(n,function(l,s,f,d){a[s]=r.call(i,o,l,s,f,d)}),a},yb}var bb,iT;function PS(){if(iT)return bb;iT=1;var e=function(r){if(typeof r!="function")throw new TypeError(r+" is not a function");return r},t=function(r){var n=document.createTextNode(""),i,a,o=0;return new r(function(){var l;if(i)a&&(i=a.concat(i));else{if(!a)return;i=a}if(a=i,i=null,typeof a=="function"){l=a,a=null,l();return}for(n.data=o=++o%2;a;)l=a.shift(),a.length||(a=null),l()}).observe(n,{characterData:!0}),function(l){if(e(l),i){typeof i=="function"?i=[i,l]:i.push(l);return}i=l,n.data=o=++o%2}};return bb=function(){if(typeof process=="object"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof queueMicrotask=="function")return function(r){queueMicrotask(e(r))};if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return t(MutationObserver);if(typeof WebKitMutationObserver=="function")return t(WebKitMutationObserver)}return typeof setImmediate=="function"?function(r){setImmediate(e(r))}:typeof setTimeout=="function"||typeof setTimeout=="object"?function(r){setTimeout(e(r),0)}:null}(),bb}var aT;function w$(){if(aT)return rT;aT=1;var e=$g(),t=RS(),r=JR(),n=km,i=PS(),a=Array.prototype.slice,o=Function.prototype.apply,l=Object.create;return $l.async=function(s,f){var d=l(null),g=l(null),v=f.memoized,y=f.original,E,k,x;f.memoized=n(function(w){var _=arguments,C=_[_.length-1];return typeof C=="function"&&(E=C,_=a.call(_,0,-1)),v.apply(k=this,x=_)},v);try{r(f.memoized,v)}catch{}f.on("get",function(w){var _,C,T;if(E){if(d[w]){typeof d[w]=="function"?d[w]=[d[w],E]:d[w].push(E),E=null;return}_=E,C=k,T=x,E=k=x=null,i(function(){var F;hasOwnProperty.call(g,w)?(F=g[w],f.emit("getasync",w,T,C),o.call(_,F.context,F.args)):(E=_,k=C,x=T,v.apply(C,T))})}}),f.original=function(){var w,_,C,T;return E?(w=e(arguments),_=function F(L){var V,j,te=F.id;if(te==null){i(o.bind(F,this,arguments));return}if(delete F.id,V=d[te],delete d[te],!!V)return j=e(arguments),f.has(te)&&(L?f.delete(te):(g[te]={context:this,args:j},f.emit("setasync",te,typeof V=="function"?1:V.length))),typeof V=="function"?T=o.call(V,this,j):V.forEach(function(ge){T=o.call(ge,this,j)},this),T},C=E,E=k=x=null,w.push(_),T=o.call(y,this,w),_.cb=C,E=_,T):o.call(y,this,arguments)},f.on("set",function(w){if(!E){f.delete(w);return}d[w]?typeof d[w]=="function"?d[w]=[d[w],E.cb]:d[w].push(E.cb):d[w]=E.cb,delete E.cb,E.id=w,E=null}),f.on("delete",function(w){var _;hasOwnProperty.call(d,w)||g[w]&&(_=g[w],delete g[w],f.emit("deleteasync",w,a.call(_.args,1)))}),f.on("clear",function(){var w=g;g=l(null),f.emit("clearasync",t(w,function(_){return a.call(_.args,1)}))})},rT}var oT={},xb,uT;function _$(){if(uT)return xb;uT=1;var e=Array.prototype.forEach,t=Object.create;return xb=function(r){var n=t(null);return e.call(arguments,function(i){n[i]=!0}),n},xb}var wb,lT;function lP(){return lT||(lT=1,wb=function(e){return typeof e=="function"}),wb}var _b,sT;function S$(){if(sT)return _b;sT=1;var e=lP();return _b=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},_b}var Sb,fT;function E$(){if(fT)return Sb;fT=1;var e=Ji,t=S$();return Sb=function(r){return t(e(r))},Sb}var Eb,cT;function A$(){if(cT)return Eb;cT=1;var e=lP();return Eb=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},Eb}var Ab,hT;function T$(){if(hT)return Ab;hT=1;var e=A$(),t=/[\n\r\u2028\u2029]/g;return Ab=function(r){var n=e(r);return n.length>100&&(n=n.slice(0,99)+"…"),n=n.replace(t,function(i){return JSON.stringify(i).slice(1,-1)}),n},Ab}var id={},C$={get exports(){return id},set exports(e){id=e}},dT;function sP(){if(dT)return id;dT=1,C$.exports=e,id.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return id}var pT;function O$(){if(pT)return oT;pT=1;var e=RS(),t=_$(),r=E$(),n=T$(),i=sP(),a=PS(),o=Object.create,l=t("then","then:finally","done","done:finally");return $l.promise=function(s,f){var d=o(null),g=o(null),v=o(null);if(s===!0)s=null;else if(s=r(s),!l[s])throw new TypeError("'"+n(s)+"' is not valid promise mode");f.on("set",function(y,E,k){var x=!1;if(!i(k)){g[y]=k,f.emit("setasync",y,1);return}d[y]=1,v[y]=k;var w=function(F){var L=d[y];if(x)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)
42
+ Consider to rely on 'then' or 'done' mode instead.`);L&&(delete d[y],g[y]=F,f.emit("setasync",y,L))},_=function(){x=!0,d[y]&&(delete d[y],delete v[y],f.delete(y))},C=s;if(C||(C="then"),C==="then"){var T=function(){a(_)};k=k.then(function(F){a(w.bind(this,F))},T),typeof k.finally=="function"&&k.finally(T)}else if(C==="done"){if(typeof k.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");k.done(w,_)}else if(C==="done:finally"){if(typeof k.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof k.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");k.done(w),k.finally(_)}}),f.on("get",function(y,E,k){var x;if(d[y]){++d[y];return}x=v[y];var w=function(){f.emit("getasync",y,E,k)};i(x)?typeof x.done=="function"?x.done(w):x.then(function(){a(w)}):w()}),f.on("delete",function(y){if(delete v[y],d[y]){delete d[y];return}if(hasOwnProperty.call(g,y)){var E=g[y];delete g[y],f.emit("deleteasync",y,[E])}}),f.on("clear",function(){var y=g;g=o(null),d=o(null),v=o(null),f.emit("clearasync",e(y,function(E){return[E]}))})},oT}var vT={},mT;function k$(){if(mT)return vT;mT=1;var e=Ea,t=Ig,r=$l,n=Function.prototype.apply;return r.dispose=function(i,a,o){var l;if(e(i),o.async&&r.async||o.promise&&r.promise){a.on("deleteasync",l=function(s,f){n.call(i,null,f)}),a.on("clearasync",function(s){t(s,function(f,d){l(d,f)})});return}a.on("delete",l=function(s,f){i(f)}),a.on("clear",function(s){t(s,function(f,d){l(d,f)})})},vT}var gT={},Tb,yT;function M$(){return yT||(yT=1,Tb=2147483647),Tb}var Cb,bT;function R$(){if(bT)return Cb;bT=1;var e=Dl,t=M$();return Cb=function(r){if(r=e(r),r>t)throw new TypeError(r+" exceeds maximum possible timeout");return r},Cb}var xT;function P$(){if(xT)return gT;xT=1;var e=$g(),t=Ig,r=PS(),n=sP(),i=R$(),a=$l,o=Function.prototype,l=Math.max,s=Math.min,f=Object.create;return a.maxAge=function(d,g,v){var y,E,k,x;d=i(d),d&&(y=f(null),E=v.async&&a.async||v.promise&&a.promise?"async":"",g.on("set"+E,function(w){y[w]=setTimeout(function(){g.delete(w)},d),typeof y[w].unref=="function"&&y[w].unref(),x&&(x[w]&&x[w]!=="nextTick"&&clearTimeout(x[w]),x[w]=setTimeout(function(){delete x[w]},k),typeof x[w].unref=="function"&&x[w].unref())}),g.on("delete"+E,function(w){clearTimeout(y[w]),delete y[w],x&&(x[w]!=="nextTick"&&clearTimeout(x[w]),delete x[w])}),v.preFetch&&(v.preFetch===!0||isNaN(v.preFetch)?k=.333:k=l(s(Number(v.preFetch),1),0),k&&(x={},k=(1-k)*d,g.on("get"+E,function(w,_,C){x[w]||(x[w]="nextTick",r(function(){var T;x[w]==="nextTick"&&(delete x[w],g.delete(w),v.async&&(_=e(_),_.push(o)),T=g.memoized.apply(C,_),v.promise&&n(T)&&(typeof T.done=="function"?T.done(o,o):T.then(o,o)))}))}))),g.on("clear"+E,function(){t(y,function(w){clearTimeout(w)}),y={},x&&(t(x,function(w){w!=="nextTick"&&clearTimeout(w)}),x={})}))},gT}var wT={},Ob,_T;function I$(){if(_T)return Ob;_T=1;var e=Dl,t=Object.create,r=Object.prototype.hasOwnProperty;return Ob=function(n){var i=0,a=1,o=t(null),l=t(null),s=0,f;return n=e(n),{hit:function(d){var g=l[d],v=++s;if(o[v]=d,l[d]=v,!g)return++i,i<=n?void 0:(d=o[a],f(d),d);if(delete o[g],a===g)for(;!r.call(o,++a););},delete:f=function(d){var g=l[d];if(g&&(delete o[g],delete l[d],--i,a===g)){if(!i){s=0,a=1;return}for(;!r.call(o,++a););}},clear:function(){i=0,a=1,o=t(null),l=t(null),s=0}}},Ob}var ST;function F$(){if(ST)return wT;ST=1;var e=Dl,t=I$(),r=$l;return r.max=function(n,i,a){var o,l,s;n=e(n),n&&(l=t(n),o=a.async&&r.async||a.promise&&r.promise?"async":"",i.on("set"+o,s=function(f){f=l.hit(f),f!==void 0&&i.delete(f)}),i.on("get"+o,s),i.on("delete"+o,l.delete),i.on("clear"+o,l.clear))},wT}var ET={},AT;function N$(){if(AT)return ET;AT=1;var e=mi,t=$l,r=Object.create,n=Object.defineProperties;return t.refCounter=function(i,a,o){var l,s;l=r(null),s=o.async&&t.async||o.promise&&t.promise?"async":"",a.on("set"+s,function(f,d){l[f]=d||1}),a.on("get"+s,function(f){++l[f]}),a.on("delete"+s,function(f){delete l[f]}),a.on("clear"+s,function(){l={}}),n(a.memoized,{deleteRef:e(function(){var f=a.get(arguments);return f===null||!l[f]?null:--l[f]?!1:(a.delete(f),!0)}),getRefCount:e(function(){var f=a.get(arguments);return f===null||!l[f]?0:l[f]})})},ET}var L$=CS,D$=ZR,$$=h$,Kie=function(e){var t=L$(arguments[1]),r;return t.normalizer||(r=t.length=D$(t.length,e.length,t.async),r!==0&&(t.primitive?r===!1?t.normalizer=d$():r>1&&(t.normalizer=p$()(r)):r===!1?t.normalizer=y$()():r===1?t.normalizer=b$()():t.normalizer=x$()(r))),t.async&&w$(),t.promise&&O$(),t.dispose&&k$(),t.maxAge&&P$(),t.max&&F$(),t.refCounter&&N$(),$$(e,t)},TT={},B$={get exports(){return TT},set exports(e){TT=e}};/*!
43
+ Copyright (c) 2018 Jed Watson.
44
+ Licensed under the MIT License (MIT), see
45
+ http://jedwatson.github.io/classnames
46
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var a=arguments[i];if(a){var o=typeof a;if(o==="string"||o==="number")n.push(a);else if(Array.isArray(a)){if(a.length){var l=r.apply(null,a);l&&n.push(l)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&n.push(s)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(B$);var z$="Expected a function",CT=0/0,U$="[object Symbol]",j$=/^\s+|\s+$/g,G$=/^[-+]0x[0-9a-f]+$/i,W$=/^0b[01]+$/i,H$=/^0o[0-7]+$/i,q$=parseInt,V$=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,Y$=typeof self=="object"&&self&&self.Object===Object&&self,X$=V$||Y$||Function("return this")(),K$=Object.prototype,Q$=K$.toString,Z$=Math.max,J$=Math.min,kb=function(){return X$.Date.now()};function eB(e,t,r){var n,i,a,o,l,s,f=0,d=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(z$);t=OT(t)||0,n_(r)&&(d=!!r.leading,g="maxWait"in r,a=g?Z$(OT(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v);function y(L){var V=n,j=i;return n=i=void 0,f=L,o=e.apply(j,V),o}function E(L){return f=L,l=setTimeout(w,t),d?y(L):o}function k(L){var V=L-s,j=L-f,te=t-V;return g?J$(te,a-j):te}function x(L){var V=L-s,j=L-f;return s===void 0||V>=t||V<0||g&&j>=a}function w(){var L=kb();if(x(L))return _(L);l=setTimeout(w,k(L))}function _(L){return l=void 0,v&&n?y(L):(n=i=void 0,o)}function C(){l!==void 0&&clearTimeout(l),f=0,n=s=i=l=void 0}function T(){return l===void 0?o:_(kb())}function F(){var L=kb(),V=x(L);if(n=arguments,i=this,s=L,V){if(l===void 0)return E(s);if(g)return l=setTimeout(w,t),y(s)}return l===void 0&&(l=setTimeout(w,t)),o}return F.cancel=C,F.flush=T,F}function n_(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function tB(e){return!!e&&typeof e=="object"}function rB(e){return typeof e=="symbol"||tB(e)&&Q$.call(e)==U$}function OT(e){if(typeof e=="number")return e;if(rB(e))return CT;if(n_(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=n_(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(j$,"");var r=W$.test(e);return r||H$.test(e)?q$(e.slice(2),r?2:8):G$.test(e)?CT:+e}var Qie=eB;function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ti.apply(this,arguments)}function Sf(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function i_(e,t){return i_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},i_(e,t)}function tp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i_(e,t)}function nB(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function iB(e,t){e.classList?e.classList.add(t):nB(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function kT(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function aB(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=kT(e.className,t):e.setAttribute("class",kT(e.className&&e.className.baseVal||"",t))}const MT={disabled:!1},fP=wr.createContext(null);var cP=function(t){return t.scrollTop},zh="unmounted",tl="exited",rl="entering",js="entered",a_="exiting",uo=function(e){tp(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,l=o&&!o.isMounting?n.enter:n.appear,s;return a.appearStatus=null,n.in?l?(s=tl,a.appearStatus=rl):s=js:n.unmountOnExit||n.mountOnEnter?s=zh:s=tl,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===zh?{status:tl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==rl&&o!==js&&(a=rl):(o===rl||o===js)&&(a=a_)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,l;return a=o=l=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,l=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:l}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===rl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Bh.findDOMNode(this);o&&cP(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===tl&&this.setState({status:zh})},r.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,s=this.props.nodeRef?[l]:[Bh.findDOMNode(this),l],f=s[0],d=s[1],g=this.getTimeouts(),v=l?g.appear:g.enter;if(!i&&!o||MT.disabled){this.safeSetState({status:js},function(){a.props.onEntered(f)});return}this.props.onEnter(f,d),this.safeSetState({status:rl},function(){a.props.onEntering(f,d),a.onTransitionEnd(v,function(){a.safeSetState({status:js},function(){a.props.onEntered(f,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:Bh.findDOMNode(this);if(!a||MT.disabled){this.safeSetState({status:tl},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:a_},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:tl},function(){i.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Bh.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],f=s[0],d=s[1];this.props.addEndListener(f,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===zh)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=Sf(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return wr.createElement(fP.Provider,{value:null},typeof o=="function"?o(i,l):wr.cloneElement(wr.Children.only(o),l))},t}(wr.Component);uo.contextType=fP;uo.propTypes={};function Rs(){}uo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rs,onEntering:Rs,onEntered:Rs,onExit:Rs,onExiting:Rs,onExited:Rs};uo.UNMOUNTED=zh;uo.EXITED=tl;uo.ENTERING=rl;uo.ENTERED=js;uo.EXITING=a_;const oB=uo;var uB=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return iB(t,n)})},Mb=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return aB(t,n)})},IS=function(e){tp(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(l,s){var f=n.resolveArguments(l,s),d=f[0],g=f[1];n.removeClasses(d,"exit"),n.addClass(d,g?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(l,s)},n.onEntering=function(l,s){var f=n.resolveArguments(l,s),d=f[0],g=f[1],v=g?"appear":"enter";n.addClass(d,v,"active"),n.props.onEntering&&n.props.onEntering(l,s)},n.onEntered=function(l,s){var f=n.resolveArguments(l,s),d=f[0],g=f[1],v=g?"appear":"enter";n.removeClasses(d,v),n.addClass(d,v,"done"),n.props.onEntered&&n.props.onEntered(l,s)},n.onExit=function(l){var s=n.resolveArguments(l),f=s[0];n.removeClasses(f,"appear"),n.removeClasses(f,"enter"),n.addClass(f,"exit","base"),n.props.onExit&&n.props.onExit(l)},n.onExiting=function(l){var s=n.resolveArguments(l),f=s[0];n.addClass(f,"exit","active"),n.props.onExiting&&n.props.onExiting(l)},n.onExited=function(l){var s=n.resolveArguments(l),f=s[0];n.removeClasses(f,"exit"),n.addClass(f,"exit","done"),n.props.onExited&&n.props.onExited(l)},n.resolveArguments=function(l,s){return n.props.nodeRef?[n.props.nodeRef.current,l]:[l,s]},n.getClassNames=function(l){var s=n.props.classNames,f=typeof s=="string",d=f&&s?s+"-":"",g=f?""+d+l:s[l],v=f?g+"-active":s[l+"Active"],y=f?g+"-done":s[l+"Done"];return{baseClassName:g,activeClassName:v,doneClassName:y}},n}var r=t.prototype;return r.addClass=function(i,a,o){var l=this.getClassNames(a)[o+"ClassName"],s=this.getClassNames("enter"),f=s.doneClassName;a==="appear"&&o==="done"&&f&&(l+=" "+f),o==="active"&&i&&cP(i),l&&(this.appliedClasses[a][o]=l,uB(i,l))},r.removeClasses=function(i,a){var o=this.appliedClasses[a],l=o.base,s=o.active,f=o.done;this.appliedClasses[a]={},l&&Mb(i,l),s&&Mb(i,s),f&&Mb(i,f)},r.render=function(){var i=this.props;i.classNames;var a=Sf(i,["classNames"]);return wr.createElement(oB,ti({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(wr.Component);IS.defaultProps={classNames:""};IS.propTypes={};const Zie=IS;function t0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}/**!
47
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
48
+ * @version 1.16.1
49
+ * @license
50
+ * Copyright (c) 2016 Federico Zivolo and contributors
51
+ *
52
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
53
+ * of this software and associated documentation files (the "Software"), to deal
54
+ * in the Software without restriction, including without limitation the rights
55
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
56
+ * copies of the Software, and to permit persons to whom the Software is
57
+ * furnished to do so, subject to the following conditions:
58
+ *
59
+ * The above copyright notice and this permission notice shall be included in all
60
+ * copies or substantial portions of the Software.
61
+ *
62
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
63
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
64
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
65
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
66
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
67
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
68
+ * SOFTWARE.
69
+ */var rp=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",lB=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(rp&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function sB(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function fB(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},lB))}}var cB=rp&&window.Promise,hB=cB?sB:fB;function hP(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function zl(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function FS(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function np(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=zl(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:np(FS(e))}function dP(e){return e&&e.referenceNode?e.referenceNode:e}var RT=rp&&!!(window.MSInputMethodContext&&document.documentMode),PT=rp&&/MSIE 10/.test(navigator.userAgent);function Hf(e){return e===11?RT:e===10?PT:RT||PT}function Ef(e){if(!e)return document.documentElement;for(var t=Hf(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&zl(r,"position")==="static"?Ef(r):r}function dB(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Ef(e.firstElementChild)===e}function o_(e){return e.parentNode!==null?o_(e.parentNode):e}function Rm(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,i=r?t:e,a=document.createRange();a.setStart(n,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||n.contains(i))return dB(o)?o:Ef(o);var l=o_(e);return l.host?Rm(l.host,t):Rm(e,o_(t).host)}function Af(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",n=e.nodeName;if(n==="BODY"||n==="HTML"){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[r]}return e[r]}function pB(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Af(t,"top"),i=Af(t,"left"),a=r?-1:1;return e.top+=n*a,e.bottom+=n*a,e.left+=i*a,e.right+=i*a,e}function IT(e,t){var r=t==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+n+"Width"])}function FT(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],Hf(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function pP(e){var t=e.body,r=e.documentElement,n=Hf(10)&&getComputedStyle(r);return{height:FT("Height",t,r,n),width:FT("Width",t,r,n)}}var vB=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},mB=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),Tf=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},Mi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function su(e){return Mi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function u_(e){var t={};try{if(Hf(10)){t=e.getBoundingClientRect();var r=Af(e,"top"),n=Af(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a=e.nodeName==="HTML"?pP(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,l=a.height||e.clientHeight||i.height,s=e.offsetWidth-o,f=e.offsetHeight-l;if(s||f){var d=zl(e);s-=IT(d,"x"),f-=IT(d,"y"),i.width-=s,i.height-=f}return su(i)}function NS(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Hf(10),i=t.nodeName==="HTML",a=u_(e),o=u_(t),l=np(e),s=zl(t),f=parseFloat(s.borderTopWidth),d=parseFloat(s.borderLeftWidth);r&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var g=su({top:a.top-o.top-f,left:a.left-o.left-d,width:a.width,height:a.height});if(g.marginTop=0,g.marginLeft=0,!n&&i){var v=parseFloat(s.marginTop),y=parseFloat(s.marginLeft);g.top-=f-v,g.bottom-=f-v,g.left-=d-y,g.right-=d-y,g.marginTop=v,g.marginLeft=y}return(n&&!r?t.contains(l):t===l&&l.nodeName!=="BODY")&&(g=pB(g,t)),g}function gB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=NS(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),o=t?0:Af(r),l=t?0:Af(r,"left"),s={top:o-n.top+n.marginTop,left:l-n.left+n.marginLeft,width:i,height:a};return su(s)}function vP(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(zl(e,"position")==="fixed")return!0;var r=FS(e);return r?vP(r):!1}function mP(e){if(!e||!e.parentElement||Hf())return document.documentElement;for(var t=e.parentElement;t&&zl(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function LS(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?mP(e):Rm(e,dP(t));if(n==="viewport")a=gB(o,i);else{var l=void 0;n==="scrollParent"?(l=np(FS(t)),l.nodeName==="BODY"&&(l=e.ownerDocument.documentElement)):n==="window"?l=e.ownerDocument.documentElement:l=n;var s=NS(l,o,i);if(l.nodeName==="HTML"&&!vP(o)){var f=pP(e.ownerDocument),d=f.height,g=f.width;a.top+=s.top-s.marginTop,a.bottom=d+s.top,a.left+=s.left-s.marginLeft,a.right=g+s.left}else a=s}r=r||0;var v=typeof r=="number";return a.left+=v?r:r.left||0,a.top+=v?r:r.top||0,a.right-=v?r:r.right||0,a.bottom-=v?r:r.bottom||0,a}function yB(e){var t=e.width,r=e.height;return t*r}function gP(e,t,r,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=LS(r,n,a,i),l={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},s=Object.keys(l).map(function(v){return Mi({key:v},l[v],{area:yB(l[v])})}).sort(function(v,y){return y.area-v.area}),f=s.filter(function(v){var y=v.width,E=v.height;return y>=r.clientWidth&&E>=r.clientHeight}),d=f.length>0?f[0].key:s[0].key,g=e.split("-")[1];return d+(g?"-"+g:"")}function yP(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?mP(t):Rm(t,dP(r));return NS(r,i,n)}function bP(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),i=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),a={width:e.offsetWidth+i,height:e.offsetHeight+n};return a}function Pm(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function xP(e,t,r){r=r.split("-")[0];var n=bP(e),i={width:n.width,height:n.height},a=["right","left"].indexOf(r)!==-1,o=a?"top":"left",l=a?"left":"top",s=a?"height":"width",f=a?"width":"height";return i[o]=t[o]+t[s]/2-n[s]/2,r===l?i[l]=t[l]-n[f]:i[l]=t[Pm(l)],i}function ip(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function bB(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===r});var n=ip(e,function(i){return i[t]===r});return e.indexOf(n)}function wP(e,t,r){var n=r===void 0?e:e.slice(0,bB(e,"name",r));return n.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&hP(a)&&(t.offsets.popper=su(t.offsets.popper),t.offsets.reference=su(t.offsets.reference),t=a(t,i))}),t}function xB(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=yP(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=gP(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=xP(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=wP(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function _P(e,t){return e.some(function(r){var n=r.name,i=r.enabled;return i&&n===t})}function DS(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],a=i?""+i+r:e;if(typeof document.body.style[a]<"u")return a}return null}function wB(){return this.state.isDestroyed=!0,_P(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[DS("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function SP(e){var t=e.ownerDocument;return t?t.defaultView:window}function EP(e,t,r,n){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,r,{passive:!0}),i||EP(np(a.parentNode),t,r,n),n.push(a)}function _B(e,t,r,n){r.updateBound=n,SP(e).addEventListener("resize",r.updateBound,{passive:!0});var i=np(e);return EP(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function SB(){this.state.eventsEnabled||(this.state=_B(this.reference,this.options,this.state,this.scheduleUpdate))}function EB(e,t){return SP(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function AB(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=EB(this.reference,this.state))}function $S(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function l_(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&$S(t[r])&&(n="px"),e.style[r]=t[r]+n})}function TB(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function CB(e){return l_(e.instance.popper,e.styles),TB(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&l_(e.arrowElement,e.arrowStyles),e}function OB(e,t,r,n,i){var a=yP(i,t,e,r.positionFixed),o=gP(r.placement,a,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",o),l_(t,{position:r.positionFixed?"fixed":"absolute"}),r}function kB(e,t){var r=e.offsets,n=r.popper,i=r.reference,a=Math.round,o=Math.floor,l=function(w){return w},s=a(i.width),f=a(n.width),d=["left","right"].indexOf(e.placement)!==-1,g=e.placement.indexOf("-")!==-1,v=s%2===f%2,y=s%2===1&&f%2===1,E=t?d||g||v?a:o:l,k=t?a:l;return{left:E(y&&!g&&t?n.left-1:n.left),top:k(n.top),bottom:k(n.bottom),right:E(n.right)}}var MB=rp&&/Firefox/i.test(navigator.userAgent);function RB(e,t){var r=t.x,n=t.y,i=e.offsets.popper,a=ip(e.instance.modifiers,function(C){return C.name==="applyStyle"}).gpuAcceleration;a!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=a!==void 0?a:t.gpuAcceleration,l=Ef(e.instance.popper),s=u_(l),f={position:i.position},d=kB(e,window.devicePixelRatio<2||!MB),g=r==="bottom"?"top":"bottom",v=n==="right"?"left":"right",y=DS("transform"),E=void 0,k=void 0;if(g==="bottom"?l.nodeName==="HTML"?k=-l.clientHeight+d.bottom:k=-s.height+d.bottom:k=d.top,v==="right"?l.nodeName==="HTML"?E=-l.clientWidth+d.right:E=-s.width+d.right:E=d.left,o&&y)f[y]="translate3d("+E+"px, "+k+"px, 0)",f[g]=0,f[v]=0,f.willChange="transform";else{var x=g==="bottom"?-1:1,w=v==="right"?-1:1;f[g]=k*x,f[v]=E*w,f.willChange=g+", "+v}var _={"x-placement":e.placement};return e.attributes=Mi({},_,e.attributes),e.styles=Mi({},f,e.styles),e.arrowStyles=Mi({},e.offsets.arrow,e.arrowStyles),e}function AP(e,t,r){var n=ip(e,function(l){var s=l.name;return s===t}),i=!!n&&e.some(function(l){return l.name===r&&l.enabled&&l.order<n.order});if(!i){var a="`"+t+"`",o="`"+r+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function PB(e,t){var r;if(!AP(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if(typeof n=="string"){if(n=e.instance.popper.querySelector(n),!n)return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,o=a.popper,l=a.reference,s=["left","right"].indexOf(i)!==-1,f=s?"height":"width",d=s?"Top":"Left",g=d.toLowerCase(),v=s?"left":"top",y=s?"bottom":"right",E=bP(n)[f];l[y]-E<o[g]&&(e.offsets.popper[g]-=o[g]-(l[y]-E)),l[g]+E>o[y]&&(e.offsets.popper[g]+=l[g]+E-o[y]),e.offsets.popper=su(e.offsets.popper);var k=l[g]+l[f]/2-E/2,x=zl(e.instance.popper),w=parseFloat(x["margin"+d]),_=parseFloat(x["border"+d+"Width"]),C=k-e.offsets.popper[g]-w-_;return C=Math.max(Math.min(o[f]-E,C),0),e.arrowElement=n,e.offsets.arrow=(r={},Tf(r,g,Math.round(C)),Tf(r,v,""),r),e}function IB(e){return e==="end"?"start":e==="start"?"end":e}var TP=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Rb=TP.slice(3);function NT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Rb.indexOf(e),n=Rb.slice(r+1).concat(Rb.slice(0,r));return t?n.reverse():n}var Pb={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function FB(e,t){if(_P(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=LS(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=Pm(n),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Pb.FLIP:o=[n,i];break;case Pb.CLOCKWISE:o=NT(n);break;case Pb.COUNTERCLOCKWISE:o=NT(n,!0);break;default:o=t.behavior}return o.forEach(function(l,s){if(n!==l||o.length===s+1)return e;n=e.placement.split("-")[0],i=Pm(n);var f=e.offsets.popper,d=e.offsets.reference,g=Math.floor,v=n==="left"&&g(f.right)>g(d.left)||n==="right"&&g(f.left)<g(d.right)||n==="top"&&g(f.bottom)>g(d.top)||n==="bottom"&&g(f.top)<g(d.bottom),y=g(f.left)<g(r.left),E=g(f.right)>g(r.right),k=g(f.top)<g(r.top),x=g(f.bottom)>g(r.bottom),w=n==="left"&&y||n==="right"&&E||n==="top"&&k||n==="bottom"&&x,_=["top","bottom"].indexOf(n)!==-1,C=!!t.flipVariations&&(_&&a==="start"&&y||_&&a==="end"&&E||!_&&a==="start"&&k||!_&&a==="end"&&x),T=!!t.flipVariationsByContent&&(_&&a==="start"&&E||_&&a==="end"&&y||!_&&a==="start"&&x||!_&&a==="end"&&k),F=C||T;(v||w||F)&&(e.flipped=!0,(v||w)&&(n=o[s+1]),F&&(a=IB(a)),e.placement=n+(a?"-"+a:""),e.offsets.popper=Mi({},e.offsets.popper,xP(e.instance.popper,e.offsets.reference,e.placement)),e=wP(e.instance.modifiers,e,"flip"))}),e}function NB(e){var t=e.offsets,r=t.popper,n=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=["top","bottom"].indexOf(i)!==-1,l=o?"right":"bottom",s=o?"left":"top",f=o?"width":"height";return r[l]<a(n[s])&&(e.offsets.popper[s]=a(n[s])-r[f]),r[s]>a(n[l])&&(e.offsets.popper[s]=a(n[l])),e}function LB(e,t,r,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(o.indexOf("%")===0){var l=void 0;switch(o){case"%p":l=r;break;case"%":case"%r":default:l=n}var s=su(l);return s[t]/100*a}else if(o==="vh"||o==="vw"){var f=void 0;return o==="vh"?f=Math.max(document.documentElement.clientHeight,window.innerHeight||0):f=Math.max(document.documentElement.clientWidth,window.innerWidth||0),f/100*a}else return a}function DB(e,t,r,n){var i=[0,0],a=["right","left"].indexOf(n)!==-1,o=e.split(/(\+|\-)/).map(function(d){return d.trim()}),l=o.indexOf(ip(o,function(d){return d.search(/,|\s/)!==-1}));o[l]&&o[l].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,f=l!==-1?[o.slice(0,l).concat([o[l].split(s)[0]]),[o[l].split(s)[1]].concat(o.slice(l+1))]:[o];return f=f.map(function(d,g){var v=(g===1?!a:a)?"height":"width",y=!1;return d.reduce(function(E,k){return E[E.length-1]===""&&["+","-"].indexOf(k)!==-1?(E[E.length-1]=k,y=!0,E):y?(E[E.length-1]+=k,y=!1,E):E.concat(k)},[]).map(function(E){return LB(E,v,t,r)})}),f.forEach(function(d,g){d.forEach(function(v,y){$S(v)&&(i[g]+=v*(d[y-1]==="-"?-1:1))})}),i}function $B(e,t){var r=t.offset,n=e.placement,i=e.offsets,a=i.popper,o=i.reference,l=n.split("-")[0],s=void 0;return $S(+r)?s=[+r,0]:s=DB(r,a,o,l),l==="left"?(a.top+=s[0],a.left-=s[1]):l==="right"?(a.top+=s[0],a.left+=s[1]):l==="top"?(a.left+=s[0],a.top-=s[1]):l==="bottom"&&(a.left+=s[0],a.top+=s[1]),e.popper=a,e}function BB(e,t){var r=t.boundariesElement||Ef(e.instance.popper);e.instance.reference===r&&(r=Ef(r));var n=DS("transform"),i=e.instance.popper.style,a=i.top,o=i.left,l=i[n];i.top="",i.left="",i[n]="";var s=LS(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=a,i.left=o,i[n]=l,t.boundaries=s;var f=t.priority,d=e.offsets.popper,g={primary:function(y){var E=d[y];return d[y]<s[y]&&!t.escapeWithReference&&(E=Math.max(d[y],s[y])),Tf({},y,E)},secondary:function(y){var E=y==="right"?"left":"top",k=d[E];return d[y]>s[y]&&!t.escapeWithReference&&(k=Math.min(d[E],s[y]-(y==="right"?d.width:d.height))),Tf({},E,k)}};return f.forEach(function(v){var y=["left","top"].indexOf(v)!==-1?"primary":"secondary";d=Mi({},d,g[y](v))}),e.offsets.popper=d,e}function zB(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var i=e.offsets,a=i.reference,o=i.popper,l=["bottom","top"].indexOf(r)!==-1,s=l?"left":"top",f=l?"width":"height",d={start:Tf({},s,a[s]),end:Tf({},s,a[s]+a[f]-o[f])};e.offsets.popper=Mi({},o,d[n])}return e}function UB(e){if(!AP(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=ip(e.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function jB(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,i=n.popper,a=n.reference,o=["left","right"].indexOf(r)!==-1,l=["top","left"].indexOf(r)===-1;return i[o?"left":"top"]=a[r]-(l?i[o?"width":"height"]:0),e.placement=Pm(t),e.offsets.popper=su(i),e}var GB={shift:{order:100,enabled:!0,fn:zB},offset:{order:200,enabled:!0,fn:$B,offset:0},preventOverflow:{order:300,enabled:!0,fn:BB,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:NB},arrow:{order:500,enabled:!0,fn:PB,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:FB,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:jB},hide:{order:800,enabled:!0,fn:UB},computeStyle:{order:850,enabled:!0,fn:RB,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:CB,onLoad:OB,gpuAcceleration:void 0}},WB={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:GB},Bg=function(){function e(t,r){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};vB(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=hB(this.update.bind(this)),this.options=Mi({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(Mi({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){n.options.modifiers[o]=Mi({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Mi({name:o},n.options.modifiers[o])}).sort(function(o,l){return o.order-l.order}),this.modifiers.forEach(function(o){o.enabled&&hP(o.onLoad)&&o.onLoad(n.reference,n.popper,n.options,o,n.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return mB(e,[{key:"update",value:function(){return xB.call(this)}},{key:"destroy",value:function(){return wB.call(this)}},{key:"enableEventListeners",value:function(){return SB.call(this)}},{key:"disableEventListeners",value:function(){return AB.call(this)}}]),e}();Bg.Utils=(typeof window<"u"?window:global).PopperUtils;Bg.placements=TP;Bg.Defaults=WB;const Jie=Bg;function BS(e,t,...r){if(!e)throw new TypeError(CP(t,r))}function CP(e,t){let r=0;return e.replace(/%[os]/gu,()=>OP(t[r++]))}function OP(e){return typeof e!="object"||e===null?String(e):Object.prototype.toString.call(e)}let HB;function qB(e){try{const t=e instanceof Error?e:new Error(OP(e));if(typeof dispatchEvent=="function"&&typeof ErrorEvent=="function")dispatchEvent(new ErrorEvent("error",{error:t,message:t.message}));else if(typeof process<"u"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)}catch{}}const Zi=typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:typeof globalThis<"u"?globalThis:void 0;let VB;class gu{constructor(t,r){this.code=t,this.message=r}warn(...t){var r;try{const n=((r=new Error().stack)!==null&&r!==void 0?r:"").replace(/^(?:.+?\n){2}/gu,`
70
+ `);console.warn(this.message,...t,n)}catch{}}}const YB=new gu("W01","Unable to initialize event under dispatching."),XB=new gu("W02","Assigning any falsy value to 'cancelBubble' property has no effect."),KB=new gu("W03","Assigning any truthy value to 'returnValue' property has no effect."),QB=new gu("W04","Unable to preventDefault on non-cancelable events."),ZB=new gu("W05","Unable to preventDefault inside passive event listener invocation."),JB=new gu("W06","An event listener wasn't added because it has been added already: %o, %o"),Ib=new gu("W07","The %o option value was abandoned because the event listener wasn't added as duplicated."),LT=new gu("W08","The 'callback' argument must be a function or an object that has 'handleEvent' method: %o");class lo{static get NONE(){return DT}static get CAPTURING_PHASE(){return $T}static get AT_TARGET(){return BT}static get BUBBLING_PHASE(){return zT}constructor(t,r){Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=r??{};s_.set(this,{type:String(t),bubbles:Boolean(n.bubbles),cancelable:Boolean(n.cancelable),composed:Boolean(n.composed),target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1,inPassiveListenerFlag:!1,dispatchFlag:!1,timeStamp:Date.now()})}get type(){return en(this).type}get target(){return en(this).target}get srcElement(){return en(this).target}get currentTarget(){return en(this).currentTarget}composedPath(){const t=en(this).currentTarget;return t?[t]:[]}get NONE(){return DT}get CAPTURING_PHASE(){return $T}get AT_TARGET(){return BT}get BUBBLING_PHASE(){return zT}get eventPhase(){return en(this).dispatchFlag?2:0}stopPropagation(){en(this).stopPropagationFlag=!0}get cancelBubble(){return en(this).stopPropagationFlag}set cancelBubble(t){t?en(this).stopPropagationFlag=!0:XB.warn()}stopImmediatePropagation(){const t=en(this);t.stopPropagationFlag=t.stopImmediatePropagationFlag=!0}get bubbles(){return en(this).bubbles}get cancelable(){return en(this).cancelable}get returnValue(){return!en(this).canceledFlag}set returnValue(t){t?KB.warn():UT(en(this))}preventDefault(){UT(en(this))}get defaultPrevented(){return en(this).canceledFlag}get composed(){return en(this).composed}get isTrusted(){return!1}get timeStamp(){return en(this).timeStamp}initEvent(t,r=!1,n=!1){const i=en(this);if(i.dispatchFlag){YB.warn();return}s_.set(this,{...i,type:String(t),bubbles:Boolean(r),cancelable:Boolean(n),target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1})}}const DT=0,$T=1,BT=2,zT=3,s_=new WeakMap;function en(e,t="this"){const r=s_.get(e);return BS(r!=null,"'%s' must be an object that Event constructor created, but got another one: %o",t,e),r}function UT(e){if(e.inPassiveListenerFlag){ZB.warn();return}if(!e.cancelable){QB.warn();return}e.canceledFlag=!0}Object.defineProperty(lo,"NONE",{enumerable:!0});Object.defineProperty(lo,"CAPTURING_PHASE",{enumerable:!0});Object.defineProperty(lo,"AT_TARGET",{enumerable:!0});Object.defineProperty(lo,"BUBBLING_PHASE",{enumerable:!0});const Fb=Object.getOwnPropertyNames(lo.prototype);for(let e=0;e<Fb.length;++e)Fb[e]!=="constructor"&&Object.defineProperty(lo.prototype,Fb[e],{enumerable:!0});typeof Zi<"u"&&typeof Zi.Event<"u"&&Object.setPrototypeOf(lo.prototype,Zi.Event.prototype);function ez(e){return Zi.DOMException?new Zi.DOMException(e,"InvalidStateError"):(Ps==null&&(Ps=class kP extends Error{constructor(r){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,kP)}get code(){return 11}get name(){return"InvalidStateError"}},Object.defineProperties(Ps.prototype,{code:{enumerable:!0},name:{enumerable:!0}}),GT(Ps),GT(Ps.prototype)),new Ps(e))}let Ps;const jT={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25};function GT(e){const t=Object.keys(jT);for(let r=0;r<t.length;++r){const n=t[r],i=jT[n];Object.defineProperty(e,n,{get(){return i},configurable:!0,enumerable:!0})}}class zg extends lo{static wrap(t){return new(RP(t))(t)}constructor(t){super(t.type,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}),t.cancelBubble&&super.stopPropagation(),t.defaultPrevented&&super.preventDefault(),MP.set(this,{original:t});const r=Object.keys(t);for(let n=0;n<r.length;++n){const i=r[n];i in this||Object.defineProperty(this,i,PP(t,i))}}stopPropagation(){super.stopPropagation();const{original:t}=$o(this);"stopPropagation"in t&&t.stopPropagation()}get cancelBubble(){return super.cancelBubble}set cancelBubble(t){super.cancelBubble=t;const{original:r}=$o(this);"cancelBubble"in r&&(r.cancelBubble=t)}stopImmediatePropagation(){super.stopImmediatePropagation();const{original:t}=$o(this);"stopImmediatePropagation"in t&&t.stopImmediatePropagation()}get returnValue(){return super.returnValue}set returnValue(t){super.returnValue=t;const{original:r}=$o(this);"returnValue"in r&&(r.returnValue=t)}preventDefault(){super.preventDefault();const{original:t}=$o(this);"preventDefault"in t&&t.preventDefault()}get timeStamp(){const{original:t}=$o(this);return"timeStamp"in t?t.timeStamp:super.timeStamp}}const MP=new WeakMap;function $o(e){const t=MP.get(e);return BS(t!=null,"'this' is expected an Event object, but got",e),t}const Im=new WeakMap;Im.set(Object.prototype,zg);typeof Zi<"u"&&typeof Zi.Event<"u"&&Im.set(Zi.Event.prototype,zg);function RP(e){const t=Object.getPrototypeOf(e);if(t==null)return zg;let r=Im.get(t);return r==null&&(r=tz(RP(t),t),Im.set(t,r)),r}function tz(e,t){class r extends e{}const n=Object.keys(t);for(let i=0;i<n.length;++i)Object.defineProperty(r.prototype,n[i],PP(t,n[i]));return r}function PP(e,t){const r=Object.getOwnPropertyDescriptor(e,t);return{get(){const n=$o(this).original,i=n[t];return typeof i=="function"?i.bind(n):i},set(n){const i=$o(this).original;i[t]=n},configurable:r.configurable,enumerable:r.enumerable}}function rz(e,t,r,n,i,a){return{callback:e,flags:(t?1:0)|(r?2:0)|(n?4:0),signal:i,signalListener:a}}function nz(e){e.flags|=8}function IP(e){return(e.flags&1)===1}function FP(e){return(e.flags&2)===2}function NP(e){return(e.flags&4)===4}function iz(e){return(e.flags&8)===8}function az({callback:e},t,r){try{typeof e=="function"?e.call(t,r):typeof e.handleEvent=="function"&&e.handleEvent(r)}catch(n){qB(n)}}function LP({listeners:e},t,r){for(let n=0;n<e.length;++n)if(e[n].callback===t&&IP(e[n])===r)return n;return-1}function oz(e,t,r,n,i,a){let o;a&&(o=DP.bind(null,e,t,r),a.addEventListener("abort",o));const l=rz(t,r,n,i,a,o);return e.cow?(e.cow=!1,e.listeners=[...e.listeners,l]):e.listeners.push(l),l}function DP(e,t,r){const n=LP(e,t,r);return n!==-1?$P(e,n):!1}function $P(e,t,r=!1){const n=e.listeners[t];return nz(n),n.signal&&n.signal.removeEventListener("abort",n.signalListener),e.cow&&!r?(e.cow=!1,e.listeners=e.listeners.filter((i,a)=>a!==t),!1):(e.listeners.splice(t,1),!0)}function uz(){return Object.create(null)}function lz(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e[t]={attrCallback:void 0,attrListener:void 0,cow:!1,listeners:[]}}class zS{constructor(){BP.set(this,uz())}addEventListener(t,r,n){const i=Nb(this),{callback:a,capture:o,once:l,passive:s,signal:f,type:d}=sz(t,r,n);if(a==null||f!=null&&f.aborted)return;const g=lz(i,d),v=LP(g,a,o);if(v!==-1){cz(g.listeners[v],s,l,f);return}oz(g,a,o,s,l,f)}removeEventListener(t,r,n){const i=Nb(this),{callback:a,capture:o,type:l}=fz(t,r,n),s=i[l];a!=null&&s&&DP(s,a,o)}dispatchEvent(t){const r=Nb(this)[String(t.type)];if(r==null)return!0;const n=t instanceof lo?t:zg.wrap(t),i=en(n,"event");if(i.dispatchFlag)throw ez("This event has been in dispatching.");if(i.dispatchFlag=!0,i.target=i.currentTarget=this,!i.stopPropagationFlag){const{cow:a,listeners:o}=r;r.cow=!0;for(let l=0;l<o.length;++l){const s=o[l];if(!iz(s)&&(NP(s)&&$P(r,l,!a)&&(l-=1),i.inPassiveListenerFlag=FP(s),az(s,this,n),i.inPassiveListenerFlag=!1,i.stopImmediatePropagationFlag))break}a||(r.cow=!1)}return i.target=null,i.currentTarget=null,i.stopImmediatePropagationFlag=!1,i.stopPropagationFlag=!1,i.dispatchFlag=!1,!i.canceledFlag}}const BP=new WeakMap;function Nb(e,t="this"){const r=BP.get(e);return BS(r!=null,"'%s' must be an object that EventTarget constructor created, but got another one: %o",t,e),r}function sz(e,t,r){var n;return zP(t),typeof r=="object"&&r!==null?{type:String(e),callback:t??void 0,capture:Boolean(r.capture),passive:Boolean(r.passive),once:Boolean(r.once),signal:(n=r.signal)!==null&&n!==void 0?n:void 0}:{type:String(e),callback:t??void 0,capture:Boolean(r),passive:!1,once:!1,signal:void 0}}function fz(e,t,r){return zP(t),typeof r=="object"&&r!==null?{type:String(e),callback:t??void 0,capture:Boolean(r.capture)}:{type:String(e),callback:t??void 0,capture:Boolean(r)}}function zP(e){if(!(typeof e=="function"||typeof e=="object"&&e!==null&&typeof e.handleEvent=="function")){if(e==null||typeof e=="object"){LT.warn(e);return}throw new TypeError(CP(LT.message,[e]))}}function cz(e,t,r,n){JB.warn(IP(e)?"capture":"bubble",e.callback),FP(e)!==t&&Ib.warn("passive"),NP(e)!==r&&Ib.warn("once"),e.signal!==n&&Ib.warn("signal")}const Lb=Object.getOwnPropertyNames(zS.prototype);for(let e=0;e<Lb.length;++e)Lb[e]!=="constructor"&&Object.defineProperty(zS.prototype,Lb[e],{enumerable:!0});typeof Zi<"u"&&typeof Zi.EventTarget<"u"&&Object.setPrototypeOf(zS.prototype,Zi.EventTarget.prototype);function WT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WT(Object(r),!0).forEach(function(n){dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fm(e){return Fm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fm(e)}function hz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function dz(e,t,r){return t&&HT(e.prototype,t),r&&HT(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function US(e,t){return vz(e)||gz(e,t)||UP(e,t)||bz()}function ap(e){return pz(e)||mz(e)||UP(e)||yz()}function pz(e){if(Array.isArray(e))return f_(e)}function vz(e){if(Array.isArray(e))return e}function mz(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gz(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,l;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function UP(e,t){if(e){if(typeof e=="string")return f_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f_(e,t)}}function f_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yz(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
71
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
72
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var qT=function(){},jS={},jP={},GP=null,WP={mark:qT,measure:qT};try{typeof window<"u"&&(jS=window),typeof document<"u"&&(jP=document),typeof MutationObserver<"u"&&(GP=MutationObserver),typeof performance<"u"&&(WP=performance)}catch{}var xz=jS.navigator||{},VT=xz.userAgent,YT=VT===void 0?"":VT,fu=jS,$r=jP,XT=GP,r0=WP;fu.document;var so=!!$r.documentElement&&!!$r.head&&typeof $r.addEventListener=="function"&&typeof $r.createElement=="function",HP=~YT.indexOf("MSIE")||~YT.indexOf("Trident/"),n0,i0,a0,o0,u0,eo="___FONT_AWESOME___",c_=16,qP="fa",VP="svg-inline--fa",_l="data-fa-i2svg",h_="data-fa-pseudo-element",wz="data-fa-pseudo-element-pending",GS="data-prefix",WS="data-icon",KT="fontawesome-i2svg",_z="async",Sz=["HTML","HEAD","STYLE","SCRIPT"],YP=function(){try{return!0}catch{return!1}}(),Lr="classic",qr="sharp",HS=[Lr,qr];function op(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[Lr]}})}var kd=op((n0={},dn(n0,Lr,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),dn(n0,qr,{fa:"solid",fass:"solid","fa-solid":"solid"}),n0)),Md=op((i0={},dn(i0,Lr,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),dn(i0,qr,{solid:"fass"}),i0)),Rd=op((a0={},dn(a0,Lr,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),dn(a0,qr,{fass:"fa-solid"}),a0)),Ez=op((o0={},dn(o0,Lr,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),dn(o0,qr,{"fa-solid":"fass"}),o0)),Az=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,XP="fa-layers-text",Tz=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Cz=op((u0={},dn(u0,Lr,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),dn(u0,qr,{900:"fass"}),u0)),KP=[1,2,3,4,5,6,7,8,9,10],Oz=KP.concat([11,12,13,14,15,16,17,18,19,20]),kz=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],cl={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Pd=new Set;Object.keys(Md[Lr]).map(Pd.add.bind(Pd));Object.keys(Md[qr]).map(Pd.add.bind(Pd));var Mz=[].concat(HS,ap(Pd),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",cl.GROUP,cl.SWAP_OPACITY,cl.PRIMARY,cl.SECONDARY]).concat(KP.map(function(e){return"".concat(e,"x")})).concat(Oz.map(function(e){return"w-".concat(e)})),ad=fu.FontAwesomeConfig||{};function Rz(e){var t=$r.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Pz(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if($r&&typeof $r.querySelector=="function"){var Iz=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Iz.forEach(function(e){var t=US(e,2),r=t[0],n=t[1],i=Pz(Rz(r));i!=null&&(ad[n]=i)})}var QP={styleDefault:"solid",familyDefault:"classic",cssPrefix:qP,replacementClass:VP,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ad.familyPrefix&&(ad.cssPrefix=ad.familyPrefix);var Cf=Nt(Nt({},QP),ad);Cf.autoReplaceSvg||(Cf.observeMutations=!1);var jt={};Object.keys(QP).forEach(function(e){Object.defineProperty(jt,e,{enumerable:!0,set:function(r){Cf[e]=r,od.forEach(function(n){return n(jt)})},get:function(){return Cf[e]}})});Object.defineProperty(jt,"familyPrefix",{enumerable:!0,set:function(t){Cf.cssPrefix=t,od.forEach(function(r){return r(jt)})},get:function(){return Cf.cssPrefix}});fu.FontAwesomeConfig=jt;var od=[];function Fz(e){return od.push(e),function(){od.splice(od.indexOf(e),1)}}var No=c_,ga={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Nz(e){if(!(!e||!so)){var t=$r.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=$r.head.childNodes,n=null,i=r.length-1;i>-1;i--){var a=r[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(n=a)}return $r.head.insertBefore(t,n),e}}var Lz="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Id(){for(var e=12,t="";e-- >0;)t+=Lz[Math.random()*62|0];return t}function qf(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function qS(e){return e.classList?qf(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function ZP(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Dz(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(ZP(e[r]),'" ')},"").trim()}function Ug(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function VS(e){return e.size!==ga.size||e.x!==ga.x||e.y!==ga.y||e.rotate!==ga.rotate||e.flipX||e.flipY}function $z(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(a," ").concat(o," ").concat(l)},f={transform:"translate(".concat(n/2*-1," -256)")};return{outer:i,inner:s,path:f}}function Bz(e){var t=e.transform,r=e.width,n=r===void 0?c_:r,i=e.height,a=i===void 0?c_:i,o=e.startCentered,l=o===void 0?!1:o,s="";return l&&HP?s+="translate(".concat(t.x/No-n/2,"em, ").concat(t.y/No-a/2,"em) "):l?s+="translate(calc(-50% + ".concat(t.x/No,"em), calc(-50% + ").concat(t.y/No,"em)) "):s+="translate(".concat(t.x/No,"em, ").concat(t.y/No,"em) "),s+="scale(".concat(t.size/No*(t.flipX?-1:1),", ").concat(t.size/No*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var zz=`:root, :host {
73
+ --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
74
+ --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
75
+ --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
76
+ --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
77
+ --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
78
+ --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
79
+ --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
80
+ }
81
+
82
+ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
83
+ overflow: visible;
84
+ box-sizing: content-box;
85
+ }
86
+
87
+ .svg-inline--fa {
88
+ display: var(--fa-display, inline-block);
89
+ height: 1em;
90
+ overflow: visible;
91
+ vertical-align: -0.125em;
92
+ }
93
+ .svg-inline--fa.fa-2xs {
94
+ vertical-align: 0.1em;
95
+ }
96
+ .svg-inline--fa.fa-xs {
97
+ vertical-align: 0em;
98
+ }
99
+ .svg-inline--fa.fa-sm {
100
+ vertical-align: -0.0714285705em;
101
+ }
102
+ .svg-inline--fa.fa-lg {
103
+ vertical-align: -0.2em;
104
+ }
105
+ .svg-inline--fa.fa-xl {
106
+ vertical-align: -0.25em;
107
+ }
108
+ .svg-inline--fa.fa-2xl {
109
+ vertical-align: -0.3125em;
110
+ }
111
+ .svg-inline--fa.fa-pull-left {
112
+ margin-right: var(--fa-pull-margin, 0.3em);
113
+ width: auto;
114
+ }
115
+ .svg-inline--fa.fa-pull-right {
116
+ margin-left: var(--fa-pull-margin, 0.3em);
117
+ width: auto;
118
+ }
119
+ .svg-inline--fa.fa-li {
120
+ width: var(--fa-li-width, 2em);
121
+ top: 0.25em;
122
+ }
123
+ .svg-inline--fa.fa-fw {
124
+ width: var(--fa-fw-width, 1.25em);
125
+ }
126
+
127
+ .fa-layers svg.svg-inline--fa {
128
+ bottom: 0;
129
+ left: 0;
130
+ margin: auto;
131
+ position: absolute;
132
+ right: 0;
133
+ top: 0;
134
+ }
135
+
136
+ .fa-layers-counter, .fa-layers-text {
137
+ display: inline-block;
138
+ position: absolute;
139
+ text-align: center;
140
+ }
141
+
142
+ .fa-layers {
143
+ display: inline-block;
144
+ height: 1em;
145
+ position: relative;
146
+ text-align: center;
147
+ vertical-align: -0.125em;
148
+ width: 1em;
149
+ }
150
+ .fa-layers svg.svg-inline--fa {
151
+ -webkit-transform-origin: center center;
152
+ transform-origin: center center;
153
+ }
154
+
155
+ .fa-layers-text {
156
+ left: 50%;
157
+ top: 50%;
158
+ -webkit-transform: translate(-50%, -50%);
159
+ transform: translate(-50%, -50%);
160
+ -webkit-transform-origin: center center;
161
+ transform-origin: center center;
162
+ }
163
+
164
+ .fa-layers-counter {
165
+ background-color: var(--fa-counter-background-color, #ff253a);
166
+ border-radius: var(--fa-counter-border-radius, 1em);
167
+ box-sizing: border-box;
168
+ color: var(--fa-inverse, #fff);
169
+ line-height: var(--fa-counter-line-height, 1);
170
+ max-width: var(--fa-counter-max-width, 5em);
171
+ min-width: var(--fa-counter-min-width, 1.5em);
172
+ overflow: hidden;
173
+ padding: var(--fa-counter-padding, 0.25em 0.5em);
174
+ right: var(--fa-right, 0);
175
+ text-overflow: ellipsis;
176
+ top: var(--fa-top, 0);
177
+ -webkit-transform: scale(var(--fa-counter-scale, 0.25));
178
+ transform: scale(var(--fa-counter-scale, 0.25));
179
+ -webkit-transform-origin: top right;
180
+ transform-origin: top right;
181
+ }
182
+
183
+ .fa-layers-bottom-right {
184
+ bottom: var(--fa-bottom, 0);
185
+ right: var(--fa-right, 0);
186
+ top: auto;
187
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
188
+ transform: scale(var(--fa-layers-scale, 0.25));
189
+ -webkit-transform-origin: bottom right;
190
+ transform-origin: bottom right;
191
+ }
192
+
193
+ .fa-layers-bottom-left {
194
+ bottom: var(--fa-bottom, 0);
195
+ left: var(--fa-left, 0);
196
+ right: auto;
197
+ top: auto;
198
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
199
+ transform: scale(var(--fa-layers-scale, 0.25));
200
+ -webkit-transform-origin: bottom left;
201
+ transform-origin: bottom left;
202
+ }
203
+
204
+ .fa-layers-top-right {
205
+ top: var(--fa-top, 0);
206
+ right: var(--fa-right, 0);
207
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
208
+ transform: scale(var(--fa-layers-scale, 0.25));
209
+ -webkit-transform-origin: top right;
210
+ transform-origin: top right;
211
+ }
212
+
213
+ .fa-layers-top-left {
214
+ left: var(--fa-left, 0);
215
+ right: auto;
216
+ top: var(--fa-top, 0);
217
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
218
+ transform: scale(var(--fa-layers-scale, 0.25));
219
+ -webkit-transform-origin: top left;
220
+ transform-origin: top left;
221
+ }
222
+
223
+ .fa-1x {
224
+ font-size: 1em;
225
+ }
226
+
227
+ .fa-2x {
228
+ font-size: 2em;
229
+ }
230
+
231
+ .fa-3x {
232
+ font-size: 3em;
233
+ }
234
+
235
+ .fa-4x {
236
+ font-size: 4em;
237
+ }
238
+
239
+ .fa-5x {
240
+ font-size: 5em;
241
+ }
242
+
243
+ .fa-6x {
244
+ font-size: 6em;
245
+ }
246
+
247
+ .fa-7x {
248
+ font-size: 7em;
249
+ }
250
+
251
+ .fa-8x {
252
+ font-size: 8em;
253
+ }
254
+
255
+ .fa-9x {
256
+ font-size: 9em;
257
+ }
258
+
259
+ .fa-10x {
260
+ font-size: 10em;
261
+ }
262
+
263
+ .fa-2xs {
264
+ font-size: 0.625em;
265
+ line-height: 0.1em;
266
+ vertical-align: 0.225em;
267
+ }
268
+
269
+ .fa-xs {
270
+ font-size: 0.75em;
271
+ line-height: 0.0833333337em;
272
+ vertical-align: 0.125em;
273
+ }
274
+
275
+ .fa-sm {
276
+ font-size: 0.875em;
277
+ line-height: 0.0714285718em;
278
+ vertical-align: 0.0535714295em;
279
+ }
280
+
281
+ .fa-lg {
282
+ font-size: 1.25em;
283
+ line-height: 0.05em;
284
+ vertical-align: -0.075em;
285
+ }
286
+
287
+ .fa-xl {
288
+ font-size: 1.5em;
289
+ line-height: 0.0416666682em;
290
+ vertical-align: -0.125em;
291
+ }
292
+
293
+ .fa-2xl {
294
+ font-size: 2em;
295
+ line-height: 0.03125em;
296
+ vertical-align: -0.1875em;
297
+ }
298
+
299
+ .fa-fw {
300
+ text-align: center;
301
+ width: 1.25em;
302
+ }
303
+
304
+ .fa-ul {
305
+ list-style-type: none;
306
+ margin-left: var(--fa-li-margin, 2.5em);
307
+ padding-left: 0;
308
+ }
309
+ .fa-ul > li {
310
+ position: relative;
311
+ }
312
+
313
+ .fa-li {
314
+ left: calc(var(--fa-li-width, 2em) * -1);
315
+ position: absolute;
316
+ text-align: center;
317
+ width: var(--fa-li-width, 2em);
318
+ line-height: inherit;
319
+ }
320
+
321
+ .fa-border {
322
+ border-color: var(--fa-border-color, #eee);
323
+ border-radius: var(--fa-border-radius, 0.1em);
324
+ border-style: var(--fa-border-style, solid);
325
+ border-width: var(--fa-border-width, 0.08em);
326
+ padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
327
+ }
328
+
329
+ .fa-pull-left {
330
+ float: left;
331
+ margin-right: var(--fa-pull-margin, 0.3em);
332
+ }
333
+
334
+ .fa-pull-right {
335
+ float: right;
336
+ margin-left: var(--fa-pull-margin, 0.3em);
337
+ }
338
+
339
+ .fa-beat {
340
+ -webkit-animation-name: fa-beat;
341
+ animation-name: fa-beat;
342
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
343
+ animation-delay: var(--fa-animation-delay, 0s);
344
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
345
+ animation-direction: var(--fa-animation-direction, normal);
346
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
347
+ animation-duration: var(--fa-animation-duration, 1s);
348
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
349
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
350
+ -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
351
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
352
+ }
353
+
354
+ .fa-bounce {
355
+ -webkit-animation-name: fa-bounce;
356
+ animation-name: fa-bounce;
357
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
358
+ animation-delay: var(--fa-animation-delay, 0s);
359
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
360
+ animation-direction: var(--fa-animation-direction, normal);
361
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
362
+ animation-duration: var(--fa-animation-duration, 1s);
363
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
364
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
365
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
366
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
367
+ }
368
+
369
+ .fa-fade {
370
+ -webkit-animation-name: fa-fade;
371
+ animation-name: fa-fade;
372
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
373
+ animation-delay: var(--fa-animation-delay, 0s);
374
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
375
+ animation-direction: var(--fa-animation-direction, normal);
376
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
377
+ animation-duration: var(--fa-animation-duration, 1s);
378
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
379
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
380
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
381
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
382
+ }
383
+
384
+ .fa-beat-fade {
385
+ -webkit-animation-name: fa-beat-fade;
386
+ animation-name: fa-beat-fade;
387
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
388
+ animation-delay: var(--fa-animation-delay, 0s);
389
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
390
+ animation-direction: var(--fa-animation-direction, normal);
391
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
392
+ animation-duration: var(--fa-animation-duration, 1s);
393
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
394
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
395
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
396
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
397
+ }
398
+
399
+ .fa-flip {
400
+ -webkit-animation-name: fa-flip;
401
+ animation-name: fa-flip;
402
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
403
+ animation-delay: var(--fa-animation-delay, 0s);
404
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
405
+ animation-direction: var(--fa-animation-direction, normal);
406
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
407
+ animation-duration: var(--fa-animation-duration, 1s);
408
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
409
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
410
+ -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
411
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
412
+ }
413
+
414
+ .fa-shake {
415
+ -webkit-animation-name: fa-shake;
416
+ animation-name: fa-shake;
417
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
418
+ animation-delay: var(--fa-animation-delay, 0s);
419
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
420
+ animation-direction: var(--fa-animation-direction, normal);
421
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
422
+ animation-duration: var(--fa-animation-duration, 1s);
423
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
424
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
425
+ -webkit-animation-timing-function: var(--fa-animation-timing, linear);
426
+ animation-timing-function: var(--fa-animation-timing, linear);
427
+ }
428
+
429
+ .fa-spin {
430
+ -webkit-animation-name: fa-spin;
431
+ animation-name: fa-spin;
432
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
433
+ animation-delay: var(--fa-animation-delay, 0s);
434
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
435
+ animation-direction: var(--fa-animation-direction, normal);
436
+ -webkit-animation-duration: var(--fa-animation-duration, 2s);
437
+ animation-duration: var(--fa-animation-duration, 2s);
438
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
439
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
440
+ -webkit-animation-timing-function: var(--fa-animation-timing, linear);
441
+ animation-timing-function: var(--fa-animation-timing, linear);
442
+ }
443
+
444
+ .fa-spin-reverse {
445
+ --fa-animation-direction: reverse;
446
+ }
447
+
448
+ .fa-pulse,
449
+ .fa-spin-pulse {
450
+ -webkit-animation-name: fa-spin;
451
+ animation-name: fa-spin;
452
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
453
+ animation-direction: var(--fa-animation-direction, normal);
454
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
455
+ animation-duration: var(--fa-animation-duration, 1s);
456
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
457
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
458
+ -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
459
+ animation-timing-function: var(--fa-animation-timing, steps(8));
460
+ }
461
+
462
+ @media (prefers-reduced-motion: reduce) {
463
+ .fa-beat,
464
+ .fa-bounce,
465
+ .fa-fade,
466
+ .fa-beat-fade,
467
+ .fa-flip,
468
+ .fa-pulse,
469
+ .fa-shake,
470
+ .fa-spin,
471
+ .fa-spin-pulse {
472
+ -webkit-animation-delay: -1ms;
473
+ animation-delay: -1ms;
474
+ -webkit-animation-duration: 1ms;
475
+ animation-duration: 1ms;
476
+ -webkit-animation-iteration-count: 1;
477
+ animation-iteration-count: 1;
478
+ transition-delay: 0s;
479
+ transition-duration: 0s;
480
+ }
481
+ }
482
+ @-webkit-keyframes fa-beat {
483
+ 0%, 90% {
484
+ -webkit-transform: scale(1);
485
+ transform: scale(1);
486
+ }
487
+ 45% {
488
+ -webkit-transform: scale(var(--fa-beat-scale, 1.25));
489
+ transform: scale(var(--fa-beat-scale, 1.25));
490
+ }
491
+ }
492
+ @keyframes fa-beat {
493
+ 0%, 90% {
494
+ -webkit-transform: scale(1);
495
+ transform: scale(1);
496
+ }
497
+ 45% {
498
+ -webkit-transform: scale(var(--fa-beat-scale, 1.25));
499
+ transform: scale(var(--fa-beat-scale, 1.25));
500
+ }
501
+ }
502
+ @-webkit-keyframes fa-bounce {
503
+ 0% {
504
+ -webkit-transform: scale(1, 1) translateY(0);
505
+ transform: scale(1, 1) translateY(0);
506
+ }
507
+ 10% {
508
+ -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
509
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
510
+ }
511
+ 30% {
512
+ -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
513
+ transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
514
+ }
515
+ 50% {
516
+ -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
517
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
518
+ }
519
+ 57% {
520
+ -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
521
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
522
+ }
523
+ 64% {
524
+ -webkit-transform: scale(1, 1) translateY(0);
525
+ transform: scale(1, 1) translateY(0);
526
+ }
527
+ 100% {
528
+ -webkit-transform: scale(1, 1) translateY(0);
529
+ transform: scale(1, 1) translateY(0);
530
+ }
531
+ }
532
+ @keyframes fa-bounce {
533
+ 0% {
534
+ -webkit-transform: scale(1, 1) translateY(0);
535
+ transform: scale(1, 1) translateY(0);
536
+ }
537
+ 10% {
538
+ -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
539
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
540
+ }
541
+ 30% {
542
+ -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
543
+ transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
544
+ }
545
+ 50% {
546
+ -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
547
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
548
+ }
549
+ 57% {
550
+ -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
551
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
552
+ }
553
+ 64% {
554
+ -webkit-transform: scale(1, 1) translateY(0);
555
+ transform: scale(1, 1) translateY(0);
556
+ }
557
+ 100% {
558
+ -webkit-transform: scale(1, 1) translateY(0);
559
+ transform: scale(1, 1) translateY(0);
560
+ }
561
+ }
562
+ @-webkit-keyframes fa-fade {
563
+ 50% {
564
+ opacity: var(--fa-fade-opacity, 0.4);
565
+ }
566
+ }
567
+ @keyframes fa-fade {
568
+ 50% {
569
+ opacity: var(--fa-fade-opacity, 0.4);
570
+ }
571
+ }
572
+ @-webkit-keyframes fa-beat-fade {
573
+ 0%, 100% {
574
+ opacity: var(--fa-beat-fade-opacity, 0.4);
575
+ -webkit-transform: scale(1);
576
+ transform: scale(1);
577
+ }
578
+ 50% {
579
+ opacity: 1;
580
+ -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
581
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
582
+ }
583
+ }
584
+ @keyframes fa-beat-fade {
585
+ 0%, 100% {
586
+ opacity: var(--fa-beat-fade-opacity, 0.4);
587
+ -webkit-transform: scale(1);
588
+ transform: scale(1);
589
+ }
590
+ 50% {
591
+ opacity: 1;
592
+ -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
593
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
594
+ }
595
+ }
596
+ @-webkit-keyframes fa-flip {
597
+ 50% {
598
+ -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
599
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
600
+ }
601
+ }
602
+ @keyframes fa-flip {
603
+ 50% {
604
+ -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
605
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
606
+ }
607
+ }
608
+ @-webkit-keyframes fa-shake {
609
+ 0% {
610
+ -webkit-transform: rotate(-15deg);
611
+ transform: rotate(-15deg);
612
+ }
613
+ 4% {
614
+ -webkit-transform: rotate(15deg);
615
+ transform: rotate(15deg);
616
+ }
617
+ 8%, 24% {
618
+ -webkit-transform: rotate(-18deg);
619
+ transform: rotate(-18deg);
620
+ }
621
+ 12%, 28% {
622
+ -webkit-transform: rotate(18deg);
623
+ transform: rotate(18deg);
624
+ }
625
+ 16% {
626
+ -webkit-transform: rotate(-22deg);
627
+ transform: rotate(-22deg);
628
+ }
629
+ 20% {
630
+ -webkit-transform: rotate(22deg);
631
+ transform: rotate(22deg);
632
+ }
633
+ 32% {
634
+ -webkit-transform: rotate(-12deg);
635
+ transform: rotate(-12deg);
636
+ }
637
+ 36% {
638
+ -webkit-transform: rotate(12deg);
639
+ transform: rotate(12deg);
640
+ }
641
+ 40%, 100% {
642
+ -webkit-transform: rotate(0deg);
643
+ transform: rotate(0deg);
644
+ }
645
+ }
646
+ @keyframes fa-shake {
647
+ 0% {
648
+ -webkit-transform: rotate(-15deg);
649
+ transform: rotate(-15deg);
650
+ }
651
+ 4% {
652
+ -webkit-transform: rotate(15deg);
653
+ transform: rotate(15deg);
654
+ }
655
+ 8%, 24% {
656
+ -webkit-transform: rotate(-18deg);
657
+ transform: rotate(-18deg);
658
+ }
659
+ 12%, 28% {
660
+ -webkit-transform: rotate(18deg);
661
+ transform: rotate(18deg);
662
+ }
663
+ 16% {
664
+ -webkit-transform: rotate(-22deg);
665
+ transform: rotate(-22deg);
666
+ }
667
+ 20% {
668
+ -webkit-transform: rotate(22deg);
669
+ transform: rotate(22deg);
670
+ }
671
+ 32% {
672
+ -webkit-transform: rotate(-12deg);
673
+ transform: rotate(-12deg);
674
+ }
675
+ 36% {
676
+ -webkit-transform: rotate(12deg);
677
+ transform: rotate(12deg);
678
+ }
679
+ 40%, 100% {
680
+ -webkit-transform: rotate(0deg);
681
+ transform: rotate(0deg);
682
+ }
683
+ }
684
+ @-webkit-keyframes fa-spin {
685
+ 0% {
686
+ -webkit-transform: rotate(0deg);
687
+ transform: rotate(0deg);
688
+ }
689
+ 100% {
690
+ -webkit-transform: rotate(360deg);
691
+ transform: rotate(360deg);
692
+ }
693
+ }
694
+ @keyframes fa-spin {
695
+ 0% {
696
+ -webkit-transform: rotate(0deg);
697
+ transform: rotate(0deg);
698
+ }
699
+ 100% {
700
+ -webkit-transform: rotate(360deg);
701
+ transform: rotate(360deg);
702
+ }
703
+ }
704
+ .fa-rotate-90 {
705
+ -webkit-transform: rotate(90deg);
706
+ transform: rotate(90deg);
707
+ }
708
+
709
+ .fa-rotate-180 {
710
+ -webkit-transform: rotate(180deg);
711
+ transform: rotate(180deg);
712
+ }
713
+
714
+ .fa-rotate-270 {
715
+ -webkit-transform: rotate(270deg);
716
+ transform: rotate(270deg);
717
+ }
718
+
719
+ .fa-flip-horizontal {
720
+ -webkit-transform: scale(-1, 1);
721
+ transform: scale(-1, 1);
722
+ }
723
+
724
+ .fa-flip-vertical {
725
+ -webkit-transform: scale(1, -1);
726
+ transform: scale(1, -1);
727
+ }
728
+
729
+ .fa-flip-both,
730
+ .fa-flip-horizontal.fa-flip-vertical {
731
+ -webkit-transform: scale(-1, -1);
732
+ transform: scale(-1, -1);
733
+ }
734
+
735
+ .fa-rotate-by {
736
+ -webkit-transform: rotate(var(--fa-rotate-angle, none));
737
+ transform: rotate(var(--fa-rotate-angle, none));
738
+ }
739
+
740
+ .fa-stack {
741
+ display: inline-block;
742
+ vertical-align: middle;
743
+ height: 2em;
744
+ position: relative;
745
+ width: 2.5em;
746
+ }
747
+
748
+ .fa-stack-1x,
749
+ .fa-stack-2x {
750
+ bottom: 0;
751
+ left: 0;
752
+ margin: auto;
753
+ position: absolute;
754
+ right: 0;
755
+ top: 0;
756
+ z-index: var(--fa-stack-z-index, auto);
757
+ }
758
+
759
+ .svg-inline--fa.fa-stack-1x {
760
+ height: 1em;
761
+ width: 1.25em;
762
+ }
763
+ .svg-inline--fa.fa-stack-2x {
764
+ height: 2em;
765
+ width: 2.5em;
766
+ }
767
+
768
+ .fa-inverse {
769
+ color: var(--fa-inverse, #fff);
770
+ }
771
+
772
+ .sr-only,
773
+ .fa-sr-only {
774
+ position: absolute;
775
+ width: 1px;
776
+ height: 1px;
777
+ padding: 0;
778
+ margin: -1px;
779
+ overflow: hidden;
780
+ clip: rect(0, 0, 0, 0);
781
+ white-space: nowrap;
782
+ border-width: 0;
783
+ }
784
+
785
+ .sr-only-focusable:not(:focus),
786
+ .fa-sr-only-focusable:not(:focus) {
787
+ position: absolute;
788
+ width: 1px;
789
+ height: 1px;
790
+ padding: 0;
791
+ margin: -1px;
792
+ overflow: hidden;
793
+ clip: rect(0, 0, 0, 0);
794
+ white-space: nowrap;
795
+ border-width: 0;
796
+ }
797
+
798
+ .svg-inline--fa .fa-primary {
799
+ fill: var(--fa-primary-color, currentColor);
800
+ opacity: var(--fa-primary-opacity, 1);
801
+ }
802
+
803
+ .svg-inline--fa .fa-secondary {
804
+ fill: var(--fa-secondary-color, currentColor);
805
+ opacity: var(--fa-secondary-opacity, 0.4);
806
+ }
807
+
808
+ .svg-inline--fa.fa-swap-opacity .fa-primary {
809
+ opacity: var(--fa-secondary-opacity, 0.4);
810
+ }
811
+
812
+ .svg-inline--fa.fa-swap-opacity .fa-secondary {
813
+ opacity: var(--fa-primary-opacity, 1);
814
+ }
815
+
816
+ .svg-inline--fa mask .fa-primary,
817
+ .svg-inline--fa mask .fa-secondary {
818
+ fill: black;
819
+ }
820
+
821
+ .fad.fa-inverse,
822
+ .fa-duotone.fa-inverse {
823
+ color: var(--fa-inverse, #fff);
824
+ }`;function JP(){var e=qP,t=VP,r=jt.cssPrefix,n=jt.replacementClass,i=zz;if(r!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(r,"-")).replace(o,"--".concat(r,"-")).replace(l,".".concat(n))}return i}var QT=!1;function Db(){jt.autoAddCss&&!QT&&(Nz(JP()),QT=!0)}var Uz={mixout:function(){return{dom:{css:JP,insertCss:Db}}},hooks:function(){return{beforeDOMElementCreation:function(){Db()},beforeI2svg:function(){Db()}}}},to=fu||{};to[eo]||(to[eo]={});to[eo].styles||(to[eo].styles={});to[eo].hooks||(to[eo].hooks={});to[eo].shims||(to[eo].shims=[]);var Qi=to[eo],eI=[],jz=function e(){$r.removeEventListener("DOMContentLoaded",e),Nm=1,eI.map(function(t){return t()})},Nm=!1;so&&(Nm=($r.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($r.readyState),Nm||$r.addEventListener("DOMContentLoaded",jz));function Gz(e){so&&(Nm?setTimeout(e,0):eI.push(e))}function up(e){var t=e.tag,r=e.attributes,n=r===void 0?{}:r,i=e.children,a=i===void 0?[]:i;return typeof e=="string"?ZP(e):"<".concat(t," ").concat(Dz(n),">").concat(a.map(up).join(""),"</").concat(t,">")}function ZT(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var Wz=function(t,r){return function(n,i,a,o){return t.call(r,n,i,a,o)}},$b=function(t,r,n,i){var a=Object.keys(t),o=a.length,l=i!==void 0?Wz(r,i):r,s,f,d;for(n===void 0?(s=1,d=t[a[0]]):(s=0,d=n);s<o;s++)f=a[s],d=l(d,t[f],f,t);return d};function Hz(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=e.charCodeAt(r++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),r--)}else t.push(i)}return t}function d_(e){var t=Hz(e);return t.length===1?t[0].toString(16):null}function qz(e,t){var r=e.length,n=e.charCodeAt(t),i;return n>=55296&&n<=56319&&r>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function JT(e){return Object.keys(e).reduce(function(t,r){var n=e[r],i=!!n.icon;return i?t[n.iconName]=n.icon:t[r]=n,t},{})}function p_(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,a=JT(t);typeof Qi.hooks.addPack=="function"&&!i?Qi.hooks.addPack(e,JT(t)):Qi.styles[e]=Nt(Nt({},Qi.styles[e]||{}),a),e==="fas"&&p_("fa",t)}var l0,s0,f0,Qs=Qi.styles,Vz=Qi.shims,Yz=(l0={},dn(l0,Lr,Object.values(Rd[Lr])),dn(l0,qr,Object.values(Rd[qr])),l0),YS=null,tI={},rI={},nI={},iI={},aI={},Xz=(s0={},dn(s0,Lr,Object.keys(kd[Lr])),dn(s0,qr,Object.keys(kd[qr])),s0);function Kz(e){return~Mz.indexOf(e)}function Qz(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!Kz(i)?i:null}var oI=function(){var t=function(a){return $b(Qs,function(o,l,s){return o[s]=$b(l,a,{}),o},{})};tI=t(function(i,a,o){if(a[3]&&(i[a[3]]=o),a[2]){var l=a[2].filter(function(s){return typeof s=="number"});l.forEach(function(s){i[s.toString(16)]=o})}return i}),rI=t(function(i,a,o){if(i[o]=o,a[2]){var l=a[2].filter(function(s){return typeof s=="string"});l.forEach(function(s){i[s]=o})}return i}),aI=t(function(i,a,o){var l=a[2];return i[o]=o,l.forEach(function(s){i[s]=o}),i});var r="far"in Qs||jt.autoFetchSvg,n=$b(Vz,function(i,a){var o=a[0],l=a[1],s=a[2];return l==="far"&&!r&&(l="fas"),typeof o=="string"&&(i.names[o]={prefix:l,iconName:s}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:l,iconName:s}),i},{names:{},unicodes:{}});nI=n.names,iI=n.unicodes,YS=jg(jt.styleDefault,{family:jt.familyDefault})};Fz(function(e){YS=jg(e.styleDefault,{family:jt.familyDefault})});oI();function XS(e,t){return(tI[e]||{})[t]}function Zz(e,t){return(rI[e]||{})[t]}function hl(e,t){return(aI[e]||{})[t]}function uI(e){return nI[e]||{prefix:null,iconName:null}}function Jz(e){var t=iI[e],r=XS("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function cu(){return YS}var KS=function(){return{prefix:null,iconName:null,rest:[]}};function jg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.family,n=r===void 0?Lr:r,i=kd[n][e],a=Md[n][e]||Md[n][i],o=e in Qi.styles?e:null;return a||o||null}var eC=(f0={},dn(f0,Lr,Object.keys(Rd[Lr])),dn(f0,qr,Object.keys(Rd[qr])),f0);function Gg(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,i=n===void 0?!1:n,a=(t={},dn(t,Lr,"".concat(jt.cssPrefix,"-").concat(Lr)),dn(t,qr,"".concat(jt.cssPrefix,"-").concat(qr)),t),o=null,l=Lr;(e.includes(a[Lr])||e.some(function(f){return eC[Lr].includes(f)}))&&(l=Lr),(e.includes(a[qr])||e.some(function(f){return eC[qr].includes(f)}))&&(l=qr);var s=e.reduce(function(f,d){var g=Qz(jt.cssPrefix,d);if(Qs[d]?(d=Yz[l].includes(d)?Ez[l][d]:d,o=d,f.prefix=d):Xz[l].indexOf(d)>-1?(o=d,f.prefix=jg(d,{family:l})):g?f.iconName=g:d!==jt.replacementClass&&d!==a[Lr]&&d!==a[qr]&&f.rest.push(d),!i&&f.prefix&&f.iconName){var v=o==="fa"?uI(f.iconName):{},y=hl(f.prefix,f.iconName);v.prefix&&(o=null),f.iconName=v.iconName||y||f.iconName,f.prefix=v.prefix||f.prefix,f.prefix==="far"&&!Qs.far&&Qs.fas&&!jt.autoFetchSvg&&(f.prefix="fas")}return f},KS());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&l===qr&&(Qs.fass||jt.autoFetchSvg)&&(s.prefix="fass",s.iconName=hl(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=cu()||"fas"),s}var e7=function(){function e(){hz(this,e),this.definitions={}}return dz(e,[{key:"add",value:function(){for(var r=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(l){r.definitions[l]=Nt(Nt({},r.definitions[l]||{}),o[l]),p_(l,o[l]);var s=Rd[Lr][l];s&&p_(s,o[l]),oI()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,n){var i=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(i).map(function(a){var o=i[a],l=o.prefix,s=o.iconName,f=o.icon,d=f[2];r[l]||(r[l]={}),d.length>0&&d.forEach(function(g){typeof g=="string"&&(r[l][g]=f)}),r[l][s]=f}),r}}]),e}(),tC=[],Zs={},df={},t7=Object.keys(df);function r7(e,t){var r=t.mixoutsTo;return tC=e,Zs={},Object.keys(df).forEach(function(n){t7.indexOf(n)===-1&&delete df[n]}),tC.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(r[o]=i[o]),Fm(i[o])==="object"&&Object.keys(i[o]).forEach(function(l){r[o]||(r[o]={}),r[o][l]=i[o][l]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(o){Zs[o]||(Zs[o]=[]),Zs[o].push(a[o])})}n.provides&&n.provides(df)}),r}function v_(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var a=Zs[e]||[];return a.forEach(function(o){t=o.apply(null,[t].concat(n))}),t}function Sl(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Zs[e]||[];i.forEach(function(a){a.apply(null,r)})}function ro(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return df[e]?df[e].apply(null,t):void 0}function m_(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,r=e.prefix||cu();if(t)return t=hl(r,t)||t,ZT(lI.definitions,r,t)||ZT(Qi.styles,r,t)}var lI=new e7,n7=function(){jt.autoReplaceSvg=!1,jt.observeMutations=!1,Sl("noAuto")},i7={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return so?(Sl("beforeI2svg",t),ro("pseudoElements2svg",t),ro("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot;jt.autoReplaceSvg===!1&&(jt.autoReplaceSvg=!0),jt.observeMutations=!0,Gz(function(){o7({autoReplaceSvgRoot:r}),Sl("watch",t)})}},a7={icon:function(t){if(t===null)return null;if(Fm(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:hl(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var r=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],n=jg(t[0]);return{prefix:n,iconName:hl(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat(jt.cssPrefix,"-"))>-1||t.match(Az))){var i=Gg(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||cu(),iconName:hl(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=cu();return{prefix:a,iconName:hl(a,t)||t}}}},yi={noAuto:n7,config:jt,dom:i7,parse:a7,library:lI,findIconDefinition:m_,toHtml:up},o7=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot,n=r===void 0?$r:r;(Object.keys(Qi.styles).length>0||jt.autoFetchSvg)&&so&&jt.autoReplaceSvg&&yi.dom.i2svg({node:n})};function Wg(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return up(n)})}}),Object.defineProperty(e,"node",{get:function(){if(so){var n=$r.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function u7(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(VS(o)&&r.found&&!n.found){var l=r.width,s=r.height,f={x:l/s/2,y:.5};i.style=Ug(Nt(Nt({},a),{},{"transform-origin":"".concat(f.x+o.x/16,"em ").concat(f.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function l7(e){var t=e.prefix,r=e.iconName,n=e.children,i=e.attributes,a=e.symbol,o=a===!0?"".concat(t,"-").concat(jt.cssPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Nt(Nt({},i),{},{id:o}),children:n}]}]}function QS(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,a=e.iconName,o=e.transform,l=e.symbol,s=e.title,f=e.maskId,d=e.titleId,g=e.extra,v=e.watchable,y=v===void 0?!1:v,E=n.found?n:r,k=E.width,x=E.height,w=i==="fak",_=[jt.replacementClass,a?"".concat(jt.cssPrefix,"-").concat(a):""].filter(function(te){return g.classes.indexOf(te)===-1}).filter(function(te){return te!==""||!!te}).concat(g.classes).join(" "),C={children:[],attributes:Nt(Nt({},g.attributes),{},{"data-prefix":i,"data-icon":a,class:_,role:g.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(k," ").concat(x)})},T=w&&!~g.classes.indexOf("fa-fw")?{width:"".concat(k/x*16*.0625,"em")}:{};y&&(C.attributes[_l]=""),s&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(d||Id())},children:[s]}),delete C.attributes.title);var F=Nt(Nt({},C),{},{prefix:i,iconName:a,main:r,mask:n,maskId:f,transform:o,symbol:l,styles:Nt(Nt({},T),g.styles)}),L=n.found&&r.found?ro("generateAbstractMask",F)||{children:[],attributes:{}}:ro("generateAbstractIcon",F)||{children:[],attributes:{}},V=L.children,j=L.attributes;return F.children=V,F.attributes=j,l?l7(F):u7(F)}function rC(e){var t=e.content,r=e.width,n=e.height,i=e.transform,a=e.title,o=e.extra,l=e.watchable,s=l===void 0?!1:l,f=Nt(Nt(Nt({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});s&&(f[_l]="");var d=Nt({},o.styles);VS(i)&&(d.transform=Bz({transform:i,startCentered:!0,width:r,height:n}),d["-webkit-transform"]=d.transform);var g=Ug(d);g.length>0&&(f.style=g);var v=[];return v.push({tag:"span",attributes:f,children:[t]}),a&&v.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),v}function s7(e){var t=e.content,r=e.title,n=e.extra,i=Nt(Nt(Nt({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),a=Ug(n.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),r&&o.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),o}var Bb=Qi.styles;function g_(e){var t=e[0],r=e[1],n=e.slice(4),i=US(n,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(jt.cssPrefix,"-").concat(cl.GROUP)},children:[{tag:"path",attributes:{class:"".concat(jt.cssPrefix,"-").concat(cl.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(jt.cssPrefix,"-").concat(cl.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:r,icon:o}}var f7={found:!1,width:512,height:512};function c7(e,t){!YP&&!jt.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function y_(e,t){var r=t;return t==="fa"&&jt.styleDefault!==null&&(t=cu()),new Promise(function(n,i){if(ro("missingIconAbstract"),r==="fa"){var a=uI(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Bb[t]&&Bb[t][e]){var o=Bb[t][e];return n(g_(o))}c7(e,t),n(Nt(Nt({},f7),{},{icon:jt.showMissingIcons&&e?ro("missingIconAbstract")||{}:{}}))})}var nC=function(){},b_=jt.measurePerformance&&r0&&r0.mark&&r0.measure?r0:{mark:nC,measure:nC},Uh='FA "6.2.1"',h7=function(t){return b_.mark("".concat(Uh," ").concat(t," begins")),function(){return sI(t)}},sI=function(t){b_.mark("".concat(Uh," ").concat(t," ends")),b_.measure("".concat(Uh," ").concat(t),"".concat(Uh," ").concat(t," begins"),"".concat(Uh," ").concat(t," ends"))},ZS={begin:h7,end:sI},X0=function(){};function iC(e){var t=e.getAttribute?e.getAttribute(_l):null;return typeof t=="string"}function d7(e){var t=e.getAttribute?e.getAttribute(GS):null,r=e.getAttribute?e.getAttribute(WS):null;return t&&r}function p7(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(jt.replacementClass)}function v7(){if(jt.autoReplaceSvg===!0)return K0.replace;var e=K0[jt.autoReplaceSvg];return e||K0.replace}function m7(e){return $r.createElementNS("http://www.w3.org/2000/svg",e)}function g7(e){return $r.createElement(e)}function fI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?m7:g7:r;if(typeof e=="string")return $r.createTextNode(e);var i=n(e.tag);Object.keys(e.attributes||[]).forEach(function(o){i.setAttribute(o,e.attributes[o])});var a=e.children||[];return a.forEach(function(o){i.appendChild(fI(o,{ceFn:n}))}),i}function y7(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var K0={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(fI(i),r)}),r.getAttribute(_l)===null&&jt.keepOriginalSource){var n=$r.createComment(y7(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~qS(r).indexOf(jt.replacementClass))return K0.replace(t);var i=new RegExp("".concat(jt.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(l,s){return s===jt.replacementClass||s.match(i)?l.toSvg.push(s):l.toNode.push(s),l},{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?r.removeAttribute("class"):r.setAttribute("class",a.toNode.join(" "))}var o=n.map(function(l){return up(l)}).join(`
825
+ `);r.setAttribute(_l,""),r.innerHTML=o}};function aC(e){e()}function cI(e,t){var r=typeof t=="function"?t:X0;if(e.length===0)r();else{var n=aC;jt.mutateApproach===_z&&(n=fu.requestAnimationFrame||aC),n(function(){var i=v7(),a=ZS.begin("mutate");e.map(i),a(),r()})}}var JS=!1;function hI(){JS=!0}function x_(){JS=!1}var Lm=null;function oC(e){if(XT&&jt.observeMutations){var t=e.treeCallback,r=t===void 0?X0:t,n=e.nodeCallback,i=n===void 0?X0:n,a=e.pseudoElementsCallback,o=a===void 0?X0:a,l=e.observeMutationsRoot,s=l===void 0?$r:l;Lm=new XT(function(f){if(!JS){var d=cu();qf(f).forEach(function(g){if(g.type==="childList"&&g.addedNodes.length>0&&!iC(g.addedNodes[0])&&(jt.searchPseudoElements&&o(g.target),r(g.target)),g.type==="attributes"&&g.target.parentNode&&jt.searchPseudoElements&&o(g.target.parentNode),g.type==="attributes"&&iC(g.target)&&~kz.indexOf(g.attributeName))if(g.attributeName==="class"&&d7(g.target)){var v=Gg(qS(g.target)),y=v.prefix,E=v.iconName;g.target.setAttribute(GS,y||d),E&&g.target.setAttribute(WS,E)}else p7(g.target)&&i(g.target)})}}),so&&Lm.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function b7(){Lm&&Lm.disconnect()}function x7(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(n,i){var a=i.split(":"),o=a[0],l=a.slice(1);return o&&l.length>0&&(n[o]=l.join(":").trim()),n},{})),r}function w7(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=Gg(qS(e));return i.prefix||(i.prefix=cu()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=Zz(i.prefix,e.innerText)||XS(i.prefix,d_(e.innerText))),!i.iconName&&jt.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function _7(e){var t=qf(e.attributes).reduce(function(i,a){return i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.value),i},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return jt.autoA11y&&(r?t["aria-labelledby"]="".concat(jt.replacementClass,"-title-").concat(n||Id()):(t["aria-hidden"]="true",t.focusable="false")),t}function S7(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ga,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function uC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=w7(e),n=r.iconName,i=r.prefix,a=r.rest,o=_7(e),l=v_("parseNodeAttributes",{},e),s=t.styleParser?x7(e):[];return Nt({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:ga,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:s,attributes:o}},l)}var E7=Qi.styles;function dI(e){var t=jt.autoReplaceSvg==="nest"?uC(e,{styleParser:!1}):uC(e);return~t.extra.classes.indexOf(XP)?ro("generateLayersText",e,t):ro("generateSvgReplacementMutation",e,t)}var hu=new Set;HS.map(function(e){hu.add("fa-".concat(e))});Object.keys(kd[Lr]).map(hu.add.bind(hu));Object.keys(kd[qr]).map(hu.add.bind(hu));hu=ap(hu);function lC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!so)return Promise.resolve();var r=$r.documentElement.classList,n=function(g){return r.add("".concat(KT,"-").concat(g))},i=function(g){return r.remove("".concat(KT,"-").concat(g))},a=jt.autoFetchSvg?hu:HS.map(function(d){return"fa-".concat(d)}).concat(Object.keys(E7));a.includes("fa")||a.push("fa");var o=[".".concat(XP,":not([").concat(_l,"])")].concat(a.map(function(d){return".".concat(d,":not([").concat(_l,"])")})).join(", ");if(o.length===0)return Promise.resolve();var l=[];try{l=qf(e.querySelectorAll(o))}catch{}if(l.length>0)n("pending"),i("complete");else return Promise.resolve();var s=ZS.begin("onTree"),f=l.reduce(function(d,g){try{var v=dI(g);v&&d.push(v)}catch(y){YP||y.name==="MissingIcon"&&console.error(y)}return d},[]);return new Promise(function(d,g){Promise.all(f).then(function(v){cI(v,function(){n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),s(),d()})}).catch(function(v){s(),g(v)})})}function A7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;dI(e).then(function(r){r&&cI([r],t)})}function T7(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:m_(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:m_(i||{})),e(n,Nt(Nt({},r),{},{mask:i}))}}var C7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?ga:n,a=r.symbol,o=a===void 0?!1:a,l=r.mask,s=l===void 0?null:l,f=r.maskId,d=f===void 0?null:f,g=r.title,v=g===void 0?null:g,y=r.titleId,E=y===void 0?null:y,k=r.classes,x=k===void 0?[]:k,w=r.attributes,_=w===void 0?{}:w,C=r.styles,T=C===void 0?{}:C;if(t){var F=t.prefix,L=t.iconName,V=t.icon;return Wg(Nt({type:"icon"},t),function(){return Sl("beforeDOMElementCreation",{iconDefinition:t,params:r}),jt.autoA11y&&(v?_["aria-labelledby"]="".concat(jt.replacementClass,"-title-").concat(E||Id()):(_["aria-hidden"]="true",_.focusable="false")),QS({icons:{main:g_(V),mask:s?g_(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:F,iconName:L,transform:Nt(Nt({},ga),i),symbol:o,title:v,maskId:d,titleId:E,extra:{attributes:_,styles:T,classes:x}})})}},O7={mixout:function(){return{icon:T7(C7)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=lC,r.nodeCallback=A7,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,i=n===void 0?$r:n,a=r.callback,o=a===void 0?function(){}:a;return lC(i,o)},t.generateSvgReplacementMutation=function(r,n){var i=n.iconName,a=n.title,o=n.titleId,l=n.prefix,s=n.transform,f=n.symbol,d=n.mask,g=n.maskId,v=n.extra;return new Promise(function(y,E){Promise.all([y_(i,l),d.iconName?y_(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(k){var x=US(k,2),w=x[0],_=x[1];y([r,QS({icons:{main:w,mask:_},prefix:l,iconName:i,transform:s,symbol:f,maskId:g,title:a,titleId:o,extra:v,watchable:!0})])}).catch(E)})},t.generateAbstractIcon=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.transform,l=r.styles,s=Ug(l);s.length>0&&(i.style=s);var f;return VS(o)&&(f=ro("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),n.push(f||a.icon),{children:n,attributes:i}}}},k7={mixout:function(){return{layer:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.classes,a=i===void 0?[]:i;return Wg({type:"layer"},function(){Sl("beforeDOMElementCreation",{assembler:r,params:n});var o=[];return r(function(l){Array.isArray(l)?l.map(function(s){o=o.concat(s.abstract)}):o=o.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(jt.cssPrefix,"-layers")].concat(ap(a)).join(" ")},children:o}]})}}}},M7={mixout:function(){return{counter:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.title,a=i===void 0?null:i,o=n.classes,l=o===void 0?[]:o,s=n.attributes,f=s===void 0?{}:s,d=n.styles,g=d===void 0?{}:d;return Wg({type:"counter",content:r},function(){return Sl("beforeDOMElementCreation",{content:r,params:n}),s7({content:r.toString(),title:a,extra:{attributes:f,styles:g,classes:["".concat(jt.cssPrefix,"-layers-counter")].concat(ap(l))}})})}}}},R7={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,a=i===void 0?ga:i,o=n.title,l=o===void 0?null:o,s=n.classes,f=s===void 0?[]:s,d=n.attributes,g=d===void 0?{}:d,v=n.styles,y=v===void 0?{}:v;return Wg({type:"text",content:r},function(){return Sl("beforeDOMElementCreation",{content:r,params:n}),rC({content:r,transform:Nt(Nt({},ga),a),title:l,extra:{attributes:g,styles:y,classes:["".concat(jt.cssPrefix,"-layers-text")].concat(ap(f))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,o=n.extra,l=null,s=null;if(HP){var f=parseInt(getComputedStyle(r).fontSize,10),d=r.getBoundingClientRect();l=d.width/f,s=d.height/f}return jt.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([r,rC({content:r.innerHTML,width:l,height:s,transform:a,title:i,extra:o,watchable:!0})])}}},P7=new RegExp('"',"ug"),sC=[1105920,1112319];function I7(e){var t=e.replace(P7,""),r=qz(t,0),n=r>=sC[0]&&r<=sC[1],i=t.length===2?t[0]===t[1]:!1;return{value:d_(i?t[0]:t),isSecondary:n||i}}function fC(e,t){var r="".concat(wz).concat(t.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var a=qf(e.children),o=a.filter(function(V){return V.getAttribute(h_)===t})[0],l=fu.getComputedStyle(e,t),s=l.getPropertyValue("font-family").match(Tz),f=l.getPropertyValue("font-weight"),d=l.getPropertyValue("content");if(o&&!s)return e.removeChild(o),n();if(s&&d!=="none"&&d!==""){var g=l.getPropertyValue("content"),v=~["Sharp"].indexOf(s[2])?qr:Lr,y=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Md[v][s[2].toLowerCase()]:Cz[v][f],E=I7(g),k=E.value,x=E.isSecondary,w=s[0].startsWith("FontAwesome"),_=XS(y,k),C=_;if(w){var T=Jz(k);T.iconName&&T.prefix&&(_=T.iconName,y=T.prefix)}if(_&&!x&&(!o||o.getAttribute(GS)!==y||o.getAttribute(WS)!==C)){e.setAttribute(r,C),o&&e.removeChild(o);var F=S7(),L=F.extra;L.attributes[h_]=t,y_(_,y).then(function(V){var j=QS(Nt(Nt({},F),{},{icons:{main:V,mask:KS()},prefix:y,iconName:C,extra:L,watchable:!0})),te=$r.createElement("svg");t==="::before"?e.insertBefore(te,e.firstChild):e.appendChild(te),te.outerHTML=j.map(function(ge){return up(ge)}).join(`
826
+ `),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function F7(e){return Promise.all([fC(e,"::before"),fC(e,"::after")])}function N7(e){return e.parentNode!==document.head&&!~Sz.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(h_)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function cC(e){if(so)return new Promise(function(t,r){var n=qf(e.querySelectorAll("*")).filter(N7).map(F7),i=ZS.begin("searchPseudoElements");hI(),Promise.all(n).then(function(){i(),x_(),t()}).catch(function(){i(),x_(),r()})})}var L7={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=cC,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?$r:n;jt.searchPseudoElements&&cC(i)}}},hC=!1,D7={mixout:function(){return{dom:{unwatch:function(){hI(),hC=!0}}}},hooks:function(){return{bootstrap:function(){oC(v_("mutationObserverCallbacks",{}))},noAuto:function(){b7()},watch:function(r){var n=r.observeMutationsRoot;hC?x_():oC(v_("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},dC=function(t){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(n,i){var a=i.toLowerCase().split("-"),o=a[0],l=a.slice(1).join("-");if(o&&l==="h")return n.flipX=!0,n;if(o&&l==="v")return n.flipY=!0,n;if(l=parseFloat(l),isNaN(l))return n;switch(o){case"grow":n.size=n.size+l;break;case"shrink":n.size=n.size-l;break;case"left":n.x=n.x-l;break;case"right":n.x=n.x+l;break;case"up":n.y=n.y-l;break;case"down":n.y=n.y+l;break;case"rotate":n.rotate=n.rotate+l;break}return n},r)},$7={mixout:function(){return{parse:{transform:function(r){return dC(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=dC(i)),r}}},provides:function(t){t.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,a=r.containerWidth,o=r.iconWidth,l={transform:"translate(".concat(a/2," 256)")},s="translate(".concat(i.x*32,", ").concat(i.y*32,") "),f="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),d="rotate(".concat(i.rotate," 0 0)"),g={transform:"".concat(s," ").concat(f," ").concat(d)},v={transform:"translate(".concat(o/2*-1," -256)")},y={outer:l,inner:g,path:v};return{tag:"g",attributes:Nt({},y.outer),children:[{tag:"g",attributes:Nt({},y.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Nt(Nt({},n.icon.attributes),y.path)}]}]}}}},zb={x:0,y:0,width:"100%",height:"100%"};function pC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function B7(e){return e.tag==="g"?e.children:[e]}var z7={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?Gg(i.split(" ").map(function(o){return o.trim()})):KS();return a.prefix||(a.prefix=cu()),r.mask=a,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(t){t.generateAbstractMask=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.mask,l=r.maskId,s=r.transform,f=a.width,d=a.icon,g=o.width,v=o.icon,y=$z({transform:s,containerWidth:g,iconWidth:f}),E={tag:"rect",attributes:Nt(Nt({},zb),{},{fill:"white"})},k=d.children?{children:d.children.map(pC)}:{},x={tag:"g",attributes:Nt({},y.inner),children:[pC(Nt({tag:d.tag,attributes:Nt(Nt({},d.attributes),y.path)},k))]},w={tag:"g",attributes:Nt({},y.outer),children:[x]},_="mask-".concat(l||Id()),C="clip-".concat(l||Id()),T={tag:"mask",attributes:Nt(Nt({},zb),{},{id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[E,w]},F={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:B7(v)},T]};return n.push(F,{tag:"rect",attributes:Nt({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(_,")")},zb)}),{children:n,attributes:i}}}},U7={provides:function(t){var r=!1;fu.matchMedia&&(r=fu.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var n=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:Nt(Nt({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=Nt(Nt({},a),{},{attributeName:"opacity"}),l={tag:"circle",attributes:Nt(Nt({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||l.children.push({tag:"animate",attributes:Nt(Nt({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Nt(Nt({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(l),n.push({tag:"path",attributes:Nt(Nt({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:r?[]:[{tag:"animate",attributes:Nt(Nt({},o),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:Nt(Nt({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Nt(Nt({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},j7={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-symbol"),a=i===null?!1:i===""?!0:i;return r.symbol=a,r}}}},G7=[Uz,O7,k7,M7,R7,L7,D7,$7,z7,U7,j7];r7(G7,{mixoutsTo:yi});yi.noAuto;yi.config;yi.library;yi.dom;var w_=yi.parse;yi.findIconDefinition;yi.toHtml;var W7=yi.icon;yi.layer;yi.text;yi.counter;function vC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vC(Object(r),!0).forEach(function(n){Js(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dm(e){return Dm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dm(e)}function Js(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H7(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function q7(e,t){if(e==null)return{};var r=H7(e,t),n,i;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)&&(r[n]=e[n])}return r}function __(e){return V7(e)||Y7(e)||X7(e)||K7()}function V7(e){if(Array.isArray(e))return S_(e)}function Y7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function X7(e,t){if(e){if(typeof e=="string")return S_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S_(e,t)}}function S_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function K7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
827
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q7(e){var t,r=e.beat,n=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,l=e.flash,s=e.spin,f=e.spinPulse,d=e.spinReverse,g=e.pulse,v=e.fixedWidth,y=e.inverse,E=e.border,k=e.listItem,x=e.flip,w=e.size,_=e.rotation,C=e.pull,T=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":l,"fa-spin":s,"fa-spin-reverse":d,"fa-spin-pulse":f,"fa-pulse":g,"fa-fw":v,"fa-inverse":y,"fa-border":E,"fa-li":k,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},Js(t,"fa-".concat(w),typeof w<"u"&&w!==null),Js(t,"fa-rotate-".concat(_),typeof _<"u"&&_!==null&&_!==0),Js(t,"fa-pull-".concat(C),typeof C<"u"&&C!==null),Js(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(T).map(function(F){return T[F]?F:null}).filter(function(F){return F})}function Z7(e){return e=e-0,e===e}function pI(e){return Z7(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var J7=["style"];function e9(e){return e.charAt(0).toUpperCase()+e.slice(1)}function t9(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=pI(r.slice(0,n)),a=r.slice(n+1).trim();return i.startsWith("webkit")?t[e9(i)]=a:t[i]=a,t},{})}function vI(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var n=(t.children||[]).map(function(s){return vI(e,s)}),i=Object.keys(t.attributes||{}).reduce(function(s,f){var d=t.attributes[f];switch(f){case"class":s.attrs.className=d,delete t.attributes.class;break;case"style":s.attrs.style=t9(d);break;default:f.indexOf("aria-")===0||f.indexOf("data-")===0?s.attrs[f.toLowerCase()]=d:s.attrs[pI(f)]=d}return s},{attrs:{}}),a=r.style,o=a===void 0?{}:a,l=q7(r,J7);return i.attrs.style=qo(qo({},i.attrs.style),o),e.apply(void 0,[t.tag,qo(qo({},i.attrs),l)].concat(__(n)))}var mI=!1;try{mI=!0}catch{}function r9(){if(!mI&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function mC(e){if(e&&Dm(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(w_.icon)return w_.icon(e);if(e===null)return null;if(e&&Dm(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Ub(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Js({},e,t):{}}var Hg=wr.forwardRef(function(e,t){var r=e.icon,n=e.mask,i=e.symbol,a=e.className,o=e.title,l=e.titleId,s=e.maskId,f=mC(r),d=Ub("classes",[].concat(__(Q7(e)),__(a.split(" ")))),g=Ub("transform",typeof e.transform=="string"?w_.transform(e.transform):e.transform),v=Ub("mask",mC(n)),y=W7(f,qo(qo(qo(qo({},d),g),v),{},{symbol:i,title:o,titleId:l,maskId:s}));if(!y)return r9("Could not find icon",f),null;var E=y.abstract,k={ref:t};return Object.keys(e).forEach(function(x){Hg.defaultProps.hasOwnProperty(x)||(k[x]=e[x])}),n9(E[0],k)});Hg.displayName="FontAwesomeIcon";Hg.propTypes={beat:fr.bool,border:fr.bool,beatFade:fr.bool,bounce:fr.bool,className:fr.string,fade:fr.bool,flash:fr.bool,mask:fr.oneOfType([fr.object,fr.array,fr.string]),maskId:fr.string,fixedWidth:fr.bool,inverse:fr.bool,flip:fr.oneOf([!0,!1,"horizontal","vertical","both"]),icon:fr.oneOfType([fr.object,fr.array,fr.string]),listItem:fr.bool,pull:fr.oneOf(["right","left"]),pulse:fr.bool,rotation:fr.oneOf([0,90,180,270]),shake:fr.bool,size:fr.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:fr.bool,spinPulse:fr.bool,spinReverse:fr.bool,symbol:fr.oneOfType([fr.bool,fr.string]),title:fr.string,titleId:fr.string,transform:fr.oneOfType([fr.string,fr.object]),swapOpacity:fr.bool};Hg.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var n9=vI.bind(null,wr.createElement),E_={},i9={get exports(){return E_},set exports(e){E_=e}},A_={},a9={get exports(){return A_},set exports(e){A_=e}},Q0=1;function o9(){return Q0=(Q0*9301+49297)%233280,Q0/233280}function u9(e){Q0=e}var l9={nextValue:o9,seed:u9},T_=l9,il="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",Vo,gC,jh;function C_(){jh=!1}function gI(e){if(!e){Vo!==il&&(Vo=il,C_());return}if(e!==Vo){if(e.length!==il.length)throw new Error("Custom alphabet for shortid must be "+il.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter(function(r,n,i){return n!==i.lastIndexOf(r)});if(t.length)throw new Error("Custom alphabet for shortid must be "+il.length+" unique characters. These characters were not unique: "+t.join(", "));Vo=e,C_()}}function s9(e){return gI(e),Vo}function f9(e){T_.seed(e),gC!==e&&(C_(),gC=e)}function c9(){Vo||gI(il);for(var e=Vo.split(""),t=[],r=T_.nextValue(),n;e.length>0;)r=T_.nextValue(),n=Math.floor(r*e.length),t.push(e.splice(n,1)[0]);return t.join("")}function yI(){return jh||(jh=c9(),jh)}function h9(e){var t=yI();return t[e]}function d9(){return Vo||il}var eE={get:d9,characters:s9,seed:f9,lookup:h9,shuffled:yI},jb=typeof window=="object"&&(window.crypto||window.msCrypto),O_;!jb||!jb.getRandomValues?O_=function(e){for(var t=[],r=0;r<e;r++)t.push(Math.floor(Math.random()*256));return t}:O_=function(e){return jb.getRandomValues(new Uint8Array(e))};var p9=O_,v9=function(e,t,r){for(var n=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*n*r/t.length),a="";;)for(var o=e(i),l=i;l--;)if(a+=t[o[l]&n]||"",a.length===+r)return a},m9=eE,g9=p9,y9=v9;function b9(e){for(var t=0,r,n="";!r;)n=n+y9(g9,m9.get(),1),r=e<Math.pow(16,t+1),t++;return n}var x9=b9,c0=x9,w9=1567752802062,_9=7,h0,yC;function S9(e){var t="",r=Math.floor((Date.now()-w9)*.001);return r===yC?h0++:(h0=0,yC=r),t=t+c0(_9),t=t+c0(e),h0>0&&(t=t+c0(h0)),t=t+c0(r),t}var E9=S9,A9=eE;function T9(e){if(!e||typeof e!="string"||e.length<6)return!1;var t=new RegExp("[^"+A9.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!t.test(e)}var C9=T9;(function(e){var t=eE,r=E9,n=C9,i=0;function a(f){return t.seed(f),e.exports}function o(f){return i=f,e.exports}function l(f){return f!==void 0&&t.characters(f),t.shuffled()}function s(){return r(i)}e.exports=s,e.exports.generate=s,e.exports.seed=a,e.exports.worker=o,e.exports.characters=l,e.exports.isValid=n})(a9);(function(e){e.exports=A_})(i9);const eae=yg(E_);function Fd(e){return Fd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fd(e)}function O9(e,t){if(Fd(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fd(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k9(e){var t=O9(e,"string");return Fd(t)==="symbol"?t:String(t)}function M9(e,t,r){return t=k9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bC(Object(r),!0).forEach(function(n){M9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function On(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 wC=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Gb=function(){return Math.random().toString(36).substring(7).split("").join(".")},Nd={INIT:"@@redux/INIT"+Gb(),REPLACE:"@@redux/REPLACE"+Gb(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Gb()}};function R9(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function tE(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(On(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(On(1));return r(tE)(e,t)}if(typeof e!="function")throw new Error(On(2));var i=e,a=t,o=[],l=o,s=!1;function f(){l===o&&(l=o.slice())}function d(){if(s)throw new Error(On(3));return a}function g(k){if(typeof k!="function")throw new Error(On(4));if(s)throw new Error(On(5));var x=!0;return f(),l.push(k),function(){if(x){if(s)throw new Error(On(6));x=!1,f();var _=l.indexOf(k);l.splice(_,1),o=null}}}function v(k){if(!R9(k))throw new Error(On(7));if(typeof k.type>"u")throw new Error(On(8));if(s)throw new Error(On(9));try{s=!0,a=i(a,k)}finally{s=!1}for(var x=o=l,w=0;w<x.length;w++){var _=x[w];_()}return k}function y(k){if(typeof k!="function")throw new Error(On(10));i=k,v({type:Nd.REPLACE})}function E(){var k,x=g;return k={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(On(11));function C(){_.next&&_.next(d())}C();var T=x(C);return{unsubscribe:T}}},k[wC]=function(){return this},k}return v({type:Nd.INIT}),n={dispatch:v,subscribe:g,getState:d,replaceReducer:y},n[wC]=E,n}var P9=tE;function I9(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Nd.INIT});if(typeof n>"u")throw new Error(On(12));if(typeof r(void 0,{type:Nd.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(On(13))})}function F9(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),o;try{I9(r)}catch(l){o=l}return function(s,f){if(s===void 0&&(s={}),o)throw o;for(var d=!1,g={},v=0;v<a.length;v++){var y=a[v],E=r[y],k=s[y],x=E(k,f);if(typeof x>"u")throw f&&f.type,new Error(On(14));g[y]=x,d=d||x!==k}return d=d||a.length!==Object.keys(s).length,d?g:s}}function _C(e,t){return function(){return t(e.apply(this,arguments))}}function N9(e,t){if(typeof e=="function")return _C(e,t);if(typeof e!="object"||e===null)throw new Error(On(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=_C(i,t))}return r}function bI(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function L9(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(On(15))},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(s){return s(o)});return a=bI.apply(void 0,l)(i.dispatch),xC(xC({},i),{},{dispatch:a})}}}const tae=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:Nd,applyMiddleware:L9,bindActionCreators:N9,combineReducers:F9,compose:bI,createStore:tE,legacy_createStore:P9},Symbol.toStringTag,{value:"Module"}));var _a=wr.createContext(null);function D9(e){e()}var xI=D9,$9=function(t){return xI=t},B9=function(){return xI};function z9(){var e=B9(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e(function(){for(var i=t;i;)i.callback(),i=i.next})},get:function(){for(var i=[],a=t;a;)i.push(a),a=a.next;return i},subscribe:function(i){var a=!0,o=r={callback:i,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!a||t===null||(a=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var SC={notify:function(){},get:function(){return[]}};function rE(e,t){var r,n=SC;function i(g){return s(),n.subscribe(g)}function a(){n.notify()}function o(){d.onStateChange&&d.onStateChange()}function l(){return Boolean(r)}function s(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=z9())}function f(){r&&(r(),r=void 0,n.clear(),n=SC)}var d={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:l,trySubscribe:s,tryUnsubscribe:f,getListeners:function(){return n}};return d}var $m=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?zt.useLayoutEffect:zt.useEffect;function U9(e){var t=e.store,r=e.context,n=e.children,i=zt.useMemo(function(){var l=rE(t);return l.onStateChange=l.notifyNestedSubs,{store:t,subscription:l}},[t]),a=zt.useMemo(function(){return t.getState()},[t]);$m(function(){var l=i.subscription;return l.trySubscribe(),a!==t.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[i,a]);var o=r||_a;return wr.createElement(o.Provider,{value:i},n)}var k_={},j9={get exports(){return k_},set exports(e){k_=e}},Er={};/** @license React v16.13.1
828
+ * react-is.production.min.js
829
+ *
830
+ * Copyright (c) Facebook, Inc. and its affiliates.
831
+ *
832
+ * This source code is licensed under the MIT license found in the
833
+ * LICENSE file in the root directory of this source tree.
834
+ */var _n=typeof Symbol=="function"&&Symbol.for,nE=_n?Symbol.for("react.element"):60103,iE=_n?Symbol.for("react.portal"):60106,qg=_n?Symbol.for("react.fragment"):60107,Vg=_n?Symbol.for("react.strict_mode"):60108,Yg=_n?Symbol.for("react.profiler"):60114,Xg=_n?Symbol.for("react.provider"):60109,Kg=_n?Symbol.for("react.context"):60110,aE=_n?Symbol.for("react.async_mode"):60111,Qg=_n?Symbol.for("react.concurrent_mode"):60111,Zg=_n?Symbol.for("react.forward_ref"):60112,Jg=_n?Symbol.for("react.suspense"):60113,G9=_n?Symbol.for("react.suspense_list"):60120,ey=_n?Symbol.for("react.memo"):60115,ty=_n?Symbol.for("react.lazy"):60116,W9=_n?Symbol.for("react.block"):60121,H9=_n?Symbol.for("react.fundamental"):60117,q9=_n?Symbol.for("react.responder"):60118,V9=_n?Symbol.for("react.scope"):60119;function bi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case nE:switch(e=e.type,e){case aE:case Qg:case qg:case Yg:case Vg:case Jg:return e;default:switch(e=e&&e.$$typeof,e){case Kg:case Zg:case ty:case ey:case Xg:return e;default:return t}}case iE:return t}}}function wI(e){return bi(e)===Qg}Er.AsyncMode=aE;Er.ConcurrentMode=Qg;Er.ContextConsumer=Kg;Er.ContextProvider=Xg;Er.Element=nE;Er.ForwardRef=Zg;Er.Fragment=qg;Er.Lazy=ty;Er.Memo=ey;Er.Portal=iE;Er.Profiler=Yg;Er.StrictMode=Vg;Er.Suspense=Jg;Er.isAsyncMode=function(e){return wI(e)||bi(e)===aE};Er.isConcurrentMode=wI;Er.isContextConsumer=function(e){return bi(e)===Kg};Er.isContextProvider=function(e){return bi(e)===Xg};Er.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===nE};Er.isForwardRef=function(e){return bi(e)===Zg};Er.isFragment=function(e){return bi(e)===qg};Er.isLazy=function(e){return bi(e)===ty};Er.isMemo=function(e){return bi(e)===ey};Er.isPortal=function(e){return bi(e)===iE};Er.isProfiler=function(e){return bi(e)===Yg};Er.isStrictMode=function(e){return bi(e)===Vg};Er.isSuspense=function(e){return bi(e)===Jg};Er.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===qg||e===Qg||e===Yg||e===Vg||e===Jg||e===G9||typeof e=="object"&&e!==null&&(e.$$typeof===ty||e.$$typeof===ey||e.$$typeof===Xg||e.$$typeof===Kg||e.$$typeof===Zg||e.$$typeof===H9||e.$$typeof===q9||e.$$typeof===V9||e.$$typeof===W9)};Er.typeOf=bi;(function(e){e.exports=Er})(j9);var oE=k_,Y9={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},X9={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},K9={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_I={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},uE={};uE[oE.ForwardRef]=K9;uE[oE.Memo]=_I;function EC(e){return oE.isMemo(e)?_I:uE[e.$$typeof]||Y9}var Q9=Object.defineProperty,Z9=Object.getOwnPropertyNames,AC=Object.getOwnPropertySymbols,J9=Object.getOwnPropertyDescriptor,eU=Object.getPrototypeOf,TC=Object.prototype;function SI(e,t,r){if(typeof t!="string"){if(TC){var n=eU(t);n&&n!==TC&&SI(e,n,r)}var i=Z9(t);AC&&(i=i.concat(AC(t)));for(var a=EC(e),o=EC(t),l=0;l<i.length;++l){var s=i[l];if(!X9[s]&&!(r&&r[s])&&!(o&&o[s])&&!(a&&a[s])){var f=J9(t,s);try{Q9(e,s,f)}catch{}}}}return e}var CC=SI,M_={},tU={get exports(){return M_},set exports(e){M_=e}},kr={};/** @license React v17.0.2
835
+ * react-is.production.min.js
836
+ *
837
+ * Copyright (c) Facebook, Inc. and its affiliates.
838
+ *
839
+ * This source code is licensed under the MIT license found in the
840
+ * LICENSE file in the root directory of this source tree.
841
+ */var ry=60103,ny=60106,lp=60107,sp=60108,fp=60114,cp=60109,hp=60110,dp=60112,pp=60113,lE=60120,vp=60115,mp=60116,EI=60121,AI=60122,TI=60117,CI=60129,OI=60131;if(typeof Symbol=="function"&&Symbol.for){var Tn=Symbol.for;ry=Tn("react.element"),ny=Tn("react.portal"),lp=Tn("react.fragment"),sp=Tn("react.strict_mode"),fp=Tn("react.profiler"),cp=Tn("react.provider"),hp=Tn("react.context"),dp=Tn("react.forward_ref"),pp=Tn("react.suspense"),lE=Tn("react.suspense_list"),vp=Tn("react.memo"),mp=Tn("react.lazy"),EI=Tn("react.block"),AI=Tn("react.server.block"),TI=Tn("react.fundamental"),CI=Tn("react.debug_trace_mode"),OI=Tn("react.legacy_hidden")}function ea(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ry:switch(e=e.type,e){case lp:case fp:case sp:case pp:case lE:return e;default:switch(e=e&&e.$$typeof,e){case hp:case dp:case mp:case vp:case cp:return e;default:return t}}case ny:return t}}}var rU=cp,nU=ry,iU=dp,aU=lp,oU=mp,uU=vp,lU=ny,sU=fp,fU=sp,cU=pp;kr.ContextConsumer=hp;kr.ContextProvider=rU;kr.Element=nU;kr.ForwardRef=iU;kr.Fragment=aU;kr.Lazy=oU;kr.Memo=uU;kr.Portal=lU;kr.Profiler=sU;kr.StrictMode=fU;kr.Suspense=cU;kr.isAsyncMode=function(){return!1};kr.isConcurrentMode=function(){return!1};kr.isContextConsumer=function(e){return ea(e)===hp};kr.isContextProvider=function(e){return ea(e)===cp};kr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ry};kr.isForwardRef=function(e){return ea(e)===dp};kr.isFragment=function(e){return ea(e)===lp};kr.isLazy=function(e){return ea(e)===mp};kr.isMemo=function(e){return ea(e)===vp};kr.isPortal=function(e){return ea(e)===ny};kr.isProfiler=function(e){return ea(e)===fp};kr.isStrictMode=function(e){return ea(e)===sp};kr.isSuspense=function(e){return ea(e)===pp};kr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===lp||e===fp||e===CI||e===sp||e===pp||e===lE||e===OI||typeof e=="object"&&e!==null&&(e.$$typeof===mp||e.$$typeof===vp||e.$$typeof===cp||e.$$typeof===hp||e.$$typeof===dp||e.$$typeof===TI||e.$$typeof===EI||e[0]===AI)};kr.typeOf=ea;(function(e){e.exports=kr})(tU);var hU=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],dU=["reactReduxForwardedRef"],pU=[],vU=[null,null];function mU(e,t){var r=e[1];return[t.payload,r+1]}function OC(e,t,r){$m(function(){return e.apply(void 0,t)},r)}function gU(e,t,r,n,i,a,o){e.current=n,t.current=i,r.current=!1,a.current&&(a.current=null,o())}function yU(e,t,r,n,i,a,o,l,s,f){if(e){var d=!1,g=null,v=function(){if(!d){var k=t.getState(),x,w;try{x=n(k,i.current)}catch(_){w=_,g=_}w||(g=null),x===a.current?o.current||s():(a.current=x,l.current=x,o.current=!0,f({type:"STORE_UPDATED",payload:{error:w}}))}};r.onStateChange=v,r.trySubscribe(),v();var y=function(){if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,g)throw g};return y}}var bU=function(){return[null,0]};function kI(e,t){t===void 0&&(t={});var r=t,n=r.getDisplayName,i=n===void 0?function(C){return"ConnectAdvanced("+C+")"}:n,a=r.methodName,o=a===void 0?"connectAdvanced":a,l=r.renderCountProp,s=l===void 0?void 0:l,f=r.shouldHandleStateChanges,d=f===void 0?!0:f,g=r.storeKey,v=g===void 0?"store":g;r.withRef;var y=r.forwardRef,E=y===void 0?!1:y,k=r.context,x=k===void 0?_a:k,w=Sf(r,hU),_=x;return function(T){var F=T.displayName||T.name||"Component",L=i(F),V=ti({},w,{getDisplayName:i,methodName:o,renderCountProp:s,shouldHandleStateChanges:d,storeKey:v,displayName:L,wrappedComponentName:F,WrappedComponent:T}),j=w.pure;function te(Le){return e(Le.dispatch,V)}var ge=j?zt.useMemo:function(Le){return Le()};function me(Le){var ut=zt.useMemo(function(){var fe=Le.reactReduxForwardedRef,Ie=Sf(Le,dU);return[Le.context,fe,Ie]},[Le]),nt=ut[0],De=ut[1],We=ut[2],_t=zt.useMemo(function(){return nt&&nt.Consumer&&M_.isContextConsumer(wr.createElement(nt.Consumer,null))?nt:_},[nt,_]),He=zt.useContext(_t),we=Boolean(Le.store)&&Boolean(Le.store.getState)&&Boolean(Le.store.dispatch);Boolean(He)&&Boolean(He.store);var qe=we?Le.store:He.store,st=zt.useMemo(function(){return te(qe)},[qe]),Ke=zt.useMemo(function(){if(!d)return vU;var fe=rE(qe,we?null:He.subscription),Ie=fe.notifyNestedSubs.bind(fe);return[fe,Ie]},[qe,we,He]),ct=Ke[0],yt=Ke[1],qt=zt.useMemo(function(){return we?He:ti({},He,{subscription:ct})},[we,He,ct]),Yt=zt.useReducer(mU,pU,bU),Qe=Yt[0],At=Qe[0],Gt=Yt[1];if(At&&At.error)throw At.error;var Ce=zt.useRef(),W=zt.useRef(We),ae=zt.useRef(),R=zt.useRef(!1),A=ge(function(){return ae.current&&We===W.current?ae.current:st(qe.getState(),We)},[qe,At,We]);OC(gU,[W,Ce,R,We,A,ae,yt]),OC(yU,[d,qe,ct,st,W,Ce,R,ae,yt,Gt],[qe,ct,st]);var M=zt.useMemo(function(){return wr.createElement(T,ti({},A,{ref:De}))},[De,T,A]),$=zt.useMemo(function(){return d?wr.createElement(_t.Provider,{value:qt},M):M},[_t,M,qt]);return $}var ke=j?wr.memo(me):me;if(ke.WrappedComponent=T,ke.displayName=me.displayName=L,E){var Fe=wr.forwardRef(function(ut,nt){return wr.createElement(ke,ti({},ut,{reactReduxForwardedRef:nt}))});return Fe.displayName=L,Fe.WrappedComponent=T,CC(Fe,T)}return CC(ke,T)}}function kC(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Z0(e,t){if(kC(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!kC(e[r[i]],t[r[i]]))return!1;return!0}function xU(e,t){var r={},n=function(o){var l=e[o];typeof l=="function"&&(r[o]=function(){return t(l.apply(void 0,arguments))})};for(var i in e)n(i);return r}function sE(e){return function(r,n){var i=e(r,n);function a(){return i}return a.dependsOnOwnProps=!1,a}}function MC(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?Boolean(e.dependsOnOwnProps):e.length!==1}function MI(e,t){return function(n,i){i.displayName;var a=function(l,s){return a.dependsOnOwnProps?a.mapToProps(l,s):a.mapToProps(l)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,s){a.mapToProps=e,a.dependsOnOwnProps=MC(e);var f=a(l,s);return typeof f=="function"&&(a.mapToProps=f,a.dependsOnOwnProps=MC(f),f=a(l,s)),f},a}}function wU(e){return typeof e=="function"?MI(e):void 0}function _U(e){return e?void 0:sE(function(t){return{dispatch:t}})}function SU(e){return e&&typeof e=="object"?sE(function(t){return xU(e,t)}):void 0}const EU=[wU,_U,SU];function AU(e){return typeof e=="function"?MI(e):void 0}function TU(e){return e?void 0:sE(function(){return{}})}const CU=[AU,TU];function OU(e,t,r){return ti({},r,e,t)}function kU(e){return function(r,n){n.displayName;var i=n.pure,a=n.areMergedPropsEqual,o=!1,l;return function(f,d,g){var v=e(f,d,g);return o?(!i||!a(v,l))&&(l=v):(o=!0,l=v),l}}}function MU(e){return typeof e=="function"?kU(e):void 0}function RU(e){return e?void 0:function(){return OU}}const PU=[MU,RU];var IU=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function FU(e,t,r,n){return function(a,o){return r(e(a,o),t(n,o),o)}}function NU(e,t,r,n,i){var a=i.areStatesEqual,o=i.areOwnPropsEqual,l=i.areStatePropsEqual,s=!1,f,d,g,v,y;function E(C,T){return f=C,d=T,g=e(f,d),v=t(n,d),y=r(g,v,d),s=!0,y}function k(){return g=e(f,d),t.dependsOnOwnProps&&(v=t(n,d)),y=r(g,v,d),y}function x(){return e.dependsOnOwnProps&&(g=e(f,d)),t.dependsOnOwnProps&&(v=t(n,d)),y=r(g,v,d),y}function w(){var C=e(f,d),T=!l(C,g);return g=C,T&&(y=r(g,v,d)),y}function _(C,T){var F=!o(T,d),L=!a(C,f);return f=C,d=T,F&&L?k():F?x():L?w():y}return function(T,F){return s?_(T,F):E(T,F)}}function LU(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,a=Sf(t,IU),o=r(e,a),l=n(e,a),s=i(e,a),f=a.pure?NU:FU;return f(o,l,s,e,a)}var DU=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Wb(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(a,o){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+o.wrappedComponentName+".")}}function $U(e,t){return e===t}function BU(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?kI:r,i=t.mapStateToPropsFactories,a=i===void 0?CU:i,o=t.mapDispatchToPropsFactories,l=o===void 0?EU:o,s=t.mergePropsFactories,f=s===void 0?PU:s,d=t.selectorFactory,g=d===void 0?LU:d;return function(y,E,k,x){x===void 0&&(x={});var w=x,_=w.pure,C=_===void 0?!0:_,T=w.areStatesEqual,F=T===void 0?$U:T,L=w.areOwnPropsEqual,V=L===void 0?Z0:L,j=w.areStatePropsEqual,te=j===void 0?Z0:j,ge=w.areMergedPropsEqual,me=ge===void 0?Z0:ge,ke=Sf(w,DU),Fe=Wb(y,a,"mapStateToProps"),Le=Wb(E,l,"mapDispatchToProps"),ut=Wb(k,f,"mergeProps");return n(g,ti({methodName:"connect",getDisplayName:function(De){return"Connect("+De+")"},shouldHandleStateChanges:Boolean(y),initMapStateToProps:Fe,initMapDispatchToProps:Le,initMergeProps:ut,pure:C,areStatesEqual:F,areOwnPropsEqual:V,areStatePropsEqual:te,areMergedPropsEqual:me},ke))}}const fE=BU();function RI(){var e=zt.useContext(_a);return e}function cE(e){e===void 0&&(e=_a);var t=e===_a?RI:function(){return zt.useContext(e)};return function(){var n=t(),i=n.store;return i}}var PI=cE();function II(e){e===void 0&&(e=_a);var t=e===_a?PI:cE(e);return function(){var n=t();return n.dispatch}}var zU=II(),UU=function(t,r){return t===r};function jU(e,t,r,n){var i=zt.useReducer(function(E){return E+1},0),a=i[1],o=zt.useMemo(function(){return rE(r,n)},[r,n]),l=zt.useRef(),s=zt.useRef(),f=zt.useRef(),d=zt.useRef(),g=r.getState(),v;try{if(e!==s.current||g!==f.current||l.current){var y=e(g);d.current===void 0||!t(y,d.current)?v=y:v=d.current}else v=d.current}catch(E){throw l.current&&(E.message+=`
842
+ The error may be correlated with this previous error:
843
+ `+l.current.stack+`
844
+
845
+ `),E}return $m(function(){s.current=e,f.current=g,d.current=v,l.current=void 0}),$m(function(){function E(){try{var k=r.getState();if(k===f.current)return;var x=s.current(k);if(t(x,d.current))return;d.current=x,f.current=k}catch(w){l.current=w}a()}return o.onStateChange=E,o.trySubscribe(),E(),function(){return o.tryUnsubscribe()}},[r,o]),v}function FI(e){e===void 0&&(e=_a);var t=e===_a?RI:function(){return zt.useContext(e)};return function(n,i){i===void 0&&(i=UU);var a=t(),o=a.store,l=a.subscription,s=jU(n,i,o,l);return zt.useDebugValue(s),s}}var GU=FI();$9(pd.unstable_batchedUpdates);const rae=Object.freeze(Object.defineProperty({__proto__:null,Provider:U9,ReactReduxContext:_a,batch:pd.unstable_batchedUpdates,connect:fE,connectAdvanced:kI,createDispatchHook:II,createSelectorHook:FI,createStoreHook:cE,shallowEqual:Z0,useDispatch:zU,useSelector:GU,useStore:PI},Symbol.toStringTag,{value:"Module"}));function WU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function NI(e,t){var r=zt.useState(function(){return{inputs:t,result:e()}})[0],n=zt.useRef(!0),i=zt.useRef(r),a=n.current||Boolean(t&&i.current.inputs&&WU(t,i.current.inputs)),o=a?i.current:{inputs:t,result:e()};return zt.useEffect(function(){n.current=!1,i.current=o},[o]),o.result}function HU(e,t){return NI(function(){return e},t)}var Wn=NI,gn=HU,qU=!0,Hb="Invariant failed";function VU(e,t){if(!e){if(qU)throw new Error(Hb);var r=typeof t=="function"?t():t,n=r?Hb+": "+r:Hb;throw new Error(n)}}var ef=function(t){var r=t.top,n=t.right,i=t.bottom,a=t.left,o=n-a,l=i-r,s={top:r,right:n,bottom:i,left:a,width:o,height:l,x:a,y:r,center:{x:(n+a)/2,y:(i+r)/2}};return s},LI=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},RC=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},YU=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},qb={top:0,right:0,bottom:0,left:0},hE=function(t){var r=t.borderBox,n=t.margin,i=n===void 0?qb:n,a=t.border,o=a===void 0?qb:a,l=t.padding,s=l===void 0?qb:l,f=ef(LI(r,i)),d=ef(RC(r,o)),g=ef(RC(d,s));return{marginBox:f,borderBox:ef(r),paddingBox:d,contentBox:g,margin:i,border:o,padding:s}},Ai=function(t){var r=t.slice(0,-2),n=t.slice(-2);if(n!=="px")return 0;var i=Number(r);return isNaN(i)&&VU(!1),i},XU=function(){return{x:window.pageXOffset,y:window.pageYOffset}},KU=function(t,r){var n=t.borderBox,i=t.border,a=t.margin,o=t.padding,l=YU(n,r);return hE({borderBox:l,border:i,margin:a,padding:o})},R_=function(t,r){return r===void 0&&(r=XU()),KU(t,r)},DI=function(t,r){var n={top:Ai(r.marginTop),right:Ai(r.marginRight),bottom:Ai(r.marginBottom),left:Ai(r.marginLeft)},i={top:Ai(r.paddingTop),right:Ai(r.paddingRight),bottom:Ai(r.paddingBottom),left:Ai(r.paddingLeft)},a={top:Ai(r.borderTopWidth),right:Ai(r.borderRightWidth),bottom:Ai(r.borderBottomWidth),left:Ai(r.borderLeftWidth)};return hE({borderBox:t,margin:n,padding:i,border:a})},$I=function(t){var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return DI(r,n)},PC=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function QU(e,t){return!!(e===t||PC(e)&&PC(t))}function ZU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!QU(e[r],t[r]))return!1;return!0}function tn(e,t){t===void 0&&(t=ZU);var r,n=[],i,a=!1;function o(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return a&&r===this&&t(l,n)||(i=e.apply(this,l),a=!0,r=this,n=l),i}return o}var JU=function(t){var r=[],n=null,i=function(){for(var o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];r=l,!n&&(n=requestAnimationFrame(function(){n=null,t.apply(void 0,r)}))};return i.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},i};const ej=JU;function BI(e,t){}BI.bind(null,"warn");BI.bind(null,"error");function tj(){}function rj(e,t){return ti({},e,{},t)}function nj(e,t,r){var n=t.map(function(i){var a=rj(r,i.options);return e.addEventListener(i.eventName,i.fn,a),function(){e.removeEventListener(i.eventName,i.fn,a)}});return function(){n.forEach(function(a){a()})}}var ij="Invariant failed";function Bm(e){this.message=e}Bm.prototype.toString=function(){return this.message};function pi(e,t){if(!e)throw new Bm(ij)}(function(e){tp(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.callbacks=null,n.unbind=tj,n.onWindowError=function(l){var s=n.getCallbacks();s.isDragging()&&s.tryAbort();var f=l.error;f instanceof Bm&&l.preventDefault()},n.getCallbacks=function(){if(!n.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return n.callbacks},n.setCallbacks=function(l){n.callbacks=l},n}var r=t.prototype;return r.componentDidMount=function(){this.unbind=nj(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(i){if(i instanceof Bm){this.setState({});return}throw i},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t})(wr.Component);var El={x:0,y:0},aj=function(t,r){return{x:t.x-r.x,y:t.y-r.y}},oj=function(t,r){return t.x===r.x&&t.y===r.y},uj=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},lj=function(t,r,n){var i;return n===void 0&&(n=0),i={},i[t]=r,i[t==="x"?"y":"x"]=n,i},sj=function(e,t){var r=ef({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 r.width<=0||r.height<=0?null:r},fj=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},cj={top:0,right:0,bottom:0,left:0},hj=function(t,r){return r?fj(t,r.scroll.diff.displacement):t},dj=function(t,r,n){if(n&&n.increasedBy){var i;return ti({},t,(i={},i[r.end]=t[r.end]+n.increasedBy[r.line],i))}return t},pj=function(t,r){return r&&r.shouldClipSubject?sj(r.pageMarginBox,t):ef(t)},vj=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,a=hj(t.marginBox,i),o=dj(a,n,r),l=pj(o,i);return{page:t,withPlaceholder:r,active:l}};function zI(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function mj(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function UI(e,t){if(e.find)return e.find(t);var r=mj(e,t);if(r!==-1)return e[r]}tn(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})});tn(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})});var gj=tn(function(e){return zI(e)}),yj=tn(function(e){return zI(e)});tn(function(e,t){var r=yj(t).filter(function(n){return e===n.descriptor.droppableId}).sort(function(n,i){return n.descriptor.index-i.descriptor.index});return r});function bj(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}tn(function(e,t){return t.filter(function(r){return r.descriptor.id!==e.descriptor.id})});var xj={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},wj={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};tn(function(t,r){var n=r[t.line];return{value:n,point:lj(t.line,n)}});var J0=function(e){var t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null},_j=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},Sj=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},dE={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ld={opacity:{drop:0,combining:.7},scale:{drop:.75}},Ej={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Zu=Ej.outOfTheWay+"s "+dE.outOfTheWay,em={fluid:"opacity "+Zu,snap:"transform "+Zu+", opacity "+Zu,drop:function(t){var r=t+"s "+dE.drop;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Zu,placeholder:"height "+Zu+", width "+Zu+", margin "+Zu},IC=function(t){return oj(t,El)?null:"translate("+t.x+"px, "+t.y+"px)"},P_={moveTo:IC,drop:function(t,r){var n=IC(t);return n?r?n+" scale("+Ld.scale.drop+")":n:null}},jI=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,a=aj({x:r,y:t},{x:i,y:n}),o={x:Math.max(0,a.x),y:Math.max(0,a.y)};return o},Aj=function(){var e=document.documentElement;return e||pi(!1),e},Tj=function(){var e=Aj(),t=jI({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t};tn(function(e){return gj(e).filter(function(t){return!(!t.isEnabled||!t.frame)})});var Cj="data-rbd",FC={contextId:Cj+"-scroll-container-context-id"},ud=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?zt.useLayoutEffect:zt.useEffect,GI=wr.createContext(null),Oj=0,kj={separator:"::"};function WI(e,t){return t===void 0&&(t=kj),Wn(function(){return""+e+t.separator+Oj++},[t.separator,e])}var pE=wr.createContext(null);function Mj(e){var t=zt.useRef(e);return zt.useEffect(function(){t.current=e}),t}var Rj=9,Pj=13,Ij=33,Fj=34,Nj=35,Lj=36,d0;d0={},d0[Pj]=!0,d0[Rj]=!0;(function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],r=UI(t,function(n){return"on"+n in document});return r||e})();var Is;Is={},Is[Fj]=!0,Is[Ij]=!0,Is[Lj]=!0,Is[Nj]=!0;(function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],r=UI(t,function(n){return n in Element.prototype});return r||e})();var HI=function(t){return function(r){return t===r}},Dj=HI("scroll"),$j=HI("auto"),NC=function(t,r){return r(t.overflowX)||r(t.overflowY)},Bj=function(t){var r=window.getComputedStyle(t),n={overflowX:r.overflowX,overflowY:r.overflowY};return NC(n,Dj)||NC(n,$j)},zj=function(){return!1},Uj=function e(t){return t==null?null:t===document.body?zj()?t:null:t===document.documentElement?null:Bj(t)?t:e(t.parentElement)},I_=function(e){return{x:e.scrollLeft,y:e.scrollTop}},jj=function e(t){if(!t)return!1;var r=window.getComputedStyle(t);return r.position==="fixed"?!0:e(t.parentElement)},Gj=function(e){var t=Uj(e),r=jj(e);return{closestScrollable:t,isFixedOnPage:r}},Wj=function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,a=e.direction,o=e.client,l=e.page,s=e.closest,f=function(){if(!s)return null;var y=s.scrollSize,E=s.client,k=jI({scrollHeight:y.scrollHeight,scrollWidth:y.scrollWidth,height:E.paddingBox.height,width:E.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:E,scrollSize:y,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:k,diff:{value:El,displacement:El}}}}(),d=a==="vertical"?xj:wj,g=vj({page:l,withPlaceholder:null,axis:d,frame:f}),v={descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:d,isEnabled:r,client:o,page:l,frame:f,subject:g};return v},Hj=function(t,r){var n=$I(t);if(!r||t!==r)return n;var i=n.paddingBox.top-r.scrollTop,a=n.paddingBox.left-r.scrollLeft,o=i+r.scrollHeight,l=a+r.scrollWidth,s={top:i,right:l,bottom:o,left:a},f=LI(s,n.border),d=hE({borderBox:f,margin:n.margin,border:n.border,padding:n.padding});return d},qj=function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,a=e.direction,o=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,f=n.closestScrollable,d=Hj(t,f),g=R_(d,i),v=function(){if(!f)return null;var E=$I(f),k={scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth};return{client:E,page:R_(E,i),scroll:I_(f),scrollSize:k,shouldClipSubject:s}}(),y=Wj({descriptor:r,isEnabled:!o,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:a,client:d,page:g,closest:v});return y},Vj={passive:!1},Yj={passive:!0},LC=function(e){return e.shouldPublishImmediately?Vj:Yj};function zm(e){var t=zt.useContext(e);return t||pi(!1),t}var p0=function(t){return t&&t.env.closestScrollable||null};function Xj(e){var t=zt.useRef(null),r=zm(pE),n=WI("droppable"),i=r.registry,a=r.marshal,o=Mj(e),l=Wn(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),s=zt.useRef(l),f=Wn(function(){return tn(function(T,F){t.current||pi(!1);var L={x:T,y:F};a.updateDroppableScroll(l.id,L)})},[l.id,a]),d=gn(function(){var T=t.current;return!T||!T.env.closestScrollable?El:I_(T.env.closestScrollable)},[]),g=gn(function(){var T=d();f(T.x,T.y)},[d,f]),v=Wn(function(){return ej(g)},[g]),y=gn(function(){var T=t.current,F=p0(T);T&&F||pi(!1);var L=T.scrollOptions;if(L.shouldPublishImmediately){g();return}v()},[v,g]),E=gn(function(T,F){t.current&&pi(!1);var L=o.current,V=L.getDroppableRef();V||pi(!1);var j=Gj(V),te={ref:V,descriptor:l,env:j,scrollOptions:F};t.current=te;var ge=qj({ref:V,descriptor:l,env:j,windowScroll:T,direction:L.direction,isDropDisabled:L.isDropDisabled,isCombineEnabled:L.isCombineEnabled,shouldClipSubject:!L.ignoreContainerClipping}),me=j.closestScrollable;return me&&(me.setAttribute(FC.contextId,r.contextId),me.addEventListener("scroll",y,LC(te.scrollOptions))),ge},[r.contextId,l,y,o]),k=gn(function(){var T=t.current,F=p0(T);return T&&F||pi(!1),I_(F)},[]),x=gn(function(){var T=t.current;T||pi(!1);var F=p0(T);t.current=null,F&&(v.cancel(),F.removeAttribute(FC.contextId),F.removeEventListener("scroll",y,LC(T.scrollOptions)))},[y,v]),w=gn(function(T){var F=t.current;F||pi(!1);var L=p0(F);L||pi(!1),L.scrollTop+=T.y,L.scrollLeft+=T.x},[]),_=Wn(function(){return{getDimensionAndWatchScroll:E,getScrollWhileDragging:k,dragStopped:x,scroll:w}},[x,E,k,w]),C=Wn(function(){return{uniqueId:n,descriptor:l,callbacks:_}},[_,l,n]);ud(function(){return s.current=C.descriptor,i.droppable.register(C),function(){t.current&&x(),i.droppable.unregister(C)}},[_,l,x,C,a,i.droppable]),ud(function(){t.current&&a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),ud(function(){t.current&&a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function Vb(){}var DC={width:0,height:0,margin:cj},Kj=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate;return r||i==="close"?DC:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},Qj=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate,a=Kj({isAnimatingOpenOnMount:r,placeholder:n,animate:i});return{display:n.display,boxSizing:"border-box",width:a.width,height:a.height,marginTop:a.margin.top,marginRight:a.margin.right,marginBottom:a.margin.bottom,marginLeft:a.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?em.placeholder:null}};function Zj(e){var t=zt.useRef(null),r=gn(function(){t.current&&(clearTimeout(t.current),t.current=null)},[]),n=e.animate,i=e.onTransitionEnd,a=e.onClose,o=e.contextId,l=zt.useState(e.animate==="open"),s=l[0],f=l[1];zt.useEffect(function(){return s?n!=="open"?(r(),f(!1),Vb):t.current?Vb:(t.current=setTimeout(function(){t.current=null,f(!1)}),r):Vb},[n,s,r]);var d=gn(function(v){v.propertyName==="height"&&(i(),n==="close"&&a())},[n,a,i]),g=Qj({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return wr.createElement(e.placeholder.tagName,{style:g,"data-rbd-placeholder-context-id":o,onTransitionEnd:d,ref:e.innerRef})}var Jj=wr.memo(Zj),vE=wr.createContext(null),eG=function(e){tp(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.state={isVisible:Boolean(n.props.on),data:n.props.on,animate:n.props.shouldAnimate&&n.props.on?"open":"none"},n.onClose=function(){n.state.animate==="close"&&n.setState({isVisible:!1})},n}t.getDerivedStateFromProps=function(i,a){return i.shouldAnimate?i.on?{isVisible:!0,data:i.on,animate:"open"}:a.isVisible?{isVisible:!0,data:a.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(i.on),data:i.on,animate:"none"}};var r=t.prototype;return r.render=function(){if(!this.state.isVisible)return null;var i={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(i)},t}(wr.PureComponent),$C={dragging:5e3,dropAnimating:4500},tG=function(t,r){return r?em.drop(r.duration):t?em.snap:em.fluid},rG=function(t,r){return t?r?Ld.opacity.drop:Ld.opacity.combining:null},nG=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function iG(e){var t=e.dimension,r=t.client,n=e.offset,i=e.combineWith,a=e.dropping,o=Boolean(i),l=nG(e),s=Boolean(a),f=s?P_.drop(n,o):P_.moveTo(n),d={position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:tG(l,a),transform:f,opacity:rG(o,s),zIndex:s?$C.dropAnimating:$C.dragging,pointerEvents:"none"};return d}function aG(e){return{transform:P_.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function oG(e){return e.type==="DRAGGING"?iG(e):aG(e)}function uG(e,t,r){r===void 0&&(r=El);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=DI(i,n),o=R_(a,r),l={client:a,tagName:t.tagName.toLowerCase(),display:n.display},s={x:a.marginBox.width,y:a.marginBox.height},f={descriptor:e,placeholder:l,displaceBy:s,client:a,page:o};return f}function lG(e){var t=WI("draggable"),r=e.descriptor,n=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,o=e.shouldRespectForcePress,l=e.isEnabled,s=Wn(function(){return{canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:l}},[a,l,o]),f=gn(function(y){var E=i();return E||pi(!1),uG(r,E,y)},[r,i]),d=Wn(function(){return{uniqueId:t,descriptor:r,options:s,getDimension:f}},[r,f,s,t]),g=zt.useRef(d),v=zt.useRef(!0);ud(function(){return n.draggable.register(g.current),function(){return n.draggable.unregister(g.current)}},[n.draggable]),ud(function(){if(v.current){v.current=!1;return}var y=g.current;g.current=d,n.draggable.update(d,y)},[d,n.draggable])}function sG(e){e.preventDefault()}function fG(e){var t=zt.useRef(null),r=gn(function(te){t.current=te},[]),n=gn(function(){return t.current},[]),i=zm(pE),a=i.contextId,o=i.dragHandleUsageInstructionsId,l=i.registry,s=zm(vE),f=s.type,d=s.droppableId,g=Wn(function(){return{id:e.draggableId,index:e.index,type:f,droppableId:d}},[e.draggableId,e.index,f,d]),v=e.children,y=e.draggableId,E=e.isEnabled,k=e.shouldRespectForcePress,x=e.canDragInteractiveElements,w=e.isClone,_=e.mapped,C=e.dropAnimationFinished;if(!w){var T=Wn(function(){return{descriptor:g,registry:l,getDraggableRef:n,canDragInteractiveElements:x,shouldRespectForcePress:k,isEnabled:E}},[g,l,n,x,k,E]);lG(T)}var F=Wn(function(){return E?{tabIndex:0,role:"button","aria-describedby":o,"data-rbd-drag-handle-draggable-id":y,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:sG}:null},[a,o,y,E]),L=gn(function(te){_.type==="DRAGGING"&&_.dropping&&te.propertyName==="transform"&&C()},[C,_]),V=Wn(function(){var te=oG(_),ge=_.type==="DRAGGING"&&_.dropping?L:null,me={innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":y,style:te,onTransitionEnd:ge},dragHandleProps:F};return me},[a,F,y,_,L,r]),j=Wn(function(){return{draggableId:g.id,type:g.type,source:{index:g.index,droppableId:g.droppableId}}},[g.droppableId,g.id,g.index,g.type]);return v(V,_.snapshot,j)}var qI=function(e,t){return e===t},VI=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null},cG=function(t){return t.combine?t.combine.draggableId:null},hG=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function dG(){var e=tn(function(i,a){return{x:i,y:a}}),t=tn(function(i,a,o,l,s){return{isDragging:!0,isClone:a,isDropAnimating:Boolean(s),dropAnimation:s,mode:i,draggingOver:o,combineWith:l,combineTargetFor:null}}),r=tn(function(i,a,o,l,s,f,d){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:f,mode:a,offset:i,dimension:o,forceShouldAnimate:d,snapshot:t(a,l,s,f,null)}}}),n=function(a,o){if(a.isDragging){if(a.critical.draggable.id!==o.draggableId)return null;var l=a.current.client.offset,s=a.dimensions.draggables[o.draggableId],f=J0(a.impact),d=hG(a.impact),g=a.forceShouldAnimate;return r(e(l.x,l.y),a.movementMode,s,o.isClone,f,d,g)}if(a.phase==="DROP_ANIMATING"){var v=a.completed;if(v.result.draggableId!==o.draggableId)return null;var y=o.isClone,E=a.dimensions.draggables[o.draggableId],k=v.result,x=k.mode,w=VI(k),_=cG(k),C=a.dropDuration,T={duration:C,curve:dE.drop,moveTo:a.newHomeClientOffset,opacity:_?Ld.opacity.drop:null,scale:_?Ld.scale.drop:null};return{mapped:{type:"DRAGGING",offset:a.newHomeClientOffset,dimension:E,dropping:T,draggingOver:w,combineWith:_,mode:x,forceShouldAnimate:null,snapshot:t(x,y,w,_,T)}}}return null};return n}function YI(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var pG={mapped:{type:"SECONDARY",offset:El,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:YI(null)}};function vG(){var e=tn(function(o,l){return{x:o,y:l}}),t=tn(YI),r=tn(function(o,l,s){return l===void 0&&(l=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:l,shouldAnimateDisplacement:s,snapshot:t(l)}}}),n=function(l){return l?r(El,l,!0):null},i=function(l,s,f,d){var g=f.displaced.visible[l],v=Boolean(d.inVirtualList&&d.effected[l]),y=bj(f),E=y&&y.draggableId===l?s:null;if(!g){if(!v)return n(E);if(f.displaced.invisible[l])return null;var k=uj(d.displacedBy.point),x=e(k.x,k.y);return r(x,E,!0)}if(v)return n(E);var w=f.displacedBy.point,_=e(w.x,w.y);return r(_,E,g.shouldAnimate)},a=function(l,s){if(l.isDragging)return l.critical.draggable.id===s.draggableId?null:i(s.draggableId,l.critical.draggable.id,l.impact,l.afterCritical);if(l.phase==="DROP_ANIMATING"){var f=l.completed;return f.result.draggableId===s.draggableId?null:i(s.draggableId,f.result.draggableId,f.impact,f.afterCritical)}return null};return a}var mG=function(){var t=dG(),r=vG(),n=function(a,o){return t(a,o)||r(a,o)||pG};return n},gG={dropAnimationFinished:Sj},yG=fE(mG,gG,null,{context:GI,pure:!0,areStatePropsEqual:qI})(fG);function XI(e){var t=zm(vE),r=t.isUsingCloneFor;return r===e.draggableId&&!e.isClone?null:wr.createElement(yG,e)}function nae(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return wr.createElement(XI,ti({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}function bG(e){var t=zt.useContext(pE);t||pi(!1);var r=t.contextId,n=t.isMovementAllowed,i=zt.useRef(null),a=zt.useRef(null),o=e.children,l=e.droppableId,s=e.type,f=e.mode,d=e.direction,g=e.ignoreContainerClipping,v=e.isDropDisabled,y=e.isCombineEnabled,E=e.snapshot,k=e.useClone,x=e.updateViewportMaxScroll,w=e.getContainerForClone,_=gn(function(){return i.current},[]),C=gn(function(me){i.current=me},[]);gn(function(){return a.current},[]);var T=gn(function(me){a.current=me},[]),F=gn(function(){n()&&x({maxScroll:Tj()})},[n,x]);Xj({droppableId:l,type:s,mode:f,direction:d,isDropDisabled:v,isCombineEnabled:y,ignoreContainerClipping:g,getDroppableRef:_});var L=wr.createElement(eG,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(me){var ke=me.onClose,Fe=me.data,Le=me.animate;return wr.createElement(Jj,{placeholder:Fe,onClose:ke,innerRef:T,animate:Le,contextId:r,onTransitionEnd:F})}),V=Wn(function(){return{innerRef:C,placeholder:L,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":r}}},[r,l,L,C]),j=k?k.dragging.draggableId:null,te=Wn(function(){return{droppableId:l,type:s,isUsingCloneFor:j}},[l,j,s]);function ge(){if(!k)return null;var me=k.dragging,ke=k.render,Fe=wr.createElement(XI,{draggableId:me.draggableId,index:me.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Le,ut){return ke(Le,ut,me)});return Bh.createPortal(Fe,w())}return wr.createElement(vE.Provider,{value:te},o(V,E),ge())}var Yb=function(t,r){return t===r.droppable.type},BC=function(t,r){return r.draggables[t.draggable.id]},xG=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=ti({},t,{shouldAnimatePlaceholder:!1}),n=tn(function(o){return{draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}}}),i=tn(function(o,l,s,f,d,g){var v=d.descriptor.id,y=d.descriptor.droppableId===o;if(y){var E=g?{render:g,dragging:n(d.descriptor)}:null,k={isDraggingOver:s,draggingOverWith:s?v:null,draggingFromThisWith:v,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!1,snapshot:k,useClone:E}}if(!l)return r;if(!f)return t;var x={isDraggingOver:s,draggingOverWith:v,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!0,snapshot:x,useClone:null}}),a=function(l,s){var f=s.droppableId,d=s.type,g=!s.isDropDisabled,v=s.renderClone;if(l.isDragging){var y=l.critical;if(!Yb(d,y))return r;var E=BC(y,l.dimensions),k=J0(l.impact)===f;return i(f,g,k,k,E,v)}if(l.phase==="DROP_ANIMATING"){var x=l.completed;if(!Yb(d,x.critical))return r;var w=BC(x.critical,l.dimensions);return i(f,g,VI(x.result)===f,J0(x.impact)===f,w,v)}if(l.phase==="IDLE"&&l.completed&&!l.shouldFlush){var _=l.completed;if(!Yb(d,_.critical))return r;var C=J0(_.impact)===f,T=Boolean(_.impact.at&&_.impact.at.type==="COMBINE"),F=_.critical.droppable.id===f;return C?T?t:r:F?t:r}return r};return a},wG={updateViewportMaxScroll:_j};function _G(){return document.body||pi(!1),document.body}var SG={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:_G},EG=fE(xG,wG,null,{context:GI,pure:!0,areStatePropsEqual:qI})(bG);EG.defaultProps=SG;var AG=typeof performance=="object"&&typeof performance.now=="function",zC=AG?function(){return performance.now()}:function(){return Date.now()};function UC(e){cancelAnimationFrame(e.id)}function TG(e,t){var r=zC();function n(){zC()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var Fs=null;function jC(e){if(e===void 0&&(e=!1),Fs===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Fs="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Fs="negative":Fs="positive-ascending"),document.body.removeChild(t),Fs}return Fs}var CG=150,OG=function(t,r){return t};function kG(e){var t,r,n=e.getItemOffset,i=e.getEstimatedTotalSize,a=e.getItemSize,o=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,f=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return r=t=function(v){tp(y,v);function y(k){var x;return x=v.call(this,k)||this,x._instanceProps=f(x.props,t0(t0(x))),x._outerRef=void 0,x._resetIsScrollingTimeoutId=null,x.state={instance:t0(t0(x)),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof x.props.initialScrollOffset=="number"?x.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},x._callOnItemsRendered=void 0,x._callOnItemsRendered=tn(function(w,_,C,T){return x.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:_,visibleStartIndex:C,visibleStopIndex:T})}),x._callOnScroll=void 0,x._callOnScroll=tn(function(w,_,C){return x.props.onScroll({scrollDirection:w,scrollOffset:_,scrollUpdateWasRequested:C})}),x._getItemStyle=void 0,x._getItemStyle=function(w){var _=x.props,C=_.direction,T=_.itemSize,F=_.layout,L=x._getItemStyleCache(d&&T,d&&F,d&&C),V;if(L.hasOwnProperty(w))V=L[w];else{var j=n(x.props,w,x._instanceProps),te=a(x.props,w,x._instanceProps),ge=C==="horizontal"||F==="horizontal",me=C==="rtl",ke=ge?j:0;L[w]=V={position:"absolute",left:me?void 0:ke,right:me?ke:void 0,top:ge?0:j,height:ge?"100%":te,width:ge?te:"100%"}}return V},x._getItemStyleCache=void 0,x._getItemStyleCache=tn(function(w,_,C){return{}}),x._onScrollHorizontal=function(w){var _=w.currentTarget,C=_.clientWidth,T=_.scrollLeft,F=_.scrollWidth;x.setState(function(L){if(L.scrollOffset===T)return null;var V=x.props.direction,j=T;if(V==="rtl")switch(jC()){case"negative":j=-T;break;case"positive-descending":j=F-C-T;break}return j=Math.max(0,Math.min(j,F-C)),{isScrolling:!0,scrollDirection:L.scrollOffset<T?"forward":"backward",scrollOffset:j,scrollUpdateWasRequested:!1}},x._resetIsScrollingDebounced)},x._onScrollVertical=function(w){var _=w.currentTarget,C=_.clientHeight,T=_.scrollHeight,F=_.scrollTop;x.setState(function(L){if(L.scrollOffset===F)return null;var V=Math.max(0,Math.min(F,T-C));return{isScrolling:!0,scrollDirection:L.scrollOffset<V?"forward":"backward",scrollOffset:V,scrollUpdateWasRequested:!1}},x._resetIsScrollingDebounced)},x._outerRefSetter=function(w){var _=x.props.outerRef;x._outerRef=w,typeof _=="function"?_(w):_!=null&&typeof _=="object"&&_.hasOwnProperty("current")&&(_.current=w)},x._resetIsScrollingDebounced=function(){x._resetIsScrollingTimeoutId!==null&&UC(x._resetIsScrollingTimeoutId),x._resetIsScrollingTimeoutId=TG(x._resetIsScrolling,CG)},x._resetIsScrolling=function(){x._resetIsScrollingTimeoutId=null,x.setState({isScrolling:!1},function(){x._getItemStyleCache(-1,null)})},x}y.getDerivedStateFromProps=function(x,w){return MG(x,w),g(x),null};var E=y.prototype;return E.scrollTo=function(x){x=Math.max(0,x),this.setState(function(w){return w.scrollOffset===x?null:{scrollDirection:w.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},E.scrollToItem=function(x,w){w===void 0&&(w="auto");var _=this.props.itemCount,C=this.state.scrollOffset;x=Math.max(0,Math.min(x,_-1)),this.scrollTo(o(this.props,x,w,C,this._instanceProps))},E.componentDidMount=function(){var x=this.props,w=x.direction,_=x.initialScrollOffset,C=x.layout;if(typeof _=="number"&&this._outerRef!=null){var T=this._outerRef;w==="horizontal"||C==="horizontal"?T.scrollLeft=_:T.scrollTop=_}this._callPropsCallbacks()},E.componentDidUpdate=function(){var x=this.props,w=x.direction,_=x.layout,C=this.state,T=C.scrollOffset,F=C.scrollUpdateWasRequested;if(F&&this._outerRef!=null){var L=this._outerRef;if(w==="horizontal"||_==="horizontal")if(w==="rtl")switch(jC()){case"negative":L.scrollLeft=-T;break;case"positive-ascending":L.scrollLeft=T;break;default:var V=L.clientWidth,j=L.scrollWidth;L.scrollLeft=j-V-T;break}else L.scrollLeft=T;else L.scrollTop=T}this._callPropsCallbacks()},E.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&UC(this._resetIsScrollingTimeoutId)},E.render=function(){var x=this.props,w=x.children,_=x.className,C=x.direction,T=x.height,F=x.innerRef,L=x.innerElementType,V=x.innerTagName,j=x.itemCount,te=x.itemData,ge=x.itemKey,me=ge===void 0?OG:ge,ke=x.layout,Fe=x.outerElementType,Le=x.outerTagName,ut=x.style,nt=x.useIsScrolling,De=x.width,We=this.state.isScrolling,_t=C==="horizontal"||ke==="horizontal",He=_t?this._onScrollHorizontal:this._onScrollVertical,we=this._getRangeToRender(),qe=we[0],st=we[1],Ke=[];if(j>0)for(var ct=qe;ct<=st;ct++)Ke.push(zt.createElement(w,{data:te,key:me(ct,te),index:ct,isScrolling:nt?We:void 0,style:this._getItemStyle(ct)}));var yt=i(this.props,this._instanceProps);return zt.createElement(Fe||Le||"div",{className:_,onScroll:He,ref:this._outerRefSetter,style:ti({position:"relative",height:T,width:De,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},ut)},zt.createElement(L||V||"div",{children:Ke,ref:F,style:{height:_t?"100%":yt,pointerEvents:We?"none":void 0,width:_t?yt:"100%"}}))},E._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var x=this.props.itemCount;if(x>0){var w=this._getRangeToRender(),_=w[0],C=w[1],T=w[2],F=w[3];this._callOnItemsRendered(_,C,T,F)}}if(typeof this.props.onScroll=="function"){var L=this.state,V=L.scrollDirection,j=L.scrollOffset,te=L.scrollUpdateWasRequested;this._callOnScroll(V,j,te)}},E._getRangeToRender=function(){var x=this.props,w=x.itemCount,_=x.overscanCount,C=this.state,T=C.isScrolling,F=C.scrollDirection,L=C.scrollOffset;if(w===0)return[0,0,0,0];var V=l(this.props,L,this._instanceProps),j=s(this.props,V,L,this._instanceProps),te=!T||F==="backward"?Math.max(1,_):1,ge=!T||F==="forward"?Math.max(1,_):1;return[Math.max(0,V-te),Math.max(0,Math.min(w-1,j+ge)),V,j]},y}(zt.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var MG=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},iae=kG({getItemOffset:function(t,r){var n=t.itemSize;return r*n},getItemSize:function(t,r){var n=t.itemSize;return n},getEstimatedTotalSize:function(t){var r=t.itemCount,n=t.itemSize;return n*r},getOffsetForIndexAndAlignment:function(t,r,n,i){var a=t.direction,o=t.height,l=t.itemCount,s=t.itemSize,f=t.layout,d=t.width,g=a==="horizontal"||f==="horizontal",v=g?d:o,y=Math.max(0,l*s-v),E=Math.min(y,r*s),k=Math.max(0,r*s-v+s);switch(n==="smart"&&(i>=k-v&&i<=E+v?n="auto":n="center"),n){case"start":return E;case"end":return k;case"center":{var x=Math.round(k+(E-k)/2);return x<Math.ceil(v/2)?0:x>y+Math.floor(v/2)?y:x}case"auto":default:return i>=k&&i<=E?i:i<k?k:E}},getStartIndexForOffset:function(t,r){var n=t.itemCount,i=t.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/i)))},getStopIndexForStartIndex:function(t,r,n){var i=t.direction,a=t.height,o=t.itemCount,l=t.itemSize,s=t.layout,f=t.width,d=i==="horizontal"||s==="horizontal",g=r*l,v=d?f:a,y=Math.ceil((v+n-g)/l);return Math.max(0,Math.min(o-1,r+y-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}}),RG=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},PG=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),IG=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},FG=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},GC=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},NG=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(f){a=!0,o=f}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Pi=void 0;typeof window<"u"?Pi=window:typeof self<"u"?Pi=self:Pi=global;var F_=null,N_=null,WC=20,Xb=Pi.clearTimeout,HC=Pi.setTimeout,Kb=Pi.cancelAnimationFrame||Pi.mozCancelAnimationFrame||Pi.webkitCancelAnimationFrame,qC=Pi.requestAnimationFrame||Pi.mozRequestAnimationFrame||Pi.webkitRequestAnimationFrame;Kb==null||qC==null?(F_=Xb,N_=function(t){return HC(t,WC)}):(F_=function(t){var r=NG(t,2),n=r[0],i=r[1];Kb(n),Xb(i)},N_=function(t){var r=qC(function(){Xb(n),t()}),n=HC(function(){Kb(r),t()},WC);return[r,n]});function LG(e){var t=void 0,r=void 0,n=void 0,i=void 0,a=void 0,o=void 0,l=void 0,s=typeof document<"u"&&document.attachEvent;if(!s){o=function(T){var F=T.__resizeTriggers__,L=F.firstElementChild,V=F.lastElementChild,j=L.firstElementChild;V.scrollLeft=V.scrollWidth,V.scrollTop=V.scrollHeight,j.style.width=L.offsetWidth+1+"px",j.style.height=L.offsetHeight+1+"px",L.scrollLeft=L.scrollWidth,L.scrollTop=L.scrollHeight},a=function(T){return T.offsetWidth!==T.__resizeLast__.width||T.offsetHeight!==T.__resizeLast__.height},l=function(T){if(!(T.target.className&&typeof T.target.className.indexOf=="function"&&T.target.className.indexOf("contract-trigger")<0&&T.target.className.indexOf("expand-trigger")<0)){var F=this;o(this),this.__resizeRAF__&&F_(this.__resizeRAF__),this.__resizeRAF__=N_(function(){a(F)&&(F.__resizeLast__.width=F.offsetWidth,F.__resizeLast__.height=F.offsetHeight,F.__resizeListeners__.forEach(function(j){j.call(F,T)}))})}};var f=!1,d="";n="animationstart";var g="Webkit Moz O ms".split(" "),v="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),y="";{var E=document.createElement("fakeelement");if(E.style.animationName!==void 0&&(f=!0),f===!1){for(var k=0;k<g.length;k++)if(E.style[g[k]+"AnimationName"]!==void 0){y=g[k],d="-"+y.toLowerCase()+"-",n=v[k],f=!0;break}}}r="resizeanim",t="@"+d+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",i=d+"animation: 1ms "+r+"; "}var x=function(T){if(!T.getElementById("detectElementResize")){var F=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',L=T.head||T.getElementsByTagName("head")[0],V=T.createElement("style");V.id="detectElementResize",V.type="text/css",e!=null&&V.setAttribute("nonce",e),V.styleSheet?V.styleSheet.cssText=F:V.appendChild(T.createTextNode(F)),L.appendChild(V)}},w=function(T,F){if(s)T.attachEvent("onresize",F);else{if(!T.__resizeTriggers__){var L=T.ownerDocument,V=Pi.getComputedStyle(T);V&&V.position==="static"&&(T.style.position="relative"),x(L),T.__resizeLast__={},T.__resizeListeners__=[],(T.__resizeTriggers__=L.createElement("div")).className="resize-triggers";var j=L.createElement("div");j.className="expand-trigger",j.appendChild(L.createElement("div"));var te=L.createElement("div");te.className="contract-trigger",T.__resizeTriggers__.appendChild(j),T.__resizeTriggers__.appendChild(te),T.appendChild(T.__resizeTriggers__),o(T),T.addEventListener("scroll",l,!0),n&&(T.__resizeTriggers__.__animationListener__=function(me){me.animationName===r&&o(T)},T.__resizeTriggers__.addEventListener(n,T.__resizeTriggers__.__animationListener__))}T.__resizeListeners__.push(F)}},_=function(T,F){if(s)T.detachEvent("onresize",F);else if(T.__resizeListeners__.splice(T.__resizeListeners__.indexOf(F),1),!T.__resizeListeners__.length){T.removeEventListener("scroll",l,!0),T.__resizeTriggers__.__animationListener__&&(T.__resizeTriggers__.removeEventListener(n,T.__resizeTriggers__.__animationListener__),T.__resizeTriggers__.__animationListener__=null);try{T.__resizeTriggers__=!T.removeChild(T.__resizeTriggers__)}catch{}}};return{addResizeListener:w,removeResizeListener:_}}var DG=function(e){FG(t,e);function t(){var r,n,i,a;RG(this,t);for(var o=arguments.length,l=Array(o),s=0;s<o;s++)l[s]=arguments[s];return a=(n=(i=GC(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(l))),i),i.state={height:i.props.defaultHeight||0,width:i.props.defaultWidth||0},i._onResize=function(){var f=i.props,d=f.disableHeight,g=f.disableWidth,v=f.onResize;if(i._parentNode){var y=i._parentNode.offsetHeight||0,E=i._parentNode.offsetWidth||0,k=window.getComputedStyle(i._parentNode)||{},x=parseInt(k.paddingLeft,10)||0,w=parseInt(k.paddingRight,10)||0,_=parseInt(k.paddingTop,10)||0,C=parseInt(k.paddingBottom,10)||0,T=y-_-C,F=E-x-w;(!d&&i.state.height!==T||!g&&i.state.width!==F)&&(i.setState({height:y-_-C,width:E-x-w}),v({height:y,width:E}))}},i._setRef=function(f){i._autoSizer=f},n),GC(i,a)}return PG(t,[{key:"componentDidMount",value:function(){var n=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=LG(n),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var n=this.props,i=n.children,a=n.className,o=n.disableHeight,l=n.disableWidth,s=n.style,f=this.state,d=f.height,g=f.width,v={overflow:"visible"},y={},E=!1;return o||(d===0&&(E=!0),v.height=0,y.height=d),l||(g===0&&(E=!0),v.width=0,y.width=g),zt.createElement("div",{className:a,ref:this._setRef,style:IG({},v,s)},!E&&i(y))}}]),t}(zt.PureComponent);DG.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var $G=9007199254740991,BG="[object Arguments]",zG="[object Function]",UG="[object GeneratorFunction]",jG=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,GG=typeof self=="object"&&self&&self.Object===Object&&self,WG=jG||GG||Function("return this")();function HG(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var mE=Object.prototype,qG=mE.hasOwnProperty,KI=mE.toString,VC=WG.Symbol,VG=mE.propertyIsEnumerable,YC=VC?VC.isConcatSpreadable:void 0;function QI(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=YG),i||(i=[]);++a<o;){var l=e[a];t>0&&r(l)?t>1?QI(l,t-1,r,n,i):HG(i,l):n||(i[i.length]=l)}return i}function YG(e){return QG(e)||KG(e)||!!(YC&&e&&e[YC])}function XG(e){var t=e?e.length:0;return t?QI(e,1):[]}function KG(e){return JG(e)&&qG.call(e,"callee")&&(!VG.call(e,"callee")||KI.call(e)==BG)}var QG=Array.isArray;function ZG(e){return e!=null&&tW(e.length)&&!eW(e)}function JG(e){return nW(e)&&ZG(e)}function eW(e){var t=rW(e)?KI.call(e):"";return t==zG||t==UG}function tW(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$G}function rW(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function nW(e){return!!e&&typeof e=="object"}var iW=XG;const aae=iW;var XC=0/0,aW="[object Symbol]",oW=/^\s+|\s+$/g,uW=/^[-+]0x[0-9a-f]+$/i,lW=/^0b[01]+$/i,sW=/^0o[0-7]+$/i,fW=parseInt,cW=Object.prototype,hW=cW.toString;function dW(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}function KC(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function pW(e){return!!e&&typeof e=="object"}function vW(e){return typeof e=="symbol"||pW(e)&&hW.call(e)==aW}function Qb(e){if(typeof e=="number")return e;if(vW(e))return XC;if(KC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=KC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(oW,"");var r=lW.test(e);return r||sW.test(e)?fW(e.slice(2),r?2:8):uW.test(e)?XC:+e}function mW(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=Qb(r),r=r===r?r:0),t!==void 0&&(t=Qb(t),t=t===t?t:0),dW(Qb(e),t,r)}var gW=mW;const oae=gW;function bh(e){return e&&e.__esModule?e.default:e}function ta(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var ZI={};ta(ZI,"spectrum--darkest",()=>L_,e=>L_=e);var L_;L_="spectrum--darkest_256eeb";var yu={};ta(yu,"spectrum",()=>D_,e=>D_=e);ta(yu,"spectrum--medium",()=>$_,e=>$_=e);ta(yu,"spectrum--large",()=>B_,e=>B_=e);ta(yu,"spectrum--darkest",()=>z_,e=>z_=e);ta(yu,"spectrum--dark",()=>U_,e=>U_=e);ta(yu,"spectrum--light",()=>j_,e=>j_=e);ta(yu,"spectrum--lightest",()=>G_,e=>G_=e);var D_,$_,B_,z_,U_,j_,G_;D_="spectrum_9e130c";$_="spectrum--medium_9e130c";B_="spectrum--large_9e130c";z_="spectrum--darkest_9e130c";U_="spectrum--dark_9e130c";j_="spectrum--light_9e130c";G_="spectrum--lightest_9e130c";var JI={};ta(JI,"spectrum--large",()=>W_,e=>W_=e);var W_;W_="spectrum--large_c40598";var e4={};ta(e4,"spectrum--light",()=>H_,e=>H_=e);var H_;H_="spectrum--light_a40724";var t4={};ta(t4,"spectrum--medium",()=>q_,e=>q_=e);var q_;q_="spectrum--medium_4b172c";let uae={global:bh(yu),light:bh(e4),dark:bh(ZI),medium:bh(t4),large:bh(JI)};var QC=Object.prototype.toString,r4=function(t){var r=QC.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&QC.call(t.callee)==="[object Function]"),n},Zb,ZC;function yW(){if(ZC)return Zb;ZC=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=r4,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(v){var y=v.constructor;return y&&y.prototype===v},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var v in window)try{if(!f["$"+v]&&t.call(window,v)&&window[v]!==null&&typeof window[v]=="object")try{s(window[v])}catch{return!0}}catch{return!0}return!1}(),g=function(v){if(typeof window>"u"||!d)return s(v);try{return s(v)}catch{return!1}};e=function(y){var E=y!==null&&typeof y=="object",k=r.call(y)==="[object Function]",x=n(y),w=E&&r.call(y)==="[object String]",_=[];if(!E&&!k&&!x)throw new TypeError("Object.keys called on a non-object");var C=o&&k;if(w&&y.length>0&&!t.call(y,0))for(var T=0;T<y.length;++T)_.push(String(T));if(x&&y.length>0)for(var F=0;F<y.length;++F)_.push(String(F));else for(var L in y)!(C&&L==="prototype")&&t.call(y,L)&&_.push(String(L));if(a)for(var V=g(y),j=0;j<l.length;++j)!(V&&l[j]==="constructor")&&t.call(y,l[j])&&_.push(l[j]);return _}}return Zb=e,Zb}var bW=Array.prototype.slice,xW=r4,JC=Object.keys,tm=JC?function(t){return JC(t)}:yW(),eO=Object.keys;tm.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return xW(n)?eO(bW.call(n)):eO(n)})}else Object.keys=tm;return Object.keys||tm};var gE=tm,iy=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0},wW=iy,bu=function(){return wW()&&!!Symbol.toStringTag},tO=typeof Symbol<"u"&&Symbol,_W=iy,yE=function(){return typeof tO!="function"||typeof Symbol!="function"||typeof tO("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:_W()},SW="Function.prototype.bind called on incompatible ",Jb=Array.prototype.slice,EW=Object.prototype.toString,AW="[object Function]",TW=function(t){var r=this;if(typeof r!="function"||EW.call(r)!==AW)throw new TypeError(SW+r);for(var n=Jb.call(arguments,1),i,a=function(){if(this instanceof i){var d=r.apply(this,n.concat(Jb.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(Jb.call(arguments)))},o=Math.max(0,r.length-n.length),l=[],s=0;s<o;s++)l.push("$"+s);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var f=function(){};f.prototype=r.prototype,i.prototype=new f,f.prototype=null}return i},CW=TW,bE=Function.prototype.bind||CW,OW=bE,kW=OW.call(Function.call,Object.prototype.hasOwnProperty),mr,Of=SyntaxError,n4=Function,pf=TypeError,ex=function(e){try{return n4('"use strict"; return ('+e+").constructor;")()}catch{}},vl=Object.getOwnPropertyDescriptor;if(vl)try{vl({},"")}catch{vl=null}var tx=function(){throw new pf},MW=vl?function(){try{return arguments.callee,tx}catch{try{return vl(arguments,"callee").get}catch{return tx}}}():tx,Ns=yE(),Bo=Object.getPrototypeOf||function(e){return e.__proto__},Gs={},RW=typeof Uint8Array>"u"?mr:Bo(Uint8Array),vf={"%AggregateError%":typeof AggregateError>"u"?mr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?mr:ArrayBuffer,"%ArrayIteratorPrototype%":Ns?Bo([][Symbol.iterator]()):mr,"%AsyncFromSyncIteratorPrototype%":mr,"%AsyncFunction%":Gs,"%AsyncGenerator%":Gs,"%AsyncGeneratorFunction%":Gs,"%AsyncIteratorPrototype%":Gs,"%Atomics%":typeof Atomics>"u"?mr:Atomics,"%BigInt%":typeof BigInt>"u"?mr:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?mr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?mr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?mr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?mr:FinalizationRegistry,"%Function%":n4,"%GeneratorFunction%":Gs,"%Int8Array%":typeof Int8Array>"u"?mr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?mr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?mr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ns?Bo(Bo([][Symbol.iterator]())):mr,"%JSON%":typeof JSON=="object"?JSON:mr,"%Map%":typeof Map>"u"?mr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ns?mr:Bo(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?mr:Promise,"%Proxy%":typeof Proxy>"u"?mr:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?mr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?mr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ns?mr:Bo(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?mr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ns?Bo(""[Symbol.iterator]()):mr,"%Symbol%":Ns?Symbol:mr,"%SyntaxError%":Of,"%ThrowTypeError%":MW,"%TypedArray%":RW,"%TypeError%":pf,"%Uint8Array%":typeof Uint8Array>"u"?mr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?mr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?mr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?mr:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?mr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?mr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?mr:WeakSet},PW=function e(t){var r;if(t==="%AsyncFunction%")r=ex("async function () {}");else if(t==="%GeneratorFunction%")r=ex("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=ex("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=Bo(i.prototype))}return vf[t]=r,r},rO={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},gp=bE,Um=kW,IW=gp.call(Function.call,Array.prototype.concat),FW=gp.call(Function.apply,Array.prototype.splice),nO=gp.call(Function.call,String.prototype.replace),jm=gp.call(Function.call,String.prototype.slice),NW=gp.call(Function.call,RegExp.prototype.exec),LW=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,DW=/\\(\\)?/g,$W=function(t){var r=jm(t,0,1),n=jm(t,-1);if(r==="%"&&n!=="%")throw new Of("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Of("invalid intrinsic syntax, expected opening `%`");var i=[];return nO(t,LW,function(a,o,l,s){i[i.length]=l?nO(s,DW,"$1"):o||a}),i},BW=function(t,r){var n=t,i;if(Um(rO,n)&&(i=rO[n],n="%"+i[0]+"%"),Um(vf,n)){var a=vf[n];if(a===Gs&&(a=PW(n)),typeof a>"u"&&!r)throw new pf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new Of("intrinsic "+t+" does not exist!")},xu=function(t,r){if(typeof t!="string"||t.length===0)throw new pf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new pf('"allowMissing" argument must be a boolean');if(NW(/^%?[^%]*%?$/,t)===null)throw new Of("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=$W(t),i=n.length>0?n[0]:"",a=BW("%"+i+"%",r),o=a.name,l=a.value,s=!1,f=a.alias;f&&(i=f[0],FW(n,IW([0,1],f)));for(var d=1,g=!0;d<n.length;d+=1){var v=n[d],y=jm(v,0,1),E=jm(v,-1);if((y==='"'||y==="'"||y==="`"||E==='"'||E==="'"||E==="`")&&y!==E)throw new Of("property names with quotes must have matching quotes");if((v==="constructor"||!g)&&(s=!0),i+="."+v,o="%"+i+"%",Um(vf,o))l=vf[o];else if(l!=null){if(!(v in l)){if(!r)throw new pf("base intrinsic for "+t+" exists, but the property is not available.");return}if(vl&&d+1>=n.length){var k=vl(l,v);g=!!k,g&&"get"in k&&!("originalValue"in k.get)?l=k.get:l=l[v]}else g=Um(l,v),l=l[v];g&&!s&&(vf[o]=l)}}return l},kf={},zW={get exports(){return kf},set exports(e){kf=e}};(function(e){var t=bE,r=xu,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(i,n),o=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(g){var v=a(t,i,arguments);if(o&&l){var y=o(v,"length");y.configurable&&l(v,"length",{value:1+s(0,g.length-(arguments.length-1))})}return v};var f=function(){return a(t,n,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f})(zW);var i4=xu,a4=kf,UW=a4(i4("String.prototype.indexOf")),Aa=function(t,r){var n=i4(t,!!r);return typeof n=="function"&&UW(t,".prototype.")>-1?a4(n):n},jW=bu(),GW=Aa,V_=GW("Object.prototype.toString"),ay=function(t){return jW&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:V_(t)==="[object Arguments]"},o4=function(t){return ay(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&V_(t)!=="[object Array]"&&V_(t.callee)==="[object Function]"},WW=function(){return ay(arguments)}();ay.isLegacyArguments=o4;var u4=WW?ay:o4,HW=xu,Y_=HW("%Object.defineProperty%",!0),X_=function(){if(Y_)try{return Y_({},"a",{value:1}),!0}catch{return!1}return!1};X_.hasArrayLengthDefineBug=function(){if(!X_())return null;try{return Y_([],"length",{value:1}).length!==1}catch{return!0}};var qW=X_,VW=gE,YW=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",XW=Object.prototype.toString,KW=Array.prototype.concat,l4=Object.defineProperty,QW=function(e){return typeof e=="function"&&XW.call(e)==="[object Function]"},ZW=qW(),s4=l4&&ZW,JW=function(e,t,r,n){t in e&&(!QW(n)||!n())||(s4?l4(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},f4=function(e,t){var r=arguments.length>2?arguments[2]:{},n=VW(t);YW&&(n=KW.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)JW(e,n[i],t[n[i]],r[n[i]])};f4.supportsDescriptors=!!s4;var Ul=f4,iO=function(e){return e!==e},c4=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||iO(t)&&iO(r))},eH=c4,h4=function(){return typeof Object.is=="function"?Object.is:eH},tH=h4,rH=Ul,nH=function(){var t=tH();return rH(Object,{is:t},{is:function(){return Object.is!==t}}),t},iH=Ul,aH=kf,oH=c4,d4=h4,uH=nH,p4=aH(d4(),Object);iH(p4,{getPolyfill:d4,implementation:oH,shim:uH});var lH=p4,K_=Aa,v4=bu(),m4,g4,Q_,Z_;if(v4){m4=K_("Object.prototype.hasOwnProperty"),g4=K_("RegExp.prototype.exec"),Q_={};var rx=function(){throw Q_};Z_={toString:rx,valueOf:rx},typeof Symbol.toPrimitive=="symbol"&&(Z_[Symbol.toPrimitive]=rx)}var sH=K_("Object.prototype.toString"),fH=Object.getOwnPropertyDescriptor,cH="[object RegExp]",hH=v4?function(t){if(!t||typeof t!="object")return!1;var r=fH(t,"lastIndex"),n=r&&m4(r,"value");if(!n)return!1;try{g4(t,Z_)}catch(i){return i===Q_}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:sH(t)===cH},Gm={},dH={get exports(){return Gm},set exports(e){Gm=e}},Dd=function(){return typeof function(){}.name=="string"},ld=Object.getOwnPropertyDescriptor;if(ld)try{ld([],"length")}catch{ld=null}Dd.functionsHaveConfigurableNames=function(){if(!Dd()||!ld)return!1;var t=ld(function(){},"name");return!!t&&!!t.configurable};var pH=Function.prototype.bind;Dd.boundFunctionsHaveNames=function(){return Dd()&&typeof pH=="function"&&function(){}.bind().name!==""};var vH=Dd;(function(e){var t=vH.functionsHaveConfigurableNames(),r=Object,n=TypeError;e.exports=function(){if(this!=null&&this!==r(this))throw new n("RegExp.prototype.flags getter called on non-object");var a="";return this.hasIndices&&(a+="d"),this.global&&(a+="g"),this.ignoreCase&&(a+="i"),this.multiline&&(a+="m"),this.dotAll&&(a+="s"),this.unicode&&(a+="u"),this.sticky&&(a+="y"),a},t&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})})(dH);var mH=Gm,gH=Ul.supportsDescriptors,yH=Object.getOwnPropertyDescriptor,y4=function(){if(gH&&/a/mig.flags==="gim"){var t=yH(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return t.get}}return mH},bH=Ul.supportsDescriptors,xH=y4,wH=Object.getOwnPropertyDescriptor,_H=Object.defineProperty,SH=TypeError,aO=Object.getPrototypeOf,EH=/a/,AH=function(){if(!bH||!aO)throw new SH("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=xH(),r=aO(EH),n=wH(r,"flags");return(!n||n.get!==t)&&_H(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},TH=Ul,CH=kf,OH=Gm,b4=y4,kH=AH,x4=CH(b4());TH(x4,{getPolyfill:b4,implementation:OH,shim:kH});var MH=x4,RH={}.toString,w4=Array.isArray||function(e){return RH.call(e)=="[object Array]"},PH=Date.prototype.getDay,IH=function(t){try{return PH.call(t),!0}catch{return!1}},FH=Object.prototype.toString,NH="[object Date]",LH=bu(),DH=function(t){return typeof t!="object"||t===null?!1:LH?IH(t):FH.call(t)===NH},$H=String.prototype.valueOf,BH=function(t){try{return $H.call(t),!0}catch{return!1}},zH=Object.prototype.toString,UH="[object String]",jH=bu(),_4=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:jH?BH(t):zH.call(t)===UH},GH=Number.prototype.toString,WH=function(t){try{return GH.call(t),!0}catch{return!1}},HH=Object.prototype.toString,qH="[object Number]",VH=bu(),YH=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:VH?WH(t):HH.call(t)===qH},S4=Aa,XH=S4("Boolean.prototype.toString"),KH=S4("Object.prototype.toString"),QH=function(t){try{return XH(t),!0}catch{return!1}},ZH="[object Boolean]",JH=bu(),eq=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:JH&&Symbol.toStringTag in t?QH(t):KH(t)===ZH},J_={},oO={get exports(){return J_},set exports(e){J_=e}},tq=Object.prototype.toString,rq=yE();if(rq){var nq=Symbol.prototype.toString,iq=/^Symbol\(.*\)$/,aq=function(t){return typeof t.valueOf()!="symbol"?!1:iq.test(nq.call(t))};oO.exports=function(t){if(typeof t=="symbol")return!0;if(tq.call(t)!=="[object Symbol]")return!1;try{return aq(t)}catch{return!1}}}else oO.exports=function(t){return!1};var e2={},uO={get exports(){return e2},set exports(e){e2=e}},lO=typeof BigInt<"u"&&BigInt,oq=function(){return typeof lO=="function"&&typeof BigInt=="function"&&typeof lO(42)=="bigint"&&typeof BigInt(42)=="bigint"},uq=oq();if(uq){var lq=BigInt.prototype.valueOf,sq=function(t){try{return lq.call(t),!0}catch{}return!1};uO.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:sq(t)}}else uO.exports=function(t){return!1};var fq=_4,cq=YH,hq=eq,dq=J_,pq=e2,vq=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(fq(t))return"String";if(cq(t))return"Number";if(hq(t))return"Boolean";if(dq(t))return"Symbol";if(pq(t))return"BigInt"},xE=typeof Map=="function"&&Map.prototype?Map:null,mq=typeof Set=="function"&&Set.prototype?Set:null,Wm;xE||(Wm=function(t){return!1});var E4=xE?Map.prototype.has:null,sO=mq?Set.prototype.has:null;!Wm&&!E4&&(Wm=function(t){return!1});var A4=Wm||function(t){if(!t||typeof t!="object")return!1;try{if(E4.call(t),sO)try{sO.call(t)}catch{return!0}return t instanceof xE}catch{}return!1},gq=typeof Map=="function"&&Map.prototype?Map:null,wE=typeof Set=="function"&&Set.prototype?Set:null,Hm;wE||(Hm=function(t){return!1});var fO=gq?Map.prototype.has:null,T4=wE?Set.prototype.has:null;!Hm&&!T4&&(Hm=function(t){return!1});var C4=Hm||function(t){if(!t||typeof t!="object")return!1;try{if(T4.call(t),fO)try{fO.call(t)}catch{return!0}return t instanceof wE}catch{}return!1},qm=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,cO=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Vm;qm||(Vm=function(t){return!1});var t2=qm?qm.prototype.has:null,nx=cO?cO.prototype.has:null;!Vm&&!t2&&(Vm=function(t){return!1});var yq=Vm||function(t){if(!t||typeof t!="object")return!1;try{if(t2.call(t,t2),nx)try{nx.call(t,nx)}catch{return!0}return t instanceof qm}catch{}return!1},r2={},hO={get exports(){return r2},set exports(e){r2=e}},bq=xu,O4=Aa,xq=bq("%WeakSet%",!0),ix=O4("WeakSet.prototype.has",!0);if(ix){var ax=O4("WeakMap.prototype.has",!0);hO.exports=function(t){if(!t||typeof t!="object")return!1;try{if(ix(t,ix),ax)try{ax(t,ax)}catch{return!0}return t instanceof xq}catch{}return!1}}else hO.exports=function(t){return!1};var wq=A4,_q=C4,Sq=yq,Eq=r2,Aq=function(t){if(t&&typeof t=="object"){if(wq(t))return"Map";if(_q(t))return"Set";if(Sq(t))return"WeakMap";if(Eq(t))return"WeakSet"}return!1},n2={},ox={get exports(){return n2},set exports(e){n2=e}},dO=u4;if(yE()||iy()){var ux=Symbol.iterator;ox.exports=function(t){if(t!=null&&typeof t[ux]<"u")return t[ux]();if(dO(t))return Array.prototype[ux].call(t)}}else{var Tq=w4,Cq=_4,pO=xu,Oq=pO("%Map%",!0),kq=pO("%Set%",!0),Vi=Aa,vO=Vi("Array.prototype.push"),mO=Vi("String.prototype.charCodeAt"),Mq=Vi("String.prototype.slice"),Rq=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=mO(t,r);if(i<55296||i>56319)return r+1;var a=mO(t,r+1);return a<56320||a>57343?r+1:r+2},lx=function(t){var r=0;return{next:function(){var i=r>=t.length,a;return i||(a=t[r],r+=1),{done:i,value:a}}}},gO=function(t,r){if(Tq(t)||dO(t))return lx(t);if(Cq(t)){var n=0;return{next:function(){var a=Rq(t,n),o=Mq(t,n,a);return n=a,{done:a>t.length,value:o}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!Oq&&!kq)ox.exports=function(t){if(t!=null)return gO(t,!0)};else{var Pq=A4,Iq=C4,yO=Vi("Map.prototype.forEach",!0),bO=Vi("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var xO=Vi("Map.prototype.iterator",!0),wO=Vi("Set.prototype.iterator",!0),_O=function(e){var t=!1;return{next:function(){try{return{done:t,value:t?void 0:e.next()}}catch{return t=!0,{done:!0,value:void 0}}}}};var SO=Vi("Map.prototype.@@iterator",!0)||Vi("Map.prototype._es6-shim iterator_",!0),EO=Vi("Set.prototype.@@iterator",!0)||Vi("Set.prototype._es6-shim iterator_",!0),Fq=function(t){if(Pq(t)){if(xO)return _O(xO(t));if(SO)return SO(t);if(yO){var r=[];return yO(t,function(i,a){vO(r,[a,i])}),lx(r)}}if(Iq(t)){if(wO)return _O(wO(t));if(EO)return EO(t);if(bO){var n=[];return bO(t,function(i){vO(n,i)}),lx(n)}}};ox.exports=function(t){return Fq(t)||gO(t)}}}const Nq={},Lq=Object.freeze(Object.defineProperty({__proto__:null,default:Nq},Symbol.toStringTag,{value:"Module"})),i2=Rl(Lq);var _E=typeof Map=="function"&&Map.prototype,sx=Object.getOwnPropertyDescriptor&&_E?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ym=_E&&sx&&typeof sx.get=="function"?sx.get:null,Dq=_E&&Map.prototype.forEach,SE=typeof Set=="function"&&Set.prototype,fx=Object.getOwnPropertyDescriptor&&SE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Xm=SE&&fx&&typeof fx.get=="function"?fx.get:null,$q=SE&&Set.prototype.forEach,Bq=typeof WeakMap=="function"&&WeakMap.prototype,sd=Bq?WeakMap.prototype.has:null,zq=typeof WeakSet=="function"&&WeakSet.prototype,fd=zq?WeakSet.prototype.has:null,Uq=typeof WeakRef=="function"&&WeakRef.prototype,AO=Uq?WeakRef.prototype.deref:null,jq=Boolean.prototype.valueOf,Gq=Object.prototype.toString,Wq=Function.prototype.toString,Hq=String.prototype.match,EE=String.prototype.slice,Yo=String.prototype.replace,qq=String.prototype.toUpperCase,TO=String.prototype.toLowerCase,k4=RegExp.prototype.test,CO=Array.prototype.concat,ca=Array.prototype.join,Vq=Array.prototype.slice,OO=Math.floor,a2=typeof BigInt=="function"?BigInt.prototype.valueOf:null,cx=Object.getOwnPropertySymbols,o2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Bn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Mf||"symbol")?Symbol.toStringTag:null,M4=Object.prototype.propertyIsEnumerable,kO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function MO(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||k4.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-OO(-e):OO(e);if(n!==e){var i=String(n),a=EE.call(t,i.length+1);return Yo.call(i,r,"$&_")+"."+Yo.call(Yo.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Yo.call(t,r,"$&_")}var u2=i2,RO=u2.custom,PO=P4(RO)?RO:null,Yq=function e(t,r,n,i){var a=r||{};if(zo(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(zo(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=zo(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(zo(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(zo(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return F4(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?MO(t,s):s}if(typeof t=="bigint"){var f=String(t)+"n";return l?MO(t,f):f}var d=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return l2(t)?"[Array]":"[Object]";var g=hV(a,n);if(typeof i>"u")i=[];else if(I4(i,t)>=0)return"[Circular]";function v(Fe,Le,ut){if(Le&&(i=Vq.call(i),i.push(Le)),ut){var nt={depth:a.depth};return zo(a,"quoteStyle")&&(nt.quoteStyle=a.quoteStyle),e(Fe,nt,n+1,i)}return e(Fe,a,n+1,i)}if(typeof t=="function"&&!IO(t)){var y=nV(t),E=v0(t,v);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(E.length>0?" { "+ca.call(E,", ")+" }":"")}if(P4(t)){var k=Mf?Yo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):o2.call(t);return typeof t=="object"&&!Mf?xh(k):k}if(sV(t)){for(var x="<"+TO.call(String(t.nodeName)),w=t.attributes||[],_=0;_<w.length;_++)x+=" "+w[_].name+"="+R4(Xq(w[_].value),"double",a);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+TO.call(String(t.nodeName))+">",x}if(l2(t)){if(t.length===0)return"[]";var C=v0(t,v);return g&&!cV(C)?"["+s2(C,g)+"]":"[ "+ca.call(C,", ")+" ]"}if(Qq(t)){var T=v0(t,v);return!("cause"in Error.prototype)&&"cause"in t&&!M4.call(t,"cause")?"{ ["+String(t)+"] "+ca.call(CO.call("[cause]: "+v(t.cause),T),", ")+" }":T.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ca.call(T,", ")+" }"}if(typeof t=="object"&&o){if(PO&&typeof t[PO]=="function"&&u2)return u2(t,{depth:d-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(iV(t)){var F=[];return Dq.call(t,function(Fe,Le){F.push(v(Le,t,!0)+" => "+v(Fe,t))}),FO("Map",Ym.call(t),F,g)}if(uV(t)){var L=[];return $q.call(t,function(Fe){L.push(v(Fe,t))}),FO("Set",Xm.call(t),L,g)}if(aV(t))return hx("WeakMap");if(lV(t))return hx("WeakSet");if(oV(t))return hx("WeakRef");if(Jq(t))return xh(v(Number(t)));if(tV(t))return xh(v(a2.call(t)));if(eV(t))return xh(jq.call(t));if(Zq(t))return xh(v(String(t)));if(!Kq(t)&&!IO(t)){var V=v0(t,v),j=kO?kO(t)===Object.prototype:t instanceof Object||t.constructor===Object,te=t instanceof Object?"":"null prototype",ge=!j&&Bn&&Object(t)===t&&Bn in t?EE.call(wu(t),8,-1):te?"Object":"",me=j||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",ke=me+(ge||te?"["+ca.call(CO.call([],ge||[],te||[]),": ")+"] ":"");return V.length===0?ke+"{}":g?ke+"{"+s2(V,g)+"}":ke+"{ "+ca.call(V,", ")+" }"}return String(t)};function R4(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function Xq(e){return Yo.call(String(e),/"/g,"&quot;")}function l2(e){return wu(e)==="[object Array]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function Kq(e){return wu(e)==="[object Date]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function IO(e){return wu(e)==="[object RegExp]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function Qq(e){return wu(e)==="[object Error]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function Zq(e){return wu(e)==="[object String]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function Jq(e){return wu(e)==="[object Number]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function eV(e){return wu(e)==="[object Boolean]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function P4(e){if(Mf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!o2)return!1;try{return o2.call(e),!0}catch{}return!1}function tV(e){if(!e||typeof e!="object"||!a2)return!1;try{return a2.call(e),!0}catch{}return!1}var rV=Object.prototype.hasOwnProperty||function(e){return e in this};function zo(e,t){return rV.call(e,t)}function wu(e){return Gq.call(e)}function nV(e){if(e.name)return e.name;var t=Hq.call(Wq.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function I4(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function iV(e){if(!Ym||!e||typeof e!="object")return!1;try{Ym.call(e);try{Xm.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function aV(e){if(!sd||!e||typeof e!="object")return!1;try{sd.call(e,sd);try{fd.call(e,fd)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function oV(e){if(!AO||!e||typeof e!="object")return!1;try{return AO.call(e),!0}catch{}return!1}function uV(e){if(!Xm||!e||typeof e!="object")return!1;try{Xm.call(e);try{Ym.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function lV(e){if(!fd||!e||typeof e!="object")return!1;try{fd.call(e,fd);try{sd.call(e,sd)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function sV(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function F4(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return F4(EE.call(e,0,t.maxStringLength),t)+n}var i=Yo.call(Yo.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,fV);return R4(i,"single",t)}function fV(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+qq.call(t.toString(16))}function xh(e){return"Object("+e+")"}function hx(e){return e+" { ? }"}function FO(e,t,r,n){var i=n?s2(r,n):ca.call(r,", ");return e+" ("+t+") {"+i+"}"}function cV(e){for(var t=0;t<e.length;t++)if(I4(e[t],`
846
+ `)>=0)return!1;return!0}function hV(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ca.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ca.call(Array(t+1),r)}}function s2(e,t){if(e.length===0)return"";var r=`
847
+ `+t.prev+t.base;return r+ca.call(e,","+r)+`
848
+ `+t.prev}function v0(e,t){var r=l2(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=zo(e,i)?t(e[i],e):""}var a=typeof cx=="function"?cx(e):[],o;if(Mf){o={};for(var l=0;l<a.length;l++)o["$"+a[l]]=a[l]}for(var s in e)zo(e,s)&&(r&&String(Number(s))===s&&s<e.length||Mf&&o["$"+s]instanceof Symbol||(k4.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if(typeof cx=="function")for(var f=0;f<a.length;f++)M4.call(e,a[f])&&n.push("["+t(a[f])+"]: "+t(e[a[f]],e));return n}var AE=xu,Vf=Aa,dV=Yq,pV=AE("%TypeError%"),m0=AE("%WeakMap%",!0),g0=AE("%Map%",!0),vV=Vf("WeakMap.prototype.get",!0),mV=Vf("WeakMap.prototype.set",!0),gV=Vf("WeakMap.prototype.has",!0),yV=Vf("Map.prototype.get",!0),bV=Vf("Map.prototype.set",!0),xV=Vf("Map.prototype.has",!0),TE=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},wV=function(e,t){var r=TE(e,t);return r&&r.value},_V=function(e,t,r){var n=TE(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},SV=function(e,t){return!!TE(e,t)},EV=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new pV("Side channel does not contain "+dV(a))},get:function(a){if(m0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return vV(t,a)}else if(g0){if(r)return yV(r,a)}else if(n)return wV(n,a)},has:function(a){if(m0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return gV(t,a)}else if(g0){if(r)return xV(r,a)}else if(n)return SV(n,a);return!1},set:function(a,o){m0&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new m0),mV(t,a,o)):g0?(r||(r=new g0),bV(r,a,o)):(n||(n={key:{},next:null}),_V(n,a,o))}};return i},AV=Object.prototype.hasOwnProperty,TV=Object.prototype.toString,N4=function(t,r,n){if(TV.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var a=0;a<i;a++)r.call(n,t[a],a,t);else for(var o in t)AV.call(t,o)&&r.call(n,t[o],o,t)},dx=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],CV=typeof globalThis>"u"?Jt:globalThis,L4=function(){for(var t=[],r=0;r<dx.length;r++)typeof CV[dx[r]]=="function"&&(t[t.length]=dx[r]);return t},Km={},OV={get exports(){return Km},set exports(e){Km=e}},px,NO;function kV(){if(NO)return px;NO=1;var e=xu,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return px=t,px}var LO;function D4(){return LO||(LO=1,function(e){e.exports=kV()}(OV)),Km}var vx,DO;function MV(){if(DO)return vx;DO=1;var e=N4,t=L4,r=Aa,n=r("Object.prototype.toString"),i=bu(),a=typeof globalThis>"u"?Jt:globalThis,o=t(),l=r("Array.prototype.indexOf",!0)||function(E,k){for(var x=0;x<E.length;x+=1)if(E[x]===k)return x;return-1},s=r("String.prototype.slice"),f={},d=D4(),g=Object.getPrototypeOf;i&&d&&g&&e(o,function(y){var E=new a[y];if(Symbol.toStringTag in E){var k=g(E),x=d(k,Symbol.toStringTag);if(!x){var w=g(k);x=d(w,Symbol.toStringTag)}f[y]=x.get}});var v=function(E){var k=!1;return e(f,function(x,w){if(!k)try{k=x.call(E)===w}catch{}}),k};return vx=function(E){if(!E||typeof E!="object")return!1;if(!i||!(Symbol.toStringTag in E)){var k=s(n(E),8,-1);return l(o,k)>-1}return d?v(E):!1},vx}var $4=N4,RV=L4,B4=Aa,PV=B4("Object.prototype.toString"),z4=bu(),$O=typeof globalThis>"u"?Jt:globalThis,IV=RV(),FV=B4("String.prototype.slice"),U4={},mx=D4(),gx=Object.getPrototypeOf;z4&&mx&&gx&&$4(IV,function(e){if(typeof $O[e]=="function"){var t=new $O[e];if(Symbol.toStringTag in t){var r=gx(t),n=mx(r,Symbol.toStringTag);if(!n){var i=gx(r);n=mx(i,Symbol.toStringTag)}U4[e]=n.get}}});var NV=function(t){var r=!1;return $4(U4,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},LV=MV(),DV=function(t){return LV(t)?!z4||!(Symbol.toStringTag in t)?FV(PV(t),8,-1):NV(t):!1},$V=gE,j4=iy(),G4=Aa,BO=Object,BV=G4("Array.prototype.push"),zO=G4("Object.prototype.propertyIsEnumerable"),zV=j4?Object.getOwnPropertySymbols:null,W4=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=BO(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=BO(arguments[i]),o=$V(a),l=j4&&(Object.getOwnPropertySymbols||zV);if(l)for(var s=l(a),f=0;f<s.length;++f){var d=s[f];zO(a,d)&&BV(o,d)}for(var g=0;g<o.length;++g){var v=o[g];if(zO(a,v)){var y=a[v];n[v]=y}}}return n},yx=W4,UV=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),a="";for(var o in i)a+=o;return e!==a},jV=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1},H4=function(){return!Object.assign||UV()||jV()?yx:Object.assign},GV=Ul,WV=H4,HV=function(){var t=WV();return GV(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},qV=Ul,VV=kf,YV=W4,q4=H4,XV=HV,KV=VV.apply(q4()),V4=function(t,r){return KV(Object,arguments)};qV(V4,{getPolyfill:q4,implementation:YV,shim:XV});var QV=V4,UO=gE,jO=u4,GO=lH,WO=hH,HO=MH,qO=w4,VO=DH,YO=vq,ZV=xu,fo=Aa,XO=Aq,Rf=n2,JV=EV,KO=DV,Y4=QV,QO=fo("Date.prototype.getTime"),bx=Object.getPrototypeOf,ZO=fo("Object.prototype.toString"),Qm=ZV("%Set%",!0),f2=fo("Map.prototype.has",!0),Zm=fo("Map.prototype.get",!0),JO=fo("Map.prototype.size",!0),Jm=fo("Set.prototype.add",!0),X4=fo("Set.prototype.delete",!0),eg=fo("Set.prototype.has",!0),rm=fo("Set.prototype.size",!0);function e5(e,t,r,n){for(var i=Rf(e),a;(a=i.next())&&!a.done;)if(no(t,a.value,r,n))return X4(e,a.value),!0;return!1}function K4(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function eY(e,t,r,n,i,a){var o=K4(r);if(o!=null)return o;var l=Zm(t,o),s=Y4({},i,{strict:!1});return typeof l>"u"&&!f2(t,o)||!no(n,l,s,a)?!1:!f2(e,o)&&no(n,l,s,a)}function tY(e,t,r){var n=K4(r);return n??(eg(t,n)&&!eg(e,n))}function t5(e,t,r,n,i,a){for(var o=Rf(e),l,s;(l=o.next())&&!l.done;)if(s=l.value,no(r,s,i,a)&&no(n,Zm(t,s),i,a))return X4(e,s),!0;return!1}function no(e,t,r,n){var i=r||{};if(i.strict?GO(e,t):e===t)return!0;var a=YO(e),o=YO(t);if(a!==o)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?GO(e,t):e==t;var l=n.has(e),s=n.has(t),f;if(l&&s){if(n.get(e)===n.get(t))return!0}else f={};return l||n.set(e,f),s||n.set(t,f),iY(e,t,i,n)}function r5(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function rY(e,t,r,n){if(rm(e)!==rm(t))return!1;for(var i=Rf(e),a=Rf(t),o,l,s;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object")s||(s=new Qm),Jm(s,o.value);else if(!eg(t,o.value)){if(r.strict||!tY(e,t,o.value))return!1;s||(s=new Qm),Jm(s,o.value)}if(s){for(;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!e5(s,l.value,r.strict,n))return!1}else if(!r.strict&&!eg(e,l.value)&&!e5(s,l.value,r.strict,n))return!1;return rm(s)===0}return!0}function nY(e,t,r,n){if(JO(e)!==JO(t))return!1;for(var i=Rf(e),a=Rf(t),o,l,s,f,d,g;(o=i.next())&&!o.done;)if(f=o.value[0],d=o.value[1],f&&typeof f=="object")s||(s=new Qm),Jm(s,f);else if(g=Zm(t,f),typeof g>"u"&&!f2(t,f)||!no(d,g,r,n)){if(r.strict||!eY(e,t,f,d,r,n))return!1;s||(s=new Qm),Jm(s,f)}if(s){for(;(l=a.next())&&!l.done;)if(f=l.value[0],g=l.value[1],f&&typeof f=="object"){if(!t5(s,e,f,g,r,n))return!1}else if(!r.strict&&(!e.has(f)||!no(Zm(e,f),g,r,n))&&!t5(s,e,f,g,Y4({},r,{strict:!1}),n))return!1;return rm(s)===0}return!0}function iY(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||ZO(e)!==ZO(t)||jO(e)!==jO(t))return!1;var o=qO(e),l=qO(t);if(o!==l)return!1;var s=e instanceof Error,f=t instanceof Error;if(s!==f||(s||f)&&(e.name!==t.name||e.message!==t.message))return!1;var d=WO(e),g=WO(t);if(d!==g||(d||g)&&(e.source!==t.source||HO(e)!==HO(t)))return!1;var v=VO(e),y=VO(t);if(v!==y||(v||y)&&QO(e)!==QO(t)||r.strict&&bx&&bx(e)!==bx(t)||KO(e)!==KO(t))return!1;var E=r5(e),k=r5(t);if(E!==k)return!1;if(E||k){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;var x=UO(e),w=UO(t);if(x.length!==w.length)return!1;for(x.sort(),w.sort(),i=x.length-1;i>=0;i--)if(x[i]!=w[i])return!1;for(i=x.length-1;i>=0;i--)if(a=x[i],!no(e[a],t[a],r,n))return!1;var _=XO(e),C=XO(t);return _!==C?!1:_==="Set"||C==="Set"?rY(e,t,r,n):_==="Map"?nY(e,t,r,n):!0}var lae=function(t,r,n){return no(t,r,n,JV())},n5={},aY={get exports(){return n5},set exports(e){n5=e}};/*! Native Promise Only
849
+ v0.8.1 (c) Kyle Simpson
850
+ MIT License: http://getify.mit-license.org
851
+ */(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof Jt<"u"?Jt:Jt,function(){var r,n,i,a=Object.prototype.toString,o=typeof setImmediate<"u"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,T,F,L){return Object.defineProperty(C,T,{value:F,writable:!0,configurable:L!==!1})}}catch{r=function(T,F,L){return T[F]=L,T}}i=function(){var C,T,F;function L(V,j){this.fn=V,this.self=j,this.next=void 0}return{add:function(j,te){F=new L(j,te),T?T.next=F:C=F,T=F,F=void 0},drain:function(){var j=C;for(C=T=n=void 0;j;)j.fn.call(j.self),j=j.next}}}();function l(_,C){i.add(_,C),n||(n=o(i.drain))}function s(_){var C,T=typeof _;return _!=null&&(T=="object"||T=="function")&&(C=_.then),typeof C=="function"?C:!1}function f(){for(var _=0;_<this.chain.length;_++)d(this,this.state===1?this.chain[_].success:this.chain[_].failure,this.chain[_]);this.chain.length=0}function d(_,C,T){var F,L;try{C===!1?T.reject(_.msg):(C===!0?F=_.msg:F=C.call(void 0,_.msg),F===T.promise?T.reject(TypeError("Promise-chain cycle")):(L=s(F))?L.call(F,T.resolve,T.reject):T.resolve(F))}catch(V){T.reject(V)}}function g(_){var C,T=this;if(!T.triggered){T.triggered=!0,T.def&&(T=T.def);try{(C=s(_))?l(function(){var F=new E(T);try{C.call(_,function(){g.apply(F,arguments)},function(){v.apply(F,arguments)})}catch(L){v.call(F,L)}}):(T.msg=_,T.state=1,T.chain.length>0&&l(f,T))}catch(F){v.call(new E(T),F)}}}function v(_){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=_,C.state=2,C.chain.length>0&&l(f,C))}function y(_,C,T,F){for(var L=0;L<C.length;L++)(function(j){_.resolve(C[j]).then(function(ge){T(j,ge)},F)})(L)}function E(_){this.def=_,this.triggered=!1}function k(_){this.promise=_,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function x(_){if(typeof _!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var C=new k(this);this.then=function(F,L){var V={success:typeof F=="function"?F:!0,failure:typeof L=="function"?L:!1};return V.promise=new this.constructor(function(te,ge){if(typeof te!="function"||typeof ge!="function")throw TypeError("Not a function");V.resolve=te,V.reject=ge}),C.chain.push(V),C.state!==0&&l(f,C),V.promise},this.catch=function(F){return this.then(void 0,F)};try{_.call(void 0,function(F){g.call(C,F)},function(F){v.call(C,F)})}catch(T){v.call(C,T)}}var w=r({},"constructor",x,!1);return x.prototype=w,r(w,"__NPO__",0,!1),r(x,"resolve",function(C){var T=this;return C&&typeof C=="object"&&C.__NPO__===1?C:new T(function(L,V){if(typeof L!="function"||typeof V!="function")throw TypeError("Not a function");L(C)})}),r(x,"reject",function(C){return new this(function(F,L){if(typeof F!="function"||typeof L!="function")throw TypeError("Not a function");L(C)})}),r(x,"all",function(C){var T=this;return a.call(C)!="[object Array]"?T.reject(TypeError("Not an array")):C.length===0?T.resolve([]):new T(function(L,V){if(typeof L!="function"||typeof V!="function")throw TypeError("Not a function");var j=C.length,te=Array(j),ge=0;y(T,C,function(ke,Fe){te[ke]=Fe,++ge===j&&L(te)},V)})}),r(x,"race",function(C){var T=this;return a.call(C)!="[object Array]"?T.reject(TypeError("Not an array")):new T(function(L,V){if(typeof L!="function"||typeof V!="function")throw TypeError("Not a function");y(T,C,function(te,ge){L(ge)},V)})}),x})})(aY);var i5={},oY={get exports(){return i5},set exports(e){i5=e}};(function(e){(function(){var t={version:"3.8.0"},r=[].slice,n=function(u){return r.call(u)},i=self.document;function a(u){return u&&(u.ownerDocument||u.document||u).documentElement}function o(u){return u&&(u.ownerDocument&&u.ownerDocument.defaultView||u.document&&u||u.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch{n=function(c){for(var h=c.length,p=new Array(h);h--;)p[h]=c[h];return p}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch{var l=this.Element.prototype,s=l.setAttribute,f=l.setAttributeNS,d=this.CSSStyleDeclaration.prototype,g=d.setProperty;l.setAttribute=function(c,h){s.call(this,c,h+"")},l.setAttributeNS=function(c,h,p){f.call(this,c,h,p+"")},d.setProperty=function(c,h,p){g.call(this,c,h+"",p)}}t.ascending=v;function v(u,c){return u<c?-1:u>c?1:u>=c?0:NaN}t.descending=function(u,c){return c<u?-1:c>u?1:c>=u?0:NaN},t.min=function(u,c){var h=-1,p=u.length,m,b;if(arguments.length===1){for(;++h<p;)if((b=u[h])!=null&&b>=b){m=b;break}for(;++h<p;)(b=u[h])!=null&&m>b&&(m=b)}else{for(;++h<p;)if((b=c.call(u,u[h],h))!=null&&b>=b){m=b;break}for(;++h<p;)(b=c.call(u,u[h],h))!=null&&m>b&&(m=b)}return m},t.max=function(u,c){var h=-1,p=u.length,m,b;if(arguments.length===1){for(;++h<p;)if((b=u[h])!=null&&b>=b){m=b;break}for(;++h<p;)(b=u[h])!=null&&b>m&&(m=b)}else{for(;++h<p;)if((b=c.call(u,u[h],h))!=null&&b>=b){m=b;break}for(;++h<p;)(b=c.call(u,u[h],h))!=null&&b>m&&(m=b)}return m},t.extent=function(u,c){var h=-1,p=u.length,m,b,O;if(arguments.length===1){for(;++h<p;)if((b=u[h])!=null&&b>=b){m=O=b;break}for(;++h<p;)(b=u[h])!=null&&(m>b&&(m=b),O<b&&(O=b))}else{for(;++h<p;)if((b=c.call(u,u[h],h))!=null&&b>=b){m=O=b;break}for(;++h<p;)(b=c.call(u,u[h],h))!=null&&(m>b&&(m=b),O<b&&(O=b))}return[m,O]};function y(u){return u===null?NaN:+u}function E(u){return!isNaN(u)}t.sum=function(u,c){var h=0,p=u.length,m,b=-1;if(arguments.length===1)for(;++b<p;)E(m=+u[b])&&(h+=m);else for(;++b<p;)E(m=+c.call(u,u[b],b))&&(h+=m);return h},t.mean=function(u,c){var h=0,p=u.length,m,b=-1,O=p;if(arguments.length===1)for(;++b<p;)E(m=y(u[b]))?h+=m:--O;else for(;++b<p;)E(m=y(c.call(u,u[b],b)))?h+=m:--O;if(O)return h/O},t.quantile=function(u,c){var h=(u.length-1)*c+1,p=Math.floor(h),m=+u[p-1],b=h-p;return b?m+b*(u[p]-m):m},t.median=function(u,c){var h=[],p=u.length,m,b=-1;if(arguments.length===1)for(;++b<p;)E(m=y(u[b]))&&h.push(m);else for(;++b<p;)E(m=y(c.call(u,u[b],b)))&&h.push(m);if(h.length)return t.quantile(h.sort(v),.5)},t.variance=function(u,c){var h=u.length,p=0,m,b,O=0,S=-1,P=0;if(arguments.length===1)for(;++S<h;)E(m=y(u[S]))&&(b=m-p,p+=b/++P,O+=b*(m-p));else for(;++S<h;)E(m=y(c.call(u,u[S],S)))&&(b=m-p,p+=b/++P,O+=b*(m-p));if(P>1)return O/(P-1)},t.deviation=function(){var u=t.variance.apply(this,arguments);return u&&Math.sqrt(u)};function k(u){return{left:function(c,h,p,m){for(arguments.length<3&&(p=0),arguments.length<4&&(m=c.length);p<m;){var b=p+m>>>1;u(c[b],h)<0?p=b+1:m=b}return p},right:function(c,h,p,m){for(arguments.length<3&&(p=0),arguments.length<4&&(m=c.length);p<m;){var b=p+m>>>1;u(c[b],h)>0?m=b:p=b+1}return p}}}var x=k(v);t.bisectLeft=x.left,t.bisect=t.bisectRight=x.right,t.bisector=function(u){return k(u.length===1?function(c,h){return v(u(c),h)}:u)},t.shuffle=function(u,c,h){(p=arguments.length)<3&&(h=u.length,p<2&&(c=0));for(var p=h-c,m,b;p;)b=Math.random()*p--|0,m=u[p+c],u[p+c]=u[b+c],u[b+c]=m;return u},t.permute=function(u,c){for(var h=c.length,p=new Array(h);h--;)p[h]=u[c[h]];return p},t.pairs=function(u){for(var c=0,h=u.length-1,p=u[0],m=new Array(h<0?0:h);c<h;)m[c]=[p,p=u[++c]];return m},t.transpose=function(u){if(!(b=u.length))return[];for(var c=-1,h=t.min(u,w),p=new Array(h);++c<h;)for(var m=-1,b,O=p[c]=new Array(b);++m<b;)O[m]=u[m][c];return p};function w(u){return u.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(u){var c=[];for(var h in u)c.push(h);return c},t.values=function(u){var c=[];for(var h in u)c.push(u[h]);return c},t.entries=function(u){var c=[];for(var h in u)c.push({key:h,value:u[h]});return c},t.merge=function(u){for(var c=u.length,h,p=-1,m=0,b,O;++p<c;)m+=u[p].length;for(b=new Array(m);--c>=0;)for(O=u[c],h=O.length;--h>=0;)b[--m]=O[h];return b};var _=Math.abs;t.range=function(u,c,h){if(arguments.length<3&&(h=1,arguments.length<2&&(c=u,u=0)),(c-u)/h===1/0)throw new Error("infinite range");var p=[],m=C(_(h)),b=-1,O;if(u*=m,c*=m,h*=m,h<0)for(;(O=u+h*++b)>c;)p.push(O/m);else for(;(O=u+h*++b)<c;)p.push(O/m);return p};function C(u){for(var c=1;u*c%1;)c*=10;return c}function T(u,c){for(var h in c)Object.defineProperty(u.prototype,h,{value:c[h],enumerable:!1})}t.map=function(u,c){var h=new F;if(u instanceof F)u.forEach(function(S,P){h.set(S,P)});else if(Array.isArray(u)){var p=-1,m=u.length,b;if(arguments.length===1)for(;++p<m;)h.set(p,u[p]);else for(;++p<m;)h.set(c.call(u,b=u[p],p),b)}else for(var O in u)h.set(O,u[O]);return h};function F(){this._=Object.create(null)}var L="__proto__",V="\0";T(F,{has:ge,get:function(u){return this._[j(u)]},set:function(u,c){return this._[j(u)]=c},remove:me,keys:ke,values:function(){var u=[];for(var c in this._)u.push(this._[c]);return u},entries:function(){var u=[];for(var c in this._)u.push({key:te(c),value:this._[c]});return u},size:Fe,empty:Le,forEach:function(u){for(var c in this._)u.call(this,te(c),this._[c])}});function j(u){return(u+="")===L||u[0]===V?V+u:u}function te(u){return(u+="")[0]===V?u.slice(1):u}function ge(u){return j(u)in this._}function me(u){return(u=j(u))in this._&&delete this._[u]}function ke(){var u=[];for(var c in this._)u.push(te(c));return u}function Fe(){var u=0;for(var c in this._)++u;return u}function Le(){for(var u in this._)return!1;return!0}t.nest=function(){var u={},c=[],h=[],p,m;function b(S,P,N){if(N>=c.length)return m?m.call(u,P):p?P.sort(p):P;for(var D=-1,B=P.length,z=c[N++],ie,oe,G,X=new F,J;++D<B;)(J=X.get(ie=z(oe=P[D])))?J.push(oe):X.set(ie,[oe]);return S?(oe=S(),G=function(ue,le){oe.set(ue,b(S,le,N))}):(oe={},G=function(ue,le){oe[ue]=b(S,le,N)}),X.forEach(G),oe}function O(S,P){if(P>=c.length)return S;var N=[],D=h[P++];return S.forEach(function(B,z){N.push({key:B,values:O(z,P)})}),D?N.sort(function(B,z){return D(B.key,z.key)}):N}return u.map=function(S,P){return b(P,S,0)},u.entries=function(S){return O(b(t.map,S,0),0)},u.key=function(S){return c.push(S),u},u.sortKeys=function(S){return h[c.length-1]=S,u},u.sortValues=function(S){return p=S,u},u.rollup=function(S){return m=S,u},u},t.set=function(u){var c=new ut;if(u)for(var h=0,p=u.length;h<p;++h)c.add(u[h]);return c};function ut(){this._=Object.create(null)}T(ut,{has:ge,add:function(u){return this._[j(u+="")]=!0,u},remove:me,values:ke,size:Fe,empty:Le,forEach:function(u){for(var c in this._)u.call(this,te(c))}}),t.behavior={};function nt(u){return u}t.rebind=function(u,c){for(var h=1,p=arguments.length,m;++h<p;)u[m=arguments[h]]=De(u,c,c[m]);return u};function De(u,c,h){return function(){var p=h.apply(c,arguments);return p===c?u:p}}function We(u,c){if(c in u)return c;c=c.charAt(0).toUpperCase()+c.slice(1);for(var h=0,p=_t.length;h<p;++h){var m=_t[h]+c;if(m in u)return m}}var _t=["webkit","ms","moz","Moz","o","O"];function He(){}t.dispatch=function(){for(var u=new we,c=-1,h=arguments.length;++c<h;)u[arguments[c]]=qe(u);return u};function we(){}we.prototype.on=function(u,c){var h=u.indexOf("."),p="";if(h>=0&&(p=u.slice(h+1),u=u.slice(0,h)),u)return arguments.length<2?this[u].on(p):this[u].on(p,c);if(arguments.length===2){if(c==null)for(u in this)this.hasOwnProperty(u)&&this[u].on(p,null);return this}};function qe(u){var c=[],h=new F;function p(){for(var m=c,b=-1,O=m.length,S;++b<O;)(S=m[b].on)&&S.apply(this,arguments);return u}return p.on=function(m,b){var O=h.get(m),S;return arguments.length<2?O&&O.on:(O&&(O.on=null,c=c.slice(0,S=c.indexOf(O)).concat(c.slice(S+1)),h.remove(m)),b&&c.push(h.set(m,{on:b})),u)},p}t.event=null;function st(){t.event.preventDefault()}function Ke(){for(var u=t.event,c;c=u.sourceEvent;)u=c;return u}function ct(u){for(var c=new we,h=0,p=arguments.length;++h<p;)c[arguments[h]]=qe(c);return c.of=function(m,b){return function(O){try{var S=O.sourceEvent=t.event;O.target=u,t.event=O,c[O.type].apply(m,b)}finally{t.event=S}}},c}t.requote=function(u){return u.replace(yt,"\\$&")};var yt=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,qt={}.__proto__?function(u,c){u.__proto__=c}:function(u,c){for(var h in c)u[h]=c[h]};function Yt(u){return qt(u,Ce),u}var Qe=function(u,c){return c.querySelector(u)},At=function(u,c){return c.querySelectorAll(u)},Gt=function(u,c){var h=u.matches||u[We(u,"matchesSelector")];return Gt=function(p,m){return h.call(p,m)},Gt(u,c)};typeof Sizzle=="function"&&(Qe=function(u,c){return Sizzle(u,c)[0]||null},At=Sizzle,Gt=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Ce=t.selection.prototype=[];Ce.select=function(u){var c=[],h,p,m,b;u=W(u);for(var O=-1,S=this.length;++O<S;){c.push(h=[]),h.parentNode=(m=this[O]).parentNode;for(var P=-1,N=m.length;++P<N;)(b=m[P])?(h.push(p=u.call(b,b.__data__,P,O)),p&&"__data__"in b&&(p.__data__=b.__data__)):h.push(null)}return Yt(c)};function W(u){return typeof u=="function"?u:function(){return Qe(u,this)}}Ce.selectAll=function(u){var c=[],h,p;u=ae(u);for(var m=-1,b=this.length;++m<b;)for(var O=this[m],S=-1,P=O.length;++S<P;)(p=O[S])&&(c.push(h=n(u.call(p,p.__data__,S,m))),h.parentNode=p);return Yt(c)};function ae(u){return typeof u=="function"?u:function(){return At(u,this)}}var R="http://www.w3.org/1999/xhtml",A={svg:"http://www.w3.org/2000/svg",xhtml:R,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};t.ns={prefix:A,qualify:function(u){var c=u.indexOf(":"),h=u;return c>=0&&(h=u.slice(0,c))!=="xmlns"&&(u=u.slice(c+1)),A.hasOwnProperty(h)?{space:A[h],local:u}:u}},Ce.attr=function(u,c){if(arguments.length<2){if(typeof u=="string"){var h=this.node();return u=t.ns.qualify(u),u.local?h.getAttributeNS(u.space,u.local):h.getAttribute(u)}for(c in u)this.each(M(c,u[c]));return this}return this.each(M(u,c))};function M(u,c){u=t.ns.qualify(u);function h(){this.removeAttribute(u)}function p(){this.removeAttributeNS(u.space,u.local)}function m(){this.setAttribute(u,c)}function b(){this.setAttributeNS(u.space,u.local,c)}function O(){var P=c.apply(this,arguments);P==null?this.removeAttribute(u):this.setAttribute(u,P)}function S(){var P=c.apply(this,arguments);P==null?this.removeAttributeNS(u.space,u.local):this.setAttributeNS(u.space,u.local,P)}return c==null?u.local?p:h:typeof c=="function"?u.local?S:O:u.local?b:m}function $(u){return u.trim().replace(/\s+/g," ")}Ce.classed=function(u,c){if(arguments.length<2){if(typeof u=="string"){var h=this.node(),p=(u=Ie(u)).length,m=-1;if(c=h.classList){for(;++m<p;)if(!c.contains(u[m]))return!1}else for(c=h.getAttribute("class");++m<p;)if(!fe(u[m]).test(c))return!1;return!0}for(c in u)this.each(ze(c,u[c]));return this}return this.each(ze(u,c))};function fe(u){return new RegExp("(?:^|\\s+)"+t.requote(u)+"(?:\\s+|$)","g")}function Ie(u){return(u+"").trim().split(/^|\s+/)}function ze(u,c){u=Ie(u).map(Qt);var h=u.length;function p(){for(var b=-1;++b<h;)u[b](this,c)}function m(){for(var b=-1,O=c.apply(this,arguments);++b<h;)u[b](this,O)}return typeof c=="function"?m:p}function Qt(u){var c=fe(u);return function(h,p){if(m=h.classList)return p?m.add(u):m.remove(u);var m=h.getAttribute("class")||"";p?(c.lastIndex=0,c.test(m)||h.setAttribute("class",$(m+" "+u))):h.setAttribute("class",$(m.replace(c," ")))}}Ce.style=function(u,c,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(c="");for(h in u)this.each(cr(h,u[h],c));return this}if(p<2){var m=this.node();return o(m).getComputedStyle(m,null).getPropertyValue(u)}h=""}return this.each(cr(u,c,h))};function cr(u,c,h){function p(){this.style.removeProperty(u)}function m(){this.style.setProperty(u,c,h)}function b(){var O=c.apply(this,arguments);O==null?this.style.removeProperty(u):this.style.setProperty(u,O,h)}return c==null?p:typeof c=="function"?b:m}Ce.property=function(u,c){if(arguments.length<2){if(typeof u=="string")return this.node()[u];for(c in u)this.each(ir(c,u[c]));return this}return this.each(ir(u,c))};function ir(u,c){function h(){delete this[u]}function p(){this[u]=c}function m(){var b=c.apply(this,arguments);b==null?delete this[u]:this[u]=b}return c==null?h:typeof c=="function"?m:p}Ce.text=function(u){return arguments.length?this.each(typeof u=="function"?function(){var c=u.apply(this,arguments);this.textContent=c??""}:u==null?function(){this.textContent=""}:function(){this.textContent=u}):this.node().textContent},Ce.html=function(u){return arguments.length?this.each(typeof u=="function"?function(){var c=u.apply(this,arguments);this.innerHTML=c??""}:u==null?function(){this.innerHTML=""}:function(){this.innerHTML=u}):this.node().innerHTML},Ce.append=function(u){return u=Yr(u),this.select(function(){return this.appendChild(u.apply(this,arguments))})};function Yr(u){function c(){var p=this.ownerDocument,m=this.namespaceURI;return m===R&&p.documentElement.namespaceURI===R?p.createElement(u):p.createElementNS(m,u)}function h(){return this.ownerDocument.createElementNS(u.space,u.local)}return typeof u=="function"?u:(u=t.ns.qualify(u)).local?h:c}Ce.insert=function(u,c){return u=Yr(u),c=W(c),this.select(function(){return this.insertBefore(u.apply(this,arguments),c.apply(this,arguments)||null)})},Ce.remove=function(){return this.each(Mr)};function Mr(){var u=this.parentNode;u&&u.removeChild(this)}Ce.data=function(u,c){var h=-1,p=this.length,m,b;if(!arguments.length){for(u=new Array(p=(m=this[0]).length);++h<p;)(b=m[h])&&(u[h]=b.__data__);return u}function O(D,B){var z,ie=D.length,oe=B.length,G=Math.min(ie,oe),X=new Array(oe),J=new Array(oe),ue=new Array(ie),le,re;if(c){var Pe=new F,Ue=new Array(ie),tt;for(z=-1;++z<ie;)(le=D[z])&&(Pe.has(tt=c.call(le,le.__data__,z))?ue[z]=le:Pe.set(tt,le),Ue[z]=tt);for(z=-1;++z<oe;)(le=Pe.get(tt=c.call(B,re=B[z],z)))?le!==!0&&(X[z]=le,le.__data__=re):J[z]=ra(re),Pe.set(tt,!0);for(z=-1;++z<ie;)z in Ue&&Pe.get(Ue[z])!==!0&&(ue[z]=D[z])}else{for(z=-1;++z<G;)le=D[z],re=B[z],le?(le.__data__=re,X[z]=le):J[z]=ra(re);for(;z<oe;++z)J[z]=ra(B[z]);for(;z<ie;++z)ue[z]=D[z]}J.update=X,J.parentNode=X.parentNode=ue.parentNode=D.parentNode,S.push(J),P.push(X),N.push(ue)}var S=Op([]),P=Yt([]),N=Yt([]);if(typeof u=="function")for(;++h<p;)O(m=this[h],u.call(m,m.parentNode.__data__,h));else for(;++h<p;)O(m=this[h],u);return P.enter=function(){return S},P.exit=function(){return N},P};function ra(u){return{__data__:u}}Ce.datum=function(u){return arguments.length?this.property("__data__",u):this.property("__data__")},Ce.filter=function(u){var c=[],h,p,m;typeof u!="function"&&(u=Eu(u));for(var b=0,O=this.length;b<O;b++){c.push(h=[]),h.parentNode=(p=this[b]).parentNode;for(var S=0,P=p.length;S<P;S++)(m=p[S])&&u.call(m,m.__data__,S,b)&&h.push(m)}return Yt(c)};function Eu(u){return function(){return Gt(this,u)}}Ce.order=function(){for(var u=-1,c=this.length;++u<c;)for(var h=this[u],p=h.length-1,m=h[p],b;--p>=0;)(b=h[p])&&(m&&m!==b.nextSibling&&m.parentNode.insertBefore(b,m),m=b);return this},Ce.sort=function(u){u=Ta.apply(this,arguments);for(var c=-1,h=this.length;++c<h;)this[c].sort(u);return this.order()};function Ta(u){return arguments.length||(u=v),function(c,h){return c&&h?u(c.__data__,h.__data__):!c-!h}}Ce.each=function(u){return xi(this,function(c,h,p){u.call(c,c.__data__,h,p)})};function xi(u,c){for(var h=0,p=u.length;h<p;h++)for(var m=u[h],b=0,O=m.length,S;b<O;b++)(S=m[b])&&c(S,b,h);return u}Ce.call=function(u){var c=n(arguments);return u.apply(c[0]=this,c),this},Ce.empty=function(){return!this.node()},Ce.node=function(){for(var u=0,c=this.length;u<c;u++)for(var h=this[u],p=0,m=h.length;p<m;p++){var b=h[p];if(b)return b}return null},Ce.size=function(){var u=0;return xi(this,function(){++u}),u};function Op(u){return qt(u,Li),u}var Li=[];t.selection.enter=Op,t.selection.enter.prototype=Li,Li.append=Ce.append,Li.empty=Ce.empty,Li.node=Ce.node,Li.call=Ce.call,Li.size=Ce.size,Li.select=function(u){for(var c=[],h,p,m,b,O,S=-1,P=this.length;++S<P;){m=(b=this[S]).update,c.push(h=[]),h.parentNode=b.parentNode;for(var N=-1,D=b.length;++N<D;)(O=b[N])?(h.push(m[N]=p=u.call(b.parentNode,O.__data__,N,S)),p.__data__=O.__data__):h.push(null)}return Yt(c)},Li.insert=function(u,c){return arguments.length<2&&(c=Au(this)),Ce.insert.call(this,u,c)};function Au(u){var c,h;return function(p,m,b){var O=u[b].update,S=O.length,P;for(b!=h&&(h=b,c=0),m>=c&&(c=m+1);!(P=O[c])&&++c<S;);return P}}t.select=function(u){var c;return typeof u=="string"?(c=[Qe(u,i)],c.parentNode=i.documentElement):(c=[u],c.parentNode=a(u)),Yt([c])},t.selectAll=function(u){var c;return typeof u=="string"?(c=n(At(u,i)),c.parentNode=i.documentElement):(c=n(u),c.parentNode=null),Yt([c])},Ce.on=function(u,c,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(c=!1);for(h in u)this.each(Hl(h,u[h],c));return this}if(p<2)return(p=this.node()["__on"+u])&&p._;h=!1}return this.each(Hl(u,c,h))};function Hl(u,c,h){var p="__on"+u,m=u.indexOf("."),b=Vl;m>0&&(u=u.slice(0,m));var O=ql.get(u);O&&(u=O,b=ky);function S(){var D=this[p];D&&(this.removeEventListener(u,D,D.$),delete this[p])}function P(){var D=b(c,n(arguments));S.call(this),this.addEventListener(u,this[p]=D,D.$=h),D._=c}function N(){var D=new RegExp("^__on([^.]+)"+t.requote(u)+"$"),B;for(var z in this)if(B=z.match(D)){var ie=this[z];this.removeEventListener(B[1],ie,ie.$),delete this[z]}}return m?c?P:S:c?He:N}var ql=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&ql.forEach(function(u){"on"+u in i&&ql.remove(u)});function Vl(u,c){return function(h){var p=t.event;t.event=h,c[0]=this.__data__;try{u.apply(this,c)}finally{t.event=p}}}function ky(u,c){var h=Vl(u,c);return function(p){var m=this,b=p.relatedTarget;(!b||b!==m&&!(b.compareDocumentPosition(m)&8))&&h.call(m,p)}}var Ca,My=0;function Yl(u){var c=".dragsuppress-"+ ++My,h="click"+c,p=t.select(o(u)).on("touchmove"+c,st).on("dragstart"+c,st).on("selectstart"+c,st);if(Ca==null&&(Ca="onselectstart"in u?!1:We(u.style,"userSelect")),Ca){var m=a(u).style,b=m[Ca];m[Ca]="none"}return function(O){if(p.on(c,null),Ca&&(m[Ca]=b),O){var S=function(){p.on(h,null)};p.on(h,function(){st(),S()},!0),setTimeout(S,0)}}}t.mouse=function(u){return ai(u,Ke())};var rn=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ai(u,c){c.changedTouches&&(c=c.changedTouches[0]);var h=u.ownerSVGElement||u;if(h.createSVGPoint){var p=h.createSVGPoint();if(rn<0){var m=o(u);if(m.scrollX||m.scrollY){h=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var b=h[0][0].getScreenCTM();rn=!(b.f||b.e),h.remove()}}return rn?(p.x=c.pageX,p.y=c.pageY):(p.x=c.clientX,p.y=c.clientY),p=p.matrixTransform(u.getScreenCTM().inverse()),[p.x,p.y]}var O=u.getBoundingClientRect();return[c.clientX-O.left-u.clientLeft,c.clientY-O.top-u.clientTop]}t.touch=function(u,c,h){if(arguments.length<3&&(h=c,c=Ke().changedTouches),c){for(var p=0,m=c.length,b;p<m;++p)if((b=c[p]).identifier===h)return ai(u,b)}},t.behavior.drag=function(){var u=ct(m,"drag","dragstart","dragend"),c=null,h=b(He,t.mouse,o,"mousemove","mouseup"),p=b(zn,t.touch,nt,"touchmove","touchend");function m(){this.on("mousedown.drag",h).on("touchstart.drag",p)}function b(O,S,P,N,D){return function(){var B=this,z=t.event.target.correspondingElement||t.event.target,ie=B.parentNode,oe=u.of(B,arguments),G=0,X=O(),J=".drag"+(X==null?"":"-"+X),ue,le=t.select(P(z)).on(N+J,Ue).on(D+J,tt),re=Yl(z),Pe=S(ie,X);c?(ue=c.apply(B,arguments),ue=[ue.x-Pe[0],ue.y-Pe[1]]):ue=[0,0],oe({type:"dragstart"});function Ue(){var je=S(ie,X),at,vt;je&&(at=je[0]-Pe[0],vt=je[1]-Pe[1],G|=at|vt,Pe=je,oe({type:"drag",x:je[0]+ue[0],y:je[1]+ue[1],dx:at,dy:vt}))}function tt(){S(ie,X)&&(le.on(N+J,null).on(D+J,null),re(G),oe({type:"dragend"}))}}}return m.origin=function(O){return arguments.length?(c=O,m):c},t.rebind(m,u,"on")};function zn(){return t.event.changedTouches[0].identifier}t.touches=function(u,c){return arguments.length<2&&(c=Ke().touches),c?n(c).map(function(h){var p=ai(u,h);return p.identifier=h.identifier,p}):[]};var ar=1e-6,kp=ar*ar,Di=Math.PI,co=2*Di,Mp=co-ar,wi=Di/2,Rp=Di/180,Tu=180/Di;function Ry(u,c,h){return(c[0]-u[0])*(h[1]-u[1])-(c[1]-u[1])*(h[0]-u[0])}function Pp(u){return u>1?wi:u<-1?-wi:Math.asin(u)}function Py(u){return((u=Math.exp(u))-1/u)/2}function Ip(u){return((u=Math.exp(u))+1/u)/2}function Iy(u){return((u=Math.exp(2*u))-1)/(u+1)}var Cu=Math.SQRT2,Kf=2,Fp=4;t.interpolateZoom=function(u,c){var h=u[0],p=u[1],m=u[2],b=c[0],O=c[1],S=c[2],P=b-h,N=O-p,D=P*P+N*N,B,z;if(D<kp)z=Math.log(S/m)/Cu,B=function(ue){return[h+ue*P,p+ue*N,m*Math.exp(Cu*ue*z)]};else{var ie=Math.sqrt(D),oe=(S*S-m*m+Fp*D)/(2*m*Kf*ie),G=(S*S-m*m-Fp*D)/(2*S*Kf*ie),X=Math.log(Math.sqrt(oe*oe+1)-oe),J=Math.log(Math.sqrt(G*G+1)-G);z=(J-X)/Cu,B=function(ue){var le=ue*z,re=Ip(X),Pe=m/(Kf*ie)*(re*Iy(Cu*le+X)-Py(X));return[h+Pe*P,p+Pe*N,m*re/Ip(Cu*le+X)]}}return B.duration=z*1e3,B},t.behavior.zoom=function(){var u={x:0,y:0,k:1},c,h,p,m=[960,500],b=Ou,O=250,S=0,P="mousedown.zoom",N="mousemove.zoom",D="mouseup.zoom",B,z="touchstart.zoom",ie,oe=ct(le,"zoomstart","zoom","zoomend"),G,X,J,ue;Qf||(Qf="onwheel"in i?(Xl=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(Xl=function(){return t.event.wheelDelta},"mousewheel"):(Xl=function(){return-t.event.detail},"MozMousePixelScroll"));function le(rt){rt.on(P,Ut).on(Qf+".zoom",Rr).on("dblclick.zoom",pr).on(z,or)}le.event=function(rt){rt.each(function(){var Ht=oe.of(this,arguments),Xt=u;Wi?t.select(this).transition().each("start.zoom",function(){u=this.__chart__||{x:0,y:0,k:1},vt(Ht)}).tween("zoom:zoom",function(){var ur=m[0],Ar=m[1],zr=h?h[0]:ur/2,Xr=h?h[1]:Ar/2,vn=t.interpolateZoom([(zr-u.x)/u.k,(Xr-u.y)/u.k,ur/u.k],[(zr-Xt.x)/Xt.k,(Xr-Xt.y)/Xt.k,ur/Xt.k]);return function(En){var on=vn(En),In=ur/on[2];this.__chart__=u={x:zr-on[0]*In,y:Xr-on[1]*In,k:In},Wt(Ht)}}).each("interrupt.zoom",function(){xt(Ht)}).each("end.zoom",function(){xt(Ht)}):(this.__chart__=u,vt(Ht),Wt(Ht),xt(Ht))})},le.translate=function(rt){return arguments.length?(u={x:+rt[0],y:+rt[1],k:u.k},at(),le):[u.x,u.y]},le.scale=function(rt){return arguments.length?(u={x:u.x,y:u.y,k:null},Ue(+rt),at(),le):u.k},le.scaleExtent=function(rt){return arguments.length?(b=rt==null?Ou:[+rt[0],+rt[1]],le):b},le.center=function(rt){return arguments.length?(p=rt&&[+rt[0],+rt[1]],le):p},le.size=function(rt){return arguments.length?(m=rt&&[+rt[0],+rt[1]],le):m},le.duration=function(rt){return arguments.length?(O=+rt,le):O},le.x=function(rt){return arguments.length?(X=rt,G=rt.copy(),u={x:0,y:0,k:1},le):X},le.y=function(rt){return arguments.length?(ue=rt,J=rt.copy(),u={x:0,y:0,k:1},le):ue};function re(rt){return[(rt[0]-u.x)/u.k,(rt[1]-u.y)/u.k]}function Pe(rt){return[rt[0]*u.k+u.x,rt[1]*u.k+u.y]}function Ue(rt){u.k=Math.max(b[0],Math.min(b[1],rt))}function tt(rt,Ht){Ht=Pe(Ht),u.x+=rt[0]-Ht[0],u.y+=rt[1]-Ht[1]}function je(rt,Ht,Xt,ur){rt.__chart__={x:u.x,y:u.y,k:u.k},Ue(Math.pow(2,ur)),tt(h=Ht,Xt),rt=t.select(rt),O>0&&(rt=rt.transition().duration(O)),rt.call(le.event)}function at(){X&&X.domain(G.range().map(function(rt){return(rt-u.x)/u.k}).map(G.invert)),ue&&ue.domain(J.range().map(function(rt){return(rt-u.y)/u.k}).map(J.invert))}function vt(rt){S++||rt({type:"zoomstart"})}function Wt(rt){at(),rt({type:"zoom",scale:u.k,translate:[u.x,u.y]})}function xt(rt){--S||(rt({type:"zoomend"}),h=null)}function Ut(){var rt=this,Ht=oe.of(rt,arguments),Xt=0,ur=t.select(o(rt)).on(N,Xr).on(D,vn),Ar=re(t.mouse(rt)),zr=Yl(rt);Cs.call(rt),vt(Ht);function Xr(){Xt=1,tt(t.mouse(rt),Ar),Wt(Ht)}function vn(){ur.on(N,null).on(D,null),zr(Xt),xt(Ht)}}function or(){var rt=this,Ht=oe.of(rt,arguments),Xt={},ur=0,Ar,zr=".zoom-"+t.event.changedTouches[0].identifier,Xr="touchmove"+zr,vn="touchend"+zr,En=[],on=t.select(rt),In=Yl(rt);H(),vt(Ht),on.on(P,null).on(z,H);function I(){var Me=t.touches(rt);return Ar=u.k,Me.forEach(function(be){be.identifier in Xt&&(Xt[be.identifier]=re(be))}),Me}function H(){var Me=t.event.target;t.select(Me).on(Xr,Z).on(vn,Ee),En.push(Me);for(var be=t.event.changedTouches,_e=0,Ye=be.length;_e<Ye;++_e)Xt[be[_e].identifier]=null;var Xe=I(),et=Date.now();if(Xe.length===1){if(et-ie<500){var ft=Xe[0];je(rt,ft,Xt[ft.identifier],Math.floor(Math.log(u.k)/Math.LN2)+1),st()}ie=et}else if(Xe.length>1){var ft=Xe[0],Rt=Xe[1],St=ft[0]-Rt[0],it=ft[1]-Rt[1];ur=St*St+it*it}}function Z(){var Me=t.touches(rt),be,_e,Ye,Xe;Cs.call(rt);for(var et=0,ft=Me.length;et<ft;++et,Xe=null)if(Ye=Me[et],Xe=Xt[Ye.identifier]){if(_e)break;be=Ye,_e=Xe}if(Xe){var Rt=(Rt=Ye[0]-be[0])*Rt+(Rt=Ye[1]-be[1])*Rt,St=ur&&Math.sqrt(Rt/ur);be=[(be[0]+Ye[0])/2,(be[1]+Ye[1])/2],_e=[(_e[0]+Xe[0])/2,(_e[1]+Xe[1])/2],Ue(St*Ar)}ie=null,tt(be,_e),Wt(Ht)}function Ee(){if(t.event.touches.length){for(var Me=t.event.changedTouches,be=0,_e=Me.length;be<_e;++be)delete Xt[Me[be].identifier];for(var Ye in Xt)return void I()}t.selectAll(En).on(zr,null),on.on(P,Ut).on(z,or),In(),xt(Ht)}}function Rr(){var rt=oe.of(this,arguments);B?clearTimeout(B):(Cs.call(this),c=re(h=p||t.mouse(this)),vt(rt)),B=setTimeout(function(){B=null,xt(rt)},50),st(),Ue(Math.pow(2,Xl()*.002)*u.k),tt(h,c),Wt(rt)}function pr(){var rt=t.mouse(this),Ht=Math.log(u.k)/Math.LN2;je(this,rt,re(rt),t.event.shiftKey?Math.ceil(Ht)-1:Math.floor(Ht)+1)}return t.rebind(le,oe,"on")};var Ou=[0,1/0],Xl,Qf;t.color=na;function na(){}na.prototype.toString=function(){return this.rgb()+""},t.hsl=Vn;function Vn(u,c,h){return this instanceof Vn?(this.h=+u,this.s=+c,void(this.l=+h)):arguments.length<2?u instanceof Vn?new Vn(u.h,u.s,u.l):ka(""+u,ic,Vn):new Vn(u,c,h)}var Kl=Vn.prototype=new na;Kl.brighter=function(u){return u=Math.pow(.7,arguments.length?u:1),new Vn(this.h,this.s,this.l/u)},Kl.darker=function(u){return u=Math.pow(.7,arguments.length?u:1),new Vn(this.h,this.s,u*this.l)},Kl.rgb=function(){return Ql(this.h,this.s,this.l)};function Ql(u,c,h){var p,m;u=isNaN(u)?0:(u%=360)<0?u+360:u,c=isNaN(c)||c<0?0:c>1?1:c,h=h<0?0:h>1?1:h,m=h<=.5?h*(1+c):h+c-h*c,p=2*h-m;function b(S){return S>360?S-=360:S<0&&(S+=360),S<60?p+(m-p)*S/60:S<180?m:S<240?p+(m-p)*(240-S)/60:p}function O(S){return Math.round(b(S)*255)}return new nn(O(u+120),O(u),O(u-120))}t.hcl=oi;function oi(u,c,h){return this instanceof oi?(this.h=+u,this.c=+c,void(this.l=+h)):arguments.length<2?u instanceof oi?new oi(u.h,u.c,u.l):u instanceof Zr?Dp(u.l,u.a,u.b):Dp((u=Ma((u=t.rgb(u)).r,u.g,u.b)).l,u.a,u.b):new oi(u,c,h)}var ku=oi.prototype=new na;ku.brighter=function(u){return new oi(this.h,this.c,Math.min(100,this.l+Oa*(arguments.length?u:1)))},ku.darker=function(u){return new oi(this.h,this.c,Math.max(0,this.l-Oa*(arguments.length?u:1)))},ku.rgb=function(){return Mu(this.h,this.c,this.l).rgb()};function Mu(u,c,h){return isNaN(u)&&(u=0),isNaN(c)&&(c=0),new Zr(h,Math.cos(u*=Rp)*c,Math.sin(u)*c)}t.lab=Zr;function Zr(u,c,h){return this instanceof Zr?(this.l=+u,this.a=+c,void(this.b=+h)):arguments.length<2?u instanceof Zr?new Zr(u.l,u.a,u.b):u instanceof oi?Mu(u.h,u.c,u.l):Ma((u=nn(u)).r,u.g,u.b):new Zr(u,c,h)}var Oa=18,Zf=.95047,Jf=1,Np=1.08883,ec=Zr.prototype=new na;ec.brighter=function(u){return new Zr(Math.min(100,this.l+Oa*(arguments.length?u:1)),this.a,this.b)},ec.darker=function(u){return new Zr(Math.max(0,this.l-Oa*(arguments.length?u:1)),this.a,this.b)},ec.rgb=function(){return Lp(this.l,this.a,this.b)};function Lp(u,c,h){var p=(u+16)/116,m=p+c/500,b=p-h/200;return m=tc(m)*Zf,p=tc(p)*Jf,b=tc(b)*Np,new nn(nc(3.2404542*m-1.5371385*p-.4985314*b),nc(-.969266*m+1.8760108*p+.041556*b),nc(.0556434*m-.2040259*p+1.0572252*b))}function Dp(u,c,h){return u>0?new oi(Math.atan2(h,c)*Tu,Math.sqrt(c*c+h*h),u):new oi(NaN,NaN,u)}function tc(u){return u>.206893034?u*u*u:(u-4/29)/7.787037}function rc(u){return u>.008856?Math.pow(u,1/3):7.787037*u+4/29}function nc(u){return Math.round(255*(u<=.00304?12.92*u:1.055*Math.pow(u,1/2.4)-.055))}t.rgb=nn;function nn(u,c,h){return this instanceof nn?(this.r=~~u,this.g=~~c,void(this.b=~~h)):arguments.length<2?u instanceof nn?new nn(u.r,u.g,u.b):ka(""+u,nn,Ql):new nn(u,c,h)}function $p(u){return new nn(u>>16,u>>8&255,u&255)}function Zl(u){return $p(u)+""}var ia=nn.prototype=new na;ia.brighter=function(u){u=Math.pow(.7,arguments.length?u:1);var c=this.r,h=this.g,p=this.b,m=30;return!c&&!h&&!p?new nn(m,m,m):(c&&c<m&&(c=m),h&&h<m&&(h=m),p&&p<m&&(p=m),new nn(Math.min(255,c/u),Math.min(255,h/u),Math.min(255,p/u)))},ia.darker=function(u){return u=Math.pow(.7,arguments.length?u:1),new nn(u*this.r,u*this.g,u*this.b)},ia.hsl=function(){return ic(this.r,this.g,this.b)},ia.toString=function(){return"#"+ho(this.r)+ho(this.g)+ho(this.b)};function ho(u){return u<16?"0"+Math.max(0,u).toString(16):Math.min(255,u).toString(16)}function ka(u,c,h){var p=0,m=0,b=0,O,S,P;if(O=/([a-z]+)\((.*)\)/.exec(u=u.toLowerCase()),O)switch(S=O[2].split(","),O[1]){case"hsl":return h(parseFloat(S[0]),parseFloat(S[1])/100,parseFloat(S[2])/100);case"rgb":return c(aa(S[0]),aa(S[1]),aa(S[2]))}return(P=po.get(u))?c(P.r,P.g,P.b):(u!=null&&u.charAt(0)==="#"&&!isNaN(P=parseInt(u.slice(1),16))&&(u.length===4?(p=(P&3840)>>4,p=p>>4|p,m=P&240,m=m>>4|m,b=P&15,b=b<<4|b):u.length===7&&(p=(P&16711680)>>16,m=(P&65280)>>8,b=P&255)),c(p,m,b))}function ic(u,c,h){var p=Math.min(u/=255,c/=255,h/=255),m=Math.max(u,c,h),b=m-p,O,S,P=(m+p)/2;return b?(S=P<.5?b/(m+p):b/(2-m-p),u==m?O=(c-h)/b+(c<h?6:0):c==m?O=(h-u)/b+2:O=(u-c)/b+4,O*=60):(O=NaN,S=P>0&&P<1?0:O),new Vn(O,S,P)}function Ma(u,c,h){u=Jl(u),c=Jl(c),h=Jl(h);var p=rc((.4124564*u+.3575761*c+.1804375*h)/Zf),m=rc((.2126729*u+.7151522*c+.072175*h)/Jf),b=rc((.0193339*u+.119192*c+.9503041*h)/Np);return Zr(116*m-16,500*(p-m),200*(m-b))}function Jl(u){return(u/=255)<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)}function aa(u){var c=parseFloat(u);return u.charAt(u.length-1)==="%"?Math.round(c*2.55):c}var po=t.map({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});po.forEach(function(u,c){po.set(u,$p(c))});function gr(u){return typeof u=="function"?u:function(){return u}}t.functor=gr,t.xhr=ac(nt);function ac(u){return function(c,h,p){return arguments.length===2&&typeof h=="function"&&(p=h,h=null),es(c,h,u,p)}}function es(u,c,h,p){var m={},b=t.dispatch("beforesend","progress","load","error"),O={},S=new XMLHttpRequest,P=null;self.XDomainRequest&&!("withCredentials"in S)&&/^(http(s)?:)?\/\//.test(u)&&(S=new XDomainRequest),"onload"in S?S.onload=S.onerror=N:S.onreadystatechange=function(){S.readyState>3&&N()};function N(){var D=S.status,B;if(!D&&Fy(S)||D>=200&&D<300||D===304){try{B=h.call(m,S)}catch(z){b.error.call(m,z);return}b.load.call(m,B)}else b.error.call(m,S)}return S.onprogress=function(D){var B=t.event;t.event=D;try{b.progress.call(m,S)}finally{t.event=B}},m.header=function(D,B){return D=(D+"").toLowerCase(),arguments.length<2?O[D]:(B==null?delete O[D]:O[D]=B+"",m)},m.mimeType=function(D){return arguments.length?(c=D==null?null:D+"",m):c},m.responseType=function(D){return arguments.length?(P=D,m):P},m.response=function(D){return h=D,m},["get","post"].forEach(function(D){m[D]=function(){return m.send.apply(m,[D].concat(n(arguments)))}}),m.send=function(D,B,z){if(arguments.length===2&&typeof B=="function"&&(z=B,B=null),S.open(D,u,!0),c!=null&&!("accept"in O)&&(O.accept=c+",*/*"),S.setRequestHeader)for(var ie in O)S.setRequestHeader(ie,O[ie]);return c!=null&&S.overrideMimeType&&S.overrideMimeType(c),P!=null&&(S.responseType=P),z!=null&&m.on("error",z).on("load",function(oe){z(null,oe)}),b.beforesend.call(m,S),S.send(B??null),m},m.abort=function(){return S.abort(),m},t.rebind(m,b,"on"),p==null?m:m.get(Bp(p))}function Bp(u){return u.length===1?function(c,h){u(c==null?h:null)}:u}function Fy(u){var c=u.responseType;return c&&c!=="text"?u.response:u.responseText}t.dsv=function(u,c){var h=new RegExp('["'+u+`
852
+ ]`),p=u.charCodeAt(0);function m(N,D,B){arguments.length<3&&(B=D,D=null);var z=es(N,c,D==null?b:O(D),B);return z.row=function(ie){return arguments.length?z.response((D=ie)==null?b:O(ie)):D},z}function b(N){return m.parse(N.responseText)}function O(N){return function(D){return m.parse(D.responseText,N)}}m.parse=function(N,D){var B;return m.parseRows(N,function(z,ie){if(B)return B(z,ie-1);var oe=function(G){for(var X={},J=z.length,ue=0;ue<J;++ue)X[z[ue]]=G[ue];return X};B=D?function(G,X){return D(oe(G),X)}:oe})},m.parseRows=function(N,D){var B={},z={},ie=[],oe=N.length,G=0,X=0,J,ue;function le(){if(G>=oe)return z;if(ue)return ue=!1,B;var Pe=G;if(N.charCodeAt(Pe)===34){for(var Ue=Pe;Ue++<oe;)if(N.charCodeAt(Ue)===34){if(N.charCodeAt(Ue+1)!==34)break;++Ue}G=Ue+2;var tt=N.charCodeAt(Ue+1);return tt===13?(ue=!0,N.charCodeAt(Ue+2)===10&&++G):tt===10&&(ue=!0),N.slice(Pe+1,Ue).replace(/""/g,'"')}for(;G<oe;){var tt=N.charCodeAt(G++),je=1;if(tt===10)ue=!0;else if(tt===13)ue=!0,N.charCodeAt(G)===10&&(++G,++je);else if(tt!==p)continue;return N.slice(Pe,G-je)}return N.slice(Pe)}for(;(J=le())!==z;){for(var re=[];J!==B&&J!==z;)re.push(J),J=le();D&&(re=D(re,X++))==null||ie.push(re)}return ie},m.format=function(N){if(Array.isArray(N[0]))return m.formatRows(N);var D=new ut,B=[];return N.forEach(function(z){for(var ie in z)D.has(ie)||B.push(D.add(ie))}),[B.map(P).join(u)].concat(N.map(function(z){return B.map(function(ie){return P(z[ie])}).join(u)})).join(`
853
+ `)},m.formatRows=function(N){return N.map(S).join(`
854
+ `)};function S(N){return N.map(P).join(u)}function P(N){return h.test(N)?'"'+N.replace(/\"/g,'""')+'"':N}return m},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var ts,Ru,ui,rs,li=this[We(this,"requestAnimationFrame")]||function(u){setTimeout(u,17)};t.timer=function(){vo.apply(this,arguments)};function vo(u,c,h){var p=arguments.length;p<2&&(c=0),p<3&&(h=Date.now());var m=h+c,b={c:u,t:m,n:null};return Ru?Ru.n=b:ts=b,Ru=b,ui||(rs=clearTimeout(rs),ui=1,li(mo)),b}function mo(){var u=oa(),c=ns()-u;c>24?(isFinite(c)&&(clearTimeout(rs),rs=setTimeout(mo,c)),ui=0):(ui=1,li(mo))}t.timer.flush=function(){oa(),ns()};function oa(){for(var u=Date.now(),c=ts;c;)u>=c.t&&c.c(u-c.t)&&(c.c=null),c=c.n;return u}function ns(){for(var u,c=ts,h=1/0;c;)c.c?(c.t<h&&(h=c.t),c=(u=c).n):c=u?u.n=c.n:ts=c.n;return Ru=u,h}t.round=function(u,c){return c?Math.round(u*(c=Math.pow(10,c)))/c:Math.round(u)},t.geom={};function $i(u){return u[0]}function Bi(u){return u[1]}t.geom.hull=function(u){var c=$i,h=Bi;if(arguments.length)return p(u);function p(m){if(m.length<3)return[];var b=gr(c),O=gr(h),S,P=m.length,N=[],D=[];for(S=0;S<P;S++)N.push([+b.call(this,m[S],S),+O.call(this,m[S],S),S]);for(N.sort(zp),S=0;S<P;S++)D.push([N[S][0],-N[S][1]]);var B=Pu(N),z=Pu(D),ie=z[0]===B[0],oe=z[z.length-1]===B[B.length-1],G=[];for(S=B.length-1;S>=0;--S)G.push(m[N[B[S]][2]]);for(S=+ie;S<z.length-oe;++S)G.push(m[N[z[S]][2]]);return G}return p.x=function(m){return arguments.length?(c=m,p):c},p.y=function(m){return arguments.length?(h=m,p):h},p};function Pu(u){for(var c=u.length,h=[0,1],p=2,m=2;m<c;m++){for(;p>1&&Ry(u[h[p-2]],u[h[p-1]],u[m])<=0;)--p;h[p++]=m}return h.slice(0,p)}function zp(u,c){return u[0]-c[0]||u[1]-c[1]}t.geom.polygon=function(u){return qt(u,go),u};var go=t.geom.polygon.prototype=[];go.area=function(){for(var u=-1,c=this.length,h,p=this[c-1],m=0;++u<c;)h=p,p=this[u],m+=h[1]*p[0]-h[0]*p[1];return m*.5},go.centroid=function(u){var c=-1,h=this.length,p=0,m=0,b,O=this[h-1],S;for(arguments.length||(u=-1/(6*this.area()));++c<h;)b=O,O=this[c],S=b[0]*O[1]-O[0]*b[1],p+=(b[0]+O[0])*S,m+=(b[1]+O[1])*S;return[p*u,m*u]},go.clip=function(u){for(var c,h=Up(u),p=-1,m=this.length-Up(this),b,O,S=this[m-1],P,N,D;++p<m;){for(c=u.slice(),u.length=0,P=this[p],N=c[(O=c.length-h)-1],b=-1;++b<O;)D=c[b],is(D,S,P)?(is(N,S,P)||u.push(oc(N,D,S,P)),u.push(D)):is(N,S,P)&&u.push(oc(N,D,S,P)),N=D;h&&u.push(u[0]),S=P}return u};function is(u,c,h){return(h[0]-c[0])*(u[1]-c[1])<(h[1]-c[1])*(u[0]-c[0])}function oc(u,c,h,p){var m=u[0],b=h[0],O=c[0]-m,S=p[0]-b,P=u[1],N=h[1],D=c[1]-P,B=p[1]-N,z=(S*(P-N)-B*(m-b))/(B*O-S*D);return[m+z*O,P+z*D]}function Up(u){var c=u[0],h=u[u.length-1];return!(c[0]-h[0]||c[1]-h[1])}var yo,Ra,ua,Iu=[],Fu,Pa,Ia=[];function uc(){us(this),this.edge=this.site=this.circle=null}function as(u){var c=Iu.pop()||new uc;return c.site=u,c}function Nu(u){si(u),ua.remove(u),Iu.push(u),us(u)}function lc(u){var c=u.circle,h=c.x,p=c.cy,m={x:h,y:p},b=u.P,O=u.N,S=[u];Nu(u);for(var P=b;P.circle&&_(h-P.circle.x)<ar&&_(p-P.circle.cy)<ar;)b=P.P,S.unshift(P),Nu(P),P=b;S.unshift(P),si(P);for(var N=O;N.circle&&_(h-N.circle.x)<ar&&_(p-N.circle.cy)<ar;)O=N.N,S.push(N),Nu(N),N=O;S.push(N),si(N);var D=S.length,B;for(B=1;B<D;++B)N=S[B],P=S[B-1],bo(N.edge,P.site,N.site,m);P=S[0],N=S[D-1],N.edge=Du(P.site,N.site,null,m),Fa(P),Fa(N)}function jp(u){for(var c=u.x,h=u.y,p,m,b,O,S=ua._;S;)if(b=sc(S,h)-c,b>ar)S=S.L;else if(O=c-Gp(S,h),O>ar){if(!S.R){p=S;break}S=S.R}else{b>-ar?(p=S.P,m=S):O>-ar?(p=S,m=S.N):p=m=S;break}var P=as(u);if(ua.insert(p,P),!(!p&&!m)){if(p===m){si(p),m=as(p.site),ua.insert(P,m),P.edge=m.edge=Du(p.site,P.site),Fa(p),Fa(m);return}if(!m){P.edge=Du(p.site,P.site);return}si(p),si(m);var N=p.site,D=N.x,B=N.y,z=u.x-D,ie=u.y-B,oe=m.site,G=oe.x-D,X=oe.y-B,J=2*(z*X-ie*G),ue=z*z+ie*ie,le=G*G+X*X,re={x:(X*ue-ie*le)/J+D,y:(z*le-G*ue)/J+B};bo(m.edge,N,oe,re),P.edge=Du(N,u,null,re),m.edge=Du(u,oe,null,re),Fa(p),Fa(m)}}function sc(u,c){var h=u.site,p=h.x,m=h.y,b=m-c;if(!b)return p;var O=u.P;if(!O)return-1/0;h=O.site;var S=h.x,P=h.y,N=P-c;if(!N)return S;var D=S-p,B=1/b-1/N,z=D/N;return B?(-z+Math.sqrt(z*z-2*B*(D*D/(-2*N)-P+N/2+m-b/2)))/B+p:(p+S)/2}function Gp(u,c){var h=u.N;if(h)return sc(h,c);var p=u.site;return p.y===c?p.x:1/0}function fc(u){this.site=u,this.edges=[]}fc.prototype.prepare=function(){for(var u=this.edges,c=u.length,h;c--;)h=u[c].edge,(!h.b||!h.a)&&u.splice(c,1);return u.sort(cc),u.length};function Wp(u){for(var c=u[0][0],h=u[1][0],p=u[0][1],m=u[1][1],b,O,S,P,N=Ra,D=N.length,B,z,ie,oe,G,X;D--;)if(B=N[D],!(!B||!B.prepare()))for(ie=B.edges,oe=ie.length,z=0;z<oe;)X=ie[z].end(),S=X.x,P=X.y,G=ie[++z%oe].start(),b=G.x,O=G.y,(_(S-b)>ar||_(P-O)>ar)&&(ie.splice(z,0,new os(Ny(B.site,X,_(S-c)<ar&&m-P>ar?{x:c,y:_(b-c)<ar?O:m}:_(P-m)<ar&&h-S>ar?{x:_(O-m)<ar?b:h,y:m}:_(S-h)<ar&&P-p>ar?{x:h,y:_(b-h)<ar?O:p}:_(P-p)<ar&&S-c>ar?{x:_(O-p)<ar?b:c,y:p}:null),B.site,null)),++oe)}function cc(u,c){return c.angle-u.angle}function Hp(){us(this),this.x=this.y=this.arc=this.site=this.cy=null}function Fa(u){var c=u.P,h=u.N;if(!(!c||!h)){var p=c.site,m=u.site,b=h.site;if(p!==b){var O=m.x,S=m.y,P=p.x-O,N=p.y-S,D=b.x-O,X=b.y-S,B=2*(P*X-N*D);if(!(B>=-kp)){var z=P*P+N*N,ie=D*D+X*X,oe=(X*z-N*ie)/B,G=(P*ie-D*z)/B,X=G+S,J=Ia.pop()||new Hp;J.arc=u,J.site=m,J.x=oe+O,J.y=X+Math.sqrt(oe*oe+G*G),J.cy=X,u.circle=J;for(var ue=null,le=Pa._;le;)if(J.y<le.y||J.y===le.y&&J.x<=le.x)if(le.L)le=le.L;else{ue=le.P;break}else if(le.R)le=le.R;else{ue=le;break}Pa.insert(ue,J),ue||(Fu=J)}}}}function si(u){var c=u.circle;c&&(c.P||(Fu=c.N),Pa.remove(c),Ia.push(c),us(c),u.circle=null)}function hc(u,c,h,p){return function(m){var b=m.a,O=m.b,S=b.x,P=b.y,N=O.x,D=O.y,B=0,z=1,ie=N-S,oe=D-P,G;if(G=u-S,!(!ie&&G>0)){if(G/=ie,ie<0){if(G<B)return;G<z&&(z=G)}else if(ie>0){if(G>z)return;G>B&&(B=G)}if(G=h-S,!(!ie&&G<0)){if(G/=ie,ie<0){if(G>z)return;G>B&&(B=G)}else if(ie>0){if(G<B)return;G<z&&(z=G)}if(G=c-P,!(!oe&&G>0)){if(G/=oe,oe<0){if(G<B)return;G<z&&(z=G)}else if(oe>0){if(G>z)return;G>B&&(B=G)}if(G=p-P,!(!oe&&G<0)){if(G/=oe,oe<0){if(G>z)return;G>B&&(B=G)}else if(oe>0){if(G<B)return;G<z&&(z=G)}return B>0&&(m.a={x:S+B*ie,y:P+B*oe}),z<1&&(m.b={x:S+z*ie,y:P+z*oe}),m}}}}}}function dc(u){for(var c=yo,h=hc(u[0][0],u[0][1],u[1][0],u[1][1]),p=c.length,m;p--;)m=c[p],(!Lu(m,u)||!h(m)||_(m.a.x-m.b.x)<ar&&_(m.a.y-m.b.y)<ar)&&(m.a=m.b=null,c.splice(p,1))}function Lu(u,c){var h=u.b;if(h)return!0;var p=u.a,m=c[0][0],b=c[1][0],O=c[0][1],S=c[1][1],P=u.l,N=u.r,D=P.x,B=P.y,z=N.x,ie=N.y,oe=(D+z)/2,G=(B+ie)/2,X,J;if(ie===B){if(oe<m||oe>=b)return;if(D>z){if(!p)p={x:oe,y:O};else if(p.y>=S)return;h={x:oe,y:S}}else{if(!p)p={x:oe,y:S};else if(p.y<O)return;h={x:oe,y:O}}}else if(X=(D-z)/(ie-B),J=G-X*oe,X<-1||X>1)if(D>z){if(!p)p={x:(O-J)/X,y:O};else if(p.y>=S)return;h={x:(S-J)/X,y:S}}else{if(!p)p={x:(S-J)/X,y:S};else if(p.y<O)return;h={x:(O-J)/X,y:O}}else if(B<ie){if(!p)p={x:m,y:X*m+J};else if(p.x>=b)return;h={x:b,y:X*b+J}}else{if(!p)p={x:b,y:X*b+J};else if(p.x<m)return;h={x:m,y:X*m+J}}return u.a=p,u.b=h,!0}function qp(u,c){this.l=u,this.r=c,this.a=this.b=null}function Du(u,c,h,p){var m=new qp(u,c);return yo.push(m),h&&bo(m,u,c,h),p&&bo(m,c,u,p),Ra[u.i].edges.push(new os(m,u,c)),Ra[c.i].edges.push(new os(m,c,u)),m}function Ny(u,c,h){var p=new qp(u,null);return p.a=c,p.b=h,yo.push(p),p}function bo(u,c,h,p){!u.a&&!u.b?(u.a=p,u.l=c,u.r=h):u.l===h?u.b=p:u.a=p}function os(u,c,h){var p=u.a,m=u.b;this.edge=u,this.site=c,this.angle=h?Math.atan2(h.y-c.y,h.x-c.x):u.l===c?Math.atan2(m.x-p.x,p.y-m.y):Math.atan2(p.x-m.x,m.y-p.y)}os.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function pc(){this._=null}function us(u){u.U=u.C=u.L=u.R=u.P=u.N=null}pc.prototype={insert:function(u,c){var h,p,m;if(u){if(c.P=u,c.N=u.N,u.N&&(u.N.P=c),u.N=c,u.R){for(u=u.R;u.L;)u=u.L;u.L=c}else u.R=c;h=u}else this._?(u=ls(this._),c.P=null,c.N=u,u.P=u.L=c,h=u):(c.P=c.N=null,this._=c,h=null);for(c.L=c.R=null,c.U=h,c.C=!0,u=c;h&&h.C;)p=h.U,h===p.L?(m=p.R,m&&m.C?(h.C=m.C=!1,p.C=!0,u=p):(u===h.R&&(Na(this,h),u=h,h=u.U),h.C=!1,p.C=!0,$u(this,p))):(m=p.L,m&&m.C?(h.C=m.C=!1,p.C=!0,u=p):(u===h.L&&($u(this,h),u=h,h=u.U),h.C=!1,p.C=!0,Na(this,p))),h=u.U;this._.C=!1},remove:function(u){u.N&&(u.N.P=u.P),u.P&&(u.P.N=u.N),u.N=u.P=null;var c=u.U,h,p=u.L,m=u.R,b,O;if(p?m?b=ls(m):b=p:b=m,c?c.L===u?c.L=b:c.R=b:this._=b,p&&m?(O=b.C,b.C=u.C,b.L=p,p.U=b,b!==m?(c=b.U,b.U=u.U,u=b.R,c.L=u,b.R=m,m.U=b):(b.U=c,c=b,u=b.R)):(O=u.C,u=b),u&&(u.U=c),!O){if(u&&u.C){u.C=!1;return}do{if(u===this._)break;if(u===c.L){if(h=c.R,h.C&&(h.C=!1,c.C=!0,Na(this,c),h=c.R),h.L&&h.L.C||h.R&&h.R.C){(!h.R||!h.R.C)&&(h.L.C=!1,h.C=!0,$u(this,h),h=c.R),h.C=c.C,c.C=h.R.C=!1,Na(this,c),u=this._;break}}else if(h=c.L,h.C&&(h.C=!1,c.C=!0,$u(this,c),h=c.L),h.L&&h.L.C||h.R&&h.R.C){(!h.L||!h.L.C)&&(h.R.C=!1,h.C=!0,Na(this,h),h=c.L),h.C=c.C,c.C=h.L.C=!1,$u(this,c),u=this._;break}h.C=!0,u=c,c=c.U}while(!u.C);u&&(u.C=!1)}}};function Na(u,c){var h=c,p=c.R,m=h.U;m?m.L===h?m.L=p:m.R=p:u._=p,p.U=m,h.U=p,h.R=p.L,h.R&&(h.R.U=h),p.L=h}function $u(u,c){var h=c,p=c.L,m=h.U;m?m.L===h?m.L=p:m.R=p:u._=p,p.U=m,h.U=p,h.L=p.R,h.L&&(h.L.U=h),p.R=h}function ls(u){for(;u.L;)u=u.L;return u}function ss(u,c){var h=u.sort(Vp).pop(),p,m,b;for(yo=[],Ra=new Array(u.length),ua=new pc,Pa=new pc;;)if(b=Fu,h&&(!b||h.y<b.y||h.y===b.y&&h.x<b.x))(h.x!==p||h.y!==m)&&(Ra[h.i]=new fc(h),jp(h),p=h.x,m=h.y),h=u.pop();else if(b)lc(b.arc);else break;c&&(dc(c),Wp(c));var O={cells:Ra,edges:yo};return ua=Pa=yo=Ra=null,O}function Vp(u,c){return c.y-u.y||c.x-u.x}t.geom.voronoi=function(u){var c=$i,h=Bi,p=c,m=h,b=xo;if(u)return O(u);function O(P){var N=new Array(P.length),D=b[0][0],B=b[0][1],z=b[1][0],ie=b[1][1];return ss(S(P),b).cells.forEach(function(oe,G){var X=oe.edges,J=oe.site,ue=N[G]=X.length?X.map(function(le){var re=le.start();return[re.x,re.y]}):J.x>=D&&J.x<=z&&J.y>=B&&J.y<=ie?[[D,ie],[z,ie],[z,B],[D,B]]:[];ue.point=P[G]}),N}function S(P){return P.map(function(N,D){return{x:Math.round(p(N,D)/ar)*ar,y:Math.round(m(N,D)/ar)*ar,i:D}})}return O.links=function(P){return ss(S(P)).edges.filter(function(N){return N.l&&N.r}).map(function(N){return{source:P[N.l.i],target:P[N.r.i]}})},O.triangles=function(P){var N=[];return ss(S(P)).cells.forEach(function(D,B){for(var z=D.site,ie=D.edges.sort(cc),oe=-1,G=ie.length,X,J=ie[G-1].edge,ue=J.l===z?J.r:J.l;++oe<G;)X=ue,J=ie[oe].edge,ue=J.l===z?J.r:J.l,B<X.i&&B<ue.i&&Ly(z,X,ue)<0&&N.push([P[B],P[X.i],P[ue.i]])}),N},O.x=function(P){return arguments.length?(p=gr(c=P),O):c},O.y=function(P){return arguments.length?(m=gr(h=P),O):h},O.clipExtent=function(P){return arguments.length?(b=P??xo,O):b===xo?null:b},O.size=function(P){return arguments.length?O.clipExtent(P&&[[0,0],P]):b===xo?null:b&&b[1]},O};var xo=[[-1e6,-1e6],[1e6,1e6]];function Ly(u,c,h){return(u.x-h.x)*(c.y-u.y)-(u.x-c.x)*(h.y-u.y)}t.geom.delaunay=function(u){return t.geom.voronoi().triangles(u)},t.geom.quadtree=function(u,c,h,p,m){var b=$i,O=Bi,S;if(S=arguments.length)return b=fs,O=Dy,S===3&&(m=h,p=c,h=c=0),P(u);function P(N){var D,B=gr(b),z=gr(O),ie,oe,G,X,J,ue,le,re;if(c!=null)J=c,ue=h,le=p,re=m;else if(le=re=-(J=ue=1/0),ie=[],oe=[],X=N.length,S)for(G=0;G<X;++G)D=N[G],D.x<J&&(J=D.x),D.y<ue&&(ue=D.y),D.x>le&&(le=D.x),D.y>re&&(re=D.y),ie.push(D.x),oe.push(D.y);else for(G=0;G<X;++G){var Pe=+B(D=N[G],G),Ue=+z(D,G);Pe<J&&(J=Pe),Ue<ue&&(ue=Ue),Pe>le&&(le=Pe),Ue>re&&(re=Ue),ie.push(Pe),oe.push(Ue)}var tt=le-J,je=re-ue;tt>je?re=ue+tt:le=J+je;function at(xt,Ut,or,Rr,pr,rt,Ht,Xt){if(!(isNaN(or)||isNaN(Rr)))if(xt.leaf){var ur=xt.x,Ar=xt.y;if(ur!=null)if(_(ur-or)+_(Ar-Rr)<.01)vt(xt,Ut,or,Rr,pr,rt,Ht,Xt);else{var zr=xt.point;xt.x=xt.y=xt.point=null,vt(xt,zr,ur,Ar,pr,rt,Ht,Xt),vt(xt,Ut,or,Rr,pr,rt,Ht,Xt)}else xt.x=or,xt.y=Rr,xt.point=Ut}else vt(xt,Ut,or,Rr,pr,rt,Ht,Xt)}function vt(xt,Ut,or,Rr,pr,rt,Ht,Xt){var ur=(pr+Ht)*.5,Ar=(rt+Xt)*.5,zr=or>=ur,Xr=Rr>=Ar,vn=Xr<<1|zr;xt.leaf=!1,xt=xt.nodes[vn]||(xt.nodes[vn]=Yp()),zr?pr=ur:Ht=ur,Xr?rt=Ar:Xt=Ar,at(xt,Ut,or,Rr,pr,rt,Ht,Xt)}var Wt=Yp();if(Wt.add=function(xt){at(Wt,xt,+B(xt,++G),+z(xt,G),J,ue,le,re)},Wt.visit=function(xt){Bu(xt,Wt,J,ue,le,re)},Wt.find=function(xt){return $y(Wt,xt[0],xt[1],J,ue,le,re)},G=-1,c==null){for(;++G<X;)at(Wt,N[G],ie[G],oe[G],J,ue,le,re);--G}else N.forEach(Wt.add);return ie=oe=N=D=null,Wt}return P.x=function(N){return arguments.length?(b=N,P):b},P.y=function(N){return arguments.length?(O=N,P):O},P.extent=function(N){return arguments.length?(N==null?c=h=p=m=null:(c=+N[0][0],h=+N[0][1],p=+N[1][0],m=+N[1][1]),P):c==null?null:[[c,h],[p,m]]},P.size=function(N){return arguments.length?(N==null?c=h=p=m=null:(c=h=0,p=+N[0],m=+N[1]),P):c==null?null:[p-c,m-h]},P};function fs(u){return u.x}function Dy(u){return u.y}function Yp(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Bu(u,c,h,p,m,b){if(!u(c,h,p,m,b)){var O=(h+m)*.5,S=(p+b)*.5,P=c.nodes;P[0]&&Bu(u,P[0],h,p,O,S),P[1]&&Bu(u,P[1],O,p,m,S),P[2]&&Bu(u,P[2],h,S,O,b),P[3]&&Bu(u,P[3],O,S,m,b)}}function $y(u,c,h,p,m,b,O){var S=1/0,P;return function N(D,B,z,ie,oe){if(!(B>b||z>O||ie<p||oe<m)){if(G=D.point){var G,X=c-D.x,J=h-D.y,ue=X*X+J*J;if(ue<S){var le=Math.sqrt(S=ue);p=c-le,m=h-le,b=c+le,O=h+le,P=G}}for(var re=D.nodes,Pe=(B+ie)*.5,Ue=(z+oe)*.5,tt=c>=Pe,je=h>=Ue,at=je<<1|tt,vt=at+4;at<vt;++at)if(D=re[at&3])switch(at&3){case 0:N(D,B,z,Pe,Ue);break;case 1:N(D,Pe,z,ie,Ue);break;case 2:N(D,B,Ue,Pe,oe);break;case 3:N(D,Pe,Ue,ie,oe);break}}}(u,p,m,b,O),P}t.interpolateRgb=vc;function vc(u,c){u=t.rgb(u),c=t.rgb(c);var h=u.r,p=u.g,m=u.b,b=c.r-h,O=c.g-p,S=c.b-m;return function(P){return"#"+ho(Math.round(h+b*P))+ho(Math.round(p+O*P))+ho(Math.round(m+S*P))}}t.interpolateObject=Xp;function Xp(u,c){var h={},p={},m;for(m in u)m in c?h[m]=_i(u[m],c[m]):p[m]=u[m];for(m in c)m in u||(p[m]=c[m]);return function(b){for(m in h)p[m]=h[m](b);return p}}t.interpolateNumber=zi;function zi(u,c){return u=+u,c=+c,function(h){return u*(1-h)+c*h}}t.interpolateString=mc;function mc(u,c){var h=La.lastIndex=gc.lastIndex=0,p,m,b,O=-1,S=[],P=[];for(u=u+"",c=c+"";(p=La.exec(u))&&(m=gc.exec(c));)(b=m.index)>h&&(b=c.slice(h,b),S[O]?S[O]+=b:S[++O]=b),(p=p[0])===(m=m[0])?S[O]?S[O]+=m:S[++O]=m:(S[++O]=null,P.push({i:O,x:zi(p,m)})),h=gc.lastIndex;return h<c.length&&(b=c.slice(h),S[O]?S[O]+=b:S[++O]=b),S.length<2?P[0]?(c=P[0].x,function(N){return c(N)+""}):function(){return c}:(c=P.length,function(N){for(var D=0,B;D<c;++D)S[(B=P[D]).i]=B.x(N);return S.join("")})}var La=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gc=new RegExp(La.source,"g");t.interpolate=_i;function _i(u,c){for(var h=t.interpolators.length,p;--h>=0&&!(p=t.interpolators[h](u,c)););return p}t.interpolators=[function(u,c){var h=typeof c;return(h==="string"?po.has(c.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(c)?vc:mc:c instanceof na?vc:Array.isArray(c)?Pn:h==="object"&&isNaN(c)?Xp:zi)(u,c)}],t.interpolateArray=Pn;function Pn(u,c){var h=[],p=[],m=u.length,b=c.length,O=Math.min(u.length,c.length),S;for(S=0;S<O;++S)h.push(_i(u[S],c[S]));for(;S<m;++S)p[S]=u[S];for(;S<b;++S)p[S]=c[S];return function(P){for(S=0;S<O;++S)p[S]=h[S](P);return p}}var Da=function(){return nt},Kp=t.map({linear:Da,poly:Jr,quad:function(){return Jp},cubic:function(){return By},sin:function(){return ev},exp:function(){return tv},circle:function(){return $a},elastic:rv,back:nv,bounce:function(){return zy}}),Qp=t.map({in:nt,out:yc,"in-out":bc,"out-in":function(u){return bc(yc(u))}});t.ease=function(u){var c=u.indexOf("-"),h=c>=0?u.slice(0,c):u,p=c>=0?u.slice(c+1):"in";return h=Kp.get(h)||Da,p=Qp.get(p)||nt,Zp(p(h.apply(null,r.call(arguments,1))))};function Zp(u){return function(c){return c<=0?0:c>=1?1:u(c)}}function yc(u){return function(c){return 1-u(1-c)}}function bc(u){return function(c){return .5*(c<.5?u(2*c):2-u(2-2*c))}}function Jp(u){return u*u}function By(u){return u*u*u}function wo(u){if(u<=0)return 0;if(u>=1)return 1;var c=u*u,h=c*u;return 4*(u<.5?h:3*(u-c)+h-.75)}function Jr(u){return function(c){return Math.pow(c,u)}}function ev(u){return 1-Math.cos(u*wi)}function tv(u){return Math.pow(2,10*(u-1))}function $a(u){return 1-Math.sqrt(1-u*u)}function rv(u,c){var h;return arguments.length<2&&(c=.45),arguments.length?h=c/co*Math.asin(1/u):(u=1,h=c/4),function(p){return 1+u*Math.pow(2,-10*p)*Math.sin((p-h)*co/c)}}function nv(u){return u||(u=1.70158),function(c){return c*c*((u+1)*c-u)}}function zy(u){return u<1/2.75?7.5625*u*u:u<2/2.75?7.5625*(u-=1.5/2.75)*u+.75:u<2.5/2.75?7.5625*(u-=2.25/2.75)*u+.9375:7.5625*(u-=2.625/2.75)*u+.984375}t.interpolateHcl=Uy;function Uy(u,c){u=t.hcl(u),c=t.hcl(c);var h=u.h,p=u.c,m=u.l,b=c.h-h,O=c.c-p,S=c.l-m;return isNaN(O)&&(O=0,p=isNaN(p)?c.c:p),isNaN(b)?(b=0,h=isNaN(h)?c.h:h):b>180?b-=360:b<-180&&(b+=360),function(P){return Mu(h+b*P,p+O*P,m+S*P)+""}}t.interpolateHsl=jy;function jy(u,c){u=t.hsl(u),c=t.hsl(c);var h=u.h,p=u.s,m=u.l,b=c.h-h,O=c.s-p,S=c.l-m;return isNaN(O)&&(O=0,p=isNaN(p)?c.s:p),isNaN(b)?(b=0,h=isNaN(h)?c.h:h):b>180?b-=360:b<-180&&(b+=360),function(P){return Ql(h+b*P,p+O*P,m+S*P)+""}}t.interpolateLab=Gy;function Gy(u,c){u=t.lab(u),c=t.lab(c);var h=u.l,p=u.a,m=u.b,b=c.l-h,O=c.a-p,S=c.b-m;return function(P){return Lp(h+b*P,p+O*P,m+S*P)+""}}t.interpolateRound=cs;function cs(u,c){return c-=u,function(h){return Math.round(u+c*h)}}t.transform=function(u){var c=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(h){if(h!=null){c.setAttribute("transform",h);var p=c.transform.baseVal.consolidate()}return new xc(p?p.matrix:Wy)})(u)};function xc(u){var c=[u.a,u.b],h=[u.c,u.d],p=wc(c),m=iv(c,h),b=wc(av(h,c,-m))||0;c[0]*h[1]<h[0]*c[1]&&(c[0]*=-1,c[1]*=-1,p*=-1,m*=-1),this.rotate=(p?Math.atan2(c[1],c[0]):Math.atan2(-h[0],h[1]))*Tu,this.translate=[u.e,u.f],this.scale=[p,b],this.skew=b?Math.atan2(m,b)*Tu:0}xc.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function iv(u,c){return u[0]*c[0]+u[1]*c[1]}function wc(u){var c=Math.sqrt(iv(u,u));return c&&(u[0]/=c,u[1]/=c),c}function av(u,c,h){return u[0]+=h*c[0],u[1]+=h*c[1],u}var Wy={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=_c;function Ui(u){return u.length?u.pop()+",":""}function Hy(u,c,h,p){if(u[0]!==c[0]||u[1]!==c[1]){var m=h.push("translate(",null,",",null,")");p.push({i:m-4,x:zi(u[0],c[0])},{i:m-2,x:zi(u[1],c[1])})}else(c[0]||c[1])&&h.push("translate("+c+")")}function la(u,c,h,p){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),p.push({i:h.push(Ui(h)+"rotate(",null,")")-2,x:zi(u,c)})):c&&h.push(Ui(h)+"rotate("+c+")")}function hs(u,c,h,p){u!==c?p.push({i:h.push(Ui(h)+"skewX(",null,")")-2,x:zi(u,c)}):c&&h.push(Ui(h)+"skewX("+c+")")}function ov(u,c,h,p){if(u[0]!==c[0]||u[1]!==c[1]){var m=h.push(Ui(h)+"scale(",null,",",null,")");p.push({i:m-4,x:zi(u[0],c[0])},{i:m-2,x:zi(u[1],c[1])})}else(c[0]!==1||c[1]!==1)&&h.push(Ui(h)+"scale("+c+")")}function _c(u,c){var h=[],p=[];return u=t.transform(u),c=t.transform(c),Hy(u.translate,c.translate,h,p),la(u.rotate,c.rotate,h,p),hs(u.skew,c.skew,h,p),ov(u.scale,c.scale,h,p),u=c=null,function(m){for(var b=-1,O=p.length,S;++b<O;)h[(S=p[b]).i]=S.x(m);return h.join("")}}function uv(u,c){return c=(c-=u=+u)||1/c,function(h){return(h-u)/c}}function lv(u,c){return c=(c-=u=+u)||1/c,function(h){return Math.max(0,Math.min(1,(h-u)/c))}}t.layout={},t.layout.bundle=function(){return function(u){for(var c=[],h=-1,p=u.length;++h<p;)c.push(sv(u[h]));return c}};function sv(u){for(var c=u.source,h=u.target,p=fv(c,h),m=[c];c!==p;)c=c.parent,m.push(c);for(var b=m.length;h!==p;)m.splice(b,0,h),h=h.parent;return m}function Sc(u){for(var c=[],h=u.parent;h!=null;)c.push(u),u=h,h=h.parent;return c.push(u),c}function fv(u,c){if(u===c)return u;for(var h=Sc(u),p=Sc(c),m=h.pop(),b=p.pop(),O=null;m===b;)O=m,m=h.pop(),b=p.pop();return O}t.layout.chord=function(){var u={},c,h,p,m,b=0,O,S,P;function N(){var B={},z=[],ie=t.range(m),oe=[],G,X,J,ue,le;for(c=[],h=[],G=0,ue=-1;++ue<m;){for(X=0,le=-1;++le<m;)X+=p[ue][le];z.push(X),oe.push(t.range(m)),G+=X}for(O&&ie.sort(function(Wt,xt){return O(z[Wt],z[xt])}),S&&oe.forEach(function(Wt,xt){Wt.sort(function(Ut,or){return S(p[xt][Ut],p[xt][or])})}),G=(co-b*m)/G,X=0,ue=-1;++ue<m;){for(J=X,le=-1;++le<m;){var re=ie[ue],Pe=oe[re][le],Ue=p[re][Pe],tt=X,je=X+=Ue*G;B[re+"-"+Pe]={index:re,subindex:Pe,startAngle:tt,endAngle:je,value:Ue}}h[re]={index:re,startAngle:J,endAngle:X,value:z[re]},X+=b}for(ue=-1;++ue<m;)for(le=ue-1;++le<m;){var at=B[ue+"-"+le],vt=B[le+"-"+ue];(at.value||vt.value)&&c.push(at.value<vt.value?{source:vt,target:at}:{source:at,target:vt})}P&&D()}function D(){c.sort(function(B,z){return P((B.source.value+B.target.value)/2,(z.source.value+z.target.value)/2)})}return u.matrix=function(B){return arguments.length?(m=(p=B)&&p.length,c=h=null,u):p},u.padding=function(B){return arguments.length?(b=B,c=h=null,u):b},u.sortGroups=function(B){return arguments.length?(O=B,c=h=null,u):O},u.sortSubgroups=function(B){return arguments.length?(S=B,c=null,u):S},u.sortChords=function(B){return arguments.length?(P=B,c&&D(),u):P},u.chords=function(){return c||N(),c},u.groups=function(){return h||N(),h},u},t.layout.force=function(){var u={},c=t.dispatch("start","tick","end"),h,p=[1,1],m,b,O=.9,S=ji,P=Ec,N=-30,D=_o,B=.1,z=.64,ie=[],oe=[],G,X,J;function ue(re){return function(Pe,Ue,tt,je){if(Pe.point!==re){var at=Pe.cx-re.x,vt=Pe.cy-re.y,Wt=je-Ue,xt=at*at+vt*vt;if(Wt*Wt/z<xt){if(xt<D){var Ut=Pe.charge/xt;re.px-=at*Ut,re.py-=vt*Ut}return!0}if(Pe.point&&xt&&xt<D){var Ut=Pe.pointCharge/xt;re.px-=at*Ut,re.py-=vt*Ut}}return!Pe.charge}}u.tick=function(){if((b*=.99)<.005)return h=null,c.end({type:"end",alpha:b=0}),!0;var re=ie.length,Pe=oe.length,Ue,tt,je,at,vt,Wt,xt,Ut,or;for(tt=0;tt<Pe;++tt)je=oe[tt],at=je.source,vt=je.target,Ut=vt.x-at.x,or=vt.y-at.y,(Wt=Ut*Ut+or*or)&&(Wt=b*X[tt]*((Wt=Math.sqrt(Wt))-G[tt])/Wt,Ut*=Wt,or*=Wt,vt.x-=Ut*(xt=at.weight+vt.weight?at.weight/(at.weight+vt.weight):.5),vt.y-=or*xt,at.x+=Ut*(xt=1-xt),at.y+=or*xt);if((xt=b*B)&&(Ut=p[0]/2,or=p[1]/2,tt=-1,xt))for(;++tt<re;)je=ie[tt],je.x+=(Ut-je.x)*xt,je.y+=(or-je.y)*xt;if(N)for(pv(Ue=t.geom.quadtree(ie),b,J),tt=-1;++tt<re;)(je=ie[tt]).fixed||Ue.visit(ue(je));for(tt=-1;++tt<re;)je=ie[tt],je.fixed?(je.x=je.px,je.y=je.py):(je.x-=(je.px-(je.px=je.x))*O,je.y-=(je.py-(je.py=je.y))*O);c.tick({type:"tick",alpha:b})},u.nodes=function(re){return arguments.length?(ie=re,u):ie},u.links=function(re){return arguments.length?(oe=re,u):oe},u.size=function(re){return arguments.length?(p=re,u):p},u.linkDistance=function(re){return arguments.length?(S=typeof re=="function"?re:+re,u):S},u.distance=u.linkDistance,u.linkStrength=function(re){return arguments.length?(P=typeof re=="function"?re:+re,u):P},u.friction=function(re){return arguments.length?(O=+re,u):O},u.charge=function(re){return arguments.length?(N=typeof re=="function"?re:+re,u):N},u.chargeDistance=function(re){return arguments.length?(D=re*re,u):Math.sqrt(D)},u.gravity=function(re){return arguments.length?(B=+re,u):B},u.theta=function(re){return arguments.length?(z=re*re,u):Math.sqrt(z)},u.alpha=function(re){return arguments.length?(re=+re,b?re>0?b=re:(h.c=null,h.t=NaN,h=null,c.end({type:"end",alpha:b=0})):re>0&&(c.start({type:"start",alpha:b=re}),h=vo(u.tick)),u):b},u.start=function(){var re,Pe=ie.length,Ue=oe.length,tt=p[0],je=p[1],at,vt;for(re=0;re<Pe;++re)(vt=ie[re]).index=re,vt.weight=0;for(re=0;re<Ue;++re)vt=oe[re],typeof vt.source=="number"&&(vt.source=ie[vt.source]),typeof vt.target=="number"&&(vt.target=ie[vt.target]),++vt.source.weight,++vt.target.weight;for(re=0;re<Pe;++re)vt=ie[re],isNaN(vt.x)&&(vt.x=Wt("x",tt)),isNaN(vt.y)&&(vt.y=Wt("y",je)),isNaN(vt.px)&&(vt.px=vt.x),isNaN(vt.py)&&(vt.py=vt.y);if(G=[],typeof S=="function")for(re=0;re<Ue;++re)G[re]=+S.call(this,oe[re],re);else for(re=0;re<Ue;++re)G[re]=S;if(X=[],typeof P=="function")for(re=0;re<Ue;++re)X[re]=+P.call(this,oe[re],re);else for(re=0;re<Ue;++re)X[re]=P;if(J=[],typeof N=="function")for(re=0;re<Pe;++re)J[re]=+N.call(this,ie[re],re);else for(re=0;re<Pe;++re)J[re]=N;function Wt(xt,Ut){if(!at){for(at=new Array(Pe),pr=0;pr<Pe;++pr)at[pr]=[];for(pr=0;pr<Ue;++pr){var or=oe[pr];at[or.source.index].push(or.target),at[or.target.index].push(or.source)}}for(var Rr=at[re],pr=-1,rt=Rr.length,Ht;++pr<rt;)if(!isNaN(Ht=Rr[pr][xt]))return Ht;return Math.random()*Ut}return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){if(m||(m=t.behavior.drag().origin(nt).on("dragstart.force",cv).on("drag.force",le).on("dragend.force",hv)),!arguments.length)return m;this.on("mouseover.force",fi).on("mouseout.force",dv).call(m)};function le(re){re.px=t.event.x,re.py=t.event.y,u.resume()}return t.rebind(u,c,"on")};function cv(u){u.fixed|=2}function hv(u){u.fixed&=-7}function fi(u){u.fixed|=4,u.px=u.x,u.py=u.y}function dv(u){u.fixed&=-5}function pv(u,c,h){var p=0,m=0;if(u.charge=0,!u.leaf)for(var b=u.nodes,O=b.length,S=-1,P;++S<O;)P=b[S],P!=null&&(pv(P,c,h),u.charge+=P.charge,p+=P.charge*P.cx,m+=P.charge*P.cy);if(u.point){u.leaf||(u.point.x+=Math.random()-.5,u.point.y+=Math.random()-.5);var N=c*h[u.point.index];u.charge+=u.pointCharge=N,p+=N*u.point.x,m+=N*u.point.y}u.cx=p/u.charge,u.cy=m/u.charge}var ji=20,Ec=1,_o=1/0;t.layout.hierarchy=function(){var u=qy,c=vv,h=mv;function p(m){var b=[m],O=[],S;for(m.depth=0;(S=b.pop())!=null;)if(O.push(S),(N=c.call(p,S,S.depth))&&(P=N.length)){for(var P,N,D;--P>=0;)b.push(D=N[P]),D.parent=S,D.depth=S.depth+1;h&&(S.value=0),S.children=N}else h&&(S.value=+h.call(p,S,S.depth)||0),delete S.children;return ci(m,function(B){var z,ie;u&&(z=B.children)&&z.sort(u),h&&(ie=B.parent)&&(ie.value+=B.value)}),O}return p.sort=function(m){return arguments.length?(u=m,p):u},p.children=function(m){return arguments.length?(c=m,p):c},p.value=function(m){return arguments.length?(h=m,p):h},p.revalue=function(m){return h&&(Eo(m,function(b){b.children&&(b.value=0)}),ci(m,function(b){var O;b.children||(b.value=+h.call(p,b,b.depth)||0),(O=b.parent)&&(O.value+=b.value)})),m},p};function So(u,c){return t.rebind(u,c,"sort","children","value"),u.nodes=u,u.links=Vy,u}function Eo(u,c){for(var h=[u];(u=h.pop())!=null;)if(c(u),(m=u.children)&&(p=m.length))for(var p,m;--p>=0;)h.push(m[p])}function ci(u,c){for(var h=[u],p=[];(u=h.pop())!=null;)if(p.push(u),(O=u.children)&&(b=O.length))for(var m=-1,b,O;++m<b;)h.push(O[m]);for(;(u=p.pop())!=null;)c(u)}function vv(u){return u.children}function mv(u){return u.value}function qy(u,c){return c.value-u.value}function Vy(u){return t.merge(u.map(function(c){return(c.children||[]).map(function(h){return{source:c,target:h}})}))}t.layout.partition=function(){var u=t.layout.hierarchy(),c=[1,1];function h(b,O,S,P){var N=b.children;if(b.x=O,b.y=b.depth*P,b.dx=S,b.dy=P,N&&(B=N.length)){var D=-1,B,z,ie;for(S=b.value?S/b.value:0;++D<B;)h(z=N[D],O,ie=z.value*S,P),O+=ie}}function p(b){var O=b.children,S=0;if(O&&(N=O.length))for(var P=-1,N;++P<N;)S=Math.max(S,p(O[P]));return 1+S}function m(b,O){var S=u.call(this,b,O);return h(S[0],0,c[0],c[1]/p(S[0])),S}return m.size=function(b){return arguments.length?(c=b,m):c},So(m,u)},t.layout.pie=function(){var u=Number,c=gv,h=0,p=co,m=0;function b(O){var S=O.length,P=O.map(function(ue,le){return+u.call(b,ue,le)}),N=+(typeof h=="function"?h.apply(this,arguments):h),D=(typeof p=="function"?p.apply(this,arguments):p)-N,B=Math.min(Math.abs(D)/S,+(typeof m=="function"?m.apply(this,arguments):m)),z=B*(D<0?-1:1),ie=t.sum(P),oe=ie?(D-S*z)/ie:0,G=t.range(S),X=[],J;return c!=null&&G.sort(c===gv?function(ue,le){return P[le]-P[ue]}:function(ue,le){return c(O[ue],O[le])}),G.forEach(function(ue){X[ue]={data:O[ue],value:J=P[ue],startAngle:N,endAngle:N+=J*oe+z,padAngle:B}}),X}return b.value=function(O){return arguments.length?(u=O,b):u},b.sort=function(O){return arguments.length?(c=O,b):c},b.startAngle=function(O){return arguments.length?(h=O,b):h},b.endAngle=function(O){return arguments.length?(p=O,b):p},b.padAngle=function(O){return arguments.length?(m=O,b):m},b};var gv={};t.layout.stack=function(){var u=nt,c=Tc,h=Cc,p=Ky,m=Yy,b=Xy;function O(S,P){if(!(oe=S.length))return S;var N=S.map(function(ue,le){return u.call(O,ue,le)}),D=N.map(function(ue){return ue.map(function(le,re){return[m.call(O,le,re),b.call(O,le,re)]})}),B=c.call(O,D,P);N=t.permute(N,B),D=t.permute(D,B);var z=h.call(O,D,P),ie=N[0].length,oe,G,X,J;for(X=0;X<ie;++X)for(p.call(O,N[0][X],J=z[X],D[0][X][1]),G=1;G<oe;++G)p.call(O,N[G][X],J+=D[G-1][X][1],D[G][X][1]);return S}return O.values=function(S){return arguments.length?(u=S,O):u},O.order=function(S){return arguments.length?(c=typeof S=="function"?S:Ac.get(S)||Tc,O):c},O.offset=function(S){return arguments.length?(h=typeof S=="function"?S:ds.get(S)||Cc,O):h},O.x=function(S){return arguments.length?(m=S,O):m},O.y=function(S){return arguments.length?(b=S,O):b},O.out=function(S){return arguments.length?(p=S,O):p},O};function Yy(u){return u.x}function Xy(u){return u.y}function Ky(u,c,h){u.y0=c,u.y=h}var Ac=t.map({"inside-out":function(u){var c=u.length,h,p,m=u.map(yv),b=u.map(ps),O=t.range(c).sort(function(B,z){return m[B]-m[z]}),S=0,P=0,N=[],D=[];for(h=0;h<c;++h)p=O[h],S<P?(S+=b[p],N.push(p)):(P+=b[p],D.push(p));return D.reverse().concat(N)},reverse:function(u){return t.range(u.length).reverse()},default:Tc}),ds=t.map({silhouette:function(u){var c=u.length,h=u[0].length,p=[],m=0,b,O,S,P=[];for(O=0;O<h;++O){for(b=0,S=0;b<c;b++)S+=u[b][O][1];S>m&&(m=S),p.push(S)}for(O=0;O<h;++O)P[O]=(m-p[O])/2;return P},wiggle:function(u){var c=u.length,h=u[0],p=h.length,m,b,O,S,P,N,D,B,z,ie=[];for(ie[0]=B=z=0,b=1;b<p;++b){for(m=0,S=0;m<c;++m)S+=u[m][b][1];for(m=0,P=0,D=h[b][0]-h[b-1][0];m<c;++m){for(O=0,N=(u[m][b][1]-u[m][b-1][1])/(2*D);O<m;++O)N+=(u[O][b][1]-u[O][b-1][1])/D;P+=N*u[m][b][1]}ie[b]=B-=S?P/S*D:0,B<z&&(z=B)}for(b=0;b<p;++b)ie[b]-=z;return ie},expand:function(u){var c=u.length,h=u[0].length,p=1/c,m,b,O,S=[];for(b=0;b<h;++b){for(m=0,O=0;m<c;m++)O+=u[m][b][1];if(O)for(m=0;m<c;m++)u[m][b][1]/=O;else for(m=0;m<c;m++)u[m][b][1]=p}for(b=0;b<h;++b)S[b]=0;return S},zero:Cc});function Tc(u){return t.range(u.length)}function Cc(u){for(var c=-1,h=u[0].length,p=[];++c<h;)p[c]=0;return p}function yv(u){for(var c=1,h=0,p=u[0][1],m,b=u.length;c<b;++c)(m=u[c][1])>p&&(h=c,p=m);return h}function ps(u){return u.reduce(Oc,0)}function Oc(u,c){return u+c[1]}t.layout.histogram=function(){var u=!0,c=Number,h=Zy,p=Qy;function m(b,z){for(var S=[],P=b.map(c,this),N=h.call(this,P,z),D=p.call(this,N,P,z),B,z=-1,ie=P.length,oe=D.length-1,G=u?1:1/ie,X;++z<oe;)B=S[z]=[],B.dx=D[z+1]-(B.x=D[z]),B.y=0;if(oe>0)for(z=-1;++z<ie;)X=P[z],X>=N[0]&&X<=N[1]&&(B=S[t.bisect(D,X,1,oe)-1],B.y+=G,B.push(b[z]));return S}return m.value=function(b){return arguments.length?(c=b,m):c},m.range=function(b){return arguments.length?(h=gr(b),m):h},m.bins=function(b){return arguments.length?(p=typeof b=="number"?function(O){return kc(O,b)}:gr(b),m):p},m.frequency=function(b){return arguments.length?(u=!!b,m):u},m};function Qy(u,c){return kc(u,Math.ceil(Math.log(c.length)/Math.LN2+1))}function kc(u,c){for(var h=-1,p=+u[0],m=(u[1]-p)/c,b=[];++h<=c;)b[h]=m*h+p;return b}function Zy(u){return[t.min(u),t.max(u)]}t.layout.pack=function(){var u=t.layout.hierarchy().sort(Jy),c=0,h=[1,1],p;function m(b,O){var S=u.call(this,b,O),P=S[0],N=h[0],D=h[1],B=p==null?Math.sqrt:typeof p=="function"?p:function(){return p};if(P.x=P.y=0,ci(P,function(ie){ie.r=+B(ie.value)}),ci(P,Rc),c){var z=c*(p?1:Math.max(2*P.r/N,2*P.r/D))/2;ci(P,function(ie){ie.r+=z}),ci(P,Rc),ci(P,function(ie){ie.r-=z})}return wv(P,N/2,D/2,p?1:1/Math.max(2*P.r/N,2*P.r/D)),S}return m.size=function(b){return arguments.length?(h=b,m):h},m.radius=function(b){return arguments.length?(p=b==null||typeof b=="function"?b:+b,m):p},m.padding=function(b){return arguments.length?(c=+b,m):c},So(m,u)};function Jy(u,c){return u.value-c.value}function Mc(u,c){var h=u._pack_next;u._pack_next=c,c._pack_prev=u,c._pack_next=h,h._pack_prev=c}function bv(u,c){u._pack_next=c,c._pack_prev=u}function xv(u,c){var h=c.x-u.x,p=c.y-u.y,m=u.r+c.r;return .999*m*m>h*h+p*p}function Rc(u){if(!(c=u.children)||!(z=c.length))return;var c,h=1/0,p=-1/0,m=1/0,b=-1/0,O,S,P,N,D,B,z;function ie(re){h=Math.min(re.x-re.r,h),p=Math.max(re.x+re.r,p),m=Math.min(re.y-re.r,m),b=Math.max(re.y+re.r,b)}if(c.forEach(e1),O=c[0],O.x=-O.r,O.y=0,ie(O),z>1&&(S=c[1],S.x=S.r,S.y=0,ie(S),z>2))for(P=c[2],_v(O,S,P),ie(P),Mc(O,P),O._pack_prev=P,Mc(P,S),S=O._pack_next,N=3;N<z;N++){_v(O,S,P=c[N]);var oe=0,G=1,X=1;for(D=S._pack_next;D!==S;D=D._pack_next,G++)if(xv(D,P)){oe=1;break}if(oe==1)for(B=O._pack_prev;B!==D._pack_prev&&!xv(B,P);B=B._pack_prev,X++);oe?(G<X||G==X&&S.r<O.r?bv(O,S=D):bv(O=B,S),N--):(Mc(O,P),S=P,ie(P))}var J=(h+p)/2,ue=(m+b)/2,le=0;for(N=0;N<z;N++)P=c[N],P.x-=J,P.y-=ue,le=Math.max(le,P.r+Math.sqrt(P.x*P.x+P.y*P.y));u.r=le,c.forEach(t1)}function e1(u){u._pack_next=u._pack_prev=u}function t1(u){delete u._pack_next,delete u._pack_prev}function wv(u,c,h,p){var m=u.children;if(u.x=c+=p*u.x,u.y=h+=p*u.y,u.r*=p,m)for(var b=-1,O=m.length;++b<O;)wv(m[b],c,h,p)}function _v(u,c,h){var p=u.r+h.r,m=c.x-u.x,b=c.y-u.y;if(p&&(m||b)){var O=c.r+h.r,S=m*m+b*b;O*=O,p*=p;var P=.5+(p-O)/(2*S),N=Math.sqrt(Math.max(0,2*O*(p+S)-(p-=S)*p-O*O))/(2*S);h.x=u.x+P*m+N*b,h.y=u.y+P*b-N*m}else h.x=u.x+p,h.y=u.y}t.layout.tree=function(){var u=t.layout.hierarchy().sort(null).value(null),c=Sv,h=[1,1],p=null;function m(D,B){var z=u.call(this,D,B),ie=z[0],oe=b(ie);if(ci(oe,O),oe.parent.m=-oe.z,Eo(oe,S),p)Eo(ie,N);else{var G=ie,X=ie,J=ie;Eo(ie,function(Pe){Pe.x<G.x&&(G=Pe),Pe.x>X.x&&(X=Pe),Pe.depth>J.depth&&(J=Pe)});var ue=c(G,X)/2-G.x,le=h[0]/(X.x+c(X,G)/2+ue),re=h[1]/(J.depth||1);Eo(ie,function(Pe){Pe.x=(Pe.x+ue)*le,Pe.y=Pe.depth*re})}return z}function b(D){for(var B={A:null,children:[D]},z=[B],ie;(ie=z.pop())!=null;)for(var oe=ie.children,G,X=0,J=oe.length;X<J;++X)z.push((oe[X]=G={_:oe[X],parent:ie,children:(G=oe[X].children)&&G.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:X}).a=G);return B.children[0]}function O(D){var B=D.children,z=D.parent.children,ie=D.i?z[D.i-1]:null;if(B.length){n1(D);var oe=(B[0].z+B[B.length-1].z)/2;ie?(D.z=ie.z+c(D._,ie._),D.m=D.z-oe):D.z=oe}else ie&&(D.z=ie.z+c(D._,ie._));D.parent.A=P(D,ie,D.parent.A||z[0])}function S(D){D._.x=D.z+D.parent.m,D.m+=D.parent.m}function P(D,B,z){if(B){for(var ie=D,oe=D,G=B,X=ie.parent.children[0],J=ie.m,ue=oe.m,le=G.m,re=X.m,Pe;G=Ic(G),ie=Pc(ie),G&&ie;)X=Pc(X),oe=Ic(oe),oe.a=D,Pe=G.z+le-ie.z-J+c(G._,ie._),Pe>0&&(r1(Si(G,D,z),D,Pe),J+=Pe,ue+=Pe),le+=G.m,J+=ie.m,re+=X.m,ue+=oe.m;G&&!Ic(oe)&&(oe.t=G,oe.m+=le-ue),ie&&!Pc(X)&&(X.t=ie,X.m+=J-re,z=D)}return z}function N(D){D.x*=h[0],D.y=D.depth*h[1]}return m.separation=function(D){return arguments.length?(c=D,m):c},m.size=function(D){return arguments.length?(p=(h=D)==null?N:null,m):p?null:h},m.nodeSize=function(D){return arguments.length?(p=(h=D)==null?null:N,m):p?h:null},So(m,u)};function Sv(u,c){return u.parent==c.parent?1:2}function Pc(u){var c=u.children;return c.length?c[0]:u.t}function Ic(u){var c=u.children,h;return(h=c.length)?c[h-1]:u.t}function r1(u,c,h){var p=h/(c.i-u.i);c.c-=p,c.s+=h,u.c+=p,c.z+=h,c.m+=h}function n1(u){for(var c=0,h=0,p=u.children,m=p.length,b;--m>=0;)b=p[m],b.z+=c,b.m+=c,c+=b.s+(h+=b.c)}function Si(u,c,h){return u.a.parent===c.parent?u.a:h}t.layout.cluster=function(){var u=t.layout.hierarchy().sort(null).value(null),c=Sv,h=[1,1],p=!1;function m(b,O){var S=u.call(this,b,O),P=S[0],N,D=0;ci(P,function(G){var X=G.children;X&&X.length?(G.x=i1(X),G.y=Ev(X)):(G.x=N?D+=c(G,N):0,G.y=0,N=G)});var B=Av(P),z=Tv(P),ie=B.x-c(B,z)/2,oe=z.x+c(z,B)/2;return ci(P,p?function(G){G.x=(G.x-P.x)*h[0],G.y=(P.y-G.y)*h[1]}:function(G){G.x=(G.x-ie)/(oe-ie)*h[0],G.y=(1-(P.y?G.y/P.y:1))*h[1]}),S}return m.separation=function(b){return arguments.length?(c=b,m):c},m.size=function(b){return arguments.length?(p=(h=b)==null,m):p?null:h},m.nodeSize=function(b){return arguments.length?(p=(h=b)!=null,m):p?h:null},So(m,u)};function Ev(u){return 1+t.max(u,function(c){return c.y})}function i1(u){return u.reduce(function(c,h){return c+h.x},0)/u.length}function Av(u){var c=u.children;return c&&c.length?Av(c[0]):u}function Tv(u){var c=u.children,h;return c&&(h=c.length)?Tv(c[h-1]):u}t.layout.treemap=function(){var u=t.layout.hierarchy(),c=Math.round,h=[1,1],p=null,m=Fc,b=!1,O,S="squarify",P=.5*(1+Math.sqrt(5));function N(G,X){for(var J=-1,ue=G.length,le,re;++J<ue;)re=(le=G[J]).value*(X<0?0:X),le.area=isNaN(re)||re<=0?0:re}function D(G){var X=G.children;if(X&&X.length){var J=m(G),ue=[],le=X.slice(),re,Pe=1/0,Ue,tt=S==="slice"?J.dx:S==="dice"?J.dy:S==="slice-dice"?G.depth&1?J.dy:J.dx:Math.min(J.dx,J.dy),je;for(N(le,J.dx*J.dy/G.value),ue.area=0;(je=le.length)>0;)ue.push(re=le[je-1]),ue.area+=re.area,S!=="squarify"||(Ue=z(ue,tt))<=Pe?(le.pop(),Pe=Ue):(ue.area-=ue.pop().area,ie(ue,tt,J,!1),tt=Math.min(J.dx,J.dy),ue.length=ue.area=0,Pe=1/0);ue.length&&(ie(ue,tt,J,!0),ue.length=ue.area=0),X.forEach(D)}}function B(G){var X=G.children;if(X&&X.length){var J=m(G),ue=X.slice(),le,re=[];for(N(ue,J.dx*J.dy/G.value),re.area=0;le=ue.pop();)re.push(le),re.area+=le.area,le.z!=null&&(ie(re,le.z?J.dx:J.dy,J,!ue.length),re.length=re.area=0);X.forEach(B)}}function z(G,X){for(var J=G.area,ue,le=0,re=1/0,Pe=-1,Ue=G.length;++Pe<Ue;)(ue=G[Pe].area)&&(ue<re&&(re=ue),ue>le&&(le=ue));return J*=J,X*=X,J?Math.max(X*le*P/J,J/(X*re*P)):1/0}function ie(G,X,J,ue){var le=-1,re=G.length,Pe=J.x,Ue=J.y,tt=X?c(G.area/X):0,je;if(X==J.dx){for((ue||tt>J.dy)&&(tt=J.dy);++le<re;)je=G[le],je.x=Pe,je.y=Ue,je.dy=tt,Pe+=je.dx=Math.min(J.x+J.dx-Pe,tt?c(je.area/tt):0);je.z=!0,je.dx+=J.x+J.dx-Pe,J.y+=tt,J.dy-=tt}else{for((ue||tt>J.dx)&&(tt=J.dx);++le<re;)je=G[le],je.x=Pe,je.y=Ue,je.dx=tt,Ue+=je.dy=Math.min(J.y+J.dy-Ue,tt?c(je.area/tt):0);je.z=!1,je.dy+=J.y+J.dy-Ue,J.x+=tt,J.dx-=tt}}function oe(G){var X=O||u(G),J=X[0];return J.x=J.y=0,J.value?(J.dx=h[0],J.dy=h[1]):J.dx=J.dy=0,O&&u.revalue(J),N([J],J.dx*J.dy/J.value),(O?B:D)(J),b&&(O=X),X}return oe.size=function(G){return arguments.length?(h=G,oe):h},oe.padding=function(G){if(!arguments.length)return p;function X(le){var re=G.call(oe,le,le.depth);return re==null?Fc(le):Cv(le,typeof re=="number"?[re,re,re,re]:re)}function J(le){return Cv(le,G)}var ue;return m=(p=G)==null?Fc:(ue=typeof G)=="function"?X:(ue==="number"&&(G=[G,G,G,G]),J),oe},oe.round=function(G){return arguments.length?(c=G?Math.round:Number,oe):c!=Number},oe.sticky=function(G){return arguments.length?(b=G,O=null,oe):b},oe.ratio=function(G){return arguments.length?(P=G,oe):P},oe.mode=function(G){return arguments.length?(S=G+"",oe):S},So(oe,u)};function Fc(u){return{x:u.x,y:u.y,dx:u.dx,dy:u.dy}}function Cv(u,c){var h=u.x+c[3],p=u.y+c[0],m=u.dx-c[1]-c[3],b=u.dy-c[0]-c[2];return m<0&&(h+=m/2,m=0),b<0&&(p+=b/2,b=0),{x:h,y:p,dx:m,dy:b}}t.random={normal:function(u,c){var h=arguments.length;return h<2&&(c=1),h<1&&(u=0),function(){var p,m,b;do p=Math.random()*2-1,m=Math.random()*2-1,b=p*p+m*m;while(!b||b>1);return u+c*p*Math.sqrt(-2*Math.log(b)/b)}},logNormal:function(){var u=t.random.normal.apply(t,arguments);return function(){return Math.exp(u())}},bates:function(u){var c=t.random.irwinHall(u);return function(){return c()/u}},irwinHall:function(u){return function(){for(var c=0,h=0;h<u;h++)c+=Math.random();return c}}},t.scale={};function vs(u){var c=u[0],h=u[u.length-1];return c<h?[c,h]:[h,c]}function ms(u){return u.rangeExtent?u.rangeExtent():vs(u.range())}function a1(u,c,h,p){var m=h(u[0],u[1]),b=p(c[0],c[1]);return function(O){return b(m(O))}}function Wr(u,c){var h=0,p=u.length-1,m=u[h],b=u[p],O;return b<m&&(O=h,h=p,p=O,O=m,m=b,b=O),u[h]=c.floor(m),u[p]=c.ceil(b),u}function Ba(u){return u?{floor:function(c){return Math.floor(c/u)*u},ceil:function(c){return Math.ceil(c/u)*u}}:Ao}var Ao={floor:nt,ceil:nt};function o1(u,c,h,p){var m=[],b=[],O=0,S=Math.min(u.length,c.length)-1;for(u[S]<u[0]&&(u=u.slice().reverse(),c=c.slice().reverse());++O<=S;)m.push(h(u[O-1],u[O])),b.push(p(c[O-1],c[O]));return function(P){var N=t.bisect(u,P,1,S)-1;return b[N](m[N](P))}}t.scale.linear=function(){return za([0,1],[0,1],_i,!1)};function za(u,c,h,p){var m,b;function O(){var P=Math.min(u.length,c.length)>2?o1:a1,N=p?lv:uv;return m=P(u,c,N,h),b=P(c,u,N,_i),S}function S(P){return m(P)}return S.invert=function(P){return b(P)},S.domain=function(P){return arguments.length?(u=P.map(Number),O()):u},S.range=function(P){return arguments.length?(c=P,O()):c},S.rangeRound=function(P){return S.range(P).interpolate(cs)},S.clamp=function(P){return arguments.length?(p=P,O()):p},S.interpolate=function(P){return arguments.length?(h=P,O()):h},S.ticks=function(P){return Uu(u,P)},S.tickFormat=function(P,N){return d3_scale_linearTickFormat(u,P,N)},S.nice=function(P){return Ua(u,P),O()},S.copy=function(){return za(u,c,h,p)},O()}function Nc(u,c){return t.rebind(u,c,"range","rangeRound","interpolate","clamp")}function Ua(u,c){return Wr(u,Ba(zu(u,c)[2])),Wr(u,Ba(zu(u,c)[2])),u}function zu(u,c){c==null&&(c=10);var h=vs(u),p=h[1]-h[0],m=Math.pow(10,Math.floor(Math.log(p/c)/Math.LN10)),b=c/p*m;return b<=.15?m*=10:b<=.35?m*=5:b<=.75&&(m*=2),h[0]=Math.ceil(h[0]/m)*m,h[1]=Math.floor(h[1]/m)*m+m*.5,h[2]=m,h}function Uu(u,c){return t.range.apply(t,zu(u,c))}t.scale.log=function(){return gs(t.scale.linear().domain([0,1]),10,!0,[1,10])};function gs(u,c,h,p){function m(S){return(h?Math.log(S<0?0:S):-Math.log(S>0?0:-S))/Math.log(c)}function b(S){return h?Math.pow(c,S):-Math.pow(c,-S)}function O(S){return u(m(S))}return O.invert=function(S){return b(u.invert(S))},O.domain=function(S){return arguments.length?(h=S[0]>=0,u.domain((p=S.map(Number)).map(m)),O):p},O.base=function(S){return arguments.length?(c=+S,u.domain(p.map(m)),O):c},O.nice=function(){var S=Wr(p.map(m),h?Math:Lc);return u.domain(S),p=S.map(b),O},O.ticks=function(){var S=vs(p),P=[],N=S[0],D=S[1],B=Math.floor(m(N)),z=Math.ceil(m(D)),ie=c%1?2:c;if(isFinite(z-B)){if(h){for(;B<z;B++)for(var oe=1;oe<ie;oe++)P.push(b(B)*oe);P.push(b(B))}else for(P.push(b(B));B++<z;)for(var oe=ie-1;oe>0;oe--)P.push(b(B)*oe);for(B=0;P[B]<N;B++);for(z=P.length;P[z-1]>D;z--);P=P.slice(B,z)}return P},O.copy=function(){return gs(u.copy(),c,h,p)},Nc(O,u)}var Lc={floor:function(u){return-Math.ceil(-u)},ceil:function(u){return-Math.floor(-u)}};t.scale.pow=function(){return ys(t.scale.linear(),1,[0,1])};function ys(u,c,h){var p=ja(c),m=ja(1/c);function b(O){return u(p(O))}return b.invert=function(O){return m(u.invert(O))},b.domain=function(O){return arguments.length?(u.domain((h=O.map(Number)).map(p)),b):h},b.ticks=function(O){return Uu(h,O)},b.tickFormat=function(O,S){return d3_scale_linearTickFormat(h,O,S)},b.nice=function(O){return b.domain(Ua(h,O))},b.exponent=function(O){return arguments.length?(p=ja(c=O),m=ja(1/c),u.domain(h.map(p)),b):c},b.copy=function(){return ys(u.copy(),c,h)},Nc(b,u)}function ja(u){return function(c){return c<0?-Math.pow(-c,u):Math.pow(c,u)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return Dc([],{t:"range",a:[[]]})};function Dc(u,c){var h,p,m;function b(S){return p[((h.get(S)||(c.t==="range"?h.set(S,u.push(S)):NaN))-1)%p.length]}function O(S,P){return t.range(u.length).map(function(N){return S+P*N})}return b.domain=function(S){if(!arguments.length)return u;u=[],h=new F;for(var P=-1,N=S.length,D;++P<N;)h.has(D=S[P])||h.set(D,u.push(D));return b[c.t].apply(b,c.a)},b.range=function(S){return arguments.length?(p=S,m=0,c={t:"range",a:arguments},b):p},b.rangePoints=function(S,P){arguments.length<2&&(P=0);var N=S[0],D=S[1],B=u.length<2?(N=(N+D)/2,0):(D-N)/(u.length-1+P);return p=O(N+B*P/2,B),m=0,c={t:"rangePoints",a:arguments},b},b.rangeRoundPoints=function(S,P){arguments.length<2&&(P=0);var N=S[0],D=S[1],B=u.length<2?(N=D=Math.round((N+D)/2),0):(D-N)/(u.length-1+P)|0;return p=O(N+Math.round(B*P/2+(D-N-(u.length-1+P)*B)/2),B),m=0,c={t:"rangeRoundPoints",a:arguments},b},b.rangeBands=function(S,P,N){arguments.length<2&&(P=0),arguments.length<3&&(N=P);var D=S[1]<S[0],B=S[D-0],z=S[1-D],ie=(z-B)/(u.length-P+2*N);return p=O(B+ie*N,ie),D&&p.reverse(),m=ie*(1-P),c={t:"rangeBands",a:arguments},b},b.rangeRoundBands=function(S,P,N){arguments.length<2&&(P=0),arguments.length<3&&(N=P);var D=S[1]<S[0],B=S[D-0],z=S[1-D],ie=Math.floor((z-B)/(u.length-P+2*N));return p=O(B+Math.round((z-B-(u.length-P)*ie)/2),ie),D&&p.reverse(),m=Math.round(ie*(1-P)),c={t:"rangeRoundBands",a:arguments},b},b.rangeBand=function(){return m},b.rangeExtent=function(){return vs(c.a[0])},b.copy=function(){return Dc(u,c)},b.domain(u)}t.scale.category10=function(){return t.scale.ordinal().range(Ov)},t.scale.category20=function(){return t.scale.ordinal().range(kv)},t.scale.category20b=function(){return t.scale.ordinal().range(Mv)},t.scale.category20c=function(){return t.scale.ordinal().range(Rv)};var Ov=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Zl),kv=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Zl),Mv=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Zl),Rv=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Zl);t.scale.quantile=function(){return bs([],[])};function bs(u,c){var h;function p(){var b=0,O=c.length;for(h=[];++b<O;)h[b-1]=t.quantile(u,b/O);return m}function m(b){if(!isNaN(b=+b))return c[t.bisect(h,b)]}return m.domain=function(b){return arguments.length?(u=b.map(y).filter(E).sort(v),p()):u},m.range=function(b){return arguments.length?(c=b,p()):c},m.quantiles=function(){return h},m.invertExtent=function(b){return b=c.indexOf(b),b<0?[NaN,NaN]:[b>0?h[b-1]:u[0],b<h.length?h[b]:u[u.length-1]]},m.copy=function(){return bs(u,c)},p()}t.scale.quantize=function(){return xs(0,1,[0,1])};function xs(u,c,h){var p,m;function b(S){return h[Math.max(0,Math.min(m,Math.floor(p*(S-u))))]}function O(){return p=h.length/(c-u),m=h.length-1,b}return b.domain=function(S){return arguments.length?(u=+S[0],c=+S[S.length-1],O()):[u,c]},b.range=function(S){return arguments.length?(h=S,O()):h},b.invertExtent=function(S){return S=h.indexOf(S),S=S<0?NaN:S/p+u,[S,S+1/p]},b.copy=function(){return xs(u,c,h)},O()}t.scale.threshold=function(){return $c([.5],[0,1])};function $c(u,c){function h(p){if(p<=p)return c[t.bisect(u,p)]}return h.domain=function(p){return arguments.length?(u=p,h):u},h.range=function(p){return arguments.length?(c=p,h):c},h.invertExtent=function(p){return p=c.indexOf(p),[u[p-1],u[p]]},h.copy=function(){return $c(u,c)},h}t.scale.identity=function(){return Bc([0,1])};function Bc(u){function c(h){return+h}return c.invert=c,c.domain=c.range=function(h){return arguments.length?(u=h.map(c),c):u},c.ticks=function(h){return Uu(u,h)},c.tickFormat=function(h,p){return d3_scale_linearTickFormat(u,h,p)},c.copy=function(){return Bc(u)},c}t.svg={};function Pv(){return 0}t.svg.arc=function(){var u=zc,c=Iv,h=Pv,p=ju,m=Uc,b=ws,O=jc;function S(){var N=Math.max(0,+u.apply(this,arguments)),D=Math.max(0,+c.apply(this,arguments)),B=m.apply(this,arguments)-wi,z=b.apply(this,arguments)-wi,ie=Math.abs(z-B),oe=B>z?0:1;if(D<N&&(G=D,D=N,N=G),ie>=Mp)return P(D,oe)+(N?P(N,1-oe):"")+"Z";var G,X,J,ue,le=0,re=0,Pe,Ue,tt,je,at,vt,Wt,xt,Ut=[];if((ue=(+O.apply(this,arguments)||0)/2)&&(J=p===ju?Math.sqrt(N*N+D*D):+p.apply(this,arguments),oe||(re*=-1),D&&(re=Pp(J/D*Math.sin(ue))),N&&(le=Pp(J/N*Math.sin(ue)))),D){Pe=D*Math.cos(B+re),Ue=D*Math.sin(B+re),tt=D*Math.cos(z-re),je=D*Math.sin(z-re);var or=Math.abs(z-B-2*re)<=Di?0:1;if(re&&Gu(Pe,Ue,tt,je)===oe^or){var Rr=(B+z)/2;Pe=D*Math.cos(Rr),Ue=D*Math.sin(Rr),tt=je=null}}else Pe=Ue=0;if(N){at=N*Math.cos(z-le),vt=N*Math.sin(z-le),Wt=N*Math.cos(B+le),xt=N*Math.sin(B+le);var pr=Math.abs(B-z+2*le)<=Di?0:1;if(le&&Gu(at,vt,Wt,xt)===1-oe^pr){var rt=(B+z)/2;at=N*Math.cos(rt),vt=N*Math.sin(rt),Wt=xt=null}}else at=vt=0;if(ie>ar&&(G=Math.min(Math.abs(D-N)/2,+h.apply(this,arguments)))>.001){X=N<D^oe?0:1;var Ht=G,Xt=G;if(ie<Di){var ur=Wt==null?[at,vt]:tt==null?[Pe,Ue]:oc([Pe,Ue],[Wt,xt],[tt,je],[at,vt]),Ar=Pe-ur[0],zr=Ue-ur[1],Xr=tt-ur[0],vn=je-ur[1],En=1/Math.sin(Math.acos((Ar*Xr+zr*vn)/(Math.sqrt(Ar*Ar+zr*zr)*Math.sqrt(Xr*Xr+vn*vn)))/2),on=Math.sqrt(ur[0]*ur[0]+ur[1]*ur[1]);Xt=Math.min(G,(N-on)/(En-1)),Ht=Math.min(G,(D-on)/(En+1))}if(tt!=null){var In=To(Wt==null?[at,vt]:[Wt,xt],[Pe,Ue],D,Ht,oe),I=To([tt,je],[at,vt],D,Ht,oe);G===Ht?Ut.push("M",In[0],"A",Ht,",",Ht," 0 0,",X," ",In[1],"A",D,",",D," 0 ",1-oe^Gu(In[1][0],In[1][1],I[1][0],I[1][1]),",",oe," ",I[1],"A",Ht,",",Ht," 0 0,",X," ",I[0]):Ut.push("M",In[0],"A",Ht,",",Ht," 0 1,",X," ",I[0])}else Ut.push("M",Pe,",",Ue);if(Wt!=null){var H=To([Pe,Ue],[Wt,xt],N,-Xt,oe),Z=To([at,vt],tt==null?[Pe,Ue]:[tt,je],N,-Xt,oe);G===Xt?Ut.push("L",Z[0],"A",Xt,",",Xt," 0 0,",X," ",Z[1],"A",N,",",N," 0 ",oe^Gu(Z[1][0],Z[1][1],H[1][0],H[1][1]),",",1-oe," ",H[1],"A",Xt,",",Xt," 0 0,",X," ",H[0]):Ut.push("L",Z[0],"A",Xt,",",Xt," 0 0,",X," ",H[0])}else Ut.push("L",at,",",vt)}else Ut.push("M",Pe,",",Ue),tt!=null&&Ut.push("A",D,",",D," 0 ",or,",",oe," ",tt,",",je),Ut.push("L",at,",",vt),Wt!=null&&Ut.push("A",N,",",N," 0 ",pr,",",1-oe," ",Wt,",",xt);return Ut.push("Z"),Ut.join("")}function P(N,D){return"M0,"+N+"A"+N+","+N+" 0 1,"+D+" 0,"+-N+"A"+N+","+N+" 0 1,"+D+" 0,"+N}return S.innerRadius=function(N){return arguments.length?(u=gr(N),S):u},S.outerRadius=function(N){return arguments.length?(c=gr(N),S):c},S.cornerRadius=function(N){return arguments.length?(h=gr(N),S):h},S.padRadius=function(N){return arguments.length?(p=N==ju?ju:gr(N),S):p},S.startAngle=function(N){return arguments.length?(m=gr(N),S):m},S.endAngle=function(N){return arguments.length?(b=gr(N),S):b},S.padAngle=function(N){return arguments.length?(O=gr(N),S):O},S.centroid=function(){var N=(+u.apply(this,arguments)+ +c.apply(this,arguments))/2,D=(+m.apply(this,arguments)+ +b.apply(this,arguments))/2-wi;return[Math.cos(D)*N,Math.sin(D)*N]},S};var ju="auto";function zc(u){return u.innerRadius}function Iv(u){return u.outerRadius}function Uc(u){return u.startAngle}function ws(u){return u.endAngle}function jc(u){return u&&u.padAngle}function Gu(u,c,h,p){return(u-h)*c-(c-p)*u>0?0:1}function To(u,c,h,p,m){var b=u[0]-c[0],O=u[1]-c[1],S=(m?p:-p)/Math.sqrt(b*b+O*O),P=S*O,N=-S*b,D=u[0]+P,B=u[1]+N,z=c[0]+P,ie=c[1]+N,oe=(D+z)/2,G=(B+ie)/2,X=z-D,J=ie-B,ue=X*X+J*J,le=h-p,re=D*ie-z*B,Pe=(J<0?-1:1)*Math.sqrt(Math.max(0,le*le*ue-re*re)),Ue=(re*J-X*Pe)/ue,tt=(-re*X-J*Pe)/ue,je=(re*J+X*Pe)/ue,at=(-re*X+J*Pe)/ue,vt=Ue-oe,Wt=tt-G,xt=je-oe,Ut=at-G;return vt*vt+Wt*Wt>xt*xt+Ut*Ut&&(Ue=je,tt=at),[[Ue-P,tt-N],[Ue*h/le,tt*h/le]]}function Gc(){return!0}function Wc(u){var c=$i,h=Bi,p=Gc,m=Yn,b=m.key,O=.7;function S(P){var N=[],D=[],B=-1,z=P.length,ie,oe=gr(c),G=gr(h);function X(){N.push("M",m(u(D),O))}for(;++B<z;)p.call(this,ie=P[B],B)?D.push([+oe.call(this,ie,B),+G.call(this,ie,B)]):D.length&&(X(),D=[]);return D.length&&X(),N.length?N.join(""):null}return S.x=function(P){return arguments.length?(c=P,S):c},S.y=function(P){return arguments.length?(h=P,S):h},S.defined=function(P){return arguments.length?(p=P,S):p},S.interpolate=function(P){return arguments.length?(typeof P=="function"?b=m=P:b=(m=Wu.get(P)||Yn).key,S):b},S.tension=function(P){return arguments.length?(O=P,S):O},S}t.svg.line=function(){return Wc(nt)};var Wu=t.map({linear:Yn,"linear-closed":Hc,step:qc,"step-before":Hu,"step-after":Ga,basis:qu,"basis-open":Ss,"basis-closed":Co,bundle:Oo,cardinal:Gi,"cardinal-open":Fv,"cardinal-closed":_s,monotone:u1});Wu.forEach(function(u,c){c.key=u,c.closed=/-closed$/.test(u)});function Yn(u){return u.length>1?u.join("L"):u+"Z"}function Hc(u){return u.join("L")+"Z"}function qc(u){for(var c=0,h=u.length,p=u[0],m=[p[0],",",p[1]];++c<h;)m.push("H",(p[0]+(p=u[c])[0])/2,"V",p[1]);return h>1&&m.push("H",p[0]),m.join("")}function Hu(u){for(var c=0,h=u.length,p=u[0],m=[p[0],",",p[1]];++c<h;)m.push("V",(p=u[c])[1],"H",p[0]);return m.join("")}function Ga(u){for(var c=0,h=u.length,p=u[0],m=[p[0],",",p[1]];++c<h;)m.push("H",(p=u[c])[0],"V",p[1]);return m.join("")}function Fv(u,c){return u.length<4?Yn(u):u[1]+Wa(u.slice(1,-1),sa(u,c))}function _s(u,c){return u.length<3?Hc(u):u[0]+Wa((u.push(u[0]),u),sa([u[u.length-2]].concat(u,[u[1]]),c))}function Gi(u,c){return u.length<3?Yn(u):u[0]+Wa(u,sa(u,c))}function Wa(u,c){if(c.length<1||u.length!=c.length&&u.length!=c.length+2)return Yn(u);var h=u.length!=c.length,p="",m=u[0],b=u[1],O=c[0],S=O,P=1;if(h&&(p+="Q"+(b[0]-O[0]*2/3)+","+(b[1]-O[1]*2/3)+","+b[0]+","+b[1],m=u[1],P=2),c.length>1){S=c[1],b=u[P],P++,p+="C"+(m[0]+O[0])+","+(m[1]+O[1])+","+(b[0]-S[0])+","+(b[1]-S[1])+","+b[0]+","+b[1];for(var N=2;N<c.length;N++,P++)b=u[P],S=c[N],p+="S"+(b[0]-S[0])+","+(b[1]-S[1])+","+b[0]+","+b[1]}if(h){var D=u[P];p+="Q"+(b[0]+S[0]*2/3)+","+(b[1]+S[1]*2/3)+","+D[0]+","+D[1]}return p}function sa(u,c){for(var h=[],p=(1-c)/2,m,b=u[0],O=u[1],S=1,P=u.length;++S<P;)m=b,b=O,O=u[S],h.push([p*(O[0]-m[0]),p*(O[1]-m[1])]);return h}function qu(u){if(u.length<3)return Yn(u);var c=1,h=u.length,p=u[0],m=p[0],b=p[1],O=[m,m,m,(p=u[1])[0]],S=[b,b,b,p[1]],P=[m,",",b,"L",an(hi,O),",",an(hi,S)];for(u.push(u[h-1]);++c<=h;)p=u[c],O.shift(),O.push(p[0]),S.shift(),S.push(p[1]),Vu(P,O,S);return u.pop(),P.push("L",p),P.join("")}function Ss(u){if(u.length<4)return Yn(u);for(var c=[],h=-1,p=u.length,m,b=[0],O=[0];++h<3;)m=u[h],b.push(m[0]),O.push(m[1]);for(c.push(an(hi,b)+","+an(hi,O)),--h;++h<p;)m=u[h],b.shift(),b.push(m[0]),O.shift(),O.push(m[1]),Vu(c,b,O);return c.join("")}function Co(u){for(var c,h=-1,p=u.length,m=p+4,b,O=[],S=[];++h<4;)b=u[h%p],O.push(b[0]),S.push(b[1]);for(c=[an(hi,O),",",an(hi,S)],--h;++h<m;)b=u[h%p],O.shift(),O.push(b[0]),S.shift(),S.push(b[1]),Vu(c,O,S);return c.join("")}function Oo(u,c){var h=u.length-1;if(h)for(var p=u[0][0],m=u[0][1],b=u[h][0]-p,O=u[h][1]-m,S=-1,P,N;++S<=h;)P=u[S],N=S/h,P[0]=c*P[0]+(1-c)*(p+N*b),P[1]=c*P[1]+(1-c)*(m+N*O);return qu(u)}function an(u,c){return u[0]*c[0]+u[1]*c[1]+u[2]*c[2]+u[3]*c[3]}var Es=[0,2/3,1/3,0],As=[0,1/3,2/3,0],hi=[0,1/6,2/3,1/6];function Vu(u,c,h){u.push("C",an(Es,c),",",an(Es,h),",",an(As,c),",",an(As,h),",",an(hi,c),",",an(hi,h))}function Yu(u,c){return(c[1]-u[1])/(c[0]-u[0])}function ko(u){for(var c=0,h=u.length-1,p=[],m=u[0],b=u[1],O=p[0]=Yu(m,b);++c<h;)p[c]=(O+(O=Yu(m=b,b=u[c+1])))/2;return p[c]=O,p}function Mo(u){for(var c=[],h,p,m,b,O=ko(u),S=-1,P=u.length-1;++S<P;)h=Yu(u[S],u[S+1]),_(h)<ar?O[S]=O[S+1]=0:(p=O[S]/h,m=O[S+1]/h,b=p*p+m*m,b>9&&(b=h*3/Math.sqrt(b),O[S]=b*p,O[S+1]=b*m));for(S=-1;++S<=P;)b=(u[Math.min(P,S+1)][0]-u[Math.max(0,S-1)][0])/(6*(1+O[S]*O[S])),c.push([b||0,O[S]*b||0]);return c}function u1(u){return u.length<3?Yn(u):u[0]+Wa(u,Mo(u))}t.svg.line.radial=function(){var u=Wc(Nv);return u.radius=u.x,delete u.x,u.angle=u.y,delete u.y,u};function Nv(u){for(var c,h=-1,p=u.length,m,b;++h<p;)c=u[h],m=c[0],b=c[1]-wi,c[0]=m*Math.cos(b),c[1]=m*Math.sin(b);return u}function Vc(u){var c=$i,h=$i,p=0,m=Bi,b=Gc,O=Yn,S=O.key,P=O,N="L",D=.7;function B(z){var ie=[],oe=[],G=[],X=-1,J=z.length,ue,le=gr(c),re=gr(p),Pe=c===h?function(){return tt}:gr(h),Ue=p===m?function(){return je}:gr(m),tt,je;function at(){ie.push("M",O(u(G),D),N,P(u(oe.reverse()),D),"Z")}for(;++X<J;)b.call(this,ue=z[X],X)?(oe.push([tt=+le.call(this,ue,X),je=+re.call(this,ue,X)]),G.push([+Pe.call(this,ue,X),+Ue.call(this,ue,X)])):oe.length&&(at(),oe=[],G=[]);return oe.length&&at(),ie.length?ie.join(""):null}return B.x=function(z){return arguments.length?(c=h=z,B):h},B.x0=function(z){return arguments.length?(c=z,B):c},B.x1=function(z){return arguments.length?(h=z,B):h},B.y=function(z){return arguments.length?(p=m=z,B):m},B.y0=function(z){return arguments.length?(p=z,B):p},B.y1=function(z){return arguments.length?(m=z,B):m},B.defined=function(z){return arguments.length?(b=z,B):b},B.interpolate=function(z){return arguments.length?(typeof z=="function"?S=O=z:S=(O=Wu.get(z)||Yn).key,P=O.reverse||O,N=O.closed?"M":"L",B):S},B.tension=function(z){return arguments.length?(D=z,B):D},B}Hu.reverse=Ga,Ga.reverse=Hu,t.svg.area=function(){return Vc(nt)},t.svg.area.radial=function(){var u=Vc(Nv);return u.radius=u.x,delete u.x,u.innerRadius=u.x0,delete u.x0,u.outerRadius=u.x1,delete u.x1,u.angle=u.y,delete u.y,u.startAngle=u.y0,delete u.y0,u.endAngle=u.y1,delete u.y1,u};function Yc(u){return u.source}function Xc(u){return u.target}t.svg.chord=function(){var u=Yc,c=Xc,h=l1,p=Uc,m=ws;function b(D,B){var z=O(this,u,D,B),ie=O(this,c,D,B);return"M"+z.p0+P(z.r,z.p1,z.a1-z.a0)+(S(z,ie)?N(z.r,z.p1,z.r,z.p0):N(z.r,z.p1,ie.r,ie.p0)+P(ie.r,ie.p1,ie.a1-ie.a0)+N(ie.r,ie.p1,z.r,z.p0))+"Z"}function O(D,B,z,ie){var oe=B.call(D,z,ie),G=h.call(D,oe,ie),X=p.call(D,oe,ie)-wi,J=m.call(D,oe,ie)-wi;return{r:G,a0:X,a1:J,p0:[G*Math.cos(X),G*Math.sin(X)],p1:[G*Math.cos(J),G*Math.sin(J)]}}function S(D,B){return D.a0==B.a0&&D.a1==B.a1}function P(D,B,z){return"A"+D+","+D+" 0 "+ +(z>Di)+",1 "+B}function N(D,B,z,ie){return"Q 0,0 "+ie}return b.radius=function(D){return arguments.length?(h=gr(D),b):h},b.source=function(D){return arguments.length?(u=gr(D),b):u},b.target=function(D){return arguments.length?(c=gr(D),b):c},b.startAngle=function(D){return arguments.length?(p=gr(D),b):p},b.endAngle=function(D){return arguments.length?(m=gr(D),b):m},b};function l1(u){return u.radius}t.svg.diagonal=function(){var u=Yc,c=Xc,h=Ha;function p(m,b){var O=u.call(this,m,b),S=c.call(this,m,b),P=(O.y+S.y)/2,N=[O,{x:O.x,y:P},{x:S.x,y:P},S];return N=N.map(h),"M"+N[0]+"C"+N[1]+" "+N[2]+" "+N[3]}return p.source=function(m){return arguments.length?(u=gr(m),p):u},p.target=function(m){return arguments.length?(c=gr(m),p):c},p.projection=function(m){return arguments.length?(h=m,p):h},p};function Ha(u){return[u.x,u.y]}t.svg.diagonal.radial=function(){var u=t.svg.diagonal(),c=Ha,h=u.projection;return u.projection=function(p){return arguments.length?h(Kc(c=p)):c},u};function Kc(u){return function(){var c=u.apply(this,arguments),h=c[0],p=c[1]-wi;return[h*Math.cos(p),h*Math.sin(p)]}}t.svg.symbol=function(){var u=f1,c=s1;function h(p,m){return(Dv.get(u.call(this,p,m))||Lv)(c.call(this,p,m))}return h.type=function(p){return arguments.length?(u=gr(p),h):u},h.size=function(p){return arguments.length?(c=gr(p),h):c},h};function s1(){return 64}function f1(){return"circle"}function Lv(u){var c=Math.sqrt(u/Di);return"M0,"+c+"A"+c+","+c+" 0 1,1 0,"+-c+"A"+c+","+c+" 0 1,1 0,"+c+"Z"}var Dv=t.map({circle:Lv,cross:function(u){var c=Math.sqrt(u/5)/2;return"M"+-3*c+","+-c+"H"+-c+"V"+-3*c+"H"+c+"V"+-c+"H"+3*c+"V"+c+"H"+c+"V"+3*c+"H"+-c+"V"+c+"H"+-3*c+"Z"},diamond:function(u){var c=Math.sqrt(u/(2*$v)),h=c*$v;return"M0,"+-c+"L"+h+",0 0,"+c+" "+-h+",0Z"},square:function(u){var c=Math.sqrt(u)/2;return"M"+-c+","+-c+"L"+c+","+-c+" "+c+","+c+" "+-c+","+c+"Z"},"triangle-down":function(u){var c=Math.sqrt(u/Ts),h=c*Ts/2;return"M0,"+h+"L"+c+","+-h+" "+-c+","+-h+"Z"},"triangle-up":function(u){var c=Math.sqrt(u/Ts),h=c*Ts/2;return"M0,"+-h+"L"+c+","+h+" "+-c+","+h+"Z"}});t.svg.symbolTypes=Dv.keys();var Ts=Math.sqrt(3),$v=Math.tan(30*Rp);Ce.transition=function(u){for(var c=Wi||++Os,h=Ku(u),p=[],m,b,O=Ro||{time:Date.now(),ease:wo,delay:0,duration:250},S=-1,P=this.length;++S<P;){p.push(m=[]);for(var N=this[S],D=-1,B=N.length;++D<B;)(b=N[D])&&Po(b,D,h,c,O),m.push(b)}return Xu(p,h,c)},Ce.interrupt=function(u){return this.each(u==null?Cs:Bv(Ku(u)))};var Cs=Bv(Ku());function Bv(u){return function(){var c,h,p;(c=this[u])&&(p=c[h=c.active])&&(p.timer.c=null,p.timer.t=NaN,--c.count?delete c[h]:delete this[u],c.active+=.5,p.event&&p.event.interrupt.call(this,this.__data__,p.index))}}function Xu(u,c,h){return qt(u,Br),u.namespace=c,u.id=h,u}var Br=[],Os=0,Wi,Ro;Br.call=Ce.call,Br.empty=Ce.empty,Br.node=Ce.node,Br.size=Ce.size,t.transition=function(u,c){return u&&u.transition?Wi?u.transition(c):u:t.selection().transition(u)},t.transition.prototype=Br,Br.select=function(u){var c=this.id,h=this.namespace,p=[],m,b,O;u=W(u);for(var S=-1,P=this.length;++S<P;){p.push(m=[]);for(var N=this[S],D=-1,B=N.length;++D<B;)(O=N[D])&&(b=u.call(O,O.__data__,D,S))?("__data__"in O&&(b.__data__=O.__data__),Po(b,D,h,c,O[h][c]),m.push(b)):m.push(null)}return Xu(p,h,c)},Br.selectAll=function(u){var c=this.id,h=this.namespace,p=[],m,b,O,S,P;u=ae(u);for(var N=-1,D=this.length;++N<D;)for(var B=this[N],z=-1,ie=B.length;++z<ie;)if(O=B[z]){P=O[h][c],b=u.call(O,O.__data__,z,N),p.push(m=[]);for(var oe=-1,G=b.length;++oe<G;)(S=b[oe])&&Po(S,oe,h,c,P),m.push(S)}return Xu(p,h,c)},Br.filter=function(u){var c=[],h,p,m;typeof u!="function"&&(u=Eu(u));for(var b=0,O=this.length;b<O;b++){c.push(h=[]);for(var p=this[b],S=0,P=p.length;S<P;S++)(m=p[S])&&u.call(m,m.__data__,S,b)&&h.push(m)}return Xu(c,this.namespace,this.id)},Br.tween=function(u,c){var h=this.id,p=this.namespace;return arguments.length<2?this.node()[p][h].tween.get(u):xi(this,c==null?function(m){m[p][h].tween.remove(u)}:function(m){m[p][h].tween.set(u,c)})};function ks(u,c,h,p){var m=u.id,b=u.namespace;return xi(u,typeof h=="function"?function(O,S,P){O[b][m].tween.set(c,p(h.call(O,O.__data__,S,P)))}:(h=p(h),function(O){O[b][m].tween.set(c,h)}))}Br.attr=function(u,c){if(arguments.length<2){for(c in u)this.attr(c,u[c]);return this}var h=u=="transform"?_c:_i,p=t.ns.qualify(u);function m(){this.removeAttribute(p)}function b(){this.removeAttributeNS(p.space,p.local)}function O(P){return P==null?m:(P+="",function(){var N=this.getAttribute(p),D;return N!==P&&(D=h(N,P),function(B){this.setAttribute(p,D(B))})})}function S(P){return P==null?b:(P+="",function(){var N=this.getAttributeNS(p.space,p.local),D;return N!==P&&(D=h(N,P),function(B){this.setAttributeNS(p.space,p.local,D(B))})})}return ks(this,"attr."+u,c,p.local?S:O)},Br.attrTween=function(u,c){var h=t.ns.qualify(u);function p(b,O){var S=c.call(this,b,O,this.getAttribute(h));return S&&function(P){this.setAttribute(h,S(P))}}function m(b,O){var S=c.call(this,b,O,this.getAttributeNS(h.space,h.local));return S&&function(P){this.setAttributeNS(h.space,h.local,S(P))}}return this.tween("attr."+u,h.local?m:p)},Br.style=function(u,c,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(c="");for(h in u)this.style(h,u[h],c);return this}h=""}function m(){this.style.removeProperty(u)}function b(O){return O==null?m:(O+="",function(){var S=o(this).getComputedStyle(this,null).getPropertyValue(u),P;return S!==O&&(P=_i(S,O),function(N){this.style.setProperty(u,P(N),h)})})}return ks(this,"style."+u,c,b)},Br.styleTween=function(u,c,h){arguments.length<3&&(h="");function p(m,b){var O=c.call(this,m,b,o(this).getComputedStyle(this,null).getPropertyValue(u));return O&&function(S){this.style.setProperty(u,O(S),h)}}return this.tween("style."+u,p)},Br.text=function(u){return ks(this,"text",u,Qc)};function Qc(u){return u==null&&(u=""),function(){this.textContent=u}}Br.remove=function(){var u=this.namespace;return this.each("end.transition",function(){var c;this[u].count<2&&(c=this.parentNode)&&c.removeChild(this)})},Br.ease=function(u){var c=this.id,h=this.namespace;return arguments.length<1?this.node()[h][c].ease:(typeof u!="function"&&(u=t.ease.apply(t,arguments)),xi(this,function(p){p[h][c].ease=u}))},Br.delay=function(u){var c=this.id,h=this.namespace;return arguments.length<1?this.node()[h][c].delay:xi(this,typeof u=="function"?function(p,m,b){p[h][c].delay=+u.call(p,p.__data__,m,b)}:(u=+u,function(p){p[h][c].delay=u}))},Br.duration=function(u){var c=this.id,h=this.namespace;return arguments.length<1?this.node()[h][c].duration:xi(this,typeof u=="function"?function(p,m,b){p[h][c].duration=Math.max(1,u.call(p,p.__data__,m,b))}:(u=Math.max(1,u),function(p){p[h][c].duration=u}))},Br.each=function(u,c){var h=this.id,p=this.namespace;if(arguments.length<2){var m=Ro,b=Wi;try{Wi=h,xi(this,function(O,S,P){Ro=O[p][h],u.call(O,O.__data__,S,P)})}finally{Ro=m,Wi=b}}else xi(this,function(O){var S=O[p][h];(S.event||(S.event=t.dispatch("start","end","interrupt"))).on(u,c)});return this},Br.transition=function(){for(var u=this.id,c=++Os,h=this.namespace,p=[],m,b,O,S,P=0,N=this.length;P<N;P++){p.push(m=[]);for(var b=this[P],D=0,B=b.length;D<B;D++)(O=b[D])&&(S=O[h][u],Po(O,D,h,c,{time:S.time,ease:S.ease,delay:S.delay+S.duration,duration:S.duration})),m.push(O)}return Xu(p,h,c)};function Ku(u){return u==null?"__transition__":"__transition_"+u+"__"}function Po(u,c,h,p,m){var b=u[h]||(u[h]={active:0,count:0}),O=b[p],S,P,N,D,B;function z(G){var X=O.delay;if(P.t=X+S,X<=G)return ie(G-X);P.c=ie}function ie(G){var X=b.active,J=b[X];J&&(J.timer.c=null,J.timer.t=NaN,--b.count,delete b[X],J.event&&J.event.interrupt.call(u,u.__data__,J.index));for(var ue in b)if(+ue<p){var le=b[ue];le.timer.c=null,le.timer.t=NaN,--b.count,delete b[ue]}P.c=oe,vo(function(){return P.c&&oe(G||1)&&(P.c=null,P.t=NaN),1},0,S),b.active=p,O.event&&O.event.start.call(u,u.__data__,c),B=[],O.tween.forEach(function(re,Pe){(Pe=Pe.call(u,u.__data__,c))&&B.push(Pe)}),D=O.ease,N=O.duration}function oe(G){for(var X=G/N,J=D(X),ue=B.length;ue>0;)B[--ue].call(u,J);if(X>=1)return O.event&&O.event.end.call(u,u.__data__,c),--b.count?delete b[p]:delete u[h],1}O||(S=m.time,P=vo(z,0,S),O=b[p]={tween:new F,time:S,timer:P,delay:m.delay,duration:m.duration,ease:m.ease,index:c},m=null,++b.count)}t.svg.axis=function(){var u=t.scale.linear(),c=Zc,h=6,p=6,m=3,b=[10],O=null,S;function P(N){N.each(function(){var D=t.select(this),B=this.__chart__||u,z=this.__chart__=u.copy(),ie=O??(z.ticks?z.ticks.apply(z,b):z.domain()),oe=S??(z.tickFormat?z.tickFormat.apply(z,b):nt),G=D.selectAll(".tick").data(ie,z),X=G.enter().insert("g",".domain").attr("class","tick").style("opacity",ar),J=t.transition(G.exit()).style("opacity",ar).remove(),ue=t.transition(G.order()).style("opacity",1),le=Math.max(h,0)+m,re,Pe=ms(z),Ue=D.selectAll(".domain").data([0]),tt=(Ue.enter().append("path").attr("class","domain"),t.transition(Ue));X.append("line"),X.append("text");var je=X.select("line"),at=ue.select("line"),vt=G.select("text").text(oe),Wt=X.select("text"),xt=ue.select("text"),Ut=c==="top"||c==="left"?-1:1,or,Rr,pr,rt;if(c==="bottom"||c==="top"?(re=eh,or="x",pr="y",Rr="x2",rt="y2",vt.attr("dy",Ut<0?"0em":".71em").style("text-anchor","middle"),tt.attr("d","M"+Pe[0]+","+Ut*p+"V0H"+Pe[1]+"V"+Ut*p)):(re=th,or="y",pr="x",Rr="y2",rt="x2",vt.attr("dy",".32em").style("text-anchor",Ut<0?"end":"start"),tt.attr("d","M"+Ut*p+","+Pe[0]+"H0V"+Pe[1]+"H"+Ut*p)),je.attr(rt,Ut*h),Wt.attr(pr,Ut*le),at.attr(Rr,0).attr(rt,Ut*h),xt.attr(or,0).attr(pr,Ut*le),z.rangeBand){var Ht=z,Xt=Ht.rangeBand()/2;B=z=function(ur){return Ht(ur)+Xt}}else B.rangeBand?B=z:J.call(re,z,B);X.call(re,B,z),ue.call(re,z,z)})}return P.scale=function(N){return arguments.length?(u=N,P):u},P.orient=function(N){return arguments.length?(c=N in Jc?N+"":Zc,P):c},P.ticks=function(){return arguments.length?(b=n(arguments),P):b},P.tickValues=function(N){return arguments.length?(O=N,P):O},P.tickFormat=function(N){return arguments.length?(S=N,P):S},P.tickSize=function(N){var D=arguments.length;return D?(h=+N,p=+arguments[D-1],P):h},P.innerTickSize=function(N){return arguments.length?(h=+N,P):h},P.outerTickSize=function(N){return arguments.length?(p=+N,P):p},P.tickPadding=function(N){return arguments.length?(m=+N,P):m},P.tickSubdivide=function(){return arguments.length&&P},P};var Zc="bottom",Jc={top:1,right:1,bottom:1,left:1};function eh(u,c,h){u.attr("transform",function(p){var m=c(p);return"translate("+(isFinite(m)?m:h(p))+",0)"})}function th(u,c,h){u.attr("transform",function(p){var m=c(p);return"translate(0,"+(isFinite(m)?m:h(p))+")"})}t.svg.brush=function(){var u=ct(D,"brushstart","brush","brushend"),c=null,h=null,p=[0,0],m=[0,0],b,O,S=!0,P=!0,N=Qu[0];function D(G){G.each(function(){var X=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",oe).on("touchstart.brush",oe),J=X.selectAll(".background").data([0]);J.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),X.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ue=X.selectAll(".resize").data(N,nt);ue.exit().remove(),ue.enter().append("g").attr("class",function(Ue){return"resize "+Ue}).style("cursor",function(Ue){return rh[Ue]}).append("rect").attr("x",function(Ue){return/[ew]$/.test(Ue)?-3:null}).attr("y",function(Ue){return/^[ns]/.test(Ue)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ue.style("display",D.empty()?"none":null);var le=t.transition(X),re=t.transition(J),Pe;c&&(Pe=ms(c),re.attr("x",Pe[0]).attr("width",Pe[1]-Pe[0]),z(le)),h&&(Pe=ms(h),re.attr("y",Pe[0]).attr("height",Pe[1]-Pe[0]),ie(le)),B(le)})}D.event=function(G){G.each(function(){var X=u.of(this,arguments),J={x:p,y:m,i:b,j:O},ue=this.__chart__||J;this.__chart__=J,Wi?t.select(this).transition().each("start.brush",function(){b=ue.i,O=ue.j,p=ue.x,m=ue.y,X({type:"brushstart"})}).tween("brush:brush",function(){var le=Pn(p,J.x),re=Pn(m,J.y);return b=O=null,function(Pe){p=J.x=le(Pe),m=J.y=re(Pe),X({type:"brush",mode:"resize"})}}).each("end.brush",function(){b=J.i,O=J.j,X({type:"brush",mode:"resize"}),X({type:"brushend"})}):(X({type:"brushstart"}),X({type:"brush",mode:"resize"}),X({type:"brushend"}))})};function B(G){G.selectAll(".resize").attr("transform",function(X){return"translate("+p[+/e$/.test(X)]+","+m[+/^s/.test(X)]+")"})}function z(G){G.select(".extent").attr("x",p[0]),G.selectAll(".extent,.n>rect,.s>rect").attr("width",p[1]-p[0])}function ie(G){G.select(".extent").attr("y",m[0]),G.selectAll(".extent,.e>rect,.w>rect").attr("height",m[1]-m[0])}function oe(){var G=this,X=t.select(t.event.target),J=u.of(G,arguments),ue=t.select(G),le=X.datum(),re=!/^(n|s)$/.test(le)&&c,Pe=!/^(e|w)$/.test(le)&&h,Ue=X.classed("extent"),tt=Yl(G),je,at=t.mouse(G),vt,Wt=t.select(o(G)).on("keydown.brush",or).on("keyup.brush",Rr);if(t.event.changedTouches?Wt.on("touchmove.brush",pr).on("touchend.brush",Ht):Wt.on("mousemove.brush",pr).on("mouseup.brush",Ht),ue.interrupt().selectAll("*").interrupt(),Ue)at[0]=p[0]-at[0],at[1]=m[0]-at[1];else if(le){var xt=+/w$/.test(le),Ut=+/^n/.test(le);vt=[p[1-xt]-at[0],m[1-Ut]-at[1]],at[0]=p[xt],at[1]=m[Ut]}else t.event.altKey&&(je=at.slice());ue.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",X.style("cursor")),J({type:"brushstart"}),pr();function or(){t.event.keyCode==32&&(Ue||(je=null,at[0]-=p[1],at[1]-=m[1],Ue=2),st())}function Rr(){t.event.keyCode==32&&Ue==2&&(at[0]+=p[1],at[1]+=m[1],Ue=0,st())}function pr(){var Xt=t.mouse(G),ur=!1;vt&&(Xt[0]+=vt[0],Xt[1]+=vt[1]),Ue||(t.event.altKey?(je||(je=[(p[0]+p[1])/2,(m[0]+m[1])/2]),at[0]=p[+(Xt[0]<je[0])],at[1]=m[+(Xt[1]<je[1])]):je=null),re&&rt(Xt,c,0)&&(z(ue),ur=!0),Pe&&rt(Xt,h,1)&&(ie(ue),ur=!0),ur&&(B(ue),J({type:"brush",mode:Ue?"move":"resize"}))}function rt(Xt,ur,Ar){var zr=ms(ur),Xr=zr[0],vn=zr[1],En=at[Ar],on=Ar?m:p,In=on[1]-on[0],I,H;if(Ue&&(Xr-=En,vn-=In+En),I=(Ar?P:S)?Math.max(Xr,Math.min(vn,Xt[Ar])):Xt[Ar],Ue?H=(I+=En)+In:(je&&(En=Math.max(Xr,Math.min(vn,2*je[Ar]-I))),En<I?(H=I,I=En):H=En),on[0]!=I||on[1]!=H)return Ar?O=null:b=null,on[0]=I,on[1]=H,!0}function Ht(){pr(),ue.style("pointer-events","all").selectAll(".resize").style("display",D.empty()?"none":null),t.select("body").style("cursor",null),Wt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),tt(),J({type:"brushend"})}}return D.x=function(G){return arguments.length?(c=G,N=Qu[!c<<1|!h],D):c},D.y=function(G){return arguments.length?(h=G,N=Qu[!c<<1|!h],D):h},D.clamp=function(G){return arguments.length?(c&&h?(S=!!G[0],P=!!G[1]):c?S=!!G:h&&(P=!!G),D):c&&h?[S,P]:c?S:h?P:null},D.extent=function(G){var X,J,ue,le,re;return arguments.length?(c&&(X=G[0],J=G[1],h&&(X=X[0],J=J[0]),b=[X,J],c.invert&&(X=c(X),J=c(J)),J<X&&(re=X,X=J,J=re),(X!=p[0]||J!=p[1])&&(p=[X,J])),h&&(ue=G[0],le=G[1],c&&(ue=ue[1],le=le[1]),O=[ue,le],h.invert&&(ue=h(ue),le=h(le)),le<ue&&(re=ue,ue=le,le=re),(ue!=m[0]||le!=m[1])&&(m=[ue,le])),D):(c&&(b?(X=b[0],J=b[1]):(X=p[0],J=p[1],c.invert&&(X=c.invert(X),J=c.invert(J)),J<X&&(re=X,X=J,J=re))),h&&(O?(ue=O[0],le=O[1]):(ue=m[0],le=m[1],h.invert&&(ue=h.invert(ue),le=h.invert(le)),le<ue&&(re=ue,ue=le,le=re))),c&&h?[[X,ue],[J,le]]:c?[X,J]:h&&[ue,le])},D.clear=function(){return D.empty()||(p=[0,0],m=[0,0],b=O=null),D},D.empty=function(){return!!c&&p[0]==p[1]||!!h&&m[0]==m[1]},t.rebind(D,u,"on")};var rh={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Qu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=ac(function(u){return u.responseText}),t.json=function(u,c){return es(u,"application/json",nh,c)};function nh(u){return JSON.parse(u.responseText)}t.html=function(u,c){return es(u,"text/html",ih,c)};function ih(u){var c=i.createRange();return c.selectNode(i.body),c.createContextualFragment(u.responseText)}t.xml=ac(function(u){return u.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(oY);var xx=new Date,wx=new Date;function pn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,l){var s=[],f;if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;do s.push(f=new Date(+a)),t(a,l),e(a);while(f<a&&a<o);return s},i.filter=function(a){return pn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,l){if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););})},r&&(i.count=function(a,o){return xx.setTime(+a),wx.setTime(+o),e(xx),e(wx),Math.floor(r(xx,wx))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(o){return n(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var tg=pn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});tg.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?pn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):tg};const a5=tg;var o5=tg.range,rg=1e3,Al=6e4,ng=36e5,Q4=864e5,Z4=6048e5,J4=pn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*rg)},function(e,t){return(t-e)/rg},function(e){return e.getUTCSeconds()});const u5=J4;var l5=J4.range,eF=pn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*rg)},function(e,t){e.setTime(+e+t*Al)},function(e,t){return(t-e)/Al},function(e){return e.getMinutes()});const uY=eF;var lY=eF.range,tF=pn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*rg-e.getMinutes()*Al)},function(e,t){e.setTime(+e+t*ng)},function(e,t){return(t-e)/ng},function(e){return e.getHours()});const sY=tF;var fY=tF.range,rF=pn(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Al)/Q4},function(e){return e.getDate()-1});const CE=rF;var cY=rF.range;function jl(e){return pn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Al)/Z4})}var ig=jl(0),$d=jl(1),nF=jl(2),iF=jl(3),Tl=jl(4),aF=jl(5),oF=jl(6),s5=ig.range,hY=$d.range,dY=nF.range,pY=iF.range,vY=Tl.range,mY=aF.range,gY=oF.range,uF=pn(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const yY=uF;var bY=uF.range,OE=pn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});OE.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:pn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const Pf=OE;var xY=OE.range,lF=pn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Al)},function(e,t){return(t-e)/Al},function(e){return e.getUTCMinutes()});const wY=lF;var _Y=lF.range,sF=pn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ng)},function(e,t){return(t-e)/ng},function(e){return e.getUTCHours()});const SY=sF;var EY=sF.range,fF=pn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Q4},function(e){return e.getUTCDate()-1});const kE=fF;var AY=fF.range;function Gl(e){return pn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/Z4})}var ag=Gl(0),Bd=Gl(1),cF=Gl(2),hF=Gl(3),Cl=Gl(4),dF=Gl(5),pF=Gl(6),f5=ag.range,TY=Bd.range,CY=cF.range,OY=hF.range,kY=Cl.range,MY=dF.range,RY=pF.range,vF=pn(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const PY=vF;var IY=vF.range,ME=pn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});ME.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:pn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const If=ME;var FY=ME.range;const NY=Object.freeze(Object.defineProperty({__proto__:null,timeDay:CE,timeDays:cY,timeFriday:aF,timeFridays:mY,timeHour:sY,timeHours:fY,timeInterval:pn,timeMillisecond:a5,timeMilliseconds:o5,timeMinute:uY,timeMinutes:lY,timeMonday:$d,timeMondays:hY,timeMonth:yY,timeMonths:bY,timeSaturday:oF,timeSaturdays:gY,timeSecond:u5,timeSeconds:l5,timeSunday:ig,timeSundays:s5,timeThursday:Tl,timeThursdays:vY,timeTuesday:nF,timeTuesdays:dY,timeWednesday:iF,timeWednesdays:pY,timeWeek:ig,timeWeeks:s5,timeYear:Pf,timeYears:xY,utcDay:kE,utcDays:AY,utcFriday:dF,utcFridays:MY,utcHour:SY,utcHours:EY,utcMillisecond:a5,utcMilliseconds:o5,utcMinute:wY,utcMinutes:_Y,utcMonday:Bd,utcMondays:TY,utcMonth:PY,utcMonths:IY,utcSaturday:pF,utcSaturdays:RY,utcSecond:u5,utcSeconds:l5,utcSunday:ag,utcSundays:f5,utcThursday:Cl,utcThursdays:kY,utcTuesday:cF,utcTuesdays:CY,utcWednesday:hF,utcWednesdays:OY,utcWeek:ag,utcWeeks:f5,utcYear:If,utcYears:FY},Symbol.toStringTag,{value:"Module"}));function _x(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Sx(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function wh(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function mF(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,f=_h(i),d=Sh(i),g=_h(a),v=Sh(a),y=_h(o),E=Sh(o),k=_h(l),x=Sh(l),w=_h(s),_=Sh(s),C={a:De,A:We,b:_t,B:He,c:null,d:m5,e:m5,f:iX,g:pX,G:mX,H:tX,I:rX,j:nX,L:gF,m:aX,M:oX,p:we,q:qe,Q:b5,s:x5,S:uX,u:lX,U:sX,V:fX,w:cX,W:hX,x:null,X:null,y:dX,Y:vX,Z:gX,"%":y5},T={a:st,A:Ke,b:ct,B:yt,c:null,d:g5,e:g5,f:wX,g:RX,G:IX,H:yX,I:bX,j:xX,L:bF,m:_X,M:SX,p:qt,q:Yt,Q:b5,s:x5,S:EX,u:AX,U:TX,V:CX,w:OX,W:kX,x:null,X:null,y:MX,Y:PX,Z:FX,"%":y5},F={a:ge,A:me,b:ke,B:Fe,c:Le,d:p5,e:p5,f:QY,g:d5,G:h5,H:v5,I:v5,j:VY,L:KY,m:qY,M:YY,p:te,q:HY,Q:JY,s:eX,S:XY,u:zY,U:UY,V:jY,w:BY,W:GY,x:ut,X:nt,y:d5,Y:h5,Z:WY,"%":ZY};C.x=L(r,C),C.X=L(n,C),C.c=L(t,C),T.x=L(r,T),T.X=L(n,T),T.c=L(t,T);function L(Qe,At){return function(Gt){var Ce=[],W=-1,ae=0,R=Qe.length,A,M,$;for(Gt instanceof Date||(Gt=new Date(+Gt));++W<R;)Qe.charCodeAt(W)===37&&(Ce.push(Qe.slice(ae,W)),(M=c5[A=Qe.charAt(++W)])!=null?A=Qe.charAt(++W):M=A==="e"?" ":"0",($=At[A])&&(A=$(Gt,M)),Ce.push(A),ae=W+1);return Ce.push(Qe.slice(ae,W)),Ce.join("")}}function V(Qe,At){return function(Gt){var Ce=wh(1900,void 0,1),W=j(Ce,Qe,Gt+="",0),ae,R;if(W!=Gt.length)return null;if("Q"in Ce)return new Date(Ce.Q);if("s"in Ce)return new Date(Ce.s*1e3+("L"in Ce?Ce.L:0));if(At&&!("Z"in Ce)&&(Ce.Z=0),"p"in Ce&&(Ce.H=Ce.H%12+Ce.p*12),Ce.m===void 0&&(Ce.m="q"in Ce?Ce.q:0),"V"in Ce){if(Ce.V<1||Ce.V>53)return null;"w"in Ce||(Ce.w=1),"Z"in Ce?(ae=Sx(wh(Ce.y,0,1)),R=ae.getUTCDay(),ae=R>4||R===0?Bd.ceil(ae):Bd(ae),ae=kE.offset(ae,(Ce.V-1)*7),Ce.y=ae.getUTCFullYear(),Ce.m=ae.getUTCMonth(),Ce.d=ae.getUTCDate()+(Ce.w+6)%7):(ae=_x(wh(Ce.y,0,1)),R=ae.getDay(),ae=R>4||R===0?$d.ceil(ae):$d(ae),ae=CE.offset(ae,(Ce.V-1)*7),Ce.y=ae.getFullYear(),Ce.m=ae.getMonth(),Ce.d=ae.getDate()+(Ce.w+6)%7)}else("W"in Ce||"U"in Ce)&&("w"in Ce||(Ce.w="u"in Ce?Ce.u%7:"W"in Ce?1:0),R="Z"in Ce?Sx(wh(Ce.y,0,1)).getUTCDay():_x(wh(Ce.y,0,1)).getDay(),Ce.m=0,Ce.d="W"in Ce?(Ce.w+6)%7+Ce.W*7-(R+5)%7:Ce.w+Ce.U*7-(R+6)%7);return"Z"in Ce?(Ce.H+=Ce.Z/100|0,Ce.M+=Ce.Z%100,Sx(Ce)):_x(Ce)}}function j(Qe,At,Gt,Ce){for(var W=0,ae=At.length,R=Gt.length,A,M;W<ae;){if(Ce>=R)return-1;if(A=At.charCodeAt(W++),A===37){if(A=At.charAt(W++),M=F[A in c5?At.charAt(W++):A],!M||(Ce=M(Qe,Gt,Ce))<0)return-1}else if(A!=Gt.charCodeAt(Ce++))return-1}return Ce}function te(Qe,At,Gt){var Ce=f.exec(At.slice(Gt));return Ce?(Qe.p=d[Ce[0].toLowerCase()],Gt+Ce[0].length):-1}function ge(Qe,At,Gt){var Ce=y.exec(At.slice(Gt));return Ce?(Qe.w=E[Ce[0].toLowerCase()],Gt+Ce[0].length):-1}function me(Qe,At,Gt){var Ce=g.exec(At.slice(Gt));return Ce?(Qe.w=v[Ce[0].toLowerCase()],Gt+Ce[0].length):-1}function ke(Qe,At,Gt){var Ce=w.exec(At.slice(Gt));return Ce?(Qe.m=_[Ce[0].toLowerCase()],Gt+Ce[0].length):-1}function Fe(Qe,At,Gt){var Ce=k.exec(At.slice(Gt));return Ce?(Qe.m=x[Ce[0].toLowerCase()],Gt+Ce[0].length):-1}function Le(Qe,At,Gt){return j(Qe,t,At,Gt)}function ut(Qe,At,Gt){return j(Qe,r,At,Gt)}function nt(Qe,At,Gt){return j(Qe,n,At,Gt)}function De(Qe){return o[Qe.getDay()]}function We(Qe){return a[Qe.getDay()]}function _t(Qe){return s[Qe.getMonth()]}function He(Qe){return l[Qe.getMonth()]}function we(Qe){return i[+(Qe.getHours()>=12)]}function qe(Qe){return 1+~~(Qe.getMonth()/3)}function st(Qe){return o[Qe.getUTCDay()]}function Ke(Qe){return a[Qe.getUTCDay()]}function ct(Qe){return s[Qe.getUTCMonth()]}function yt(Qe){return l[Qe.getUTCMonth()]}function qt(Qe){return i[+(Qe.getUTCHours()>=12)]}function Yt(Qe){return 1+~~(Qe.getUTCMonth()/3)}return{format:function(Qe){var At=L(Qe+="",C);return At.toString=function(){return Qe},At},parse:function(Qe){var At=V(Qe+="",!1);return At.toString=function(){return Qe},At},utcFormat:function(Qe){var At=L(Qe+="",T);return At.toString=function(){return Qe},At},utcParse:function(Qe){var At=V(Qe+="",!0);return At.toString=function(){return Qe},At}}}var c5={"-":"",_:" ",0:"0"},Sn=/^\s*\d+/,LY=/^%/,DY=/[\\^$*+?|[\]().{}]/g;function br(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function $Y(e){return e.replace(DY,"\\$&")}function _h(e){return new RegExp("^(?:"+e.map($Y).join("|")+")","i")}function Sh(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function BY(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function zY(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function UY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function jY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function GY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function h5(e,t,r){var n=Sn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function d5(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function WY(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function HY(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function qY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function p5(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function VY(e,t,r){var n=Sn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function v5(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function YY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function XY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function KY(e,t,r){var n=Sn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function QY(e,t,r){var n=Sn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function ZY(e,t,r){var n=LY.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function JY(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function eX(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function m5(e,t){return br(e.getDate(),t,2)}function tX(e,t){return br(e.getHours(),t,2)}function rX(e,t){return br(e.getHours()%12||12,t,2)}function nX(e,t){return br(1+CE.count(Pf(e),e),t,3)}function gF(e,t){return br(e.getMilliseconds(),t,3)}function iX(e,t){return gF(e,t)+"000"}function aX(e,t){return br(e.getMonth()+1,t,2)}function oX(e,t){return br(e.getMinutes(),t,2)}function uX(e,t){return br(e.getSeconds(),t,2)}function lX(e){var t=e.getDay();return t===0?7:t}function sX(e,t){return br(ig.count(Pf(e)-1,e),t,2)}function yF(e){var t=e.getDay();return t>=4||t===0?Tl(e):Tl.ceil(e)}function fX(e,t){return e=yF(e),br(Tl.count(Pf(e),e)+(Pf(e).getDay()===4),t,2)}function cX(e){return e.getDay()}function hX(e,t){return br($d.count(Pf(e)-1,e),t,2)}function dX(e,t){return br(e.getFullYear()%100,t,2)}function pX(e,t){return e=yF(e),br(e.getFullYear()%100,t,2)}function vX(e,t){return br(e.getFullYear()%1e4,t,4)}function mX(e,t){var r=e.getDay();return e=r>=4||r===0?Tl(e):Tl.ceil(e),br(e.getFullYear()%1e4,t,4)}function gX(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+br(t/60|0,"0",2)+br(t%60,"0",2)}function g5(e,t){return br(e.getUTCDate(),t,2)}function yX(e,t){return br(e.getUTCHours(),t,2)}function bX(e,t){return br(e.getUTCHours()%12||12,t,2)}function xX(e,t){return br(1+kE.count(If(e),e),t,3)}function bF(e,t){return br(e.getUTCMilliseconds(),t,3)}function wX(e,t){return bF(e,t)+"000"}function _X(e,t){return br(e.getUTCMonth()+1,t,2)}function SX(e,t){return br(e.getUTCMinutes(),t,2)}function EX(e,t){return br(e.getUTCSeconds(),t,2)}function AX(e){var t=e.getUTCDay();return t===0?7:t}function TX(e,t){return br(ag.count(If(e)-1,e),t,2)}function xF(e){var t=e.getUTCDay();return t>=4||t===0?Cl(e):Cl.ceil(e)}function CX(e,t){return e=xF(e),br(Cl.count(If(e),e)+(If(e).getUTCDay()===4),t,2)}function OX(e){return e.getUTCDay()}function kX(e,t){return br(Bd.count(If(e)-1,e),t,2)}function MX(e,t){return br(e.getUTCFullYear()%100,t,2)}function RX(e,t){return e=xF(e),br(e.getUTCFullYear()%100,t,2)}function PX(e,t){return br(e.getUTCFullYear()%1e4,t,4)}function IX(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Cl(e):Cl.ceil(e),br(e.getUTCFullYear()%1e4,t,4)}function FX(){return"+0000"}function y5(){return"%"}function b5(e){return+e}function x5(e){return Math.floor(+e/1e3)}var Ls,wF,_F,RE,PE;SF({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function SF(e){return Ls=mF(e),wF=Ls.format,_F=Ls.parse,RE=Ls.utcFormat,PE=Ls.utcParse,Ls}var EF="%Y-%m-%dT%H:%M:%S.%LZ";function NX(e){return e.toISOString()}var LX=Date.prototype.toISOString?NX:RE(EF);const DX=LX;function $X(e){var t=new Date(e);return isNaN(t)?null:t}var BX=+new Date("2000-01-01T00:00:00.000Z")?$X:PE(EF);const zX=BX,UX=Object.freeze(Object.defineProperty({__proto__:null,isoFormat:DX,isoParse:zX,get timeFormat(){return wF},timeFormatDefaultLocale:SF,timeFormatLocale:mF,get timeParse(){return _F},get utcFormat(){return RE},get utcParse(){return PE}},Symbol.toStringTag,{value:"Module"})),sae=Rl(UX);function jX(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function og(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ff(e){return e=og(Math.abs(e)),e?e[1]:NaN}function GX(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),a.push(r.substring(i-=l,i+l)),!((s+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function WX(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var HX=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ug(e){if(!(t=HX.exec(e)))throw new Error("invalid format: "+e);var t;return new oy({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ug.prototype=oy.prototype;function oy(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}oy.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function qX(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var AF;function VX(e,t){var r=og(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(AF=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+og(e,Math.max(0,t+a-1))[0]}function w5(e,t){var r=og(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const _5={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:jX,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return w5(e*100,t)},r:w5,s:VX,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function S5(e){return e}var E5=Array.prototype.map,A5=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function TF(e){var t=e.grouping===void 0||e.thousands===void 0?S5:GX(E5.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?S5:WX(E5.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function f(g){g=ug(g);var v=g.fill,y=g.align,E=g.sign,k=g.symbol,x=g.zero,w=g.width,_=g.comma,C=g.precision,T=g.trim,F=g.type;F==="n"?(_=!0,F="g"):_5[F]||(C===void 0&&(C=12),T=!0,F="g"),(x||v==="0"&&y==="=")&&(x=!0,v="0",y="=");var L=k==="$"?r:k==="#"&&/[boxX]/.test(F)?"0"+F.toLowerCase():"",V=k==="$"?n:/[%p]/.test(F)?o:"",j=_5[F],te=/[defgprs%]/.test(F);C=C===void 0?6:/[gprs]/.test(F)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function ge(me){var ke=L,Fe=V,Le,ut,nt;if(F==="c")Fe=j(me)+Fe,me="";else{me=+me;var De=me<0||1/me<0;if(me=isNaN(me)?s:j(Math.abs(me),C),T&&(me=qX(me)),De&&+me==0&&E!=="+"&&(De=!1),ke=(De?E==="("?E:l:E==="-"||E==="("?"":E)+ke,Fe=(F==="s"?A5[8+AF/3]:"")+Fe+(De&&E==="("?")":""),te){for(Le=-1,ut=me.length;++Le<ut;)if(nt=me.charCodeAt(Le),48>nt||nt>57){Fe=(nt===46?i+me.slice(Le+1):me.slice(Le))+Fe,me=me.slice(0,Le);break}}}_&&!x&&(me=t(me,1/0));var We=ke.length+me.length+Fe.length,_t=We<w?new Array(w-We+1).join(v):"";switch(_&&x&&(me=t(_t+me,_t.length?w-Fe.length:1/0),_t=""),y){case"<":me=ke+me+Fe+_t;break;case"=":me=ke+_t+me+Fe;break;case"^":me=_t.slice(0,We=_t.length>>1)+ke+me+Fe+_t.slice(We);break;default:me=_t+ke+me+Fe;break}return a(me)}return ge.toString=function(){return g+""},ge}function d(g,v){var y=f((g=ug(g),g.type="f",g)),E=Math.max(-8,Math.min(8,Math.floor(Ff(v)/3)))*3,k=Math.pow(10,-E),x=A5[8+E/3];return function(w){return y(k*w)+x}}return{format:f,formatPrefix:d}}var y0,CF,OF;kF({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function kF(e){return y0=TF(e),CF=y0.format,OF=y0.formatPrefix,y0}function YX(e){return Math.max(0,-Ff(Math.abs(e)))}function XX(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ff(t)/3)))*3-Ff(Math.abs(e)))}function KX(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ff(t)-Ff(e))+1}const QX=Object.freeze(Object.defineProperty({__proto__:null,FormatSpecifier:oy,get format(){return CF},formatDefaultLocale:kF,formatLocale:TF,get formatPrefix(){return OF},formatSpecifier:ug,precisionFixed:YX,precisionPrefix:XX,precisionRound:KX},Symbol.toStringTag,{value:"Module"})),fae=Rl(QX);var ZX=function(e){for(var t=e.length,r,n=0;n<t;n++)if(r=e.charCodeAt(n),(r<9||r>13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0},JX=ZX,cae=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&JX(r))return!1}else if(t!=="number")return!1;return e-e<1},T5={},eK={get exports(){return T5},set exports(e){T5=e}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,l=t.max,s=t.random;function f(W,ae){if(W=W||"",ae=ae||{},W instanceof f)return W;if(!(this instanceof f))return new f(W,ae);var R=d(W);this._originalInput=W,this._r=R.r,this._g=R.g,this._b=R.b,this._a=R.a,this._roundA=a(100*this._a)/100,this._format=ae.format||R.format,this._gradientType=ae.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=R.ok,this._tc_id=i++}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var W=this.toRgb();return(W.r*299+W.g*587+W.b*114)/1e3},getLuminance:function(){var W=this.toRgb(),ae,R,A,M,$,fe;return ae=W.r/255,R=W.g/255,A=W.b/255,ae<=.03928?M=ae/12.92:M=t.pow((ae+.055)/1.055,2.4),R<=.03928?$=R/12.92:$=t.pow((R+.055)/1.055,2.4),A<=.03928?fe=A/12.92:fe=t.pow((A+.055)/1.055,2.4),.2126*M+.7152*$+.0722*fe},setAlpha:function(W){return this._a=_t(W),this._roundA=a(100*this._a)/100,this},toHsv:function(){var W=E(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=E(this._r,this._g,this._b),ae=a(W.h*360),R=a(W.s*100),A=a(W.v*100);return this._a==1?"hsv("+ae+", "+R+"%, "+A+"%)":"hsva("+ae+", "+R+"%, "+A+"%, "+this._roundA+")"},toHsl:function(){var W=v(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=v(this._r,this._g,this._b),ae=a(W.h*360),R=a(W.s*100),A=a(W.l*100);return this._a==1?"hsl("+ae+", "+R+"%, "+A+"%)":"hsla("+ae+", "+R+"%, "+A+"%, "+this._roundA+")"},toHex:function(W){return x(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return w(this._r,this._g,this._b,this._a,W)},toHex8String:function(W){return"#"+this.toHex8(W)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(He(this._r,255)*100)+"%",g:a(He(this._g,255)*100)+"%",b:a(He(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(He(this._r,255)*100)+"%, "+a(He(this._g,255)*100)+"%, "+a(He(this._b,255)*100)+"%)":"rgba("+a(He(this._r,255)*100)+"%, "+a(He(this._g,255)*100)+"%, "+a(He(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:De[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var ae="#"+_(this._r,this._g,this._b,this._a),R=ae,A=this._gradientType?"GradientType = 1, ":"";if(W){var M=f(W);R="#"+_(M._r,M._g,M._b,M._a)}return"progid:DXImageTransform.Microsoft.gradient("+A+"startColorstr="+ae+",endColorstr="+R+")"},toString:function(W){var ae=!!W;W=W||this._format;var R=!1,A=this._a<1&&this._a>=0,M=!ae&&A&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return M?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&(R=this.toRgbString()),W==="prgb"&&(R=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&(R=this.toHexString()),W==="hex3"&&(R=this.toHexString(!0)),W==="hex4"&&(R=this.toHex8String(!0)),W==="hex8"&&(R=this.toHex8String()),W==="name"&&(R=this.toName()),W==="hsl"&&(R=this.toHslString()),W==="hsv"&&(R=this.toHsvString()),R||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function(W,ae){var R=W.apply(null,[this].concat([].slice.call(ae)));return this._r=R._r,this._g=R._g,this._b=R._b,this.setAlpha(R._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(V,arguments)},darken:function(){return this._applyModification(j,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(T,arguments)},greyscale:function(){return this._applyModification(F,arguments)},spin:function(){return this._applyModification(te,arguments)},_applyCombination:function(W,ae){return W.apply(null,[this].concat([].slice.call(ae)))},analogous:function(){return this._applyCombination(Le,arguments)},complement:function(){return this._applyCombination(ge,arguments)},monochromatic:function(){return this._applyCombination(ut,arguments)},splitcomplement:function(){return this._applyCombination(Fe,arguments)},triad:function(){return this._applyCombination(me,arguments)},tetrad:function(){return this._applyCombination(ke,arguments)}},f.fromRatio=function(W,ae){if(typeof W=="object"){var R={};for(var A in W)W.hasOwnProperty(A)&&(A==="a"?R[A]=W[A]:R[A]=yt(W[A]));W=R}return f(W,ae)};function d(W){var ae={r:0,g:0,b:0},R=1,A=null,M=null,$=null,fe=!1,Ie=!1;return typeof W=="string"&&(W=Gt(W)),typeof W=="object"&&(At(W.r)&&At(W.g)&&At(W.b)?(ae=g(W.r,W.g,W.b),fe=!0,Ie=String(W.r).substr(-1)==="%"?"prgb":"rgb"):At(W.h)&&At(W.s)&&At(W.v)?(A=yt(W.s),M=yt(W.v),ae=k(W.h,A,M),fe=!0,Ie="hsv"):At(W.h)&&At(W.s)&&At(W.l)&&(A=yt(W.s),$=yt(W.l),ae=y(W.h,A,$),fe=!0,Ie="hsl"),W.hasOwnProperty("a")&&(R=W.a)),R=_t(R),{ok:fe,format:W.format||Ie,r:o(255,l(ae.r,0)),g:o(255,l(ae.g,0)),b:o(255,l(ae.b,0)),a:R}}function g(W,ae,R){return{r:He(W,255)*255,g:He(ae,255)*255,b:He(R,255)*255}}function v(W,ae,R){W=He(W,255),ae=He(ae,255),R=He(R,255);var A=l(W,ae,R),M=o(W,ae,R),$,fe,Ie=(A+M)/2;if(A==M)$=fe=0;else{var ze=A-M;switch(fe=Ie>.5?ze/(2-A-M):ze/(A+M),A){case W:$=(ae-R)/ze+(ae<R?6:0);break;case ae:$=(R-W)/ze+2;break;case R:$=(W-ae)/ze+4;break}$/=6}return{h:$,s:fe,l:Ie}}function y(W,ae,R){var A,M,$;W=He(W,360),ae=He(ae,100),R=He(R,100);function fe(Qt,cr,ir){return ir<0&&(ir+=1),ir>1&&(ir-=1),ir<1/6?Qt+(cr-Qt)*6*ir:ir<1/2?cr:ir<2/3?Qt+(cr-Qt)*(2/3-ir)*6:Qt}if(ae===0)A=M=$=R;else{var Ie=R<.5?R*(1+ae):R+ae-R*ae,ze=2*R-Ie;A=fe(ze,Ie,W+1/3),M=fe(ze,Ie,W),$=fe(ze,Ie,W-1/3)}return{r:A*255,g:M*255,b:$*255}}function E(W,ae,R){W=He(W,255),ae=He(ae,255),R=He(R,255);var A=l(W,ae,R),M=o(W,ae,R),$,fe,Ie=A,ze=A-M;if(fe=A===0?0:ze/A,A==M)$=0;else{switch(A){case W:$=(ae-R)/ze+(ae<R?6:0);break;case ae:$=(R-W)/ze+2;break;case R:$=(W-ae)/ze+4;break}$/=6}return{h:$,s:fe,v:Ie}}function k(W,ae,R){W=He(W,360)*6,ae=He(ae,100),R=He(R,100);var A=t.floor(W),M=W-A,$=R*(1-ae),fe=R*(1-M*ae),Ie=R*(1-(1-M)*ae),ze=A%6,Qt=[R,fe,$,$,Ie,R][ze],cr=[Ie,R,R,fe,$,$][ze],ir=[$,$,Ie,R,R,fe][ze];return{r:Qt*255,g:cr*255,b:ir*255}}function x(W,ae,R,A){var M=[ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(R).toString(16))];return A&&M[0].charAt(0)==M[0].charAt(1)&&M[1].charAt(0)==M[1].charAt(1)&&M[2].charAt(0)==M[2].charAt(1)?M[0].charAt(0)+M[1].charAt(0)+M[2].charAt(0):M.join("")}function w(W,ae,R,A,M){var $=[ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(R).toString(16)),ct(qt(A))];return M&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)&&$[3].charAt(0)==$[3].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0)+$[3].charAt(0):$.join("")}function _(W,ae,R,A){var M=[ct(qt(A)),ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(R).toString(16))];return M.join("")}f.equals=function(W,ae){return!W||!ae?!1:f(W).toRgbString()==f(ae).toRgbString()},f.random=function(){return f.fromRatio({r:s(),g:s(),b:s()})};function C(W,ae){ae=ae===0?0:ae||10;var R=f(W).toHsl();return R.s-=ae/100,R.s=we(R.s),f(R)}function T(W,ae){ae=ae===0?0:ae||10;var R=f(W).toHsl();return R.s+=ae/100,R.s=we(R.s),f(R)}function F(W){return f(W).desaturate(100)}function L(W,ae){ae=ae===0?0:ae||10;var R=f(W).toHsl();return R.l+=ae/100,R.l=we(R.l),f(R)}function V(W,ae){ae=ae===0?0:ae||10;var R=f(W).toRgb();return R.r=l(0,o(255,R.r-a(255*-(ae/100)))),R.g=l(0,o(255,R.g-a(255*-(ae/100)))),R.b=l(0,o(255,R.b-a(255*-(ae/100)))),f(R)}function j(W,ae){ae=ae===0?0:ae||10;var R=f(W).toHsl();return R.l-=ae/100,R.l=we(R.l),f(R)}function te(W,ae){var R=f(W).toHsl(),A=(R.h+ae)%360;return R.h=A<0?360+A:A,f(R)}function ge(W){var ae=f(W).toHsl();return ae.h=(ae.h+180)%360,f(ae)}function me(W){var ae=f(W).toHsl(),R=ae.h;return[f(W),f({h:(R+120)%360,s:ae.s,l:ae.l}),f({h:(R+240)%360,s:ae.s,l:ae.l})]}function ke(W){var ae=f(W).toHsl(),R=ae.h;return[f(W),f({h:(R+90)%360,s:ae.s,l:ae.l}),f({h:(R+180)%360,s:ae.s,l:ae.l}),f({h:(R+270)%360,s:ae.s,l:ae.l})]}function Fe(W){var ae=f(W).toHsl(),R=ae.h;return[f(W),f({h:(R+72)%360,s:ae.s,l:ae.l}),f({h:(R+216)%360,s:ae.s,l:ae.l})]}function Le(W,ae,R){ae=ae||6,R=R||30;var A=f(W).toHsl(),M=360/R,$=[f(W)];for(A.h=(A.h-(M*ae>>1)+720)%360;--ae;)A.h=(A.h+M)%360,$.push(f(A));return $}function ut(W,ae){ae=ae||6;for(var R=f(W).toHsv(),A=R.h,M=R.s,$=R.v,fe=[],Ie=1/ae;ae--;)fe.push(f({h:A,s:M,v:$})),$=($+Ie)%1;return fe}f.mix=function(W,ae,R){R=R===0?0:R||50;var A=f(W).toRgb(),M=f(ae).toRgb(),$=R/100,fe={r:(M.r-A.r)*$+A.r,g:(M.g-A.g)*$+A.g,b:(M.b-A.b)*$+A.b,a:(M.a-A.a)*$+A.a};return f(fe)},f.readability=function(W,ae){var R=f(W),A=f(ae);return(t.max(R.getLuminance(),A.getLuminance())+.05)/(t.min(R.getLuminance(),A.getLuminance())+.05)},f.isReadable=function(W,ae,R){var A=f.readability(W,ae),M,$;switch($=!1,M=Ce(R),M.level+M.size){case"AAsmall":case"AAAlarge":$=A>=4.5;break;case"AAlarge":$=A>=3;break;case"AAAsmall":$=A>=7;break}return $},f.mostReadable=function(W,ae,R){var A=null,M=0,$,fe,Ie,ze;R=R||{},fe=R.includeFallbackColors,Ie=R.level,ze=R.size;for(var Qt=0;Qt<ae.length;Qt++)$=f.readability(W,ae[Qt]),$>M&&(M=$,A=f(ae[Qt]));return f.isReadable(W,A,{level:Ie,size:ze})||!fe?A:(R.includeFallbackColors=!1,f.mostReadable(W,["#fff","#000"],R))};var nt=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},De=f.hexNames=We(nt);function We(W){var ae={};for(var R in W)W.hasOwnProperty(R)&&(ae[W[R]]=R);return ae}function _t(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function He(W,ae){st(W)&&(W="100%");var R=Ke(W);return W=o(ae,l(0,parseFloat(W))),R&&(W=parseInt(W*ae,10)/100),t.abs(W-ae)<1e-6?1:W%ae/parseFloat(ae)}function we(W){return o(1,l(0,W))}function qe(W){return parseInt(W,16)}function st(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function Ke(W){return typeof W=="string"&&W.indexOf("%")!=-1}function ct(W){return W.length==1?"0"+W:""+W}function yt(W){return W<=1&&(W=W*100+"%"),W}function qt(W){return t.round(parseFloat(W)*255).toString(16)}function Yt(W){return qe(W)/255}var Qe=function(){var W="[-\\+]?\\d+%?",ae="[-\\+]?\\d*\\.\\d+%?",R="(?:"+ae+")|(?:"+W+")",A="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",M="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?";return{CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+A),rgba:new RegExp("rgba"+M),hsl:new RegExp("hsl"+A),hsla:new RegExp("hsla"+M),hsv:new RegExp("hsv"+A),hsva:new RegExp("hsva"+M),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function At(W){return!!Qe.CSS_UNIT.exec(W)}function Gt(W){W=W.replace(r,"").replace(n,"").toLowerCase();var ae=!1;if(nt[W])W=nt[W],ae=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var R;return(R=Qe.rgb.exec(W))?{r:R[1],g:R[2],b:R[3]}:(R=Qe.rgba.exec(W))?{r:R[1],g:R[2],b:R[3],a:R[4]}:(R=Qe.hsl.exec(W))?{h:R[1],s:R[2],l:R[3]}:(R=Qe.hsla.exec(W))?{h:R[1],s:R[2],l:R[3],a:R[4]}:(R=Qe.hsv.exec(W))?{h:R[1],s:R[2],v:R[3]}:(R=Qe.hsva.exec(W))?{h:R[1],s:R[2],v:R[3],a:R[4]}:(R=Qe.hex8.exec(W))?{r:qe(R[1]),g:qe(R[2]),b:qe(R[3]),a:Yt(R[4]),format:ae?"name":"hex8"}:(R=Qe.hex6.exec(W))?{r:qe(R[1]),g:qe(R[2]),b:qe(R[3]),format:ae?"name":"hex"}:(R=Qe.hex4.exec(W))?{r:qe(R[1]+""+R[1]),g:qe(R[2]+""+R[2]),b:qe(R[3]+""+R[3]),a:Yt(R[4]+""+R[4]),format:ae?"name":"hex8"}:(R=Qe.hex3.exec(W))?{r:qe(R[1]+""+R[1]),g:qe(R[2]+""+R[2]),b:qe(R[3]+""+R[3]),format:ae?"name":"hex"}:!1}function Ce(W){var ae,R;return W=W||{level:"AA",size:"small"},ae=(W.level||"AA").toUpperCase(),R=(W.size||"small").toLowerCase(),ae!=="AA"&&ae!=="AAA"&&(ae="AA"),R!=="small"&&R!=="large"&&(R="small"),{level:ae,size:R}}e.exports?e.exports=f:window.tinycolor=f})(Math)})(eK);var tK=rK;function rK(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var nK=iK;function iK(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}var aK=oK;function oK(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var MF=uK;function uK(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var lK=sK;function sK(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}var fK=cK;function cK(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],s=t[6],f=t[7],d=t[8],g=t[9],v=t[10],y=t[11],E=t[12],k=t[13],x=t[14],w=t[15],_=r*l-n*o,C=r*s-i*o,T=r*f-a*o,F=n*s-i*l,L=n*f-a*l,V=i*f-a*s,j=d*k-g*E,te=d*x-v*E,ge=d*w-y*E,me=g*x-v*k,ke=g*w-y*k,Fe=v*w-y*x,Le=_*Fe-C*ke+T*me+F*ge-L*te+V*j;return Le?(Le=1/Le,e[0]=(l*Fe-s*ke+f*me)*Le,e[1]=(i*ke-n*Fe-a*me)*Le,e[2]=(k*V-x*L+w*F)*Le,e[3]=(v*L-g*V-y*F)*Le,e[4]=(s*ge-o*Fe-f*te)*Le,e[5]=(r*Fe-i*ge+a*te)*Le,e[6]=(x*T-E*V-w*C)*Le,e[7]=(d*V-v*T+y*C)*Le,e[8]=(o*ke-l*ge+f*j)*Le,e[9]=(n*ge-r*ke-a*j)*Le,e[10]=(E*L-k*T+w*_)*Le,e[11]=(g*T-d*L-y*_)*Le,e[12]=(l*te-o*me-s*j)*Le,e[13]=(r*me-n*te+i*j)*Le,e[14]=(k*C-E*F-x*_)*Le,e[15]=(d*F-g*C+v*_)*Le,e):null}var hK=dK;function dK(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],s=t[6],f=t[7],d=t[8],g=t[9],v=t[10],y=t[11],E=t[12],k=t[13],x=t[14],w=t[15];return e[0]=l*(v*w-y*x)-g*(s*w-f*x)+k*(s*y-f*v),e[1]=-(n*(v*w-y*x)-g*(i*w-a*x)+k*(i*y-a*v)),e[2]=n*(s*w-f*x)-l*(i*w-a*x)+k*(i*f-a*s),e[3]=-(n*(s*y-f*v)-l*(i*y-a*v)+g*(i*f-a*s)),e[4]=-(o*(v*w-y*x)-d*(s*w-f*x)+E*(s*y-f*v)),e[5]=r*(v*w-y*x)-d*(i*w-a*x)+E*(i*y-a*v),e[6]=-(r*(s*w-f*x)-o*(i*w-a*x)+E*(i*f-a*s)),e[7]=r*(s*y-f*v)-o*(i*y-a*v)+d*(i*f-a*s),e[8]=o*(g*w-y*k)-d*(l*w-f*k)+E*(l*y-f*g),e[9]=-(r*(g*w-y*k)-d*(n*w-a*k)+E*(n*y-a*g)),e[10]=r*(l*w-f*k)-o*(n*w-a*k)+E*(n*f-a*l),e[11]=-(r*(l*y-f*g)-o*(n*y-a*g)+d*(n*f-a*l)),e[12]=-(o*(g*x-v*k)-d*(l*x-s*k)+E*(l*v-s*g)),e[13]=r*(g*x-v*k)-d*(n*x-i*k)+E*(n*v-i*g),e[14]=-(r*(l*x-s*k)-o*(n*x-i*k)+E*(n*s-i*l)),e[15]=r*(l*v-s*g)-o*(n*v-i*g)+d*(n*s-i*l),e}var pK=vK;function vK(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],l=e[6],s=e[7],f=e[8],d=e[9],g=e[10],v=e[11],y=e[12],E=e[13],k=e[14],x=e[15],w=t*o-r*a,_=t*l-n*a,C=t*s-i*a,T=r*l-n*o,F=r*s-i*o,L=n*s-i*l,V=f*E-d*y,j=f*k-g*y,te=f*x-v*y,ge=d*k-g*E,me=d*x-v*E,ke=g*x-v*k;return w*ke-_*me+C*ge+T*te-F*j+L*V}var mK=gK;function gK(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=t[4],s=t[5],f=t[6],d=t[7],g=t[8],v=t[9],y=t[10],E=t[11],k=t[12],x=t[13],w=t[14],_=t[15],C=r[0],T=r[1],F=r[2],L=r[3];return e[0]=C*n+T*l+F*g+L*k,e[1]=C*i+T*s+F*v+L*x,e[2]=C*a+T*f+F*y+L*w,e[3]=C*o+T*d+F*E+L*_,C=r[4],T=r[5],F=r[6],L=r[7],e[4]=C*n+T*l+F*g+L*k,e[5]=C*i+T*s+F*v+L*x,e[6]=C*a+T*f+F*y+L*w,e[7]=C*o+T*d+F*E+L*_,C=r[8],T=r[9],F=r[10],L=r[11],e[8]=C*n+T*l+F*g+L*k,e[9]=C*i+T*s+F*v+L*x,e[10]=C*a+T*f+F*y+L*w,e[11]=C*o+T*d+F*E+L*_,C=r[12],T=r[13],F=r[14],L=r[15],e[12]=C*n+T*l+F*g+L*k,e[13]=C*i+T*s+F*v+L*x,e[14]=C*a+T*f+F*y+L*w,e[15]=C*o+T*d+F*E+L*_,e}var yK=bK;function bK(e,t,r){var n=r[0],i=r[1],a=r[2],o,l,s,f,d,g,v,y,E,k,x,w;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],l=t[1],s=t[2],f=t[3],d=t[4],g=t[5],v=t[6],y=t[7],E=t[8],k=t[9],x=t[10],w=t[11],e[0]=o,e[1]=l,e[2]=s,e[3]=f,e[4]=d,e[5]=g,e[6]=v,e[7]=y,e[8]=E,e[9]=k,e[10]=x,e[11]=w,e[12]=o*n+d*i+E*a+t[12],e[13]=l*n+g*i+k*a+t[13],e[14]=s*n+v*i+x*a+t[14],e[15]=f*n+y*i+w*a+t[15]),e}var xK=wK;function wK(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var _K=SK;function SK(e,t,r,n){var i=n[0],a=n[1],o=n[2],l=Math.sqrt(i*i+a*a+o*o),s,f,d,g,v,y,E,k,x,w,_,C,T,F,L,V,j,te,ge,me,ke,Fe,Le,ut;return Math.abs(l)<1e-6?null:(l=1/l,i*=l,a*=l,o*=l,s=Math.sin(r),f=Math.cos(r),d=1-f,g=t[0],v=t[1],y=t[2],E=t[3],k=t[4],x=t[5],w=t[6],_=t[7],C=t[8],T=t[9],F=t[10],L=t[11],V=i*i*d+f,j=a*i*d+o*s,te=o*i*d-a*s,ge=i*a*d-o*s,me=a*a*d+f,ke=o*a*d+i*s,Fe=i*o*d+a*s,Le=a*o*d-i*s,ut=o*o*d+f,e[0]=g*V+k*j+C*te,e[1]=v*V+x*j+T*te,e[2]=y*V+w*j+F*te,e[3]=E*V+_*j+L*te,e[4]=g*ge+k*me+C*ke,e[5]=v*ge+x*me+T*ke,e[6]=y*ge+w*me+F*ke,e[7]=E*ge+_*me+L*ke,e[8]=g*Fe+k*Le+C*ut,e[9]=v*Fe+x*Le+T*ut,e[10]=y*Fe+w*Le+F*ut,e[11]=E*Fe+_*Le+L*ut,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var EK=AK;function AK(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],l=t[6],s=t[7],f=t[8],d=t[9],g=t[10],v=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+f*n,e[5]=o*i+d*n,e[6]=l*i+g*n,e[7]=s*i+v*n,e[8]=f*i-a*n,e[9]=d*i-o*n,e[10]=g*i-l*n,e[11]=v*i-s*n,e}var TK=CK;function CK(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],s=t[3],f=t[8],d=t[9],g=t[10],v=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-f*n,e[1]=o*i-d*n,e[2]=l*i-g*n,e[3]=s*i-v*n,e[8]=a*n+f*i,e[9]=o*n+d*i,e[10]=l*n+g*i,e[11]=s*n+v*i,e}var OK=kK;function kK(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],s=t[3],f=t[4],d=t[5],g=t[6],v=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+f*n,e[1]=o*i+d*n,e[2]=l*i+g*n,e[3]=s*i+v*n,e[4]=f*i-a*n,e[5]=d*i-o*n,e[6]=g*i-l*n,e[7]=v*i-s*n,e}var MK=RK;function RK(e,t,r){var n,i,a,o=r[0],l=r[1],s=r[2],f=Math.sqrt(o*o+l*l+s*s);return Math.abs(f)<1e-6?null:(f=1/f,o*=f,l*=f,s*=f,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=l*o*a+s*n,e[2]=s*o*a-l*n,e[3]=0,e[4]=o*l*a-s*n,e[5]=l*l*a+i,e[6]=s*l*a+o*n,e[7]=0,e[8]=o*s*a+l*n,e[9]=l*s*a-o*n,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var PK=IK;function IK(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=n+n,s=i+i,f=a+a,d=n*l,g=n*s,v=n*f,y=i*s,E=i*f,k=a*f,x=o*l,w=o*s,_=o*f;return e[0]=1-(y+k),e[1]=g+_,e[2]=v-w,e[3]=0,e[4]=g-_,e[5]=1-(d+k),e[6]=E+x,e[7]=0,e[8]=v+w,e[9]=E-x,e[10]=1-(d+y),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}var FK=NK;function NK(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var LK=DK;function DK(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}var $K=BK;function BK(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var zK=UK;function UK(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var jK=GK;function GK(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var WK=HK;function HK(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,l=n+n,s=i+i,f=r*o,d=n*o,g=n*l,v=i*o,y=i*l,E=i*s,k=a*o,x=a*l,w=a*s;return e[0]=1-g-E,e[1]=d+w,e[2]=v-x,e[3]=0,e[4]=d-w,e[5]=1-f-E,e[6]=y+k,e[7]=0,e[8]=v+x,e[9]=y-k,e[10]=1-f-g,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var qK=VK;function VK(e,t,r,n,i,a,o){var l=1/(r-t),s=1/(i-n),f=1/(a-o);return e[0]=a*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*s,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(i+n)*s,e[10]=(o+a)*f,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*f,e[15]=0,e}var YK=XK;function XK(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}var KK=QK;function QK(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+l),f=2/(i+a);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=f,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(i-a)*f*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}var ZK=JK;function JK(e,t,r,n,i,a,o){var l=1/(t-r),s=1/(n-i),f=1/(a-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*f,e[11]=0,e[12]=(t+r)*l,e[13]=(i+n)*s,e[14]=(o+a)*f,e[15]=1,e}var eQ=MF,tQ=rQ;function rQ(e,t,r,n){var i,a,o,l,s,f,d,g,v,y,E=t[0],k=t[1],x=t[2],w=n[0],_=n[1],C=n[2],T=r[0],F=r[1],L=r[2];return Math.abs(E-T)<1e-6&&Math.abs(k-F)<1e-6&&Math.abs(x-L)<1e-6?eQ(e):(d=E-T,g=k-F,v=x-L,y=1/Math.sqrt(d*d+g*g+v*v),d*=y,g*=y,v*=y,i=_*v-C*g,a=C*d-w*v,o=w*g-_*d,y=Math.sqrt(i*i+a*a+o*o),y?(y=1/y,i*=y,a*=y,o*=y):(i=0,a=0,o=0),l=g*o-v*a,s=v*i-d*o,f=d*a-g*i,y=Math.sqrt(l*l+s*s+f*f),y?(y=1/y,l*=y,s*=y,f*=y):(l=0,s=0,f=0),e[0]=i,e[1]=l,e[2]=d,e[3]=0,e[4]=a,e[5]=s,e[6]=g,e[7]=0,e[8]=o,e[9]=f,e[10]=v,e[11]=0,e[12]=-(i*E+a*k+o*x),e[13]=-(l*E+s*k+f*x),e[14]=-(d*E+g*k+v*x),e[15]=1,e)}var nQ=iQ;function iQ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}var hae={create:tK,clone:nK,copy:aK,identity:MF,transpose:lK,invert:fK,adjoint:hK,determinant:pK,multiply:mK,translate:yK,scale:xK,rotate:_K,rotateX:EK,rotateY:TK,rotateZ:OK,fromRotation:MK,fromRotationTranslation:PK,fromScaling:FK,fromTranslation:LK,fromXRotation:$K,fromYRotation:zK,fromZRotation:jK,fromQuat:WK,frustum:qK,perspective:YK,perspectiveFromFieldOfView:KK,ortho:ZK,lookAt:tQ,str:nQ},lg={},aQ={get exports(){return lg},set exports(e){lg=e}};aQ.exports=IE;lg.isMobile=IE;lg.default=IE;const oQ=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,uQ=/CrOS/,lQ=/android|ipad|playbook|silk/i;function IE(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=oQ.test(t)&&!uQ.test(t)||!!e.tablet&&lQ.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var sQ=!0,fQ=sQ,c2;typeof Jt.matchMedia=="function"?c2=!Jt.matchMedia("(hover: none)").matches:c2=fQ;var dae=c2,h2={},cQ={get exports(){return h2},set exports(e){h2=e}},mf=typeof Reflect=="object"?Reflect:null,C5=mf&&typeof mf.apply=="function"?mf.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},nm;mf&&typeof mf.ownKeys=="function"?nm=mf.ownKeys:Object.getOwnPropertySymbols?nm=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:nm=function(t){return Object.getOwnPropertyNames(t)};function hQ(e){console&&console.warn&&console.warn(e)}var RF=Number.isNaN||function(t){return t!==t};function Cr(){Cr.init.call(this)}cQ.exports=Cr;h2.once=mQ;Cr.EventEmitter=Cr;Cr.prototype._events=void 0;Cr.prototype._eventsCount=0;Cr.prototype._maxListeners=void 0;var O5=10;function uy(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Cr,"defaultMaxListeners",{enumerable:!0,get:function(){return O5},set:function(e){if(typeof e!="number"||e<0||RF(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");O5=e}});Cr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Cr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||RF(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function PF(e){return e._maxListeners===void 0?Cr.defaultMaxListeners:e._maxListeners}Cr.prototype.getMaxListeners=function(){return PF(this)};Cr.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=a[t];if(s===void 0)return!1;if(typeof s=="function")C5(s,this,r);else for(var f=s.length,d=DF(s,f),n=0;n<f;++n)C5(d[n],this,r);return!0};function IF(e,t,r,n){var i,a,o;if(uy(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=PF(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,hQ(l)}return e}Cr.prototype.addListener=function(t,r){return IF(this,t,r,!1)};Cr.prototype.on=Cr.prototype.addListener;Cr.prototype.prependListener=function(t,r){return IF(this,t,r,!0)};function dQ(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function FF(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=dQ.bind(n);return i.listener=r,n.wrapFn=i,i}Cr.prototype.once=function(t,r){return uy(r),this.on(t,FF(this,t,r)),this};Cr.prototype.prependOnceListener=function(t,r){return uy(r),this.prependListener(t,FF(this,t,r)),this};Cr.prototype.removeListener=function(t,r){var n,i,a,o,l;if(uy(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){l=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():pQ(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,l||r)}return this};Cr.prototype.off=Cr.prototype.removeListener;Cr.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function NF(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?vQ(i):DF(i,i.length)}Cr.prototype.listeners=function(t){return NF(this,t,!0)};Cr.prototype.rawListeners=function(t){return NF(this,t,!1)};Cr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):LF.call(e,t)};Cr.prototype.listenerCount=LF;function LF(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Cr.prototype.eventNames=function(){return this._eventsCount>0?nm(this._events):[]};function DF(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function pQ(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function vQ(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function mQ(e,t){return new Promise(function(r,n){function i(o){e.removeListener(t,a),n(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}$F(e,t,a,{once:!0}),t!=="error"&&gQ(e,i,{once:!0})})}function gQ(e,t,r){typeof e.on=="function"&&$F(e,"error",t,r)}function $F(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(a){n.once&&e.removeEventListener(t,i),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var BF=bQ,Ex={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},yQ=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function bQ(e){var t=[];return e.replace(yQ,function(r,n,i){var a=n.toLowerCase();for(i=wQ(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Ex[a])return i.unshift(n),t.push(i);if(i.length<Ex[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,Ex[a])))}}),t}var xQ=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function wQ(e){var t=e.match(xQ);return t?t.map(Number):[]}var _Q={left:0,top:0},pae=SQ;function SQ(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=EQ(t);return r[0]=n-a.left,r[1]=i-a.top,r}function EQ(e){return e===window||e===document||e===document.body?_Q:e.getBoundingClientRect()}function AQ(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{e=!1}return e}var vae=AQ();function TQ(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}var CQ=TQ;function OQ(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],l=i[0],s=i[1],f=r[0],d=r[1];return(l-a)*(d-o)-(s-o)*(f-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],l=r[0]-n[0],s=i[1]-n[1],f=l*o+a*s;if(f<e)return!1;var d=o*o+s*s;return!(f-d>-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])<e},pointsSameY:function(r,n){return Math.abs(r[1]-n[1])<e},pointsSame:function(r,n){return t.pointsSameX(r,n)&&t.pointsSameY(r,n)},pointsCompare:function(r,n){return t.pointsSameX(r,n)?t.pointsSameY(r,n)?0:r[1]<n[1]?-1:1:r[0]<n[0]?-1:1},pointsCollinear:function(r,n,i){var a=r[0]-n[0],o=r[1]-n[1],l=n[0]-i[0],s=n[1]-i[1];return Math.abs(a*s-l*o)<e},linesIntersect:function(r,n,i,a){var o=n[0]-r[0],l=n[1]-r[1],s=a[0]-i[0],f=a[1]-i[1],d=o*f-l*s;if(Math.abs(d)<e)return!1;var g=r[0]-i[0],v=r[1]-i[1],y=(s*v-f*g)/d,E=(o*v-l*g)/d,k={alongA:0,alongB:0,pt:[r[0]+y*o,r[1]+y*l]};return y<=-e?k.alongA=-2:y<e?k.alongA=-1:y-1<=-e?k.alongA=0:y-1<e?k.alongA=1:k.alongA=2,E<=-e?k.alongB=-2:E<e?k.alongB=-1:E-1<=-e?k.alongB=0:E-1<e?k.alongB=1:k.alongB=2,k},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],o=n[n.length-1][0],l=n[n.length-1][1],s=!1,f=0;f<n.length;f++){var d=n[f][0],g=n[f][1];g-a>e!=l-a>e&&(o-d)*(a-g)/(l-g)+d-i>e&&(s=!s),o=d,l=g}return s}};return t}var kQ=OQ,MQ={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};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}},RQ=MQ,Eh=RQ;function PQ(e,t,r){function n(E,k){return{id:r?r.segmentId():-1,start:E,end:k,myFill:{above:null,below:null},otherFill:null}}function i(E,k,x){return{id:r?r.segmentId():-1,start:E,end:k,myFill:{above:x.myFill.above,below:x.myFill.below},otherFill:null}}var a=Eh.create();function o(E,k,x,w,_,C){var T=t.pointsCompare(k,_);return T!==0?T:t.pointsSame(x,C)?0:E!==w?E?1:-1:t.pointAboveOrOnLine(x,w?_:C,w?C:_)?1:-1}function l(E,k){a.insertBefore(E,function(x){var w=o(E.isStart,E.pt,k,x.isStart,x.pt,x.other.pt);return w<0})}function s(E,k){var x=Eh.node({isStart:!0,pt:E.start,seg:E,primary:k,other:null,status:null});return l(x,E.end),x}function f(E,k,x){var w=Eh.node({isStart:!1,pt:k.end,seg:k,primary:x,other:E,status:null});E.other=w,l(w,E.pt)}function d(E,k){var x=s(E,k);return f(x,E,k),x}function g(E,k){r&&r.segmentChop(E.seg,k),E.other.remove(),E.seg.end=k,E.other.pt=k,l(E.other,E.pt)}function v(E,k){var x=i(k,E.seg.end,E.seg);return g(E,k),d(x,E.primary)}function y(E,k){var x=Eh.create();function w(Le,ut){var nt=Le.seg.start,De=Le.seg.end,We=ut.seg.start,_t=ut.seg.end;return t.pointsCollinear(nt,We,_t)?t.pointsCollinear(De,We,_t)||t.pointAboveOrOnLine(De,We,_t)?1:-1:t.pointAboveOrOnLine(nt,We,_t)?1:-1}function _(Le){return x.findTransition(function(ut){var nt=w(Le,ut.ev);return nt>0})}function C(Le,ut){var nt=Le.seg,De=ut.seg,We=nt.start,_t=nt.end,He=De.start,we=De.end;r&&r.checkIntersection(nt,De);var qe=t.linesIntersect(We,_t,He,we);if(qe===!1){if(!t.pointsCollinear(We,_t,He)||t.pointsSame(We,we)||t.pointsSame(_t,He))return!1;var st=t.pointsSame(We,He),Ke=t.pointsSame(_t,we);if(st&&Ke)return ut;var ct=!st&&t.pointBetween(We,He,we),yt=!Ke&&t.pointBetween(_t,He,we);if(st)return yt?v(ut,_t):v(Le,we),ut;ct&&(Ke||(yt?v(ut,_t):v(Le,we)),v(ut,We))}else qe.alongA===0&&(qe.alongB===-1?v(Le,He):qe.alongB===0?v(Le,qe.pt):qe.alongB===1&&v(Le,we)),qe.alongB===0&&(qe.alongA===-1?v(ut,We):qe.alongA===0?v(ut,qe.pt):qe.alongA===1&&v(ut,_t));return!1}for(var T=[];!a.isEmpty();){var F=a.getHead();if(r&&r.vert(F.pt[0]),F.isStart){let Le=function(){if(V){var ut=C(F,V);if(ut)return ut}return j?C(F,j):!1};r&&r.segmentNew(F.seg,F.primary);var L=_(F),V=L.before?L.before.ev:null,j=L.after?L.after.ev:null;r&&r.tempStatus(F.seg,V?V.seg:!1,j?j.seg:!1);var te=Le();if(te){if(e){var ge;F.seg.myFill.below===null?ge=!0:ge=F.seg.myFill.above!==F.seg.myFill.below,ge&&(te.seg.myFill.above=!te.seg.myFill.above)}else te.seg.otherFill=F.seg.myFill;r&&r.segmentUpdate(te.seg),F.other.remove(),F.remove()}if(a.getHead()!==F){r&&r.rewind(F.seg);continue}if(e){var ge;F.seg.myFill.below===null?ge=!0:ge=F.seg.myFill.above!==F.seg.myFill.below,j?F.seg.myFill.below=j.seg.myFill.above:F.seg.myFill.below=E,ge?F.seg.myFill.above=!F.seg.myFill.below:F.seg.myFill.above=F.seg.myFill.below}else if(F.seg.otherFill===null){var me;j?F.primary===j.primary?me=j.seg.otherFill.above:me=j.seg.myFill.above:me=F.primary?k:E,F.seg.otherFill={above:me,below:me}}r&&r.status(F.seg,V?V.seg:!1,j?j.seg:!1),F.other.status=L.insert(Eh.node({ev:F}))}else{var ke=F.status;if(ke===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(x.exists(ke.prev)&&x.exists(ke.next)&&C(ke.prev.ev,ke.next.ev),r&&r.statusRemove(ke.ev.seg),ke.remove(),!F.primary){var Fe=F.seg.myFill;F.seg.myFill=F.seg.otherFill,F.seg.otherFill=Fe}T.push(F.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(E){for(var k,x=E[E.length-1],w=0;w<E.length;w++){k=x,x=E[w];var _=t.pointsCompare(k,x);_!==0&&d(n(_<0?k:x,_<0?x:k),!0)}},calculate:function(E){return y(E,!1)}}:{calculate:function(E,k,x,w){return E.forEach(function(_){d(i(_.start,_.end,_),!0)}),x.forEach(function(_){d(i(_.start,_.end,_),!1)}),y(k,w)}}}var IQ=PQ;function FQ(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,l=a.end;if(t.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var s={index:0,matches_head:!1,matches_pt1:!1},f={index:0,matches_head:!1,matches_pt1:!1},d=s;function g(ke,Fe,Le){return d.index=ke,d.matches_head=Fe,d.matches_pt1=Le,d===s?(d=f,!1):(d=null,!0)}for(var v=0;v<n.length;v++){var y=n[v],E=y[0];y[1];var k=y[y.length-1];if(y[y.length-2],t.pointsSame(E,o)){if(g(v,!0,!0))break}else if(t.pointsSame(E,l)){if(g(v,!0,!1))break}else if(t.pointsSame(k,o)){if(g(v,!1,!0))break}else if(t.pointsSame(k,l)&&g(v,!1,!1))break}if(d===s){n.push([o,l]),r&&r.chainNew(o,l);return}if(d===f){r&&r.chainMatch(s.index);var x=s.index,w=s.matches_pt1?l:o,_=s.matches_head,y=n[x],C=_?y[0]:y[y.length-1],T=_?y[1]:y[y.length-2],F=_?y[y.length-1]:y[0],L=_?y[y.length-2]:y[1];if(t.pointsCollinear(T,C,w)&&(_?(r&&r.chainRemoveHead(s.index,w),y.shift()):(r&&r.chainRemoveTail(s.index,w),y.pop()),C=T),t.pointsSame(F,w)){n.splice(x,1),t.pointsCollinear(L,F,C)&&(_?(r&&r.chainRemoveTail(s.index,C),y.pop()):(r&&r.chainRemoveHead(s.index,C),y.shift())),r&&r.chainClose(s.index),i.push(y);return}_?(r&&r.chainAddHead(s.index,w),y.unshift(w)):(r&&r.chainAddTail(s.index,w),y.push(w));return}function V(ke){r&&r.chainReverse(ke),n[ke].reverse()}function j(ke,Fe){var Le=n[ke],ut=n[Fe],nt=Le[Le.length-1],De=Le[Le.length-2],We=ut[0],_t=ut[1];t.pointsCollinear(De,nt,We)&&(r&&r.chainRemoveTail(ke,nt),Le.pop(),nt=De),t.pointsCollinear(nt,We,_t)&&(r&&r.chainRemoveHead(Fe,We),ut.shift()),r&&r.chainJoin(ke,Fe),n[ke]=Le.concat(ut),n.splice(Fe,1)}var te=s.index,ge=f.index;r&&r.chainConnect(te,ge);var me=n[te].length<n[ge].length;s.matches_head?f.matches_head?me?(V(te),j(te,ge)):(V(ge),j(ge,te)):j(ge,te):f.matches_head?j(te,ge):me?(V(te),j(ge,te)):(V(ge),j(te,ge))}),i}var NQ=FQ;function Ah(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var LQ={union:function(e,t){return Ah(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Ah(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Ah(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Ah(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Ah(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},DQ=LQ,$Q={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(f){var d=f.slice(0,f.length-1);return e.segments({inverted:!1,regions:[d]})}for(var l=o(a[0]),s=1;s<a.length;s++)l=e.selectDifference(e.combine(l,o(a[s])));return l}if(t.type==="Polygon")return e.polygon(r(t.coordinates));if(t.type==="MultiPolygon"){for(var n=e.segments({inverted:!1,regions:[]}),i=0;i<t.coordinates.length;i++)n=e.selectUnion(e.combine(n,r(t.coordinates[i])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){r=e.polygon(e.segments(r));function n(y,E){return t.pointInsideRegion([(y[0][0]+y[1][0])*.5,(y[0][1]+y[1][1])*.5],E)}function i(y){return{region:y,children:[]}}var a=i(null);function o(y,E){for(var k=0;k<y.children.length;k++){var x=y.children[k];if(n(E,x.region)){o(x,E);return}}for(var w=i(E),k=0;k<y.children.length;k++){var x=y.children[k];n(x.region,E)&&(w.children.push(x),y.children.splice(k,1),k--)}y.children.push(w)}for(var l=0;l<r.regions.length;l++){var s=r.regions[l];s.length<3||o(a,s)}function f(y,E){for(var k=0,x=y[y.length-1][0],w=y[y.length-1][1],_=[],C=0;C<y.length;C++){var T=y[C][0],F=y[C][1];_.push([T,F]),k+=F*x-T*w,x=T,w=F}var L=k<0;return L!==E&&_.reverse(),_.push([_[0][0],_[0][1]]),_}var d=[];function g(y){var E=[f(y.region,!1)];d.push(E);for(var k=0;k<y.children.length;k++)E.push(v(y.children[k]))}function v(y){for(var E=0;E<y.children.length;E++)g(y.children[E]);return f(y.region,!0)}for(var l=0;l<a.children.length;l++)g(a.children[l]);return d.length<=0?{type:"Polygon",coordinates:[]}:d.length==1?{type:"Polygon",coordinates:d[0]}:{type:"MultiPolygon",coordinates:d}}},BQ=$Q;/*
855
+ * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
856
+ * @license MIT
857
+ * @preserve Project Home: https://github.com/voidqk/polybooljs
858
+ */var zQ=CQ,UQ=kQ,k5=IQ,jQ=NQ,Th=DQ,M5=BQ,Ti=!1,Ch=UQ(),ei;ei={buildLog:function(e){return e===!0?Ti=zQ():e===!1&&(Ti=!1),Ti===!1?!1:Ti.list},epsilon:function(e){return Ch.epsilon(e)},segments:function(e){var t=k5(!0,Ch,Ti);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=k5(!1,Ch,Ti);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Th.union(e.combined,Ti),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Th.intersect(e.combined,Ti),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Th.difference(e.combined,Ti),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Th.differenceRev(e.combined,Ti),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Th.xor(e.combined,Ti),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:jQ(e.segments,Ch,Ti),inverted:e.inverted}},polygonFromGeoJSON:function(e){return M5.toPolygon(ei,e)},polygonToGeoJSON:function(e){return M5.fromPolygon(ei,Ch,e)},union:function(e,t){return Oh(e,t,ei.selectUnion)},intersect:function(e,t){return Oh(e,t,ei.selectIntersect)},difference:function(e,t){return Oh(e,t,ei.selectDifference)},differenceRev:function(e,t){return Oh(e,t,ei.selectDifferenceRev)},xor:function(e,t){return Oh(e,t,ei.selectXor)}};function Oh(e,t,r){var n=ei.segments(e),i=ei.segments(t),a=ei.combine(n,i),o=r(a);return ei.polygon(o)}typeof window=="object"&&(window.PolyBool=ei);var mae=ei,gae=function(t,r,n,i){var a=t[0],o=t[1],l=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var s=i-n,f=0,d=s-1;f<s;d=f++){var g=r[f+n][0],v=r[f+n][1],y=r[d+n][0],E=r[d+n][1],k=v>o!=E>o&&a<(y-g)*(o-v)/(E-v)+g;k&&(l=!l)}return l};const yae=Rl(NY);var d2={},GQ={get exports(){return d2},set exports(e){d2=e}};function WQ(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s>=0?(a=o,i=o-1):n=o+1}return a}function HQ(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s>0?(a=o,i=o-1):n=o+1}return a}function qQ(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s<0?(a=o,n=o+1):i=o-1}return a}function VQ(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s<=0?(a=o,n=o+1):i=o-1}return a}function YQ(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],l=r!==void 0?r(o,t):o-t;if(l===0)return a;l<=0?n=a+1:i=a-1}return-1}function kh(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}var XQ={ge:function(e,t,r,n,i){return kh(e,t,r,n,i,WQ)},gt:function(e,t,r,n,i){return kh(e,t,r,n,i,HQ)},lt:function(e,t,r,n,i){return kh(e,t,r,n,i,qQ)},le:function(e,t,r,n,i){return kh(e,t,r,n,i,VQ)},eq:function(e,t,r,n,i){return kh(e,t,r,n,i,YQ)}},yp=KQ;function KQ(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var _u=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=R5(r)),Array.isArray(r)){var l={};for(o=0;o<r.length;o++)l[r[o]]=!0;r=l}for(a in r)r[a]=R5(r[a]);var s={};for(a in r){var f=r[a];if(Array.isArray(f))for(o=0;o<f.length;o++){var d=f[o];if(n&&(s[d]=!0),d in t){if(i[a]=t[d],n)for(var g=o;g<f.length;g++)s[f[g]]=!0;break}}else a in t&&(r[a]&&(i[a]=t[a]),n&&(s[a]=!0))}if(n)for(a in t)s[a]||(i[a]=t[a]);return i},Ax={};function R5(e){return Ax[e]?Ax[e]:(typeof e=="string"&&(e=Ax[e]=e.split(/\s*,\s*|\s+/)),e)}var QQ=_u,ly=ZQ;function ZQ(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=QQ(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}var bp=JQ;function JQ(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;n<t;n++){for(var i=-1/0,a=1/0,o=n,l=e.length;o<l;o+=t)e[o]>i&&(i=e[o]),e[o]<a&&(a=e[o]);r[n]=a,r[t+n]=i}return r}var zF=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},FE=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}},P5=FE,xp=eZ;function eZ(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,l,s;(!t||typeof t=="string")&&(t=new(P5(t||"float32"))(i+r));var f=t.length-r;if(i!==f)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+f);for(a=0,l=r;a<e.length;a++)for(o=0;o<n;o++)t[l++]=e[a][o]===null?NaN:e[a][o]}else if(!t||typeof t=="string"){var d=P5(t||"float32");if(Array.isArray(e)||t==="array")for(t=new d(e.length+r),a=0,l=r,s=t.length;l<s;l++,a++)t[l]=e[a]===null?NaN:e[a];else r===0?t=new d(e):(t=new d(e.length+r),t.set(e,r))}else t.set(e,r);return t}var tZ=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},rZ=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const I5=XQ,F5=yp,nZ=ly,iZ=bp,N5=_u,Tx=zF,aZ=xp,oZ=tZ,uZ=FE,L5=rZ,lZ=1073741824;var sZ=function(t,r){r||(r={}),t=aZ(t,"float64"),r=N5(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=Tx(r.maxDepth,255),i=Tx(r.bounds,iZ(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=D5(t,i),o=t.length>>>1,l;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?l=new(uZ(r.dtype))(o):r.dtype&&(l=r.dtype,Array.isArray(l)&&(l.length=o));for(let w=0;w<o;++w)l[w]=w;let s=[],f=[],d=[],g=[];y(0,0,1,l,0,1);let v=0;for(let w=0;w<s.length;w++){let _=s[w];if(l.set)l.set(_,v);else for(let T=0,F=_.length;T<F;T++)l[T+v]=_[T];let C=v+s[w].length;g[w]=[v,C],v=C}return l.range=E,l;function y(w,_,C,T,F,L){if(!T.length)return null;let V=s[F]||(s[F]=[]),j=d[F]||(d[F]=[]),te=f[F]||(f[F]=[]),ge=V.length;if(F++,F>n||L>lZ){for(let We=0;We<T.length;We++)V.push(T[We]),j.push(L),te.push(null,null,null,null);return ge}if(V.push(T[0]),j.push(L),T.length<=1)return te.push(null,null,null,null),ge;let me=C*.5,ke=w+me,Fe=_+me,Le=[],ut=[],nt=[],De=[];for(let We=1,_t=T.length;We<_t;We++){let He=T[We],we=a[He*2],qe=a[He*2+1];we<ke?qe<Fe?Le.push(He):ut.push(He):qe<Fe?nt.push(He):De.push(He)}return L<<=2,te.push(y(w,_,me,Le,F,L),y(w,Fe,me,ut,F,L+1),y(ke,_,me,nt,F,L+2),y(ke,Fe,me,De,F,L+3)),ge}function E(...w){let _;if(oZ(w[w.length-1])){let nt=w.pop();!w.length&&(nt.x!=null||nt.l!=null||nt.left!=null)&&(w=[nt],_={}),_=N5(nt,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else _={};w.length||(w=i);let C=nZ(...w),[T,F,L,V]=[Math.min(C.x,C.x+C.width),Math.min(C.y,C.y+C.height),Math.max(C.x,C.x+C.width),Math.max(C.y,C.y+C.height)],[j,te,ge,me]=D5([T,F,L,V],i),ke=Tx(_.level,s.length);if(_.d!=null){let nt;typeof _.d=="number"?nt=[_.d,_.d]:_.d.length&&(nt=_.d),ke=Math.min(Math.max(Math.ceil(-L5(Math.abs(nt[0])/(i[2]-i[0]))),Math.ceil(-L5(Math.abs(nt[1])/(i[3]-i[1])))),ke)}if(ke=Math.min(ke,s.length),_.lod)return k(j,te,ge,me,ke);let Fe=[];Le(0,0,1,0,0,1);function Le(nt,De,We,_t,He,we){if(He===null||we===null)return;let qe=nt+We,st=De+We;if(j>qe||te>st||ge<nt||me<De||_t>=ke||He===we)return;let Ke=s[_t];we===void 0&&(we=Ke.length);for(let W=He;W<we;W++){let ae=Ke[W],R=t[ae*2],A=t[ae*2+1];R>=T&&R<=L&&A>=F&&A<=V&&Fe.push(ae)}let ct=f[_t],yt=ct[He*4+0],qt=ct[He*4+1],Yt=ct[He*4+2],Qe=ct[He*4+3],At=ut(ct,He+1),Gt=We*.5,Ce=_t+1;Le(nt,De,Gt,Ce,yt,qt||Yt||Qe||At),Le(nt,De+Gt,Gt,Ce,qt,Yt||Qe||At),Le(nt+Gt,De,Gt,Ce,Yt,Qe||At),Le(nt+Gt,De+Gt,Gt,Ce,Qe,At)}function ut(nt,De){let We=null,_t=0;for(;We===null;)if(We=nt[De*4+_t],_t++,_t>nt.length)return null;return We}return Fe}function k(w,_,C,T,F){let L=[];for(let V=0;V<F;V++){let j=d[V],te=g[V][0],ge=x(w,_,V),me=x(C,T,V),ke=I5.ge(j,ge),Fe=I5.gt(j,me,ke,j.length-1);L[V]=[ke+te,Fe+te]}return L}function x(w,_,C){let T=1,F=.5,L=.5,V=.5;for(let j=0;j<C;j++)T<<=2,T+=w<F?_<L?0:1:_<L?2:3,V*=.5,F+=w<F?-V:V,L+=_<L?-V:V;return T}};function D5(e,t){let[r,n,i,a]=t,o=1/(i-r),l=1/(a-n),s=new Array(e.length);for(let f=0,d=e.length/2;f<d;f++)s[2*f]=F5((e[2*f]-r)*o,0,1),s[2*f+1]=F5((e[2*f+1]-n)*l,0,1);return s}(function(e){e.exports=sZ})(GQ);var UF=fZ;function fZ(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],l=o.toUpperCase();if(o!=l)switch(a[0]=l,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var s=1;s<a.length;)a[s++]+=n,a[s++]+=i}switch(l){case"Z":n=t,i=r;break;case"H":n=a[1];break;case"V":i=a[1];break;case"M":n=t=a[1],i=r=a[2];break;default:n=a[a.length-2],i=a[a.length-1]}return a})}var cZ=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(f){a=!0,o=f}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),cd=Math.PI*2,Cx=function(t,r,n,i,a,o,l){var s=t.x,f=t.y;s*=r,f*=n;var d=i*s-a*f,g=a*s+i*f;return{x:d+o,y:g+l}},hZ=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),l=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+l*n,y:l-o*n},{x:o,y:l}]},$5=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},dZ=function(t,r,n,i,a,o,l,s,f,d,g,v){var y=Math.pow(a,2),E=Math.pow(o,2),k=Math.pow(g,2),x=Math.pow(v,2),w=y*E-y*x-E*k;w<0&&(w=0),w/=y*x+E*k,w=Math.sqrt(w)*(l===s?-1:1);var _=w*a/o*v,C=w*-o/a*g,T=d*_-f*C+(t+n)/2,F=f*_+d*C+(r+i)/2,L=(g-_)/a,V=(v-C)/o,j=(-g-_)/a,te=(-v-C)/o,ge=$5(1,0,L,V),me=$5(L,V,j,te);return s===0&&me>0&&(me-=cd),s===1&&me<0&&(me+=cd),[T,F,ge,me]},pZ=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,l=t.ry,s=t.xAxisRotation,f=s===void 0?0:s,d=t.largeArcFlag,g=d===void 0?0:d,v=t.sweepFlag,y=v===void 0?0:v,E=[];if(o===0||l===0)return[];var k=Math.sin(f*cd/360),x=Math.cos(f*cd/360),w=x*(r-i)/2+k*(n-a)/2,_=-k*(r-i)/2+x*(n-a)/2;if(w===0&&_===0)return[];o=Math.abs(o),l=Math.abs(l);var C=Math.pow(w,2)/Math.pow(o,2)+Math.pow(_,2)/Math.pow(l,2);C>1&&(o*=Math.sqrt(C),l*=Math.sqrt(C));var T=dZ(r,n,i,a,o,l,g,y,k,x,w,_),F=cZ(T,4),L=F[0],V=F[1],j=F[2],te=F[3],ge=Math.abs(te)/(cd/4);Math.abs(1-ge)<1e-7&&(ge=1);var me=Math.max(Math.ceil(ge),1);te/=me;for(var ke=0;ke<me;ke++)E.push(hZ(j,te)),j+=te;return E.map(function(Fe){var Le=Cx(Fe[0],o,l,x,k,L,V),ut=Le.x,nt=Le.y,De=Cx(Fe[1],o,l,x,k,L,V),We=De.x,_t=De.y,He=Cx(Fe[2],o,l,x,k,L,V),we=He.x,qe=He.y;return{x1:ut,y1:nt,x2:We,y2:_t,x:we,y:qe}})};const vZ=Object.freeze(Object.defineProperty({__proto__:null,default:pZ},Symbol.toStringTag,{value:"Module"})),mZ=Rl(vZ);var gZ=bZ,yZ=mZ;function bZ(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,s=null,f=0,d=0,g=0,v=e.length;g<v;g++){var y=e[g],E=y[0];switch(E){case"M":a=y[1],o=y[2];break;case"A":var k=yZ({px:f,py:d,cx:y[6],cy:y[7],rx:y[1],ry:y[2],xAxisRotation:y[3],largeArcFlag:y[4],sweepFlag:y[5]});if(!k.length)continue;for(var x=0,w;x<k.length;x++)w=k[x],y=["C",w.x1,w.y1,w.x2,w.y2,w.x,w.y],x<k.length-1&&r.push(y);break;case"S":var _=f,C=d;(t=="C"||t=="S")&&(_+=_-n,C+=C-i),y=["C",_,C,y[1],y[2],y[3],y[4]];break;case"T":t=="Q"||t=="T"?(l=f*2-l,s=d*2-s):(l=f,s=d),y=B5(f,d,l,s,y[1],y[2]);break;case"Q":l=y[1],s=y[2],y=B5(f,d,y[1],y[2],y[3],y[4]);break;case"L":y=b0(f,d,y[1],y[2]);break;case"H":y=b0(f,d,y[1],d);break;case"V":y=b0(f,d,f,y[1]);break;case"Z":y=b0(f,d,a,o);break}t=E,f=y[y.length-2],d=y[y.length-1],y.length>4?(n=y[y.length-4],i=y[y.length-3]):(n=f,i=d),r.push(y)}return r}function b0(e,t,r,n){return["C",e,t,r,n,r,n]}function B5(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}var jF=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))},xZ=BF,wZ=UF,_Z=gZ,SZ=jF,EZ=AZ;function AZ(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!SZ(e))throw Error("String is not an SVG path.");e=xZ(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=wZ(e),e=_Z(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;r<n;r++)for(var i=e[r].slice(1),a=0;a<i.length;a+=2)i[a+0]<t[0]&&(t[0]=i[a+0]),i[a+1]<t[1]&&(t[1]=i[a+1]),i[a+0]>t[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}var nl=Math.PI,z5=WF(120),TZ=CZ;function CZ(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,s=null,f=0,d=0,g=0,v=e.length;g<v;g++){var y=e[g],E=y[0];switch(E){case"M":a=y[1],o=y[2];break;case"A":y=GF(f,d,y[1],y[2],WF(y[3]),y[4],y[5],y[6],y[7]),y.unshift("C"),y.length>7&&(r.push(y.splice(0,7)),y.unshift("C"));break;case"S":var k=f,x=d;(t=="C"||t=="S")&&(k+=k-n,x+=x-i),y=["C",k,x,y[1],y[2],y[3],y[4]];break;case"T":t=="Q"||t=="T"?(l=f*2-l,s=d*2-s):(l=f,s=d),y=U5(f,d,l,s,y[1],y[2]);break;case"Q":l=y[1],s=y[2],y=U5(f,d,y[1],y[2],y[3],y[4]);break;case"L":y=x0(f,d,y[1],y[2]);break;case"H":y=x0(f,d,y[1],d);break;case"V":y=x0(f,d,f,y[1]);break;case"Z":y=x0(f,d,a,o);break}t=E,f=y[y.length-2],d=y[y.length-1],y.length>4?(n=y[y.length-4],i=y[y.length-3]):(n=f,i=d),r.push(y)}return r}function x0(e,t,r,n){return["C",e,t,r,n,r,n]}function U5(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function GF(e,t,r,n,i,a,o,l,s,f){if(f)C=f[0],T=f[1],w=f[2],_=f[3];else{var d=Ox(e,t,-i);e=d.x,t=d.y,d=Ox(l,s,-i),l=d.x,s=d.y;var g=(e-l)/2,v=(t-s)/2,y=g*g/(r*r)+v*v/(n*n);y>1&&(y=Math.sqrt(y),r=y*r,n=y*n);var E=r*r,k=n*n,x=(a==o?-1:1)*Math.sqrt(Math.abs((E*k-E*v*v-k*g*g)/(E*v*v+k*g*g)));x==1/0&&(x=1);var w=x*r*v/n+(e+l)/2,_=x*-n*g/r+(t+s)/2,C=Math.asin(((t-_)/n).toFixed(9)),T=Math.asin(((s-_)/n).toFixed(9));C=e<w?nl-C:C,T=l<w?nl-T:T,C<0&&(C=nl*2+C),T<0&&(T=nl*2+T),o&&C>T&&(C=C-nl*2),!o&&T>C&&(T=T-nl*2)}if(Math.abs(T-C)>z5){var F=T,L=l,V=s;T=C+z5*(o&&T>C?1:-1),l=w+r*Math.cos(T),s=_+n*Math.sin(T);var j=GF(l,s,r,n,i,0,o,L,V,[T,F,w,_])}var te=Math.tan((T-C)/4),ge=4/3*r*te,me=4/3*n*te,ke=[2*e-(e+ge*Math.sin(C)),2*t-(t-me*Math.cos(C)),l+ge*Math.sin(T),s-me*Math.cos(T),l,s];if(f)return ke;j&&(ke=ke.concat(j));for(var Fe=0;Fe<ke.length;){var Le=Ox(ke[Fe],ke[Fe+1],i);ke[Fe++]=Le.x,ke[Fe++]=Le.y}return ke}function Ox(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function WF(e){return e*(nl/180)}var OZ=UF,kZ=TZ,MZ={M:"moveTo",C:"bezierCurveTo"},RZ=function(e,t){e.beginPath(),kZ(OZ(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[MZ[n]].apply(e,i)}),e.closePath()},PZ=yp,IZ=FZ,hd=1e20;function FZ(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,l,s,f,d,g,v,y,E,k;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,s=e,t.stride?d=t.stride:d=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(v=e,g=v.getContext("2d"),a=v.width,o=v.height,y=g.getImageData(0,0,a,o),s=y.data,d=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(v=e.canvas,g=e,a=v.width,o=v.height,y=g.getImageData(0,0,a,o),s=y.data,d=4):window.ImageData&&e instanceof window.ImageData&&(y=e,a=e.width,o=e.height,s=y.data,d=4);if(l=Math.max(a,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(f=s,s=Array(a*o),E=0,k=f.length;E<k;E++)s[E]=f[E*d+i]/255;else if(d!==1)throw Error("Raw data can have only 1 value per pixel");var x=Array(a*o),w=Array(a*o),_=Array(l),C=Array(l),T=Array(l+1),F=Array(l);for(E=0,k=a*o;E<k;E++){var L=s[E];x[E]=L===1?0:L===0?hd:Math.pow(Math.max(0,.5-L),2),w[E]=L===1?hd:L===0?0:Math.pow(Math.max(0,L-.5),2)}j5(x,a,o,_,C,F,T),j5(w,a,o,_,C,F,T);var V=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(E=0,k=a*o;E<k;E++)V[E]=PZ(1-((x[E]-w[E])/n+r),0,1);return V}function j5(e,t,r,n,i,a,o){for(var l=0;l<t;l++){for(var s=0;s<r;s++)n[s]=e[s*t+l];for(G5(n,i,a,o,r),s=0;s<r;s++)e[s*t+l]=i[s]}for(s=0;s<r;s++){for(l=0;l<t;l++)n[l]=e[s*t+l];for(G5(n,i,a,o,t),l=0;l<t;l++)e[s*t+l]=Math.sqrt(i[l])}}function G5(e,t,r,n,i){r[0]=0,n[0]=-hd,n[1]=+hd;for(var a=1,o=0;a<i;a++){for(var l=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);l<=n[o];)o--,l=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);o++,r[o]=a,n[o]=l,n[o+1]=+hd}for(a=0,o=0;a<i;a++){for(;n[o+1]<a;)o++;t[a]=(a-r[o])*(a-r[o])+e[r[o]]}}var NZ=EZ,LZ=BF,DZ=RZ,$Z=jF,BZ=IZ,p2=document.createElement("canvas"),Gn=p2.getContext("2d"),bae=zZ;function zZ(e,t){if(!$Z(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=p2.width=t.w||t.width||200,n=p2.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||NZ(e),l=[r/(o[2]-o[0]),n/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(Gn.fillStyle="black",Gn.fillRect(0,0,r,n),Gn.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?Gn.strokeStyle="white":Gn.strokeStyle="black",Gn.lineWidth=Math.abs(a)),Gn.translate(r*.5,n*.5),Gn.scale(s,s),UZ()){var f=new Path2D(e);Gn.fill(f),a&&Gn.stroke(f)}else{var d=LZ(e);DZ(Gn,d),Gn.fill(),a&&Gn.stroke()}Gn.setTransform(1,0,0,1,0,0);var g=BZ(Gn,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return g}var w0;function UZ(){if(w0!=null)return w0;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return w0=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return w0=r&&r.data&&r.data[3]===255}var jZ={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},GZ=Object.prototype.toString,HF=function(e){var t;return GZ.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},W5=jZ,WZ=HF,Ju=zF,HZ=qZ,H5={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function qZ(e){var t,r=[],n=1,i;if(typeof e=="string")if(W5[e])r=W5[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,l=o<=4;n=1,l?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=t[1],f=s==="rgb",a=s.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(y,E){if(/%$/.test(y))return E===o?parseFloat(y)/100:a==="rgb"?parseFloat(y)*255/100:parseFloat(y);if(a[E]==="h"){if(/deg$/.test(y))return parseFloat(y);if(H5[y]!==void 0)return H5[y]}return parseFloat(y)}),s===a&&r.push(1),n=f||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(g){return parseFloat(g)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else if(!isNaN(e))i="rgb",r=[e>>>16,(e&65280)>>>8,e&255];else if(WZ(e)){var d=Ju(e.r,e.red,e.R,null);d!==null?(i="rgb",r=[d,Ju(e.g,e.green,e.G),Ju(e.b,e.blue,e.B)]):(i="hsl",r=[Ju(e.h,e.hue,e.H),Ju(e.s,e.saturation,e.S),Ju(e.l,e.lightness,e.L,e.b,e.brightness)]),n=Ju(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||Jt.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))&&(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1);return{space:i,values:r,alpha:n}}var VZ={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,l,s;if(r===0)return s=n*255,[s,s,s];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,l=[0,0,0];for(var f=0;f<3;f++)o=t+1/3*-(f-1),o<0?o++:o>1&&o--,6*o<1?s=i+(a-i)*6*o:2*o<1?s=a:3*o<2?s=i+(a-i)*(2/3-o)*6:s=i,l[f]=s*255;return l}},YZ=HZ,XZ=VZ,_0=yp,KZ=function(t){var r,n=YZ(t);return n.space?(r=Array(3),r[0]=_0(n.values[0],0,255),r[1]=_0(n.values[1],0,255),r[2]=_0(n.values[2],0,255),n.space[0]==="h"&&(r=XZ.rgb(r)),r.push(_0(n.alpha,0,1)),r):[]},QZ=KZ,S0=yp,ZZ=FE,sy=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=ZZ(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=QZ(t),t[0]/=255,t[1]/=255,t[2]/=255),JZ(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=S0(Math.floor(t[0]*255),0,255),i[1]=S0(Math.floor(t[1]*255),0,255),i[2]=S0(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:S0(Math.floor(t[3]*255),0,255)),i)};function JZ(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}var zd={},eJ={get exports(){return zd},set exports(e){zd=e}},E0=yp;eJ.exports=qF;zd.to=qF;zd.from=tJ;function qF(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=E0(r,0,255)&255,n=E0(n,0,255)&255,i=E0(i,0,255)&255,a=E0(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function tJ(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}var VF=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n<e.length-1;n++)r.push(e[n],t[n]||"");return r.push(e[n]),r.join("")},YF=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i<a;i++){var o=n[i];for(var l in o)if(!(r[l]!==void 0&&!Array.isArray(r[l])&&t[l]===r[l])&&l in r){var s;if(o[l]===!0)s=r[l];else{if(o[l]===!1)continue;if(typeof o[l]=="function"&&(s=o[l](r[l],t,r),s===void 0))continue}t[l]=s}}return t},rJ=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),io={},nJ={get exports(){return io},set exports(e){io=e}};nJ.exports=dd;io.float32=io.float=dd;io.fract32=io.fract=iJ;var q5=new Float32Array(1);function iJ(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=dd(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return dd(e-dd(e))}function dd(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(q5[0]=e,q5[0])}function aJ(e,t){return lJ(e)||fJ(e,t)||XF(e,t)||hJ()}function oJ(e){return uJ(e)||sJ(e)||XF(e)||cJ()}function uJ(e){if(Array.isArray(e))return v2(e)}function lJ(e){if(Array.isArray(e))return e}function sJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fJ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,l;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function XF(e,t){if(e){if(typeof e=="string")return v2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v2(e,t)}}function v2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
859
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
860
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var dJ=sy,pJ=bp,vJ=zd,mJ=d2,ml=Pl,A0=VF,gJ=_u,yJ=YF,bJ=xp,V5=rJ,T0=io,xJ=ly,wJ=yn;function yn(e,t){var r=this;if(!(this instanceof yn))return new yn(e,t);typeof e=="function"?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;var n=e._gl,i,a=[],o={},l=[],s=[null],f=[null],d=255,g=100;this.tooManyColors=V5,i=e.texture({data:new Uint8Array(d*4),width:d,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),ml(this,{regl:e,gl:n,groups:l,markerCache:f,markerTextures:s,palette:a,paletteIds:o,paletteTexture:i,maxColors:d,maxSize:g,canvas:n.canvas}),this.update(t);var v={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(x,w){return[r.tooManyColors?0:d,i.height]},pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:i},attributes:{x:function(x,w){return w.xAttr||{buffer:w.positionBuffer,stride:8,offset:0}},y:function(x,w){return w.yAttr||{buffer:w.positionBuffer,stride:8,offset:4}},xFract:function(x,w){return w.xAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:0}},yFract:function(x,w){return w.yAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:4}},size:function(x,w){return w.size.length?{buffer:w.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(w.size*255/r.maxSize)]}},borderSize:function(x,w){return w.borderSize.length?{buffer:w.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(w.borderSize*255/r.maxSize)]}},colorId:function(x,w){return w.color.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(w.color*4,w.color*4+4):[w.color]}},borderColorId:function(x,w){return w.borderColor.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(w.borderColor*4,w.borderColor*4+4):[w.borderColor]}},isActive:function(x,w){return w.activation===!0?{constant:[1]}:w.activation?w.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},y=ml({},v);y.frag=A0([`precision highp float;
861
+ #define GLSLIFY 1
862
+
863
+ uniform float opacity;
864
+ uniform sampler2D markerTexture;
865
+
866
+ varying vec4 fragColor, fragBorderColor;
867
+ varying float fragWidth, fragBorderColorLevel, fragColorLevel;
868
+
869
+ float smoothStep(float x, float y) {
870
+ return 1.0 / (1.0 + exp(50.0*(x - y)));
871
+ }
872
+
873
+ void main() {
874
+ float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;
875
+
876
+ // max-distance alpha
877
+ if (dist < 0.003) discard;
878
+
879
+ // null-border case
880
+ if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {
881
+ float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);
882
+ gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);
883
+ }
884
+ else {
885
+ float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);
886
+ float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);
887
+
888
+ vec4 color = fragBorderColor;
889
+ color.a *= borderColorAmt;
890
+ color = mix(color, fragColor, colorAmt);
891
+ color.a *= opacity;
892
+
893
+ gl_FragColor = color;
894
+ }
895
+
896
+ }
897
+ `]),y.vert=A0([`precision highp float;
898
+ #define GLSLIFY 1
899
+
900
+ attribute float x, y, xFract, yFract;
901
+ attribute float size, borderSize;
902
+ attribute vec4 colorId, borderColorId;
903
+ attribute float isActive;
904
+
905
+ uniform bool constPointSize;
906
+ uniform float pixelRatio;
907
+ uniform vec2 scale, scaleFract, translate, translateFract, paletteSize;
908
+ uniform sampler2D paletteTexture;
909
+
910
+ const float maxSize = 100.;
911
+ const float borderLevel = .5;
912
+
913
+ varying vec4 fragColor, fragBorderColor;
914
+ varying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;
915
+
916
+ float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
917
+
918
+ bool isDirect = (paletteSize.x < 1.);
919
+
920
+ vec4 getColor(vec4 id) {
921
+ return isDirect ? id / 255. : texture2D(paletteTexture,
922
+ vec2(
923
+ (id.x + .5) / paletteSize.x,
924
+ (id.y + .5) / paletteSize.y
925
+ )
926
+ );
927
+ }
928
+
929
+ void main() {
930
+ // ignore inactive points
931
+ if (isActive == 0.) return;
932
+
933
+ vec2 position = vec2(x, y);
934
+ vec2 positionFract = vec2(xFract, yFract);
935
+
936
+ vec4 color = getColor(colorId);
937
+ vec4 borderColor = getColor(borderColorId);
938
+
939
+ float size = size * maxSize / 255.;
940
+ float borderSize = borderSize * maxSize / 255.;
941
+
942
+ gl_PointSize = 2. * size * pointSizeScale;
943
+ fragPointSize = size * pixelRatio;
944
+
945
+ vec2 pos = (position + translate) * scale
946
+ + (positionFract + translateFract) * scale
947
+ + (position + translate) * scaleFract
948
+ + (positionFract + translateFract) * scaleFract;
949
+
950
+ gl_Position = vec4(pos * 2. - 1., 0., 1.);
951
+
952
+ fragColor = color;
953
+ fragBorderColor = borderColor;
954
+ fragWidth = 1. / gl_PointSize;
955
+
956
+ fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);
957
+ fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);
958
+ }`]),this.drawMarker=e(y);var E=ml({},v);E.frag=A0([`precision highp float;
959
+ #define GLSLIFY 1
960
+
961
+ varying vec4 fragColor, fragBorderColor;
962
+ varying float fragBorderRadius, fragWidth;
963
+
964
+ uniform float opacity;
965
+
966
+ float smoothStep(float edge0, float edge1, float x) {
967
+ float t;
968
+ t = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
969
+ return t * t * (3.0 - 2.0 * t);
970
+ }
971
+
972
+ void main() {
973
+ float radius, alpha = 1.0, delta = fragWidth;
974
+
975
+ radius = length(2.0 * gl_PointCoord.xy - 1.0);
976
+
977
+ if (radius > 1.0 + delta) {
978
+ discard;
979
+ }
980
+
981
+ alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);
982
+
983
+ float borderRadius = fragBorderRadius;
984
+ float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);
985
+ vec4 color = mix(fragColor, fragBorderColor, ratio);
986
+ color.a *= alpha * opacity;
987
+ gl_FragColor = color;
988
+ }
989
+ `]),E.vert=A0([`precision highp float;
990
+ #define GLSLIFY 1
991
+
992
+ attribute float x, y, xFract, yFract;
993
+ attribute float size, borderSize;
994
+ attribute vec4 colorId, borderColorId;
995
+ attribute float isActive;
996
+
997
+ uniform bool constPointSize;
998
+ uniform float pixelRatio;
999
+ uniform vec2 paletteSize, scale, scaleFract, translate, translateFract;
1000
+ uniform sampler2D paletteTexture;
1001
+
1002
+ const float maxSize = 100.;
1003
+
1004
+ varying vec4 fragColor, fragBorderColor;
1005
+ varying float fragBorderRadius, fragWidth;
1006
+
1007
+ float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
1008
+
1009
+ bool isDirect = (paletteSize.x < 1.);
1010
+
1011
+ vec4 getColor(vec4 id) {
1012
+ return isDirect ? id / 255. : texture2D(paletteTexture,
1013
+ vec2(
1014
+ (id.x + .5) / paletteSize.x,
1015
+ (id.y + .5) / paletteSize.y
1016
+ )
1017
+ );
1018
+ }
1019
+
1020
+ void main() {
1021
+ // ignore inactive points
1022
+ if (isActive == 0.) return;
1023
+
1024
+ vec2 position = vec2(x, y);
1025
+ vec2 positionFract = vec2(xFract, yFract);
1026
+
1027
+ vec4 color = getColor(colorId);
1028
+ vec4 borderColor = getColor(borderColorId);
1029
+
1030
+ float size = size * maxSize / 255.;
1031
+ float borderSize = borderSize * maxSize / 255.;
1032
+
1033
+ gl_PointSize = (size + borderSize) * pointSizeScale;
1034
+
1035
+ vec2 pos = (position + translate) * scale
1036
+ + (positionFract + translateFract) * scale
1037
+ + (position + translate) * scaleFract
1038
+ + (positionFract + translateFract) * scaleFract;
1039
+
1040
+ gl_Position = vec4(pos * 2. - 1., 0., 1.);
1041
+
1042
+ fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);
1043
+ fragColor = color;
1044
+ fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
1045
+ fragWidth = 1. / gl_PointSize;
1046
+ }
1047
+ `]),V5&&(E.frag=E.frag.replace("smoothstep","smoothStep"),y.frag=y.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(E)}yn.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};yn.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};yn.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=this.groups;if(r.length===1&&Array.isArray(r[0])&&(r[0][0]===null||Array.isArray(r[0][0]))&&(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a<r.length;a++)this.drawItem(a,r[a]);else i.forEach(function(o,l){e.drawItem(l)});return this};yn.prototype.drawItem=function(e,t){var r=this.groups,n=r[e];if(typeof t=="number"&&(e=t,n=r[t],t=null),!!(n&&n.count&&n.opacity)){n.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,n,t));for(var i=[],a=1;a<n.activation.length;a++)!n.activation[a]||n.activation[a]!==!0&&!n.activation[a].data.length||i.push.apply(i,oJ(this.getMarkerDrawOptions(a,n,t)));i.length&&this.drawMarker(i)}};yn.prototype.getMarkerDrawOptions=function(e,t,r){var n=t.range,i=t.tree,a=t.viewport,o=t.activation,l=t.selectionBuffer,s=t.count;if(this.regl,!i)return r?[ml({},t,{markerTexture:this.markerTextures[e],activation:o[e],count:r.length,elements:r,offset:0})]:[ml({},t,{markerTexture:this.markerTextures[e],activation:o[e],offset:0})];var f=[],d=i.range(n,{lod:!0,px:[(n[2]-n[0])/a.width,(n[3]-n[1])/a.height]});if(r){for(var g=o[e],v=g.data,y=new Uint8Array(s),E=0;E<r.length;E++){var k=r[E];y[k]=v?v[k]:1}l.subdata(y)}for(var x=d.length;x--;){var w=aJ(d[x],2),_=w[0],C=w[1];f.push(ml({},t,{markerTexture:this.markerTextures[e],activation:r?l:o[e],offset:_,count:C-_}))}return f};yn.prototype.update=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length){r.length===1&&Array.isArray(r[0])&&(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,l=this.maxSize,s=this.maxColors,f=this.palette;this.groups=i=r.map(function(d,g){var v=i[g];if(d===void 0)return v;d===null?d={positions:null}:typeof d=="function"?d={ondraw:d}:typeof d[0]=="number"&&(d={positions:d}),d=gJ(d,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),d.positions===null&&(d.positions=[]),d.tooManyColors!=null&&(e.tooManyColors=d.tooManyColors),v||(i[g]=v={id:g,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},d=ml({},yn.defaults,d)),d.positions&&!("marker"in d)&&(d.marker=v.marker,delete v.marker),d.marker&&!("positions"in d)&&(d.positions=v.positions,delete v.positions);var y=0,E=0;if(yJ(v,d,[{snap:!0,size:function(De,We){return De==null&&(De=yn.defaults.size),y+=De&&De.length?1:0,De},borderSize:function(De,We){return De==null&&(De=yn.defaults.borderSize),y+=De&&De.length?1:0,De},opacity:parseFloat,color:function(De,We){return De==null&&(De=yn.defaults.color),De=e.updateColor(De),E++,De},borderColor:function(De,We){return De==null&&(De=yn.defaults.borderColor),De=e.updateColor(De),E++,De},bounds:function(De,We,_t){return"range"in _t||(_t.range=null),De},positions:function(De,We,_t){var He=We.snap,we=We.positionBuffer,qe=We.positionFractBuffer,st=We.selectionBuffer;if(De.x||De.y)return De.x.length?We.xAttr={buffer:o.buffer(De.x),offset:0,stride:4,count:De.x.length}:We.xAttr={buffer:De.x.buffer,offset:De.x.offset*4||0,stride:(De.x.stride||1)*4,count:De.x.count},De.y.length?We.yAttr={buffer:o.buffer(De.y),offset:0,stride:4,count:De.y.length}:We.yAttr={buffer:De.y.buffer,offset:De.y.offset*4||0,stride:(De.y.stride||1)*4,count:De.y.count},We.count=Math.max(We.xAttr.count,We.yAttr.count),De;De=bJ(De,"float64");var Ke=We.count=Math.floor(De.length/2),ct=We.bounds=Ke?pJ(De,2):null;if(!_t.range&&!We.range&&(delete We.range,_t.range=ct),!_t.marker&&!We.marker&&(delete We.marker,_t.marker=null),He&&(He===!0||Ke>He)?We.tree=mJ(De,{bounds:ct}):He&&He.length&&(We.tree=He),We.tree){var yt={primitive:"points",usage:"static",data:We.tree,type:"uint32"};We.elements?We.elements(yt):We.elements=o.elements(yt)}var qt=T0.float32(De);we({data:qt,usage:"dynamic"});var Yt=T0.fract32(De,qt);return qe({data:Yt,usage:"dynamic"}),st({data:new Uint8Array(Ke),type:"uint8",usage:"stream"}),De}},{marker:function(De,We,_t){var He=We.activation;if(He.forEach(function(Yt){return Yt&&Yt.destroy&&Yt.destroy()}),He.length=0,!De||typeof De[0]=="number"){var we=e.addMarker(De);He[we]=!0}else{for(var qe=[],st=0,Ke=Math.min(De.length,We.count);st<Ke;st++){var ct=e.addMarker(De[st]);qe[ct]||(qe[ct]=new Uint8Array(We.count)),qe[ct][st]=1}for(var yt=0;yt<qe.length;yt++)if(qe[yt]){var qt={data:qe[yt],type:"uint8",usage:"static"};He[yt]?He[yt](qt):He[yt]=o.buffer(qt),He[yt].data=qe[yt]}}return De},range:function(De,We,_t){var He=We.bounds;if(He)return De||(De=He),We.scale=[1/(De[2]-De[0]),1/(De[3]-De[1])],We.translate=[-De[0],-De[1]],We.scaleFract=T0.fract(We.scale),We.translateFract=T0.fract(We.translate),De},viewport:function(De){var We=xJ(De||[a.drawingBufferWidth,a.drawingBufferHeight]);return We}}]),y){var k=v,x=k.count,w=k.size,_=k.borderSize,C=k.sizeBuffer,T=new Uint8Array(x*2);if(w.length||_.length)for(var F=0;F<x;F++)T[F*2]=Math.round((w[F]==null?w:w[F])*255/l),T[F*2+1]=Math.round((_[F]==null?_:_[F])*255/l);C({data:T,usage:"dynamic"})}if(E){var L=v,V=L.count,j=L.color,te=L.borderColor,ge=L.colorBuffer,me;if(e.tooManyColors){if(j.length||te.length){me=new Uint8Array(V*8);for(var ke=0;ke<V;ke++){var Fe=j[ke];me[ke*8]=f[Fe*4],me[ke*8+1]=f[Fe*4+1],me[ke*8+2]=f[Fe*4+2],me[ke*8+3]=f[Fe*4+3];var Le=te[ke];me[ke*8+4]=f[Le*4],me[ke*8+5]=f[Le*4+1],me[ke*8+6]=f[Le*4+2],me[ke*8+7]=f[Le*4+3]}}}else if(j.length||te.length){me=new Uint8Array(V*4+2);for(var ut=0;ut<V;ut++)j[ut]!=null&&(me[ut*4]=j[ut]%s,me[ut*4+1]=Math.floor(j[ut]/s)),te[ut]!=null&&(me[ut*4+2]=te[ut]%s,me[ut*4+3]=Math.floor(te[ut]/s))}ge({data:me||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return v})}};yn.prototype.addMarker=function(e){var t=this.markerTextures,r=this.regl,n=this.markerCache,i=e==null?0:n.indexOf(e);if(i>=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,l=e.length;o<l;o++)a[o]=e[o]*255}var s=Math.floor(Math.sqrt(a.length));return i=t.length,n.push(e),t.push(r.texture({channels:1,data:a,radius:s,mag:"linear",min:"linear"})),i};yn.prototype.updateColor=function(e){var t=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(e)||(e=[e]);var i=[];if(typeof e[0]=="number"){var a=[];if(Array.isArray(e))for(var o=0;o<e.length;o+=4)a.push(e.slice(o,o+4));else for(var l=0;l<e.length;l+=4)a.push(e.subarray(l,l+4));e=a}for(var s=0;s<e.length;s++){var f=e[s];f=dJ(f,"uint8");var d=vJ(f,!1);if(t[d]==null){var g=r.length;t[d]=Math.floor(g/4),r[g]=f[0],r[g+1]=f[1],r[g+2]=f[2],r[g+3]=f[3]}i[s]=t[d]}return!this.tooManyColors&&r.length>n*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};yn.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i<n*t;i++)e.push(0,0,0,0)}r.height<n&&r.resize(t,n),r.subimage({width:Math.min(e.length*.25,t),height:n,data:e},0,0)}};yn.prototype.destroy=function(){return this.groups.forEach(function(e){e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(function(t){return t&&t.destroy&&t.destroy()}),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(function(e){return e&&e.destroy&&e.destroy()}),this};var _J=Pl,SJ=function(t,r){var n=new wJ(t,r),i=n.render.bind(n);return _J(i,{render:i,update:n.update.bind(n),draw:n.draw.bind(n),destroy:n.destroy.bind(n),regl:n.regl,gl:n.gl,canvas:n.gl.canvas,groups:n.groups,markers:n.markerCache,palette:n.palette}),i},xae=SJ,sg={},EJ={get exports(){return sg},set exports(e){sg=e}};EJ.exports=fy;sg.default=fy;function fy(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=KF(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var l,s,f,d,g,v,y;if(n&&(a=kJ(e,t,a,r)),e.length>80*r){l=f=e[0],s=d=e[1];for(var E=r;E<i;E+=r)g=e[E],v=e[E+1],g<l&&(l=g),v<s&&(s=v),g>f&&(f=g),v>d&&(d=v);y=Math.max(f-l,d-s),y=y!==0?1/y:0}return Ud(a,o,r,l,s,y),o}function KF(e,t,r,n,i){var a,o;if(i===y2(e,t,r,n)>0)for(a=t;a<r;a+=n)o=Y5(a,e[a],e[a+1],o);else for(a=r-n;a>=t;a-=n)o=Y5(a,e[a],e[a+1],o);return o&&cy(o,o.next)&&(Gd(o),o=o.next),o}function du(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(cy(r,r.next)||jr(r.prev,r,r.next)===0)){if(Gd(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Ud(e,t,r,n,i,a,o){if(e){!o&&a&&FJ(e,n,i,a);for(var l=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,a?TJ(e,n,i,a):AJ(e)){t.push(s.i/r),t.push(e.i/r),t.push(f.i/r),Gd(e),e=f.next,l=f.next;continue}if(e=f,e===l){o?o===1?(e=CJ(du(e),t,r),Ud(e,t,r,n,i,a,2)):o===2&&OJ(e,t,r,n,i,a):Ud(du(e),t,r,n,i,a,1);break}}}}function AJ(e){var t=e.prev,r=e,n=e.next;if(jr(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(tf(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&jr(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function TJ(e,t,r,n){var i=e.prev,a=e,o=e.next;if(jr(i,a,o)>=0)return!1;for(var l=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,s=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,f=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,d=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,g=m2(l,s,t,r,n),v=m2(f,d,t,r,n),y=e.prevZ,E=e.nextZ;y&&y.z>=g&&E&&E.z<=v;){if(y!==e.prev&&y!==e.next&&tf(i.x,i.y,a.x,a.y,o.x,o.y,y.x,y.y)&&jr(y.prev,y,y.next)>=0||(y=y.prevZ,E!==e.prev&&E!==e.next&&tf(i.x,i.y,a.x,a.y,o.x,o.y,E.x,E.y)&&jr(E.prev,E,E.next)>=0))return!1;E=E.nextZ}for(;y&&y.z>=g;){if(y!==e.prev&&y!==e.next&&tf(i.x,i.y,a.x,a.y,o.x,o.y,y.x,y.y)&&jr(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;E&&E.z<=v;){if(E!==e.prev&&E!==e.next&&tf(i.x,i.y,a.x,a.y,o.x,o.y,E.x,E.y)&&jr(E.prev,E,E.next)>=0)return!1;E=E.nextZ}return!0}function CJ(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!cy(i,a)&&QF(i,n,n.next,a)&&jd(i,a)&&jd(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),Gd(n),Gd(n.next),n=e=a),n=n.next}while(n!==e);return du(n)}function OJ(e,t,r,n,i,a){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&DJ(o,l)){var s=ZF(o,l);o=du(o,o.next),s=du(s,s.next),Ud(o,t,r,n,i,a),Ud(s,t,r,n,i,a);return}l=l.next}o=o.next}while(o!==e)}function kJ(e,t,r,n){var i=[],a,o,l,s,f;for(a=0,o=t.length;a<o;a++)l=t[a]*n,s=a<o-1?t[a+1]*n:e.length,f=KF(e,l,s,n,!1),f===f.next&&(f.steiner=!0),i.push(LJ(f));for(i.sort(MJ),a=0;a<i.length;a++)r=RJ(i[a],r),r=du(r,r.next);return r}function MJ(e,t){return e.x-t.x}function RJ(e,t){var r=PJ(e,t);if(!r)return t;var n=ZF(r,e),i=du(r,r.next);return du(n,n.next),t===r?i:t}function PJ(e,t){var r=t,n=e.x,i=e.y,a=-1/0,o;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var l=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(l<=n&&l>a){if(a=l,l===n){if(i===r.y)return r;if(i===r.next.y)return r.next}o=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!o)return null;if(n===a)return o;var s=o,f=o.x,d=o.y,g=1/0,v;r=o;do n>=r.x&&r.x>=f&&n!==r.x&&tf(i<d?n:a,i,f,d,i<d?a:n,i,r.x,r.y)&&(v=Math.abs(i-r.y)/(n-r.x),jd(r,e)&&(v<g||v===g&&(r.x>o.x||r.x===o.x&&IJ(o,r)))&&(o=r,g=v)),r=r.next;while(r!==s);return o}function IJ(e,t){return jr(e.prev,e,t.prev)<0&&jr(t.next,e,e.next)<0}function FJ(e,t,r,n){var i=e;do i.z===null&&(i.z=m2(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,NJ(i)}function NJ(e){var t,r,n,i,a,o,l,s,f=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,l=0,t=0;t<f&&(l++,n=n.nextZ,!!n);t++);for(s=f;l>0||s>0&&n;)l!==0&&(s===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,l--):(i=n,n=n.nextZ,s--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,f*=2}while(o>1);return e}function m2(e,t,r,n,i){return e=32767*(e-r)*i,t=32767*(t-n)*i,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function LJ(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function tf(e,t,r,n,i,a,o,l){return(i-o)*(t-l)-(e-o)*(a-l)>=0&&(e-o)*(n-l)-(r-o)*(t-l)>=0&&(r-o)*(a-l)-(i-o)*(n-l)>=0}function DJ(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!$J(e,t)&&(jd(e,t)&&jd(t,e)&&BJ(e,t)&&(jr(e.prev,e,t.prev)||jr(e,t.prev,t))||cy(e,t)&&jr(e.prev,e,e.next)>0&&jr(t.prev,t,t.next)>0)}function jr(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function cy(e,t){return e.x===t.x&&e.y===t.y}function QF(e,t,r,n){var i=O0(jr(e,t,r)),a=O0(jr(e,t,n)),o=O0(jr(r,n,e)),l=O0(jr(r,n,t));return!!(i!==a&&o!==l||i===0&&C0(e,r,t)||a===0&&C0(e,n,t)||o===0&&C0(r,e,n)||l===0&&C0(r,t,n))}function C0(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function O0(e){return e>0?1:e<0?-1:0}function $J(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&QF(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function jd(e,t){return jr(e.prev,e,e.next)<0?jr(e,t,e.next)>=0&&jr(e,e.prev,t)>=0:jr(e,t,e.prev)<0||jr(e,e.next,t)<0}function BJ(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function ZF(e,t){var r=new g2(e.i,e.x,e.y),n=new g2(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Y5(e,t,r,n){var i=new g2(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Gd(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 g2(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}fy.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(y2(e,0,a,r));if(i)for(var l=0,s=t.length;l<s;l++){var f=t[l]*r,d=l<s-1?t[l+1]*r:e.length;o-=Math.abs(y2(e,f,d,r))}var g=0;for(l=0;l<n.length;l+=3){var v=n[l]*r,y=n[l+1]*r,E=n[l+2]*r;g+=Math.abs((e[v]-e[E])*(e[y+1]-e[v+1])-(e[v]-e[y])*(e[E+1]-e[v+1]))}return o===0&&g===0?0:Math.abs((g-o)/o)};function y2(e,t,r,n){for(var i=0,a=t,o=r-n;a<r;a+=n)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}fy.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var a=0;a<e[i].length;a++)for(var o=0;o<t;o++)r.vertices.push(e[i][a][o]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var zJ=bp,UJ=jJ;function jJ(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=zJ(e,t));for(var n=0;n<t;n++){var i=r[t+n],a=r[n],o=n,l=e.length;if(i===1/0&&a===-1/0)for(o=n;o<l;o+=t)e[o]=e[o]===i?1:e[o]===a?0:.5;else if(i===1/0)for(o=n;o<l;o+=t)e[o]=e[o]===i?1:0;else if(a===-1/0)for(o=n;o<l;o+=t)e[o]=e[o]===a?0:1;else{var s=i-a;for(o=n;o<l;o+=t)isNaN(e[o])||(e[o]=s===0?.5:(e[o]-a)/s)}}return e}var GJ=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch{return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")},kx,X5;function JF(){if(X5)return kx;X5=1;var e=Object.create,t=Object.getPrototypeOf,r={};return kx=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},kx}var Mx,K5;function WJ(){if(K5)return Mx;K5=1;var e=Object.create,t;return JF()()||(t=eN()),Mx=function(){var r,n,i;return!t||t.level!==1?e:(r={},n={},i={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){n[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}n[a]=i}),Object.defineProperties(r,n),Object.defineProperty(t,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:r}),function(a,o){return e(a===null?r:a,o)})}(),Mx}var Rx,Q5;function eN(){if(Q5)return Rx;Q5=1;var e=OS,t=Ji,r=Object.prototype.isPrototypeOf,n=Object.defineProperty,i={configurable:!0,enumerable:!1,writable:!0,value:void 0},a;return a=function(o,l){if(t(o),l===null||e(l))return o;throw new TypeError("Prototype must be null or an object")},Rx=function(o){var l,s;return o?(o.level===2?o.set?(s=o.set,l=function(f,d){return s.call(a(f,d),d),f}):l=function(f,d){return a(f,d).__proto__=d,f}:l=function f(d,g){var v;return a(d,g),v=r.call(f.nullPolyfill,d),v&&delete f.nullPolyfill.__proto__,g===null&&(g=f.nullPolyfill),d.__proto__=g,v&&n(f.nullPolyfill,"__proto__",i),d},Object.defineProperty(l,"level",{configurable:!1,enumerable:!1,writable:!1,value:o.level})):null}(function(){var o=Object.create(null),l={},s,f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(f){try{s=f.set,s.call(o,l)}catch{}if(Object.getPrototypeOf(o)===l)return{set:s,level:2}}return o.__proto__=l,Object.getPrototypeOf(o)===l?{level:2}:(o={},o.__proto__=l,Object.getPrototypeOf(o)===l?{level:1}:!1)}()),WJ(),Rx}var Px,Z5;function NE(){return Z5||(Z5=1,Px=JF()()?Object.setPrototypeOf:eN()),Px}var Ix,J5;function HJ(){if(J5)return Ix;J5=1;var e=OS;return Ix=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},Ix}var Fx,ek;function qJ(){if(ek)return Fx;ek=1;var e=Object.create(null),t=Math.random;return Fx=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},Fx}var fg={},VJ={get exports(){return fg},set exports(e){fg=e}},Nx,tk;function YJ(){if(tk)return Nx;tk=1;var e=Ji;return Nx=function(){return e(this).length=0,this},Nx}var Lx,rk;function XJ(){if(rk)return Lx;rk=1;var e=Wf,t=kS,r=Object.prototype.toString;return Lx=function(n){if(!e(n))return null;if(t(n)){var i=n.toString;if(typeof i!="function"||i===r)return null}try{return""+n}catch{return null}},Lx}var Dx,nk;function KJ(){return nk||(nk=1,Dx=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),Dx}var $x,ik;function QJ(){if(ik)return $x;ik=1;var e=KJ(),t=/[\n\r\u2028\u2029]/g;return $x=function(r){var n=e(r);return n===null?"<Non-coercible to string value>":(n.length>100&&(n=n.slice(0,99)+"…"),n=n.replace(t,function(i){switch(i){case`
1048
+ `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},$x}var Bx,ak;function tN(){if(ak)return Bx;ak=1;var e=Wf,t=kS,r=XJ(),n=QJ(),i=function(a,o){return a.replace("%v",n(o))};return Bx=function(a,o,l){if(!t(l))throw new TypeError(i(o,a));if(!e(a)){if("default"in l)return l.default;if(l.isOptional)return null}var s=r(l.errorMessage);throw e(s)||(s=o),new TypeError(i(s,a))},Bx}var zx,ok;function ZJ(){if(ok)return zx;ok=1;var e=tN(),t=Wf;return zx=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},zx}var Ux,uk;function JJ(){if(uk)return Ux;uk=1;var e=tN(),t=tP;return Ux=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},Ux}var jx,lk;function eee(){if(lk)return jx;lk=1;var e=$g(),t=Fg,r=Ji;return jx=function(n){var i=Object(r(n)),a=arguments[1],o=Object(arguments[2]);if(i!==n&&!a)return i;var l={};return a?e(a,function(s){(o.ensure||s in n)&&(l[s]=n[s])}):t(l,n),l},jx}var Gx,sk;function tee(){if(sk)return Gx;sk=1;var e=Wf,t=ZJ(),r=JJ(),n=eee(),i=CS,a=RS(),o=Function.prototype.bind,l=Object.defineProperty,s=Object.prototype.hasOwnProperty,f;return f=function(d,g,v){var y=t(g)&&r(g.value),E;return E=n(g),delete E.writable,delete E.value,E.get=function(){return!v.overwriteDefinition&&s.call(this,d)?y:(g.value=o.call(y,v.resolveContext?v.resolveContext(this):this),l(this,d,g),this[d])},E},Gx=function(d){var g=i(arguments[1]);return e(g.resolveContext)&&r(g.resolveContext),a(d,function(v,y){return f(y,v,g)})},Gx}var Wx,fk;function rN(){if(fk)return Wx;fk=1;var e=YJ(),t=Fg,r=Ea,n=Ji,i=mi,a=tee(),o=Bl(),l=Object.defineProperty,s=Object.defineProperties,f;return Wx=f=function(d,g){if(!(this instanceof f))throw new TypeError("Constructor requires 'new'");s(this,{__list__:i("w",n(d)),__context__:i("w",g),__nextIndex__:i("w",0)}),g&&(r(g.on),g.on("_add",this._onAdd),g.on("_delete",this._onDelete),g.on("_clear",this._onClear))},delete f.prototype.constructor,s(f.prototype,t({_next:i(function(){var d;if(this.__list__){if(this.__redo__&&(d=this.__redo__.shift(),d!==void 0))return d;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:i(function(){return this._createResult(this._next())}),_createResult:i(function(d){return d===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(d)}}),_resolve:i(function(d){return this.__list__[d]}),_unBind:i(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:i(function(){return"[object "+(this[o.toStringTag]||"Object")+"]"})},a({_onAdd:i(function(d){if(!(d>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){l(this,"__redo__",i("c",[d]));return}this.__redo__.forEach(function(g,v){g>=d&&(this.__redo__[v]=++g)},this),this.__redo__.push(d)}}),_onDelete:i(function(d){var g;d>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(g=this.__redo__.indexOf(d),g!==-1&&this.__redo__.splice(g,1),this.__redo__.forEach(function(v,y){v>d&&(this.__redo__[y]=--v)},this)))}),_onClear:i(function(){this.__redo__&&e.call(this.__redo__),this.__nextIndex__=0})}))),l(f.prototype,o.iterator,i(function(){return this})),Wx}var ck;function ree(){if(ck)return fg;ck=1;var e=NE(),t=rP,r=mi,n=Bl(),i=rN(),a=Object.defineProperty,o;return o=VJ.exports=function(l,s){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");i.call(this,l),s?t.call(s,"key+value")?s="key+value":t.call(s,"key")?s="key":s="value":s="value",a(this,"__kind__",r("",s))},e&&e(o,i),delete o.prototype.constructor,o.prototype=Object.create(i.prototype,{_resolve:r(function(l){return this.__kind__==="value"?this.__list__[l]:this.__kind__==="key+value"?[l,this.__list__[l]]:l})}),a(o.prototype,n.toStringTag,r("c","Array Iterator")),fg}var cg={},nee={get exports(){return cg},set exports(e){cg=e}},hk;function iee(){if(hk)return cg;hk=1;var e=NE(),t=mi,r=Bl(),n=rN(),i=Object.defineProperty,a;return a=nee.exports=function(o){if(!(this instanceof a))throw new TypeError("Constructor requires 'new'");o=String(o),n.call(this,o),i(this,"__length__",t("",o.length))},e&&e(a,n),delete a.prototype.constructor,a.prototype=Object.create(n.prototype,{_next:t(function(){if(this.__list__){if(this.__nextIndex__<this.__length__)return this.__nextIndex__++;this._unBind()}}),_resolve:t(function(o){var l=this.__list__[o],s;return this.__nextIndex__===this.__length__?l:(s=l.charCodeAt(0),s>=55296&&s<=56319?l+this.__list__[this.__nextIndex__++]:l)})}),i(a.prototype,r.toStringTag,t("c","String Iterator")),cg}var Hx,dk;function aee(){if(dk)return Hx;dk=1;var e=Lg(),t=oo,r=Dg(),n=Bl().iterator,i=Array.isArray;return Hx=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},Hx}var qx,pk;function oee(){if(pk)return qx;pk=1;var e=aee();return qx=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},qx}var Vx,vk;function nN(){if(vk)return Vx;vk=1;var e=Lg(),t=Dg(),r=ree(),n=iee(),i=oee(),a=Bl().iterator;return Vx=function(o){return typeof i(o)[a]=="function"?o[a]():e(o)?new r(o):t(o)?new n(o):new r(o)},Vx}var Yx,mk;function uee(){if(mk)return Yx;mk=1;var e=Lg(),t=Ea,r=Dg(),n=nN(),i=Array.isArray,a=Function.prototype.call,o=Array.prototype.some;return Yx=function(l,s){var f,d=arguments[2],g,v,y,E,k,x,w;if(i(l)||e(l)?f="array":r(l)?f="string":l=n(l),t(s),v=function(){y=!0},f==="array"){o.call(l,function(_){return a.call(s,d,_,v),y});return}if(f==="string"){for(k=l.length,E=0;E<k&&(x=l[E],E+1<k&&(w=x.charCodeAt(0),w>=55296&&w<=56319&&(x+=l[++E])),a.call(s,d,x,v),!y);++E);return}for(g=l.next();!g.done;){if(a.call(s,d,g.value,v),y)return;g=l.next()}},Yx}var Xx,gk;function lee(){return gk||(gk=1,Xx=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),Xx}var Kx,yk;function see(){if(yk)return Kx;yk=1;var e=oo,t=NE(),r=HJ(),n=Ji,i=qJ(),a=mi,o=nN(),l=uee(),s=Bl().toStringTag,f=lee(),d=Array.isArray,g=Object.defineProperty,v=Object.prototype.hasOwnProperty,y=Object.getPrototypeOf,E;return Kx=E=function(){var k=arguments[0],x;if(!(this instanceof E))throw new TypeError("Constructor requires 'new'");return x=f&&t&&WeakMap!==E?t(new WeakMap,y(this)):this,e(k)&&(d(k)||(k=o(k))),g(x,"__weakMapData__",a("c","$weakMap$"+i())),k&&l(k,function(w){n(w),x.set(w[0],w[1])}),x},f&&(t&&t(E,WeakMap),E.prototype=Object.create(WeakMap.prototype,{constructor:a(E)})),Object.defineProperties(E.prototype,{delete:a(function(k){return v.call(r(k),this.__weakMapData__)?(delete k[this.__weakMapData__],!0):!1}),get:a(function(k){if(v.call(r(k),this.__weakMapData__))return k[this.__weakMapData__]}),has:a(function(k){return v.call(r(k),this.__weakMapData__)}),set:a(function(k,x){return g(r(k),this.__weakMapData__,a("c",x)),this}),toString:a(function(){return"[object WeakMap]"})}),g(E.prototype,s,a("c","WeakMap")),Kx}var iN=GJ()?WeakMap:see(),fee=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a<i;a++)if(t.call(r,n[a],a,n))return a;return-1};const k0=sy,cee=bp,b2=Pl,Ds=VF,hee=_u,dee=xp,bk=sg,pee=UJ,{float32:vee,fract32:Qx}=io,mee=iN,xk=ly,gee=fee;var wae=Sr;function Sr(e,t){if(!(this instanceof Sr))return new Sr(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Sr.shaders.has(e)?Sr.shaders.get(e):Sr.shaders.set(e,Sr.createShaders(e)).get(e),this.update(t)}Sr.dashMult=2;Sr.maxPatternLength=256;Sr.precisionThreshold=3e6;Sr.maxPoints=1e4;Sr.maxLines=2048;Sr.shaders=new mee;Sr.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(b2({vert:Ds("./rect-vert.glsl"),frag:Ds("./rect-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(b2({cull:{enable:!0,face:"back"},vert:Ds("./miter-vert.glsl"),frag:Ds("./miter-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch{i=n}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:Ds("./fill-vert.glsl"),frag:Ds("./fill-frag.glsl"),uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Sr.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Sr.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Sr.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Sr.precisionThreshold||t.scale[1]*t.viewport.height>Sr.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Sr.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Sr.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=hee(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=b2({},Sr.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,a<Sr.maxLines&&(o.depth=2*(Sr.maxLines-1-a%Sr.maxLines)/Sr.maxLines-1)),i.join!=null&&(o.join=i.join),i.hole!=null&&(o.hole=i.hole),i.fill!=null&&(o.fill=i.fill?k0(i.fill,"uint8"):null),i.viewport!=null&&(o.viewport=xk(i.viewport)),o.viewport||(o.viewport=xk([r.drawingBufferWidth,r.drawingBufferHeight])),i.close!=null&&(o.close=i.close),i.positions===null&&(i.positions=[]),i.positions){let f,d;if(i.positions.x&&i.positions.y){let E=i.positions.x,k=i.positions.y;d=o.count=Math.max(E.length,k.length),f=new Float64Array(d*2);for(let x=0;x<d;x++)f[x*2]=E[x],f[x*2+1]=k[x]}else f=dee(i.positions,"float64"),d=o.count=Math.floor(f.length/2);let g=o.bounds=cee(f,2);if(o.fill){let E=[],k={},x=0;for(let w=0,_=0,C=o.count;w<C;w++){let T=f[w*2],F=f[w*2+1];isNaN(T)||isNaN(F)||T==null||F==null?(T=f[x*2],F=f[x*2+1],k[w]=x):x=w,E[_++]=T,E[_++]=F}if(i.splitNull){o.count-1 in k||(k[o.count]=o.count-1);let w=Object.keys(k).map(Number).sort((F,L)=>F-L),_=[],C=0,T=o.hole!=null?o.hole[0]:null;if(T!=null){let F=gee(w,L=>L>=T);w=w.slice(0,F),w.push(T)}for(let F=0;F<w.length;F++){let L=E.slice(C*2,w[F]*2).concat(T?E.slice(T*2):[]),V=(o.hole||[]).map(te=>te-T+(w[F]-C)),j=bk(L,V);j=j.map(te=>te+C+(te+C<w[F]?0:T-w[F])),_.push(...j),C=w[F]+1}for(let F=0,L=_.length;F<L;F++)k[_[F]]!=null&&(_[F]=k[_[F]]);o.triangles=_}else{let w=bk(E,o.hole||[]);for(let _=0,C=w.length;_<C;_++)k[w[_]]!=null&&(w[_]=k[w[_]]);o.triangles=w}}let v=new Float64Array(f);pee(v,2,g);let y=new Float64Array(d*2+6);o.close?f[0]===f[d*2-2]&&f[1]===f[d*2-1]?(y[0]=v[d*2-4],y[1]=v[d*2-3]):(y[0]=v[d*2-2],y[1]=v[d*2-1]):(y[0]=v[0],y[1]=v[1]),y.set(v,2),o.close?f[0]===f[d*2-2]&&f[1]===f[d*2-1]?(y[d*2+2]=v[2],y[d*2+3]=v[3],o.count-=1):(y[d*2+2]=v[0],y[d*2+3]=v[1],y[d*2+4]=v[2],y[d*2+5]=v[3]):(y[d*2+2]=v[d*2-2],y[d*2+3]=v[d*2-1],y[d*2+4]=v[d*2-2],y[d*2+5]=v[d*2-1]);var l=vee(y);o.positionBuffer(l);var s=Qx(y,l);o.positionFractBuffer(s)}if(i.range?o.range=i.range:o.range||(o.range=o.bounds),(i.range||i.positions)&&o.count){let f=o.bounds,d=f[2]-f[0],g=f[3]-f[1],v=o.range[2]-o.range[0],y=o.range[3]-o.range[1];o.scale=[d/v,g/y],o.translate=[-o.range[0]/v+f[0]/v||0,-o.range[1]/y+f[1]/y||0],o.scaleFract=Qx(o.scale),o.translateFract=Qx(o.translate)}if(i.dashes){let f=0,d;if(!i.dashes||i.dashes.length<2)f=1,d=new Uint8Array([255,255,255,255,255,255,255,255]);else{f=0;for(let y=0;y<i.dashes.length;++y)f+=i.dashes[y];d=new Uint8Array(f*Sr.dashMult);let g=0,v=255;for(let y=0;y<2;y++)for(let E=0;E<i.dashes.length;++E){for(let k=0,x=i.dashes[E]*Sr.dashMult*.5;k<x;++k)d[g++]=v;v^=255}}o.dashLength=f,o.dashTexture({channels:1,data:d,width:d.length,height:1,mag:"linear",min:"linear"},0,0)}if(i.color){let f=o.count,d=i.color;d||(d="transparent");let g=new Uint8Array(f*4+4);if(!Array.isArray(d)||typeof d[0]=="number"){let v=k0(d,"uint8");for(let y=0;y<f+1;y++)g.set(v,y*4)}else{for(let v=0;v<f;v++){let y=k0(d[v],"uint8");g.set(y,v*4)}g.set(k0(d[0],"uint8"),f*4)}o.colorBuffer({usage:"dynamic",type:"uint8",data:g})}}}),e.length<this.passes.length){for(let i=e.length;i<this.passes.length;i++){let a=this.passes[i];a&&(a.colorBuffer.destroy(),a.positionBuffer.destroy(),a.dashTexture.destroy())}this.passes.length=e.length}let n=[];for(let i=0;i<this.passes.length;i++)this.passes[i]!==null&&n.push(this.passes[i]);return this.passes=n,this};Sr.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this};const yee=bp,bee=sy,xee=YF,wee=_u,wk=Pl,_k=xp,{float32:_ee,fract32:Zx}=io;var _ae=See;const Sk=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function See(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,l,s,f={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},d=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:Sk}),E(t),n=e({vert:`
1049
+ precision highp float;
1050
+
1051
+ attribute vec2 position, positionFract;
1052
+ attribute vec4 error;
1053
+ attribute vec4 color;
1054
+
1055
+ attribute vec2 direction, lineOffset, capOffset;
1056
+
1057
+ uniform vec4 viewport;
1058
+ uniform float lineWidth, capSize;
1059
+ uniform vec2 scale, scaleFract, translate, translateFract;
1060
+
1061
+ varying vec4 fragColor;
1062
+
1063
+ void main() {
1064
+ fragColor = color / 255.;
1065
+
1066
+ vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;
1067
+
1068
+ vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;
1069
+
1070
+ vec2 position = position + dxy;
1071
+
1072
+ vec2 pos = (position + translate) * scale
1073
+ + (positionFract + translateFract) * scale
1074
+ + (position + translate) * scaleFract
1075
+ + (positionFract + translateFract) * scaleFract;
1076
+
1077
+ pos += pixelOffset / viewport.zw;
1078
+
1079
+ gl_Position = vec4(pos * 2. - 1., 0, 1);
1080
+ }
1081
+ `,frag:`
1082
+ precision highp float;
1083
+
1084
+ varying vec4 fragColor;
1085
+
1086
+ uniform float opacity;
1087
+
1088
+ void main() {
1089
+ gl_FragColor = fragColor;
1090
+ gl_FragColor.a *= opacity;
1091
+ }
1092
+ `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(x,w)=>[w.viewport.x,w.viewport.y,x.viewportWidth,x.viewportHeight]},attributes:{color:{buffer:o,offset:(x,w)=>w.offset*4,divisor:1},position:{buffer:i,offset:(x,w)=>w.offset*8,divisor:1},positionFract:{buffer:a,offset:(x,w)=>w.offset*8,divisor:1},error:{buffer:l,offset:(x,w)=>w.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:Sk.length}),wk(g,{update:E,draw:v,destroy:k,regl:e,gl:r,canvas:r.canvas,groups:d}),g;function g(x){x?E(x):x===null&&k(),v()}function v(x){if(typeof x=="number")return y(x);x&&!Array.isArray(x)&&(x=[x]),e._refresh(),d.forEach((w,_)=>{if(w){if(x&&(x[_]?w.draw=!0:w.draw=!1),!w.draw){w.draw=!0;return}y(_)}})}function y(x){typeof x=="number"&&(x=d[x]),x!=null&&x&&x.count&&x.color&&x.opacity&&x.positions&&x.positions.length>1&&(x.scaleRatio=[x.scale[0]*x.viewport.width,x.scale[1]*x.viewport.height],n(x),x.after&&x.after(x))}function E(x){if(!x)return;x.length!=null?typeof x[0]=="number"&&(x=[{positions:x}]):Array.isArray(x)||(x=[x]);let w=0,_=0;if(g.groups=d=x.map((F,L)=>{let V=d[L];if(F)typeof F=="function"?F={after:F}:typeof F[0]=="number"&&(F={positions:F});else return V;return F=wee(F,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),V||(d[L]=V={id:L,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},F=wk({},f,F)),xee(V,F,[{lineWidth:j=>+j*.5,capSize:j=>+j*.5,opacity:parseFloat,errors:j=>(j=_k(j),_+=j.length,j),positions:(j,te)=>(j=_k(j,"float64"),te.count=Math.floor(j.length/2),te.bounds=yee(j,2),te.offset=w,w+=te.count,j)},{color:(j,te)=>{let ge=te.count;if(j||(j="transparent"),!Array.isArray(j)||typeof j[0]=="number"){let ke=j;j=Array(ge);for(let Fe=0;Fe<ge;Fe++)j[Fe]=ke}if(j.length<ge)throw Error("Not enough colors");let me=new Uint8Array(ge*4);for(let ke=0;ke<ge;ke++){let Fe=bee(j[ke],"uint8");me.set(Fe,ke*4)}return me},range:(j,te,ge)=>{let me=te.bounds;return j||(j=me),te.scale=[1/(j[2]-j[0]),1/(j[3]-j[1])],te.translate=[-j[0],-j[1]],te.scaleFract=Zx(te.scale),te.translateFract=Zx(te.translate),j},viewport:j=>{let te;return Array.isArray(j)?te={x:j[0],y:j[1],width:j[2]-j[0],height:j[3]-j[1]}:j?(te={x:j.x||j.left||0,y:j.y||j.top||0},j.right?te.width=j.right-te.x:te.width=j.w||j.width||0,j.bottom?te.height=j.bottom-te.y:te.height=j.h||j.height||0):te={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},te}}]),V}),w||_){let F=d.reduce((te,ge,me)=>te+(ge?ge.count:0),0),L=new Float64Array(F*2),V=new Uint8Array(F*4),j=new Float32Array(F*4);d.forEach((te,ge)=>{if(!te)return;let{positions:me,count:ke,offset:Fe,color:Le,errors:ut}=te;ke&&(V.set(Le,Fe*4),j.set(ut,Fe*4),L.set(me,Fe*2))});var C=_ee(L);i(C);var T=Zx(L,C);a(T),o(V),l(j)}}function k(){i.destroy(),a.destroy(),o.destroy(),l.destroy(),s.destroy()}}var Ek=/[\'\"]/,Eee=function(t){return t?(Ek.test(t.charAt(0))&&(t=t.substr(1)),Ek.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""};const aN=["inherit","initial","unset"],oN=["caption","icon","menu","message-box","small-caption","status-bar"],uN=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],lN=["normal","italic","oblique"],sN=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"];function fN(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(s){var f=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),d=[];function g(v,y,E){var k=r.push(v.slice(s[0].length,-s[1].length))-1;return d.push(k),i+k+i}r.forEach(function(v,y){for(var E,k=0;v!=E;)if(E=v,v=v.replace(f,g),k++>1e4)throw Error("References have circular dependency. Please, check them.");r[y]=v}),d=d.reverse(),r=r.map(function(v){return d.forEach(function(y){v=v.replace(new RegExp("(\\"+i+y+"\\"+i+")","g"),s[0]+"$1"+s[1])}),v})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function l(s,f,d){for(var g=[],v,y=0;v=o.exec(s);){if(y++>1e4)throw Error("Circular references in parenthesis");g.push(s.slice(0,v.index)),g.push(l(f[v[1]],f)),s=s.slice(v.index+v[0].length)}return g.push(s),g}return a?r:l(r[0],r)}function cN(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,l)}return n}return e.reduce(function s(f,d){return Array.isArray(d)&&(d=d.reduce(s,"")),f+d},"");function l(s,f){if(e[f]==null)throw Error("Reference "+f+"is undefined");return e[f]}}function LE(e,t){return Array.isArray(e)?cN(e,t):fN(e,t)}LE.parse=fN;LE.stringify=cN;var Aee=LE,Ak=Aee,Tee=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","“”","«»"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(g){return g.length===1&&(g=g+g),g}));var i=Ak.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var l=[],s=0;s<o.length;s++){var f=o[s],d=o[s+1];f[f.length-1]==="\\"&&f[f.length-2]!=="\\"?(l.push(f+r+d),s++):l.push(f)}o=l}for(var s=0;s<o.length;s++)i[0]=o[s],o[s]=Ak.stringify(i,{flat:!0});return o};const Cee=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];var Oee=Cee,hN={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||Oee.indexOf(t)!==-1}},kee=Eee,Mee=aN,Ree=oN,Pee=uN,Iee=lN,Fee=sN,Jx=Tee,Nee=hN.isSize,Lee=dN,Mh=dN.cache={};function dN(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(Mh[e])return Mh[e];if(e==="")throw new Error("Cannot parse an empty string.");if(Ree.indexOf(e)!==-1)return Mh[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=Jx(e,/\s+/),n;n=r.shift();){if(Mee.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),Mh[e]=t;if(Iee.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(Fee.indexOf(n)!==-1){t.stretch=n;continue}if(Pee.indexOf(n)!==-1){t.weight=n;continue}if(Nee(n)){var i=Jx(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=Tk(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=Tk(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=Jx(r.join(" "),/\s*,\s*/).map(kee),Mh[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function Tk(e){var t=parseFloat(e);return t.toString()===e?t:e}var Dee=_u,$ee=hN.isSize,Bee=wp(aN),zee=wp(oN),Uee=wp(uN),jee=wp(lN),Gee=wp(sN),Wee={normal:1,"small-caps":1},Hee={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},ew={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"},pN=function(t){if(t=Dee(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&Rh(t.system,zee),t.system;if(Rh(t.style,jee),Rh(t.variant,Wee),Rh(t.weight,Uee),Rh(t.stretch,Gee),t.size==null&&(t.size=ew.size),typeof t.size=="number"&&(t.size+="px"),!$ee)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=ew.family),Array.isArray(t.family)&&(t.family.length||(t.family=[ew.family]),t.family=t.family.map(function(n){return Hee[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function Rh(e,t){if(e&&!t[e]&&!Bee[e])throw Error("Unknown keyword `"+e+"`");return e}function wp(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t}var qee={parse:Lee,stringify:pN},x2={},Vee={get exports(){return x2},set exports(e){x2=e}};(function(e,t){(function(r,n){e.exports=n()})(Jt,function(){var r=function(I,H){for(var Z=Object.keys(H),Ee=0;Ee<Z.length;++Ee)I[Z[Ee]]=H[Z[Ee]];return I},n=0,i=0,a=5,o=6;function l(I,H){this.id=n++,this.type=I,this.data=H}function s(I){return I.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function f(I){if(I.length===0)return[];var H=I.charAt(0),Z=I.charAt(I.length-1);if(I.length>1&&H===Z&&(H==='"'||H==="'"))return['"'+s(I.substr(1,I.length-2))+'"'];var Ee=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(I);if(Ee)return f(I.substr(0,Ee.index)).concat(f(Ee[1])).concat(f(I.substr(Ee.index+Ee[0].length)));var Me=I.split(".");if(Me.length===1)return['"'+s(I)+'"'];for(var be=[],_e=0;_e<Me.length;++_e)be=be.concat(f(Me[_e]));return be}function d(I){return"["+f(I).join("][")+"]"}function g(I,H){return new l(I,d(H+""))}function v(I){return typeof I=="function"&&!I._reglType||I instanceof l}function y(I,H){if(typeof I=="function")return new l(i,I);if(typeof I=="number"||typeof I=="boolean")return new l(a,I);if(Array.isArray(I))return new l(o,I.map(function(Z,Ee){return y(Z)}));if(I instanceof l)return I}var E={DynamicVariable:l,define:g,isDynamic:v,unbox:y,accessor:d},k={next:typeof requestAnimationFrame=="function"?function(I){return requestAnimationFrame(I)}:function(I){return setTimeout(I,16)},cancel:typeof cancelAnimationFrame=="function"?function(I){return cancelAnimationFrame(I)}:clearTimeout},x=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function w(){var I={"":0},H=[""];return{id:function(Z){var Ee=I[Z];return Ee||(Ee=I[Z]=H.length,H.push(Z),Ee)},str:function(Z){return H[Z]}}}function _(I,H,Z){var Ee=document.createElement("canvas");r(Ee.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),I.appendChild(Ee),I===document.body&&(Ee.style.position="absolute",r(I.style,{margin:0,padding:0}));function Me(){var Ye=window.innerWidth,Xe=window.innerHeight;if(I!==document.body){var et=Ee.getBoundingClientRect();Ye=et.right-et.left,Xe=et.bottom-et.top}Ee.width=Z*Ye,Ee.height=Z*Xe}var be;I!==document.body&&typeof ResizeObserver=="function"?(be=new ResizeObserver(function(){setTimeout(Me)}),be.observe(I)):window.addEventListener("resize",Me,!1);function _e(){be?be.disconnect():window.removeEventListener("resize",Me),I.removeChild(Ee)}return Me(),{canvas:Ee,onDestroy:_e}}function C(I,H){function Z(Ee){try{return I.getContext(Ee,H)}catch{return null}}return Z("webgl")||Z("experimental-webgl")||Z("webgl-experimental")}function T(I){return typeof I.nodeName=="string"&&typeof I.appendChild=="function"&&typeof I.getBoundingClientRect=="function"}function F(I){return typeof I.drawArrays=="function"||typeof I.drawElements=="function"}function L(I){return typeof I=="string"?I.split():I}function V(I){return typeof I=="string"?document.querySelector(I):I}function j(I){var H=I||{},Z,Ee,Me,be,_e={},Ye=[],Xe=[],et=typeof window>"u"?1:window.devicePixelRatio,ft=!1,Rt={},St=function(he){},it=function(){};if(typeof H=="string"?Z=document.querySelector(H):typeof H=="object"&&(T(H)?Z=H:F(H)?(be=H,Me=be.canvas):("gl"in H?be=H.gl:"canvas"in H?Me=V(H.canvas):"container"in H&&(Ee=V(H.container)),"attributes"in H&&(_e=H.attributes),"extensions"in H&&(Ye=L(H.extensions)),"optionalExtensions"in H&&(Xe=L(H.optionalExtensions)),"onDone"in H&&(St=H.onDone),"profile"in H&&(ft=!!H.profile),"pixelRatio"in H&&(et=+H.pixelRatio),"cachedCode"in H&&(Rt=H.cachedCode))),Z&&(Z.nodeName.toLowerCase()==="canvas"?Me=Z:Ee=Z),!be){if(!Me){var Ge=_(Ee||document.body,St,et);if(!Ge)return null;Me=Ge.canvas,it=Ge.onDestroy}_e.premultipliedAlpha===void 0&&(_e.premultipliedAlpha=!0),be=C(Me,_e)}return be?{gl:be,canvas:Me,container:Ee,extensions:Ye,optionalExtensions:Xe,pixelRatio:et,profile:ft,cachedCode:Rt,onDone:St,onDestroy:it}:(it(),St("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function te(I,H){var Z={};function Ee(_e){var Ye=_e.toLowerCase(),Xe;try{Xe=Z[Ye]=I.getExtension(Ye)}catch{}return!!Xe}for(var Me=0;Me<H.extensions.length;++Me){var be=H.extensions[Me];if(!Ee(be))return H.onDestroy(),H.onDone('"'+be+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return H.optionalExtensions.forEach(Ee),{extensions:Z,restore:function(){Object.keys(Z).forEach(function(_e){if(Z[_e]&&!Ee(_e))throw new Error("(regl): error restoring extension "+_e)})}}}function ge(I,H){for(var Z=Array(I),Ee=0;Ee<I;++Ee)Z[Ee]=H(Ee);return Z}var me=5120,ke=5121,Fe=5122,Le=5123,ut=5124,nt=5125,De=5126;function We(I){for(var H=16;H<=1<<28;H*=16)if(I<=H)return H;return 0}function _t(I){var H,Z;return H=(I>65535)<<4,I>>>=H,Z=(I>255)<<3,I>>>=Z,H|=Z,Z=(I>15)<<2,I>>>=Z,H|=Z,Z=(I>3)<<1,I>>>=Z,H|=Z,H|I>>1}function He(){var I=ge(8,function(){return[]});function H(be){var _e=We(be),Ye=I[_t(_e)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(_e)}function Z(be){I[_t(be.byteLength)>>2].push(be)}function Ee(be,_e){var Ye=null;switch(be){case me:Ye=new Int8Array(H(_e),0,_e);break;case ke:Ye=new Uint8Array(H(_e),0,_e);break;case Fe:Ye=new Int16Array(H(2*_e),0,_e);break;case Le:Ye=new Uint16Array(H(2*_e),0,_e);break;case ut:Ye=new Int32Array(H(4*_e),0,_e);break;case nt:Ye=new Uint32Array(H(4*_e),0,_e);break;case De:Ye=new Float32Array(H(4*_e),0,_e);break;default:return null}return Ye.length!==_e?Ye.subarray(0,_e):Ye}function Me(be){Z(be.buffer)}return{alloc:H,free:Z,allocType:Ee,freeType:Me}}var we=He();we.zero=He();var qe=3408,st=3410,Ke=3411,ct=3412,yt=3413,qt=3414,Yt=3415,Qe=33901,At=33902,Gt=3379,Ce=3386,W=34921,ae=36347,R=36348,A=35661,M=35660,$=34930,fe=36349,Ie=34076,ze=34024,Qt=7936,cr=7937,ir=7938,Yr=35724,Mr=34047,ra=36063,Eu=34852,Ta=3553,xi=34067,Op=34069,Li=33984,Au=6408,Hl=5126,ql=5121,Vl=36160,ky=36053,Ca=36064,My=16384,Yl=function(I,H){var Z=1;H.ext_texture_filter_anisotropic&&(Z=I.getParameter(Mr));var Ee=1,Me=1;H.webgl_draw_buffers&&(Ee=I.getParameter(Eu),Me=I.getParameter(ra));var be=!!H.oes_texture_float;if(be){var _e=I.createTexture();I.bindTexture(Ta,_e),I.texImage2D(Ta,0,Au,1,1,0,Au,Hl,null);var Ye=I.createFramebuffer();if(I.bindFramebuffer(Vl,Ye),I.framebufferTexture2D(Vl,Ca,Ta,_e,0),I.bindTexture(Ta,null),I.checkFramebufferStatus(Vl)!==ky)be=!1;else{I.viewport(0,0,1,1),I.clearColor(1,0,0,1),I.clear(My);var Xe=we.allocType(Hl,4);I.readPixels(0,0,1,1,Au,Hl,Xe),I.getError()?be=!1:(I.deleteFramebuffer(Ye),I.deleteTexture(_e),be=Xe[0]===1),we.freeType(Xe)}}var et=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),ft=!0;if(!et){var Rt=I.createTexture(),St=we.allocType(ql,36);I.activeTexture(Li),I.bindTexture(xi,Rt),I.texImage2D(Op,0,Au,3,3,0,Au,ql,St),we.freeType(St),I.bindTexture(xi,null),I.deleteTexture(Rt),ft=!I.getError()}return{colorBits:[I.getParameter(st),I.getParameter(Ke),I.getParameter(ct),I.getParameter(yt)],depthBits:I.getParameter(qt),stencilBits:I.getParameter(Yt),subpixelBits:I.getParameter(qe),extensions:Object.keys(H).filter(function(it){return!!H[it]}),maxAnisotropic:Z,maxDrawbuffers:Ee,maxColorAttachments:Me,pointSizeDims:I.getParameter(Qe),lineWidthDims:I.getParameter(At),maxViewportDims:I.getParameter(Ce),maxCombinedTextureUnits:I.getParameter(A),maxCubeMapSize:I.getParameter(Ie),maxRenderbufferSize:I.getParameter(ze),maxTextureUnits:I.getParameter($),maxTextureSize:I.getParameter(Gt),maxAttributes:I.getParameter(W),maxVertexUniforms:I.getParameter(ae),maxVertexTextureUnits:I.getParameter(M),maxVaryingVectors:I.getParameter(R),maxFragmentUniforms:I.getParameter(fe),glsl:I.getParameter(Yr),renderer:I.getParameter(cr),vendor:I.getParameter(Qt),version:I.getParameter(ir),readFloat:be,npotTextureCube:ft}},rn=function(I){return I instanceof Uint8Array||I instanceof Uint16Array||I instanceof Uint32Array||I instanceof Int8Array||I instanceof Int16Array||I instanceof Int32Array||I instanceof Float32Array||I instanceof Float64Array||I instanceof Uint8ClampedArray};function ai(I){return!!I&&typeof I=="object"&&Array.isArray(I.shape)&&Array.isArray(I.stride)&&typeof I.offset=="number"&&I.shape.length===I.stride.length&&(Array.isArray(I.data)||rn(I.data))}var zn=function(I){return Object.keys(I).map(function(H){return I[H]})},ar={shape:Rp,flatten:wi};function kp(I,H,Z){for(var Ee=0;Ee<H;++Ee)Z[Ee]=I[Ee]}function Di(I,H,Z,Ee){for(var Me=0,be=0;be<H;++be)for(var _e=I[be],Ye=0;Ye<Z;++Ye)Ee[Me++]=_e[Ye]}function co(I,H,Z,Ee,Me,be){for(var _e=be,Ye=0;Ye<H;++Ye)for(var Xe=I[Ye],et=0;et<Z;++et)for(var ft=Xe[et],Rt=0;Rt<Ee;++Rt)Me[_e++]=ft[Rt]}function Mp(I,H,Z,Ee,Me){for(var be=1,_e=Z+1;_e<H.length;++_e)be*=H[_e];var Ye=H[Z];if(H.length-Z===4){var Xe=H[Z+1],et=H[Z+2],ft=H[Z+3];for(_e=0;_e<Ye;++_e)co(I[_e],Xe,et,ft,Ee,Me),Me+=be}else for(_e=0;_e<Ye;++_e)Mp(I[_e],H,Z+1,Ee,Me),Me+=be}function wi(I,H,Z,Ee){var Me=1;if(H.length)for(var be=0;be<H.length;++be)Me*=H[be];else Me=0;var _e=Ee||we.allocType(Z,Me);switch(H.length){case 0:break;case 1:kp(I,H[0],_e);break;case 2:Di(I,H[0],H[1],_e);break;case 3:co(I,H[0],H[1],H[2],_e,0);break;default:Mp(I,H,0,_e,0)}return _e}function Rp(I){for(var H=[],Z=I;Z.length;Z=Z[0])H.push(Z.length);return H}var Tu={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},Ry=5120,Pp=5122,Py=5124,Ip=5121,Iy=5123,Cu=5125,Kf=5126,Fp=5126,Ou={int8:Ry,int16:Pp,int32:Py,uint8:Ip,uint16:Iy,uint32:Cu,float:Kf,float32:Fp},Xl=35048,Qf=35040,na={dynamic:Xl,stream:Qf,static:35044},Vn=ar.flatten,Kl=ar.shape,Ql=35044,oi=35040,ku=5121,Mu=5126,Zr=[];Zr[5120]=1,Zr[5122]=2,Zr[5124]=4,Zr[5121]=1,Zr[5123]=2,Zr[5125]=4,Zr[5126]=4;function Oa(I){return Tu[Object.prototype.toString.call(I)]|0}function Zf(I,H){for(var Z=0;Z<H.length;++Z)I[Z]=H[Z]}function Jf(I,H,Z,Ee,Me,be,_e){for(var Ye=0,Xe=0;Xe<Z;++Xe)for(var et=0;et<Ee;++et)I[Ye++]=H[Me*Xe+be*et+_e]}function Np(I,H,Z,Ee){var Me=0,be={};function _e(he){this.id=Me++,this.buffer=I.createBuffer(),this.type=he,this.usage=Ql,this.byteLength=0,this.dimension=1,this.dtype=ku,this.persistentData=null,Z.profile&&(this.stats={size:0})}_e.prototype.bind=function(){I.bindBuffer(this.type,this.buffer)},_e.prototype.destroy=function(){St(this)};var Ye=[];function Xe(he,Te){var Ve=Ye.pop();return Ve||(Ve=new _e(he)),Ve.bind(),Rt(Ve,Te,oi,0,1,!1),Ve}function et(he){Ye.push(he)}function ft(he,Te,Ve){he.byteLength=Te.byteLength,I.bufferData(he.type,Te,Ve)}function Rt(he,Te,Ve,Ze,Ne,pt){var ot;if(he.usage=Ve,Array.isArray(Te)){if(he.dtype=Ze||Mu,Te.length>0){var Pt;if(Array.isArray(Te[0])){ot=Kl(Te);for(var $e=1,Re=1;Re<ot.length;++Re)$e*=ot[Re];he.dimension=$e,Pt=Vn(Te,ot,he.dtype),ft(he,Pt,Ve),pt?he.persistentData=Pt:we.freeType(Pt)}else if(typeof Te[0]=="number"){he.dimension=Ne;var mt=we.allocType(he.dtype,Te.length);Zf(mt,Te),ft(he,mt,Ve),pt?he.persistentData=mt:we.freeType(mt)}else rn(Te[0])&&(he.dimension=Te[0].length,he.dtype=Ze||Oa(Te[0])||Mu,Pt=Vn(Te,[Te.length,Te[0].length],he.dtype),ft(he,Pt,Ve),pt?he.persistentData=Pt:we.freeType(Pt))}}else if(rn(Te))he.dtype=Ze||Oa(Te),he.dimension=Ne,ft(he,Te,Ve),pt&&(he.persistentData=new Uint8Array(new Uint8Array(Te.buffer)));else if(ai(Te)){ot=Te.shape;var Ae=Te.stride,ht=Te.offset,Je=0,It=0,tr=0,bt=0;ot.length===1?(Je=ot[0],It=1,tr=Ae[0],bt=0):ot.length===2&&(Je=ot[0],It=ot[1],tr=Ae[0],bt=Ae[1]),he.dtype=Ze||Oa(Te.data)||Mu,he.dimension=It;var Bt=we.allocType(he.dtype,Je*It);Jf(Bt,Te.data,Je,It,tr,bt,ht),ft(he,Bt,Ve),pt?he.persistentData=Bt:we.freeType(Bt)}else Te instanceof ArrayBuffer&&(he.dtype=ku,he.dimension=Ne,ft(he,Te,Ve),pt&&(he.persistentData=new Uint8Array(new Uint8Array(Te))))}function St(he){H.bufferCount--,Ee(he);var Te=he.buffer;I.deleteBuffer(Te),he.buffer=null,delete be[he.id]}function it(he,Te,Ve,Ze){H.bufferCount++;var Ne=new _e(Te);be[Ne.id]=Ne;function pt($e){var Re=Ql,mt=null,Ae=0,ht=0,Je=1;return Array.isArray($e)||rn($e)||ai($e)||$e instanceof ArrayBuffer?mt=$e:typeof $e=="number"?Ae=$e|0:$e&&("data"in $e&&(mt=$e.data),"usage"in $e&&(Re=na[$e.usage]),"type"in $e&&(ht=Ou[$e.type]),"dimension"in $e&&(Je=$e.dimension|0),"length"in $e&&(Ae=$e.length|0)),Ne.bind(),mt?Rt(Ne,mt,Re,ht,Je,Ze):(Ae&&I.bufferData(Ne.type,Ae,Re),Ne.dtype=ht||ku,Ne.usage=Re,Ne.dimension=Je,Ne.byteLength=Ae),Z.profile&&(Ne.stats.size=Ne.byteLength*Zr[Ne.dtype]),pt}function ot($e,Re){I.bufferSubData(Ne.type,Re,$e)}function Pt($e,Re){var mt=(Re||0)|0,Ae;if(Ne.bind(),rn($e)||$e instanceof ArrayBuffer)ot($e,mt);else if(Array.isArray($e)){if($e.length>0){if(typeof $e[0]=="number"){var ht=we.allocType(Ne.dtype,$e.length);Zf(ht,$e),ot(ht,mt),we.freeType(ht)}else if(Array.isArray($e[0])||rn($e[0])){Ae=Kl($e);var Je=Vn($e,Ae,Ne.dtype);ot(Je,mt),we.freeType(Je)}}}else if(ai($e)){Ae=$e.shape;var It=$e.stride,tr=0,bt=0,Bt=0,lt=0;Ae.length===1?(tr=Ae[0],bt=1,Bt=It[0],lt=0):Ae.length===2&&(tr=Ae[0],bt=Ae[1],Bt=It[0],lt=It[1]);var rr=Array.isArray($e.data)?Ne.dtype:Oa($e.data),lr=we.allocType(rr,tr*bt);Jf(lr,$e.data,tr,bt,Bt,lt,$e.offset),ot(lr,mt),we.freeType(lr)}return pt}return Ve||pt(he),pt._reglType="buffer",pt._buffer=Ne,pt.subdata=Pt,Z.profile&&(pt.stats=Ne.stats),pt.destroy=function(){St(Ne)},pt}function Ge(){zn(be).forEach(function(he){he.buffer=I.createBuffer(),I.bindBuffer(he.type,he.buffer),I.bufferData(he.type,he.persistentData||he.byteLength,he.usage)})}return Z.profile&&(H.getTotalBufferSize=function(){var he=0;return Object.keys(be).forEach(function(Te){he+=be[Te].stats.size}),he}),{create:it,createStream:Xe,destroyStream:et,clear:function(){zn(be).forEach(St),Ye.forEach(St)},getBuffer:function(he){return he&&he._buffer instanceof _e?he._buffer:null},restore:Ge,_initBuffer:Rt}}var ec=0,Lp=0,Dp=1,tc=1,rc=4,nc=4,nn={points:ec,point:Lp,lines:Dp,line:tc,triangles:rc,triangle:nc,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},$p=0,Zl=1,ia=4,ho=5120,ka=5121,ic=5122,Ma=5123,Jl=5124,aa=5125,po=34963,gr=35040,ac=35044;function es(I,H,Z,Ee){var Me={},be=0,_e={uint8:ka,uint16:Ma};H.oes_element_index_uint&&(_e.uint32=aa);function Ye(Ge){this.id=be++,Me[this.id]=this,this.buffer=Ge,this.primType=ia,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var Xe=[];function et(Ge){var he=Xe.pop();return he||(he=new Ye(Z.create(null,po,!0,!1)._buffer)),Rt(he,Ge,gr,-1,-1,0,0),he}function ft(Ge){Xe.push(Ge)}function Rt(Ge,he,Te,Ve,Ze,Ne,pt){Ge.buffer.bind();var ot;if(he){var Pt=pt;!pt&&(!rn(he)||ai(he)&&!rn(he.data))&&(Pt=H.oes_element_index_uint?aa:Ma),Z._initBuffer(Ge.buffer,he,Te,Pt,3)}else I.bufferData(po,Ne,Te),Ge.buffer.dtype=ot||ka,Ge.buffer.usage=Te,Ge.buffer.dimension=3,Ge.buffer.byteLength=Ne;if(ot=pt,!pt){switch(Ge.buffer.dtype){case ka:case ho:ot=ka;break;case Ma:case ic:ot=Ma;break;case aa:case Jl:ot=aa;break}Ge.buffer.dtype=ot}Ge.type=ot;var $e=Ze;$e<0&&($e=Ge.buffer.byteLength,ot===Ma?$e>>=1:ot===aa&&($e>>=2)),Ge.vertCount=$e;var Re=Ve;if(Ve<0){Re=ia;var mt=Ge.buffer.dimension;mt===1&&(Re=$p),mt===2&&(Re=Zl),mt===3&&(Re=ia)}Ge.primType=Re}function St(Ge){Ee.elementsCount--,delete Me[Ge.id],Ge.buffer.destroy(),Ge.buffer=null}function it(Ge,he){var Te=Z.create(null,po,!0),Ve=new Ye(Te._buffer);Ee.elementsCount++;function Ze(Ne){if(!Ne)Te(),Ve.primType=ia,Ve.vertCount=0,Ve.type=ka;else if(typeof Ne=="number")Te(Ne),Ve.primType=ia,Ve.vertCount=Ne|0,Ve.type=ka;else{var pt=null,ot=ac,Pt=-1,$e=-1,Re=0,mt=0;Array.isArray(Ne)||rn(Ne)||ai(Ne)?pt=Ne:("data"in Ne&&(pt=Ne.data),"usage"in Ne&&(ot=na[Ne.usage]),"primitive"in Ne&&(Pt=nn[Ne.primitive]),"count"in Ne&&($e=Ne.count|0),"type"in Ne&&(mt=_e[Ne.type]),"length"in Ne?Re=Ne.length|0:(Re=$e,mt===Ma||mt===ic?Re*=2:(mt===aa||mt===Jl)&&(Re*=4))),Rt(Ve,pt,ot,Pt,$e,Re,mt)}return Ze}return Ze(Ge),Ze._reglType="elements",Ze._elements=Ve,Ze.subdata=function(Ne,pt){return Te.subdata(Ne,pt),Ze},Ze.destroy=function(){St(Ve)},Ze}return{create:it,createStream:et,destroyStream:ft,getElements:function(Ge){return typeof Ge=="function"&&Ge._elements instanceof Ye?Ge._elements:null},clear:function(){zn(Me).forEach(St)}}}var Bp=new Float32Array(1),Fy=new Uint32Array(Bp.buffer),ts=5123;function Ru(I){for(var H=we.allocType(ts,I.length),Z=0;Z<I.length;++Z)if(isNaN(I[Z]))H[Z]=65535;else if(I[Z]===1/0)H[Z]=31744;else if(I[Z]===-1/0)H[Z]=64512;else{Bp[0]=I[Z];var Ee=Fy[0],Me=Ee>>>31<<15,be=(Ee<<1>>>24)-127,_e=Ee>>13&(1<<10)-1;if(be<-24)H[Z]=Me;else if(be<-14){var Ye=-14-be;H[Z]=Me+(_e+(1<<10)>>Ye)}else be>15?H[Z]=Me+31744:H[Z]=Me+(be+15<<10)+_e}return H}function ui(I){return Array.isArray(I)||rn(I)}var rs=34467,li=3553,vo=34067,mo=34069,oa=6408,ns=6406,$i=6407,Bi=6409,Pu=6410,zp=32854,go=32855,is=36194,oc=32819,Up=32820,yo=33635,Ra=34042,ua=6402,Iu=34041,Fu=35904,Pa=35906,Ia=36193,uc=33776,as=33777,Nu=33778,lc=33779,jp=35986,sc=35987,Gp=34798,fc=35840,Wp=35841,cc=35842,Hp=35843,Fa=36196,si=5121,hc=5123,dc=5125,Lu=5126,qp=10242,Du=10243,Ny=10497,bo=33071,os=33648,pc=10240,us=10241,Na=9728,$u=9729,ls=9984,ss=9985,Vp=9986,xo=9987,Ly=33170,fs=4352,Dy=4353,Yp=4354,Bu=34046,$y=3317,vc=37440,Xp=37441,zi=37443,mc=37444,La=33984,gc=[ls,Vp,ss,xo],_i=[0,Bi,Pu,$i,oa],Pn={};Pn[Bi]=Pn[ns]=Pn[ua]=1,Pn[Iu]=Pn[Pu]=2,Pn[$i]=Pn[Fu]=3,Pn[oa]=Pn[Pa]=4;function Da(I){return"[object "+I+"]"}var Kp=Da("HTMLCanvasElement"),Qp=Da("OffscreenCanvas"),Zp=Da("CanvasRenderingContext2D"),yc=Da("ImageBitmap"),bc=Da("HTMLImageElement"),Jp=Da("HTMLVideoElement"),By=Object.keys(Tu).concat([Kp,Qp,Zp,yc,bc,Jp]),wo=[];wo[si]=1,wo[Lu]=4,wo[Ia]=2,wo[hc]=2,wo[dc]=4;var Jr=[];Jr[zp]=2,Jr[go]=2,Jr[is]=2,Jr[Iu]=4,Jr[uc]=.5,Jr[as]=.5,Jr[Nu]=1,Jr[lc]=1,Jr[jp]=.5,Jr[sc]=1,Jr[Gp]=1,Jr[fc]=.5,Jr[Wp]=.25,Jr[cc]=.5,Jr[Hp]=.25,Jr[Fa]=.5;function ev(I){return Array.isArray(I)&&(I.length===0||typeof I[0]=="number")}function tv(I){if(!Array.isArray(I))return!1;var H=I.length;return!(H===0||!ui(I[0]))}function $a(I){return Object.prototype.toString.call(I)}function rv(I){return $a(I)===Kp}function nv(I){return $a(I)===Qp}function zy(I){return $a(I)===Zp}function Uy(I){return $a(I)===yc}function jy(I){return $a(I)===bc}function Gy(I){return $a(I)===Jp}function cs(I){if(!I)return!1;var H=$a(I);return By.indexOf(H)>=0?!0:ev(I)||tv(I)||ai(I)}function xc(I){return Tu[Object.prototype.toString.call(I)]|0}function iv(I,H){var Z=H.length;switch(I.type){case si:case hc:case dc:case Lu:var Ee=we.allocType(I.type,Z);Ee.set(H),I.data=Ee;break;case Ia:I.data=Ru(H);break}}function wc(I,H){return we.allocType(I.type===Ia?Lu:I.type,H)}function av(I,H){I.type===Ia?(I.data=Ru(H),we.freeType(H)):I.data=H}function Wy(I,H,Z,Ee,Me,be){for(var _e=I.width,Ye=I.height,Xe=I.channels,et=_e*Ye*Xe,ft=wc(I,et),Rt=0,St=0;St<Ye;++St)for(var it=0;it<_e;++it)for(var Ge=0;Ge<Xe;++Ge)ft[Rt++]=H[Z*it+Ee*St+Me*Ge+be];av(I,ft)}function Ui(I,H,Z,Ee,Me,be){var _e;if(typeof Jr[I]<"u"?_e=Jr[I]:_e=Pn[I]*wo[H],be&&(_e*=6),Me){for(var Ye=0,Xe=Z;Xe>=1;)Ye+=_e*Xe*Xe,Xe/=2;return Ye}else return _e*Z*Ee}function Hy(I,H,Z,Ee,Me,be,_e){var Ye={"don't care":fs,"dont care":fs,nice:Yp,fast:Dy},Xe={repeat:Ny,clamp:bo,mirror:os},et={nearest:Na,linear:$u},ft=r({mipmap:xo,"nearest mipmap nearest":ls,"linear mipmap nearest":ss,"nearest mipmap linear":Vp,"linear mipmap linear":xo},et),Rt={none:0,browser:mc},St={uint8:si,rgba4:oc,rgb565:yo,"rgb5 a1":Up},it={alpha:ns,luminance:Bi,"luminance alpha":Pu,rgb:$i,rgba:oa,rgba4:zp,"rgb5 a1":go,rgb565:is},Ge={};H.ext_srgb&&(it.srgb=Fu,it.srgba=Pa),H.oes_texture_float&&(St.float32=St.float=Lu),H.oes_texture_half_float&&(St.float16=St["half float"]=Ia),H.webgl_depth_texture&&(r(it,{depth:ua,"depth stencil":Iu}),r(St,{uint16:hc,uint32:dc,"depth stencil":Ra})),H.webgl_compressed_texture_s3tc&&r(Ge,{"rgb s3tc dxt1":uc,"rgba s3tc dxt1":as,"rgba s3tc dxt3":Nu,"rgba s3tc dxt5":lc}),H.webgl_compressed_texture_atc&&r(Ge,{"rgb atc":jp,"rgba atc explicit alpha":sc,"rgba atc interpolated alpha":Gp}),H.webgl_compressed_texture_pvrtc&&r(Ge,{"rgb pvrtc 4bppv1":fc,"rgb pvrtc 2bppv1":Wp,"rgba pvrtc 4bppv1":cc,"rgba pvrtc 2bppv1":Hp}),H.webgl_compressed_texture_etc1&&(Ge["rgb etc1"]=Fa);var he=Array.prototype.slice.call(I.getParameter(rs));Object.keys(Ge).forEach(function(Y){var xe=Ge[Y];he.indexOf(xe)>=0&&(it[Y]=xe)});var Te=Object.keys(it);Z.textureFormats=Te;var Ve=[];Object.keys(it).forEach(function(Y){var xe=it[Y];Ve[xe]=Y});var Ze=[];Object.keys(St).forEach(function(Y){var xe=St[Y];Ze[xe]=Y});var Ne=[];Object.keys(et).forEach(function(Y){var xe=et[Y];Ne[xe]=Y});var pt=[];Object.keys(ft).forEach(function(Y){var xe=ft[Y];pt[xe]=Y});var ot=[];Object.keys(Xe).forEach(function(Y){var xe=Xe[Y];ot[xe]=Y});var Pt=Te.reduce(function(Y,xe){var ye=it[xe];return ye===Bi||ye===ns||ye===Bi||ye===Pu||ye===ua||ye===Iu||H.ext_srgb&&(ye===Fu||ye===Pa)?Y[ye]=ye:ye===go||xe.indexOf("rgba")>=0?Y[ye]=oa:Y[ye]=$i,Y},{});function $e(){this.internalformat=oa,this.format=oa,this.type=si,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=mc,this.width=0,this.height=0,this.channels=0}function Re(Y,xe){Y.internalformat=xe.internalformat,Y.format=xe.format,Y.type=xe.type,Y.compressed=xe.compressed,Y.premultiplyAlpha=xe.premultiplyAlpha,Y.flipY=xe.flipY,Y.unpackAlignment=xe.unpackAlignment,Y.colorSpace=xe.colorSpace,Y.width=xe.width,Y.height=xe.height,Y.channels=xe.channels}function mt(Y,xe){if(!(typeof xe!="object"||!xe)){if("premultiplyAlpha"in xe&&(Y.premultiplyAlpha=xe.premultiplyAlpha),"flipY"in xe&&(Y.flipY=xe.flipY),"alignment"in xe&&(Y.unpackAlignment=xe.alignment),"colorSpace"in xe&&(Y.colorSpace=Rt[xe.colorSpace]),"type"in xe){var ye=xe.type;Y.type=St[ye]}var Tt=Y.width,nr=Y.height,Pr=Y.channels,Ct=!1;"shape"in xe?(Tt=xe.shape[0],nr=xe.shape[1],xe.shape.length===3&&(Pr=xe.shape[2],Ct=!0)):("radius"in xe&&(Tt=nr=xe.radius),"width"in xe&&(Tt=xe.width),"height"in xe&&(nr=xe.height),"channels"in xe&&(Pr=xe.channels,Ct=!0)),Y.width=Tt|0,Y.height=nr|0,Y.channels=Pr|0;var U=!1;if("format"in xe){var q=xe.format,ee=Y.internalformat=it[q];Y.format=Pt[ee],q in St&&("type"in xe||(Y.type=St[q])),q in Ge&&(Y.compressed=!0),U=!0}!Ct&&U?Y.channels=Pn[Y.format]:Ct&&!U&&Y.channels!==_i[Y.format]&&(Y.format=Y.internalformat=_i[Y.channels])}}function Ae(Y){I.pixelStorei(vc,Y.flipY),I.pixelStorei(Xp,Y.premultiplyAlpha),I.pixelStorei(zi,Y.colorSpace),I.pixelStorei($y,Y.unpackAlignment)}function ht(){$e.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Je(Y,xe){var ye=null;if(cs(xe)?ye=xe:xe&&(mt(Y,xe),"x"in xe&&(Y.xOffset=xe.x|0),"y"in xe&&(Y.yOffset=xe.y|0),cs(xe.data)&&(ye=xe.data)),xe.copy){var Tt=Me.viewportWidth,nr=Me.viewportHeight;Y.width=Y.width||Tt-Y.xOffset,Y.height=Y.height||nr-Y.yOffset,Y.needsCopy=!0}else if(!ye)Y.width=Y.width||1,Y.height=Y.height||1,Y.channels=Y.channels||4;else if(rn(ye))Y.channels=Y.channels||4,Y.data=ye,!("type"in xe)&&Y.type===si&&(Y.type=xc(ye));else if(ev(ye))Y.channels=Y.channels||4,iv(Y,ye),Y.alignment=1,Y.needsFree=!0;else if(ai(ye)){var Pr=ye.data;!Array.isArray(Pr)&&Y.type===si&&(Y.type=xc(Pr));var Ct=ye.shape,U=ye.stride,q,ee,Se,pe,de,ce;Ct.length===3?(Se=Ct[2],ce=U[2]):(Se=1,ce=1),q=Ct[0],ee=Ct[1],pe=U[0],de=U[1],Y.alignment=1,Y.width=q,Y.height=ee,Y.channels=Se,Y.format=Y.internalformat=_i[Se],Y.needsFree=!0,Wy(Y,Pr,pe,de,ce,ye.offset)}else if(rv(ye)||nv(ye)||zy(ye))rv(ye)||nv(ye)?Y.element=ye:Y.element=ye.canvas,Y.width=Y.element.width,Y.height=Y.element.height,Y.channels=4;else if(Uy(ye))Y.element=ye,Y.width=ye.width,Y.height=ye.height,Y.channels=4;else if(jy(ye))Y.element=ye,Y.width=ye.naturalWidth,Y.height=ye.naturalHeight,Y.channels=4;else if(Gy(ye))Y.element=ye,Y.width=ye.videoWidth,Y.height=ye.videoHeight,Y.channels=4;else if(tv(ye)){var se=Y.width||ye[0].length,Q=Y.height||ye.length,ne=Y.channels;ui(ye[0][0])?ne=ne||ye[0][0].length:ne=ne||1;for(var K=ar.shape(ye),ve=1,Oe=0;Oe<K.length;++Oe)ve*=K[Oe];var Be=wc(Y,ve);ar.flatten(ye,K,"",Be),av(Y,Be),Y.alignment=1,Y.width=se,Y.height=Q,Y.channels=ne,Y.format=Y.internalformat=_i[ne],Y.needsFree=!0}Y.type===Lu||Y.type}function It(Y,xe,ye){var Tt=Y.element,nr=Y.data,Pr=Y.internalformat,Ct=Y.format,U=Y.type,q=Y.width,ee=Y.height;Ae(Y),Tt?I.texImage2D(xe,ye,Ct,Ct,U,Tt):Y.compressed?I.compressedTexImage2D(xe,ye,Pr,q,ee,0,nr):Y.needsCopy?(Ee(),I.copyTexImage2D(xe,ye,Ct,Y.xOffset,Y.yOffset,q,ee,0)):I.texImage2D(xe,ye,Ct,q,ee,0,Ct,U,nr||null)}function tr(Y,xe,ye,Tt,nr){var Pr=Y.element,Ct=Y.data,U=Y.internalformat,q=Y.format,ee=Y.type,Se=Y.width,pe=Y.height;Ae(Y),Pr?I.texSubImage2D(xe,nr,ye,Tt,q,ee,Pr):Y.compressed?I.compressedTexSubImage2D(xe,nr,ye,Tt,U,Se,pe,Ct):Y.needsCopy?(Ee(),I.copyTexSubImage2D(xe,nr,ye,Tt,Y.xOffset,Y.yOffset,Se,pe)):I.texSubImage2D(xe,nr,ye,Tt,Se,pe,q,ee,Ct)}var bt=[];function Bt(){return bt.pop()||new ht}function lt(Y){Y.needsFree&&we.freeType(Y.data),ht.call(Y),bt.push(Y)}function rr(){$e.call(this),this.genMipmaps=!1,this.mipmapHint=fs,this.mipmask=0,this.images=Array(16)}function lr(Y,xe,ye){var Tt=Y.images[0]=Bt();Y.mipmask=1,Tt.width=Y.width=xe,Tt.height=Y.height=ye,Tt.channels=Y.channels=4}function dr(Y,xe){var ye=null;if(cs(xe))ye=Y.images[0]=Bt(),Re(ye,Y),Je(ye,xe),Y.mipmask=1;else if(mt(Y,xe),Array.isArray(xe.mipmap))for(var Tt=xe.mipmap,nr=0;nr<Tt.length;++nr)ye=Y.images[nr]=Bt(),Re(ye,Y),ye.width>>=nr,ye.height>>=nr,Je(ye,Tt[nr]),Y.mipmask|=1<<nr;else ye=Y.images[0]=Bt(),Re(ye,Y),Je(ye,xe),Y.mipmask=1;Re(Y,Y.images[0]),Y.compressed&&(Y.internalformat===uc||Y.internalformat===as||Y.internalformat===Nu||Y.internalformat)}function un(Y,xe){for(var ye=Y.images,Tt=0;Tt<ye.length;++Tt){if(!ye[Tt])return;It(ye[Tt],xe,Tt)}}var sr=[];function Xn(){var Y=sr.pop()||new rr;$e.call(Y),Y.mipmask=0;for(var xe=0;xe<16;++xe)Y.images[xe]=null;return Y}function Tr(Y){for(var xe=Y.images,ye=0;ye<xe.length;++ye)xe[ye]&&lt(xe[ye]),xe[ye]=null;sr.push(Y)}function An(){this.minFilter=Na,this.magFilter=Na,this.wrapS=bo,this.wrapT=bo,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=fs}function Kn(Y,xe){if("min"in xe){var ye=xe.min;Y.minFilter=ft[ye],gc.indexOf(Y.minFilter)>=0&&!("faces"in xe)&&(Y.genMipmaps=!0)}if("mag"in xe){var Tt=xe.mag;Y.magFilter=et[Tt]}var nr=Y.wrapS,Pr=Y.wrapT;if("wrap"in xe){var Ct=xe.wrap;typeof Ct=="string"?nr=Pr=Xe[Ct]:Array.isArray(Ct)&&(nr=Xe[Ct[0]],Pr=Xe[Ct[1]])}else{if("wrapS"in xe){var U=xe.wrapS;nr=Xe[U]}if("wrapT"in xe){var q=xe.wrapT;Pr=Xe[q]}}if(Y.wrapS=nr,Y.wrapT=Pr,"anisotropic"in xe&&(xe.anisotropic,Y.anisotropic=xe.anisotropic),"mipmap"in xe){var ee=!1;switch(typeof xe.mipmap){case"string":Y.mipmapHint=Ye[xe.mipmap],Y.genMipmaps=!0,ee=!0;break;case"boolean":ee=Y.genMipmaps=xe.mipmap;break;case"object":Y.genMipmaps=!1,ee=!0;break}ee&&!("min"in xe)&&(Y.minFilter=ls)}}function Fn(Y,xe){I.texParameteri(xe,us,Y.minFilter),I.texParameteri(xe,pc,Y.magFilter),I.texParameteri(xe,qp,Y.wrapS),I.texParameteri(xe,Du,Y.wrapT),H.ext_texture_filter_anisotropic&&I.texParameteri(xe,Bu,Y.anisotropic),Y.genMipmaps&&(I.hint(Ly,Y.mipmapHint),I.generateMipmap(xe))}var Hi=0,ln={},sn=Z.maxTextureUnits,Kt=Array(sn).map(function(){return null});function di(Y){$e.call(this),this.mipmask=0,this.internalformat=oa,this.id=Hi++,this.refCount=1,this.target=Y,this.texture=I.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new An,_e.profile&&(this.stats={size:0})}function _r(Y){I.activeTexture(La),I.bindTexture(Y.target,Y.texture)}function fn(){var Y=Kt[0];Y?I.bindTexture(Y.target,Y.texture):I.bindTexture(li,null)}function Un(Y){var xe=Y.texture,ye=Y.unit,Tt=Y.target;ye>=0&&(I.activeTexture(La+ye),I.bindTexture(Tt,null),Kt[ye]=null),I.deleteTexture(xe),Y.texture=null,Y.params=null,Y.pixels=null,Y.refCount=0,delete ln[Y.id],be.textureCount--}r(di.prototype,{bind:function(){var Y=this;Y.bindCount+=1;var xe=Y.unit;if(xe<0){for(var ye=0;ye<sn;++ye){var Tt=Kt[ye];if(Tt){if(Tt.bindCount>0)continue;Tt.unit=-1}Kt[ye]=Y,xe=ye;break}_e.profile&&be.maxTextureUnits<xe+1&&(be.maxTextureUnits=xe+1),Y.unit=xe,I.activeTexture(La+xe),I.bindTexture(Y.target,Y.texture)}return xe},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&Un(this)}});function jn(Y,xe){var ye=new di(li);ln[ye.id]=ye,be.textureCount++;function Tt(Ct,U){var q=ye.texInfo;An.call(q);var ee=Xn();return typeof Ct=="number"?typeof U=="number"?lr(ee,Ct|0,U|0):lr(ee,Ct|0,Ct|0):Ct?(Kn(q,Ct),dr(ee,Ct)):lr(ee,1,1),q.genMipmaps&&(ee.mipmask=(ee.width<<1)-1),ye.mipmask=ee.mipmask,Re(ye,ee),ye.internalformat=ee.internalformat,Tt.width=ee.width,Tt.height=ee.height,_r(ye),un(ee,li),Fn(q,li),fn(),Tr(ee),_e.profile&&(ye.stats.size=Ui(ye.internalformat,ye.type,ee.width,ee.height,q.genMipmaps,!1)),Tt.format=Ve[ye.internalformat],Tt.type=Ze[ye.type],Tt.mag=Ne[q.magFilter],Tt.min=pt[q.minFilter],Tt.wrapS=ot[q.wrapS],Tt.wrapT=ot[q.wrapT],Tt}function nr(Ct,U,q,ee){var Se=U|0,pe=q|0,de=ee|0,ce=Bt();return Re(ce,ye),ce.width=0,ce.height=0,Je(ce,Ct),ce.width=ce.width||(ye.width>>de)-Se,ce.height=ce.height||(ye.height>>de)-pe,_r(ye),tr(ce,li,Se,pe,de),fn(),lt(ce),Tt}function Pr(Ct,U){var q=Ct|0,ee=U|0||q;if(q===ye.width&&ee===ye.height)return Tt;Tt.width=ye.width=q,Tt.height=ye.height=ee,_r(ye);for(var Se=0;ye.mipmask>>Se;++Se){var pe=q>>Se,de=ee>>Se;if(!pe||!de)break;I.texImage2D(li,Se,ye.format,pe,de,0,ye.format,ye.type,null)}return fn(),_e.profile&&(ye.stats.size=Ui(ye.internalformat,ye.type,q,ee,!1,!1)),Tt}return Tt(Y,xe),Tt.subimage=nr,Tt.resize=Pr,Tt._reglType="texture2d",Tt._texture=ye,_e.profile&&(Tt.stats=ye.stats),Tt.destroy=function(){ye.decRef()},Tt}function Zt(Y,xe,ye,Tt,nr,Pr){var Ct=new di(vo);ln[Ct.id]=Ct,be.cubeCount++;var U=new Array(6);function q(pe,de,ce,se,Q,ne){var K,ve=Ct.texInfo;for(An.call(ve),K=0;K<6;++K)U[K]=Xn();if(typeof pe=="number"||!pe){var Oe=pe|0||1;for(K=0;K<6;++K)lr(U[K],Oe,Oe)}else if(typeof pe=="object")if(de)dr(U[0],pe),dr(U[1],de),dr(U[2],ce),dr(U[3],se),dr(U[4],Q),dr(U[5],ne);else if(Kn(ve,pe),mt(Ct,pe),"faces"in pe){var Be=pe.faces;for(K=0;K<6;++K)Re(U[K],Ct),dr(U[K],Be[K])}else for(K=0;K<6;++K)dr(U[K],pe);for(Re(Ct,U[0]),ve.genMipmaps?Ct.mipmask=(U[0].width<<1)-1:Ct.mipmask=U[0].mipmask,Ct.internalformat=U[0].internalformat,q.width=U[0].width,q.height=U[0].height,_r(Ct),K=0;K<6;++K)un(U[K],mo+K);for(Fn(ve,vo),fn(),_e.profile&&(Ct.stats.size=Ui(Ct.internalformat,Ct.type,q.width,q.height,ve.genMipmaps,!0)),q.format=Ve[Ct.internalformat],q.type=Ze[Ct.type],q.mag=Ne[ve.magFilter],q.min=pt[ve.minFilter],q.wrapS=ot[ve.wrapS],q.wrapT=ot[ve.wrapT],K=0;K<6;++K)Tr(U[K]);return q}function ee(pe,de,ce,se,Q){var ne=ce|0,K=se|0,ve=Q|0,Oe=Bt();return Re(Oe,Ct),Oe.width=0,Oe.height=0,Je(Oe,de),Oe.width=Oe.width||(Ct.width>>ve)-ne,Oe.height=Oe.height||(Ct.height>>ve)-K,_r(Ct),tr(Oe,mo+pe,ne,K,ve),fn(),lt(Oe),q}function Se(pe){var de=pe|0;if(de!==Ct.width){q.width=Ct.width=de,q.height=Ct.height=de,_r(Ct);for(var ce=0;ce<6;++ce)for(var se=0;Ct.mipmask>>se;++se)I.texImage2D(mo+ce,se,Ct.format,de>>se,de>>se,0,Ct.format,Ct.type,null);return fn(),_e.profile&&(Ct.stats.size=Ui(Ct.internalformat,Ct.type,q.width,q.height,!1,!0)),q}}return q(Y,xe,ye,Tt,nr,Pr),q.subimage=ee,q.resize=Se,q._reglType="textureCube",q._texture=Ct,_e.profile&&(q.stats=Ct.stats),q.destroy=function(){Ct.decRef()},q}function hr(){for(var Y=0;Y<sn;++Y)I.activeTexture(La+Y),I.bindTexture(li,null),Kt[Y]=null;zn(ln).forEach(Un),be.cubeCount=0,be.textureCount=0}_e.profile&&(be.getTotalTextureSize=function(){var Y=0;return Object.keys(ln).forEach(function(xe){Y+=ln[xe].stats.size}),Y});function Or(){for(var Y=0;Y<sn;++Y){var xe=Kt[Y];xe&&(xe.bindCount=0,xe.unit=-1,Kt[Y]=null)}zn(ln).forEach(function(ye){ye.texture=I.createTexture(),I.bindTexture(ye.target,ye.texture);for(var Tt=0;Tt<32;++Tt)if(ye.mipmask&1<<Tt)if(ye.target===li)I.texImage2D(li,Tt,ye.internalformat,ye.width>>Tt,ye.height>>Tt,0,ye.internalformat,ye.type,null);else for(var nr=0;nr<6;++nr)I.texImage2D(mo+nr,Tt,ye.internalformat,ye.width>>Tt,ye.height>>Tt,0,ye.internalformat,ye.type,null);Fn(ye.texInfo,ye.target)})}function cn(){for(var Y=0;Y<sn;++Y){var xe=Kt[Y];xe&&(xe.bindCount=0,xe.unit=-1,Kt[Y]=null),I.activeTexture(La+Y),I.bindTexture(li,null),I.bindTexture(vo,null)}}return{create2D:jn,createCube:Zt,clear:hr,getTexture:function(Y){return null},restore:Or,refresh:cn}}var la=36161,hs=32854,ov=32855,_c=36194,uv=33189,lv=36168,sv=34041,Sc=35907,fv=34836,cv=34842,hv=34843,fi=[];fi[hs]=2,fi[ov]=2,fi[_c]=2,fi[uv]=2,fi[lv]=1,fi[sv]=4,fi[Sc]=4,fi[fv]=16,fi[cv]=8,fi[hv]=6;function dv(I,H,Z){return fi[I]*H*Z}var pv=function(I,H,Z,Ee,Me){var be={rgba4:hs,rgb565:_c,"rgb5 a1":ov,depth:uv,stencil:lv,"depth stencil":sv};H.ext_srgb&&(be.srgba=Sc),H.ext_color_buffer_half_float&&(be.rgba16f=cv,be.rgb16f=hv),H.webgl_color_buffer_float&&(be.rgba32f=fv);var _e=[];Object.keys(be).forEach(function(it){var Ge=be[it];_e[Ge]=it});var Ye=0,Xe={};function et(it){this.id=Ye++,this.refCount=1,this.renderbuffer=it,this.format=hs,this.width=0,this.height=0,Me.profile&&(this.stats={size:0})}et.prototype.decRef=function(){--this.refCount<=0&&ft(this)};function ft(it){var Ge=it.renderbuffer;I.bindRenderbuffer(la,null),I.deleteRenderbuffer(Ge),it.renderbuffer=null,it.refCount=0,delete Xe[it.id],Ee.renderbufferCount--}function Rt(it,Ge){var he=new et(I.createRenderbuffer());Xe[he.id]=he,Ee.renderbufferCount++;function Te(Ze,Ne){var pt=0,ot=0,Pt=hs;if(typeof Ze=="object"&&Ze){var $e=Ze;if("shape"in $e){var Re=$e.shape;pt=Re[0]|0,ot=Re[1]|0}else"radius"in $e&&(pt=ot=$e.radius|0),"width"in $e&&(pt=$e.width|0),"height"in $e&&(ot=$e.height|0);"format"in $e&&(Pt=be[$e.format])}else typeof Ze=="number"?(pt=Ze|0,typeof Ne=="number"?ot=Ne|0:ot=pt):Ze||(pt=ot=1);if(!(pt===he.width&&ot===he.height&&Pt===he.format))return Te.width=he.width=pt,Te.height=he.height=ot,he.format=Pt,I.bindRenderbuffer(la,he.renderbuffer),I.renderbufferStorage(la,Pt,pt,ot),Me.profile&&(he.stats.size=dv(he.format,he.width,he.height)),Te.format=_e[he.format],Te}function Ve(Ze,Ne){var pt=Ze|0,ot=Ne|0||pt;return pt===he.width&&ot===he.height||(Te.width=he.width=pt,Te.height=he.height=ot,I.bindRenderbuffer(la,he.renderbuffer),I.renderbufferStorage(la,he.format,pt,ot),Me.profile&&(he.stats.size=dv(he.format,he.width,he.height))),Te}return Te(it,Ge),Te.resize=Ve,Te._reglType="renderbuffer",Te._renderbuffer=he,Me.profile&&(Te.stats=he.stats),Te.destroy=function(){he.decRef()},Te}Me.profile&&(Ee.getTotalRenderbufferSize=function(){var it=0;return Object.keys(Xe).forEach(function(Ge){it+=Xe[Ge].stats.size}),it});function St(){zn(Xe).forEach(function(it){it.renderbuffer=I.createRenderbuffer(),I.bindRenderbuffer(la,it.renderbuffer),I.renderbufferStorage(la,it.format,it.width,it.height)}),I.bindRenderbuffer(la,null)}return{create:Rt,clear:function(){zn(Xe).forEach(ft)},restore:St}},ji=36160,Ec=36161,_o=3553,So=34069,Eo=36064,ci=36096,vv=36128,mv=33306,qy=36053,Vy=36193,gv=5121,Yy=5126,Xy=6407,Ky=6408,Ac=[];Ac[Ky]=4,Ac[Xy]=3;var ds=[];ds[gv]=1,ds[Yy]=4,ds[Vy]=2;function Tc(I,H,Z,Ee,Me,be){var _e={cur:null,next:null,dirty:!1,setFBO:null},Ye=["rgba"],Xe=["rgba4","rgb565","rgb5 a1"];H.ext_srgb&&Xe.push("srgba"),H.ext_color_buffer_half_float&&Xe.push("rgba16f","rgb16f"),H.webgl_color_buffer_float&&Xe.push("rgba32f"),H.oes_texture_half_float,H.oes_texture_float;function et(Ae,ht,Je){this.target=Ae,this.texture=ht,this.renderbuffer=Je;var It=0,tr=0;ht?(It=ht.width,tr=ht.height):Je&&(It=Je.width,tr=Je.height),this.width=It,this.height=tr}function ft(Ae){Ae&&(Ae.texture&&Ae.texture._texture.decRef(),Ae.renderbuffer&&Ae.renderbuffer._renderbuffer.decRef())}function Rt(Ae,ht,Je){if(Ae)if(Ae.texture){var It=Ae.texture._texture;Math.max(1,It.width),Math.max(1,It.height),It.refCount+=1}else{var tr=Ae.renderbuffer._renderbuffer;tr.refCount+=1}}function St(Ae,ht){ht&&(ht.texture?I.framebufferTexture2D(ji,Ae,ht.target,ht.texture._texture.texture,0):I.framebufferRenderbuffer(ji,Ae,Ec,ht.renderbuffer._renderbuffer.renderbuffer))}function it(Ae){var ht=_o,Je=null,It=null,tr=Ae;typeof Ae=="object"&&(tr=Ae.data,"target"in Ae&&(ht=Ae.target|0));var bt=tr._reglType;return bt==="texture2d"||bt==="textureCube"?Je=tr:bt==="renderbuffer"&&(It=tr,ht=Ec),new et(ht,Je,It)}function Ge(Ae,ht,Je,It,tr){if(Je){var bt=Ee.create2D({width:Ae,height:ht,format:It,type:tr});return bt._texture.refCount=0,new et(_o,bt,null)}else{var Bt=Me.create({width:Ae,height:ht,format:It});return Bt._renderbuffer.refCount=0,new et(Ec,null,Bt)}}function he(Ae){return Ae&&(Ae.texture||Ae.renderbuffer)}function Te(Ae,ht,Je){Ae&&(Ae.texture?Ae.texture.resize(ht,Je):Ae.renderbuffer&&Ae.renderbuffer.resize(ht,Je),Ae.width=ht,Ae.height=Je)}var Ve=0,Ze={};function Ne(){this.id=Ve++,Ze[this.id]=this,this.framebuffer=I.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function pt(Ae){Ae.colorAttachments.forEach(ft),ft(Ae.depthAttachment),ft(Ae.stencilAttachment),ft(Ae.depthStencilAttachment)}function ot(Ae){var ht=Ae.framebuffer;I.deleteFramebuffer(ht),Ae.framebuffer=null,be.framebufferCount--,delete Ze[Ae.id]}function Pt(Ae){var ht;I.bindFramebuffer(ji,Ae.framebuffer);var Je=Ae.colorAttachments;for(ht=0;ht<Je.length;++ht)St(Eo+ht,Je[ht]);for(ht=Je.length;ht<Z.maxColorAttachments;++ht)I.framebufferTexture2D(ji,Eo+ht,_o,null,0);I.framebufferTexture2D(ji,mv,_o,null,0),I.framebufferTexture2D(ji,ci,_o,null,0),I.framebufferTexture2D(ji,vv,_o,null,0),St(ci,Ae.depthAttachment),St(vv,Ae.stencilAttachment),St(mv,Ae.depthStencilAttachment);var It=I.checkFramebufferStatus(ji);I.isContextLost(),I.bindFramebuffer(ji,_e.next?_e.next.framebuffer:null),_e.cur=_e.next,I.getError()}function $e(Ae,ht){var Je=new Ne;be.framebufferCount++;function It(bt,Bt){var lt,rr=0,lr=0,dr=!0,un=!0,sr=null,Xn=!0,Tr="rgba",An="uint8",Kn=1,Fn=null,Hi=null,ln=null,sn=!1;if(typeof bt=="number")rr=bt|0,lr=Bt|0||rr;else if(!bt)rr=lr=1;else{var Kt=bt;if("shape"in Kt){var di=Kt.shape;rr=di[0],lr=di[1]}else"radius"in Kt&&(rr=lr=Kt.radius),"width"in Kt&&(rr=Kt.width),"height"in Kt&&(lr=Kt.height);("color"in Kt||"colors"in Kt)&&(sr=Kt.color||Kt.colors),sr||("colorCount"in Kt&&(Kn=Kt.colorCount|0),"colorTexture"in Kt&&(Xn=!!Kt.colorTexture,Tr="rgba4"),"colorType"in Kt&&(An=Kt.colorType,Xn||(An==="half float"||An==="float16"?Tr="rgba16f":(An==="float"||An==="float32")&&(Tr="rgba32f"))),"colorFormat"in Kt&&(Tr=Kt.colorFormat,Ye.indexOf(Tr)>=0?Xn=!0:Xe.indexOf(Tr)>=0&&(Xn=!1))),("depthTexture"in Kt||"depthStencilTexture"in Kt)&&(sn=!!(Kt.depthTexture||Kt.depthStencilTexture)),"depth"in Kt&&(typeof Kt.depth=="boolean"?dr=Kt.depth:(Fn=Kt.depth,un=!1)),"stencil"in Kt&&(typeof Kt.stencil=="boolean"?un=Kt.stencil:(Hi=Kt.stencil,dr=!1)),"depthStencil"in Kt&&(typeof Kt.depthStencil=="boolean"?dr=un=Kt.depthStencil:(ln=Kt.depthStencil,dr=!1,un=!1))}var _r=null,fn=null,Un=null,jn=null;if(Array.isArray(sr))_r=sr.map(it);else if(sr)_r=[it(sr)];else for(_r=new Array(Kn),lt=0;lt<Kn;++lt)_r[lt]=Ge(rr,lr,Xn,Tr,An);for(rr=rr||_r[0].width,lr=lr||_r[0].height,Fn?fn=it(Fn):dr&&!un&&(fn=Ge(rr,lr,sn,"depth","uint32")),Hi?Un=it(Hi):un&&!dr&&(Un=Ge(rr,lr,!1,"stencil","uint8")),ln?jn=it(ln):!Fn&&!Hi&&un&&dr&&(jn=Ge(rr,lr,sn,"depth stencil","depth stencil")),lt=0;lt<_r.length;++lt)Rt(_r[lt]),_r[lt]&&_r[lt].texture&&Ac[_r[lt].texture._texture.format]*ds[_r[lt].texture._texture.type];return Rt(fn),Rt(Un),Rt(jn),pt(Je),Je.width=rr,Je.height=lr,Je.colorAttachments=_r,Je.depthAttachment=fn,Je.stencilAttachment=Un,Je.depthStencilAttachment=jn,It.color=_r.map(he),It.depth=he(fn),It.stencil=he(Un),It.depthStencil=he(jn),It.width=Je.width,It.height=Je.height,Pt(Je),It}function tr(bt,Bt){var lt=Math.max(bt|0,1),rr=Math.max(Bt|0||lt,1);if(lt===Je.width&&rr===Je.height)return It;for(var lr=Je.colorAttachments,dr=0;dr<lr.length;++dr)Te(lr[dr],lt,rr);return Te(Je.depthAttachment,lt,rr),Te(Je.stencilAttachment,lt,rr),Te(Je.depthStencilAttachment,lt,rr),Je.width=It.width=lt,Je.height=It.height=rr,Pt(Je),It}return It(Ae,ht),r(It,{resize:tr,_reglType:"framebuffer",_framebuffer:Je,destroy:function(){ot(Je),pt(Je)},use:function(bt){_e.setFBO({framebuffer:It},bt)}})}function Re(Ae){var ht=Array(6);function Je(tr){var bt,Bt={color:null},lt=0,rr=null,lr="rgba",dr="uint8",un=1;if(typeof tr=="number")lt=tr|0;else if(!tr)lt=1;else{var sr=tr;if("shape"in sr){var Xn=sr.shape;lt=Xn[0]}else"radius"in sr&&(lt=sr.radius|0),"width"in sr?lt=sr.width|0:"height"in sr&&(lt=sr.height|0);("color"in sr||"colors"in sr)&&(rr=sr.color||sr.colors),rr||("colorCount"in sr&&(un=sr.colorCount|0),"colorType"in sr&&(dr=sr.colorType),"colorFormat"in sr&&(lr=sr.colorFormat)),"depth"in sr&&(Bt.depth=sr.depth),"stencil"in sr&&(Bt.stencil=sr.stencil),"depthStencil"in sr&&(Bt.depthStencil=sr.depthStencil)}var Tr;if(rr)if(Array.isArray(rr))for(Tr=[],bt=0;bt<rr.length;++bt)Tr[bt]=rr[bt];else Tr=[rr];else{Tr=Array(un);var An={radius:lt,format:lr,type:dr};for(bt=0;bt<un;++bt)Tr[bt]=Ee.createCube(An)}for(Bt.color=Array(Tr.length),bt=0;bt<Tr.length;++bt){var Kn=Tr[bt];lt=lt||Kn.width,Bt.color[bt]={target:So,data:Tr[bt]}}for(bt=0;bt<6;++bt){for(var Fn=0;Fn<Tr.length;++Fn)Bt.color[Fn].target=So+bt;bt>0&&(Bt.depth=ht[0].depth,Bt.stencil=ht[0].stencil,Bt.depthStencil=ht[0].depthStencil),ht[bt]?ht[bt](Bt):ht[bt]=$e(Bt)}return r(Je,{width:lt,height:lt,color:Tr})}function It(tr){var bt,Bt=tr|0;if(Bt===Je.width)return Je;var lt=Je.color;for(bt=0;bt<lt.length;++bt)lt[bt].resize(Bt);for(bt=0;bt<6;++bt)ht[bt].resize(Bt);return Je.width=Je.height=Bt,Je}return Je(Ae),r(Je,{faces:ht,resize:It,_reglType:"framebufferCube",destroy:function(){ht.forEach(function(tr){tr.destroy()})}})}function mt(){_e.cur=null,_e.next=null,_e.dirty=!0,zn(Ze).forEach(function(Ae){Ae.framebuffer=I.createFramebuffer(),Pt(Ae)})}return r(_e,{getFramebuffer:function(Ae){if(typeof Ae=="function"&&Ae._reglType==="framebuffer"){var ht=Ae._framebuffer;if(ht instanceof Ne)return ht}return null},create:$e,createCube:Re,clear:function(){zn(Ze).forEach(ot)},restore:mt})}var Cc=5126,yv=34962,ps=34963;function Oc(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=Cc,this.offset=0,this.stride=0,this.divisor=0}function Qy(I,H,Z,Ee,Me,be,_e){for(var Ye=Z.maxAttributes,Xe=new Array(Ye),et=0;et<Ye;++et)Xe[et]=new Oc;var ft=0,Rt={},St={Record:Oc,scope:{},state:Xe,currentVAO:null,targetVAO:null,restore:Ge()?ot:function(){},createVAO:Pt,getVAO:Te,destroyBuffer:it,setVAO:Ge()?Ve:Ze,clear:Ge()?Ne:function(){}};function it($e){for(var Re=0;Re<Xe.length;++Re){var mt=Xe[Re];mt.buffer===$e&&(I.disableVertexAttribArray(Re),mt.buffer=null)}}function Ge(){return H.oes_vertex_array_object}function he(){return H.angle_instanced_arrays}function Te($e){return typeof $e=="function"&&$e._vao?$e._vao:null}function Ve($e){if($e!==St.currentVAO){var Re=Ge();$e?Re.bindVertexArrayOES($e.vao):Re.bindVertexArrayOES(null),St.currentVAO=$e}}function Ze($e){if($e!==St.currentVAO){if($e)$e.bindAttrs();else{for(var Re=he(),mt=0;mt<Xe.length;++mt){var Ae=Xe[mt];Ae.buffer?(I.enableVertexAttribArray(mt),Ae.buffer.bind(),I.vertexAttribPointer(mt,Ae.size,Ae.type,Ae.normalized,Ae.stride,Ae.offfset),Re&&Ae.divisor&&Re.vertexAttribDivisorANGLE(mt,Ae.divisor)):(I.disableVertexAttribArray(mt),I.vertexAttrib4f(mt,Ae.x,Ae.y,Ae.z,Ae.w))}_e.elements?I.bindBuffer(ps,_e.elements.buffer.buffer):I.bindBuffer(ps,null)}St.currentVAO=$e}}function Ne(){zn(Rt).forEach(function($e){$e.destroy()})}function pt(){this.id=++ft,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var $e=Ge();$e?this.vao=$e.createVertexArrayOES():this.vao=null,Rt[this.id]=this,this.buffers=[]}pt.prototype.bindAttrs=function(){for(var $e=he(),Re=this.attributes,mt=0;mt<Re.length;++mt){var Ae=Re[mt];Ae.buffer?(I.enableVertexAttribArray(mt),I.bindBuffer(yv,Ae.buffer.buffer),I.vertexAttribPointer(mt,Ae.size,Ae.type,Ae.normalized,Ae.stride,Ae.offset),$e&&Ae.divisor&&$e.vertexAttribDivisorANGLE(mt,Ae.divisor)):(I.disableVertexAttribArray(mt),I.vertexAttrib4f(mt,Ae.x,Ae.y,Ae.z,Ae.w))}for(var ht=Re.length;ht<Ye;++ht)I.disableVertexAttribArray(ht);var Je=be.getElements(this.elements);Je?I.bindBuffer(ps,Je.buffer.buffer):I.bindBuffer(ps,null)},pt.prototype.refresh=function(){var $e=Ge();$e&&($e.bindVertexArrayOES(this.vao),this.bindAttrs(),St.currentVAO=null,$e.bindVertexArrayOES(null))},pt.prototype.destroy=function(){if(this.vao){var $e=Ge();this===St.currentVAO&&(St.currentVAO=null,$e.bindVertexArrayOES(null)),$e.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),Rt[this.id]&&(delete Rt[this.id],Ee.vaoCount-=1)};function ot(){var $e=Ge();$e&&zn(Rt).forEach(function(Re){Re.refresh()})}function Pt($e){var Re=new pt;Ee.vaoCount+=1;function mt(Ae){var ht;if(Array.isArray(Ae))ht=Ae,Re.elements&&Re.ownsElements&&Re.elements.destroy(),Re.elements=null,Re.ownsElements=!1,Re.offset=0,Re.count=0,Re.instances=-1,Re.primitive=4;else{if(Ae.elements){var Je=Ae.elements;Re.ownsElements?typeof Je=="function"&&Je._reglType==="elements"?(Re.elements.destroy(),Re.ownsElements=!1):(Re.elements(Je),Re.ownsElements=!1):be.getElements(Ae.elements)?(Re.elements=Ae.elements,Re.ownsElements=!1):(Re.elements=be.create(Ae.elements),Re.ownsElements=!0)}else Re.elements=null,Re.ownsElements=!1;ht=Ae.attributes,Re.offset=0,Re.count=-1,Re.instances=-1,Re.primitive=4,Re.elements&&(Re.count=Re.elements._elements.vertCount,Re.primitive=Re.elements._elements.primType),"offset"in Ae&&(Re.offset=Ae.offset|0),"count"in Ae&&(Re.count=Ae.count|0),"instances"in Ae&&(Re.instances=Ae.instances|0),"primitive"in Ae&&(Re.primitive=nn[Ae.primitive])}var It={},tr=Re.attributes;tr.length=ht.length;for(var bt=0;bt<ht.length;++bt){var Bt=ht[bt],lt=tr[bt]=new Oc,rr=Bt.data||Bt;if(Array.isArray(rr)||rn(rr)||ai(rr)){var lr;Re.buffers[bt]&&(lr=Re.buffers[bt],rn(rr)&&lr._buffer.byteLength>=rr.byteLength?lr.subdata(rr):(lr.destroy(),Re.buffers[bt]=null)),Re.buffers[bt]||(lr=Re.buffers[bt]=Me.create(Bt,yv,!1,!0)),lt.buffer=Me.getBuffer(lr),lt.size=lt.buffer.dimension|0,lt.normalized=!1,lt.type=lt.buffer.dtype,lt.offset=0,lt.stride=0,lt.divisor=0,lt.state=1,It[bt]=1}else Me.getBuffer(Bt)?(lt.buffer=Me.getBuffer(Bt),lt.size=lt.buffer.dimension|0,lt.normalized=!1,lt.type=lt.buffer.dtype,lt.offset=0,lt.stride=0,lt.divisor=0,lt.state=1):Me.getBuffer(Bt.buffer)?(lt.buffer=Me.getBuffer(Bt.buffer),lt.size=(+Bt.size||lt.buffer.dimension)|0,lt.normalized=!!Bt.normalized||!1,"type"in Bt?lt.type=Ou[Bt.type]:lt.type=lt.buffer.dtype,lt.offset=(Bt.offset||0)|0,lt.stride=(Bt.stride||0)|0,lt.divisor=(Bt.divisor||0)|0,lt.state=1):"x"in Bt&&(lt.x=+Bt.x||0,lt.y=+Bt.y||0,lt.z=+Bt.z||0,lt.w=+Bt.w||0,lt.state=2)}for(var dr=0;dr<Re.buffers.length;++dr)!It[dr]&&Re.buffers[dr]&&(Re.buffers[dr].destroy(),Re.buffers[dr]=null);return Re.refresh(),mt}return mt.destroy=function(){for(var Ae=0;Ae<Re.buffers.length;++Ae)Re.buffers[Ae]&&Re.buffers[Ae].destroy();Re.buffers.length=0,Re.ownsElements&&(Re.elements.destroy(),Re.elements=null,Re.ownsElements=!1),Re.destroy()},mt._vao=Re,mt._reglType="vao",mt($e)}return St}var kc=35632,Zy=35633,Jy=35718,Mc=35721;function bv(I,H,Z,Ee){var Me={},be={};function _e(he,Te,Ve,Ze){this.name=he,this.id=Te,this.location=Ve,this.info=Ze}function Ye(he,Te){for(var Ve=0;Ve<he.length;++Ve)if(he[Ve].id===Te.id){he[Ve].location=Te.location;return}he.push(Te)}function Xe(he,Te,Ve){var Ze=he===kc?Me:be,Ne=Ze[Te];if(!Ne){var pt=H.str(Te);Ne=I.createShader(he),I.shaderSource(Ne,pt),I.compileShader(Ne),Ze[Te]=Ne}return Ne}var et={},ft=[],Rt=0;function St(he,Te){this.id=Rt++,this.fragId=he,this.vertId=Te,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,Ee.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function it(he,Te,Ve){var Ze,Ne,pt=Xe(kc,he.fragId),ot=Xe(Zy,he.vertId),Pt=he.program=I.createProgram();if(I.attachShader(Pt,pt),I.attachShader(Pt,ot),Ve)for(Ze=0;Ze<Ve.length;++Ze){var $e=Ve[Ze];I.bindAttribLocation(Pt,$e[0],$e[1])}I.linkProgram(Pt);var Re=I.getProgramParameter(Pt,Jy);Ee.profile&&(he.stats.uniformsCount=Re);var mt=he.uniforms;for(Ze=0;Ze<Re;++Ze)if(Ne=I.getActiveUniform(Pt,Ze),Ne)if(Ne.size>1)for(var Ae=0;Ae<Ne.size;++Ae){var ht=Ne.name.replace("[0]","["+Ae+"]");Ye(mt,new _e(ht,H.id(ht),I.getUniformLocation(Pt,ht),Ne))}else Ye(mt,new _e(Ne.name,H.id(Ne.name),I.getUniformLocation(Pt,Ne.name),Ne));var Je=I.getProgramParameter(Pt,Mc);Ee.profile&&(he.stats.attributesCount=Je);var It=he.attributes;for(Ze=0;Ze<Je;++Ze)Ne=I.getActiveAttrib(Pt,Ze),Ne&&Ye(It,new _e(Ne.name,H.id(Ne.name),I.getAttribLocation(Pt,Ne.name),Ne))}Ee.profile&&(Z.getMaxUniformsCount=function(){var he=0;return ft.forEach(function(Te){Te.stats.uniformsCount>he&&(he=Te.stats.uniformsCount)}),he},Z.getMaxAttributesCount=function(){var he=0;return ft.forEach(function(Te){Te.stats.attributesCount>he&&(he=Te.stats.attributesCount)}),he});function Ge(){Me={},be={};for(var he=0;he<ft.length;++he)it(ft[he],null,ft[he].attributes.map(function(Te){return[Te.location,Te.name]}))}return{clear:function(){var he=I.deleteShader.bind(I);zn(Me).forEach(he),Me={},zn(be).forEach(he),be={},ft.forEach(function(Te){I.deleteProgram(Te.program)}),ft.length=0,et={},Z.shaderCount=0},program:function(he,Te,Ve,Ze){var Ne=et[Te];Ne||(Ne=et[Te]={});var pt=Ne[he];if(pt&&(pt.refCount++,!Ze))return pt;var ot=new St(Te,he);return Z.shaderCount++,it(ot,Ve,Ze),pt||(Ne[he]=ot),ft.push(ot),r(ot,{destroy:function(){if(ot.refCount--,ot.refCount<=0){I.deleteProgram(ot.program);var Pt=ft.indexOf(ot);ft.splice(Pt,1),Z.shaderCount--}Ne[ot.vertId].refCount<=0&&(I.deleteShader(be[ot.vertId]),delete be[ot.vertId],delete et[ot.fragId][ot.vertId]),Object.keys(et[ot.fragId]).length||(I.deleteShader(Me[ot.fragId]),delete Me[ot.fragId],delete et[ot.fragId])}})},restore:Ge,shader:Xe,frag:-1,vert:-1}}var xv=6408,Rc=5121,e1=3333,t1=5126;function wv(I,H,Z,Ee,Me,be,_e){function Ye(ft){var Rt;H.next===null?Rt=Rc:Rt=H.next.colorAttachments[0].texture._texture.type;var St=0,it=0,Ge=Ee.framebufferWidth,he=Ee.framebufferHeight,Te=null;rn(ft)?Te=ft:ft&&(St=ft.x|0,it=ft.y|0,Ge=(ft.width||Ee.framebufferWidth-St)|0,he=(ft.height||Ee.framebufferHeight-it)|0,Te=ft.data||null),Z();var Ve=Ge*he*4;return Te||(Rt===Rc?Te=new Uint8Array(Ve):Rt===t1&&(Te=Te||new Float32Array(Ve))),I.pixelStorei(e1,4),I.readPixels(St,it,Ge,he,xv,Rt,Te),Te}function Xe(ft){var Rt;return H.setFBO({framebuffer:ft.framebuffer},function(){Rt=Ye(ft)}),Rt}function et(ft){return!ft||!("framebuffer"in ft)?Ye(ft):Xe(ft)}return et}function _v(I){return Pc(Sv(Ic(I)))}function Sv(I){return n1(a1(r1(I),I.length*8))}function Pc(I){for(var H="0123456789abcdef",Z="",Ee,Me=0;Me<I.length;Me++)Ee=I.charCodeAt(Me),Z+=H.charAt(Ee>>>4&15)+H.charAt(Ee&15);return Z}function Ic(I){for(var H="",Z=-1,Ee,Me;++Z<I.length;)Ee=I.charCodeAt(Z),Me=Z+1<I.length?I.charCodeAt(Z+1):0,55296<=Ee&&Ee<=56319&&56320<=Me&&Me<=57343&&(Ee=65536+((Ee&1023)<<10)+(Me&1023),Z++),Ee<=127?H+=String.fromCharCode(Ee):Ee<=2047?H+=String.fromCharCode(192|Ee>>>6&31,128|Ee&63):Ee<=65535?H+=String.fromCharCode(224|Ee>>>12&15,128|Ee>>>6&63,128|Ee&63):Ee<=2097151&&(H+=String.fromCharCode(240|Ee>>>18&7,128|Ee>>>12&63,128|Ee>>>6&63,128|Ee&63));return H}function r1(I){for(var H=Array(I.length>>2),Z=0;Z<H.length;Z++)H[Z]=0;for(var Z=0;Z<I.length*8;Z+=8)H[Z>>5]|=(I.charCodeAt(Z/8)&255)<<24-Z%32;return H}function n1(I){for(var H="",Z=0;Z<I.length*32;Z+=8)H+=String.fromCharCode(I[Z>>5]>>>24-Z%32&255);return H}function Si(I,H){return I>>>H|I<<32-H}function Ev(I,H){return I>>>H}function i1(I,H,Z){return I&H^~I&Z}function Av(I,H,Z){return I&H^I&Z^H&Z}function Tv(I){return Si(I,2)^Si(I,13)^Si(I,22)}function Fc(I){return Si(I,6)^Si(I,11)^Si(I,25)}function Cv(I){return Si(I,7)^Si(I,18)^Ev(I,3)}function vs(I){return Si(I,17)^Si(I,19)^Ev(I,10)}var ms=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function a1(I,H){var Z=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Ee=new Array(64),Me,be,_e,Ye,Xe,et,ft,Rt,St,it,Ge,he;for(I[H>>5]|=128<<24-H%32,I[(H+64>>9<<4)+15]=H,St=0;St<I.length;St+=16){for(Me=Z[0],be=Z[1],_e=Z[2],Ye=Z[3],Xe=Z[4],et=Z[5],ft=Z[6],Rt=Z[7],it=0;it<64;it++)it<16?Ee[it]=I[it+St]:Ee[it]=Wr(Wr(Wr(vs(Ee[it-2]),Ee[it-7]),Cv(Ee[it-15])),Ee[it-16]),Ge=Wr(Wr(Wr(Wr(Rt,Fc(Xe)),i1(Xe,et,ft)),ms[it]),Ee[it]),he=Wr(Tv(Me),Av(Me,be,_e)),Rt=ft,ft=et,et=Xe,Xe=Wr(Ye,Ge),Ye=_e,_e=be,be=Me,Me=Wr(Ge,he);Z[0]=Wr(Me,Z[0]),Z[1]=Wr(be,Z[1]),Z[2]=Wr(_e,Z[2]),Z[3]=Wr(Ye,Z[3]),Z[4]=Wr(Xe,Z[4]),Z[5]=Wr(et,Z[5]),Z[6]=Wr(ft,Z[6]),Z[7]=Wr(Rt,Z[7])}return Z}function Wr(I,H){var Z=(I&65535)+(H&65535),Ee=(I>>16)+(H>>16)+(Z>>16);return Ee<<16|Z&65535}function Ba(I){return Array.prototype.slice.call(I)}function Ao(I){return Ba(I).join("")}function o1(I){var H=I&&I.cache,Z=0,Ee=[],Me=[],be=[];function _e(Ge,he){var Te=he&&he.stable;if(!Te){for(var Ve=0;Ve<Me.length;++Ve)if(Me[Ve]===Ge&&!be[Ve])return Ee[Ve]}var Ze="g"+Z++;return Ee.push(Ze),Me.push(Ge),be.push(Te),Ze}function Ye(){var Ge=[];function he(){Ge.push.apply(Ge,Ba(arguments))}var Te=[];function Ve(){var Ze="v"+Z++;return Te.push(Ze),arguments.length>0&&(Ge.push(Ze,"="),Ge.push.apply(Ge,Ba(arguments)),Ge.push(";")),Ze}return r(he,{def:Ve,toString:function(){return Ao([Te.length>0?"var "+Te.join(",")+";":"",Ao(Ge)])}})}function Xe(){var Ge=Ye(),he=Ye(),Te=Ge.toString,Ve=he.toString;function Ze(Ne,pt){he(Ne,pt,"=",Ge.def(Ne,pt),";")}return r(function(){Ge.apply(Ge,Ba(arguments))},{def:Ge.def,entry:Ge,exit:he,save:Ze,set:function(Ne,pt,ot){Ze(Ne,pt),Ge(Ne,pt,"=",ot,";")},toString:function(){return Te()+Ve()}})}function et(){var Ge=Ao(arguments),he=Xe(),Te=Xe(),Ve=he.toString,Ze=Te.toString;return r(he,{then:function(){return he.apply(he,Ba(arguments)),this},else:function(){return Te.apply(Te,Ba(arguments)),this},toString:function(){var Ne=Ze();return Ne&&(Ne="else{"+Ne+"}"),Ao(["if(",Ge,"){",Ve(),"}",Ne])}})}var ft=Ye(),Rt={};function St(Ge,he){var Te=[];function Ve(){var Pt="a"+Te.length;return Te.push(Pt),Pt}he=he||0;for(var Ze=0;Ze<he;++Ze)Ve();var Ne=Xe(),pt=Ne.toString,ot=Rt[Ge]=r(Ne,{arg:Ve,toString:function(){return Ao(["function(",Te.join(),"){",pt(),"}"])}});return ot}function it(){var Ge=['"use strict";',ft,"return {"];Object.keys(Rt).forEach(function(Ze){Ge.push('"',Ze,'":',Rt[Ze].toString(),",")}),Ge.push("}");var he=Ao(Ge).replace(/;/g,`;
1093
+ `).replace(/}/g,`}
1094
+ `).replace(/{/g,`{
1095
+ `),Te;if(H&&(Te=_v(he),H[Te]))return H[Te].apply(null,Me);var Ve=Function.apply(null,Ee.concat(he));return H&&(H[Te]=Ve),Ve.apply(null,Me)}return{global:ft,link:_e,block:Ye,proc:St,scope:Xe,cond:et,compile:it}}var za="xyzw".split(""),Nc=5121,Ua=1,zu=2,Uu=0,gs=1,Lc=2,ys=3,ja=4,Dc=5,Ov=6,kv="dither",Mv="blend.enable",Rv="blend.color",bs="blend.equation",xs="blend.func",$c="depth.enable",Bc="depth.func",Pv="depth.range",ju="depth.mask",zc="colorMask",Iv="cull.enable",Uc="cull.face",ws="frontFace",jc="lineWidth",Gu="polygonOffset.enable",To="polygonOffset.offset",Gc="sample.alpha",Wc="sample.enable",Wu="sample.coverage",Yn="stencil.enable",Hc="stencil.mask",qc="stencil.func",Hu="stencil.opFront",Ga="stencil.opBack",Fv="scissor.enable",_s="scissor.box",Gi="viewport",Wa="profile",sa="framebuffer",qu="vert",Ss="frag",Co="elements",Oo="primitive",an="count",Es="offset",As="instances",hi="vao",Vu="Width",Yu="Height",ko=sa+Vu,Mo=sa+Yu,u1=Gi+Vu,Nv=Gi+Yu,Vc="drawingBuffer",Yc=Vc+Vu,Xc=Vc+Yu,l1=[xs,bs,qc,Hu,Ga,Wu,Gi,_s,To],Ha=34962,Kc=34963,s1=2884,f1=3042,Lv=3024,Dv=2960,Ts=2929,$v=3089,Cs=32823,Bv=32926,Xu=32928,Br=5126,Os=35664,Wi=35665,Ro=35666,ks=5124,Qc=35667,Ku=35668,Po=35669,Zc=35670,Jc=35671,eh=35672,th=35673,rh=35674,Qu=35675,nh=35676,ih=35678,u=35680,c=4,h=1028,p=1029,m=2304,b=2305,O=32775,S=32776,P=519,N=7680,D=0,B=1,z=32774,ie=513,oe=36160,G=36064,X={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},J={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ue={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},le={cw:m,ccw:b};function re(I){return Array.isArray(I)||rn(I)||ai(I)}function Pe(I){return I.sort(function(H,Z){return H===Gi?-1:Z===Gi?1:H<Z?-1:1})}function Ue(I,H,Z,Ee){this.thisDep=I,this.contextDep=H,this.propDep=Z,this.append=Ee}function tt(I){return I&&!(I.thisDep||I.contextDep||I.propDep)}function je(I){return new Ue(!1,!1,!1,I)}function at(I,H){var Z=I.type;if(Z===Uu){var Ee=I.data.length;return new Ue(!0,Ee>=1,Ee>=2,H)}else if(Z===ja){var Me=I.data;return new Ue(Me.thisDep,Me.contextDep,Me.propDep,H)}else{if(Z===Dc)return new Ue(!1,!1,!1,H);if(Z===Ov){for(var be=!1,_e=!1,Ye=!1,Xe=0;Xe<I.data.length;++Xe){var et=I.data[Xe];if(et.type===gs)Ye=!0;else if(et.type===Lc)_e=!0;else if(et.type===ys)be=!0;else if(et.type===Uu){be=!0;var ft=et.data;ft>=1&&(_e=!0),ft>=2&&(Ye=!0)}else et.type===ja&&(be=be||et.data.thisDep,_e=_e||et.data.contextDep,Ye=Ye||et.data.propDep)}return new Ue(be,_e,Ye,H)}else return new Ue(Z===ys,Z===Lc,Z===gs,H)}}var vt=new Ue(!1,!1,!1,function(){});function Wt(I,H,Z,Ee,Me,be,_e,Ye,Xe,et,ft,Rt,St,it,Ge,he){var Te=et.Record,Ve={add:32774,subtract:32778,"reverse subtract":32779};Z.ext_blend_minmax&&(Ve.min=O,Ve.max=S);var Ze=Z.angle_instanced_arrays,Ne=Z.webgl_draw_buffers,pt=Z.oes_vertex_array_object,ot={dirty:!0,profile:he.profile},Pt={},$e=[],Re={},mt={};function Ae(U){return U.replace(".","_")}function ht(U,q,ee){var Se=Ae(U);$e.push(U),Pt[Se]=ot[Se]=!!ee,Re[Se]=q}function Je(U,q,ee){var Se=Ae(U);$e.push(U),Array.isArray(ee)?(ot[Se]=ee.slice(),Pt[Se]=ee.slice()):ot[Se]=Pt[Se]=ee,mt[Se]=q}function It(U){return!!isNaN(U)}ht(kv,Lv),ht(Mv,f1),Je(Rv,"blendColor",[0,0,0,0]),Je(bs,"blendEquationSeparate",[z,z]),Je(xs,"blendFuncSeparate",[B,D,B,D]),ht($c,Ts,!0),Je(Bc,"depthFunc",ie),Je(Pv,"depthRange",[0,1]),Je(ju,"depthMask",!0),Je(zc,zc,[!0,!0,!0,!0]),ht(Iv,s1),Je(Uc,"cullFace",p),Je(ws,ws,b),Je(jc,jc,1),ht(Gu,Cs),Je(To,"polygonOffset",[0,0]),ht(Gc,Bv),ht(Wc,Xu),Je(Wu,"sampleCoverage",[1,!1]),ht(Yn,Dv),Je(Hc,"stencilMask",-1),Je(qc,"stencilFunc",[P,0,-1]),Je(Hu,"stencilOpSeparate",[h,N,N,N]),Je(Ga,"stencilOpSeparate",[p,N,N,N]),ht(Fv,$v),Je(_s,"scissor",[0,0,I.drawingBufferWidth,I.drawingBufferHeight]),Je(Gi,Gi,[0,0,I.drawingBufferWidth,I.drawingBufferHeight]);var tr={gl:I,context:St,strings:H,next:Pt,current:ot,draw:Rt,elements:be,buffer:Me,shader:ft,attributes:et.state,vao:et,uniforms:Xe,framebuffer:Ye,extensions:Z,timer:it,isBufferArgs:re},bt={primTypes:nn,compareFuncs:J,blendFuncs:X,blendEquations:Ve,stencilOps:ue,glTypes:Ou,orientationType:le};Ne&&(bt.backBuffer=[p],bt.drawBuffer=ge(Ee.maxDrawbuffers,function(U){return U===0?[0]:ge(U,function(q){return G+q})}));var Bt=0;function lt(){var U=o1({cache:Ge}),q=U.link,ee=U.global;U.id=Bt++,U.batchId="0";var Se=q(tr),pe=U.shared={props:"a0"};Object.keys(tr).forEach(function(ne){pe[ne]=ee.def(Se,".",ne)});var de=U.next={},ce=U.current={};Object.keys(mt).forEach(function(ne){Array.isArray(ot[ne])&&(de[ne]=ee.def(pe.next,".",ne),ce[ne]=ee.def(pe.current,".",ne))});var se=U.constants={};Object.keys(bt).forEach(function(ne){se[ne]=ee.def(JSON.stringify(bt[ne]))}),U.invoke=function(ne,K){switch(K.type){case Uu:var ve=["this",pe.context,pe.props,U.batchId];return ne.def(q(K.data),".call(",ve.slice(0,Math.max(K.data.length+1,4)),")");case gs:return ne.def(pe.props,K.data);case Lc:return ne.def(pe.context,K.data);case ys:return ne.def("this",K.data);case ja:return K.data.append(U,ne),K.data.ref;case Dc:return K.data.toString();case Ov:return K.data.map(function(Oe){return U.invoke(ne,Oe)})}},U.attribCache={};var Q={};return U.scopeAttrib=function(ne){var K=H.id(ne);if(K in Q)return Q[K];var ve=et.scope[K];ve||(ve=et.scope[K]=new Te);var Oe=Q[K]=q(ve);return Oe},U}function rr(U){var q=U.static,ee=U.dynamic,Se;if(Wa in q){var pe=!!q[Wa];Se=je(function(ce,se){return pe}),Se.enable=pe}else if(Wa in ee){var de=ee[Wa];Se=at(de,function(ce,se){return ce.invoke(se,de)})}return Se}function lr(U,q){var ee=U.static,Se=U.dynamic;if(sa in ee){var pe=ee[sa];return pe?(pe=Ye.getFramebuffer(pe),je(function(ce,se){var Q=ce.link(pe),ne=ce.shared;se.set(ne.framebuffer,".next",Q);var K=ne.context;return se.set(K,"."+ko,Q+".width"),se.set(K,"."+Mo,Q+".height"),Q})):je(function(ce,se){var Q=ce.shared;se.set(Q.framebuffer,".next","null");var ne=Q.context;return se.set(ne,"."+ko,ne+"."+Yc),se.set(ne,"."+Mo,ne+"."+Xc),"null"})}else if(sa in Se){var de=Se[sa];return at(de,function(ce,se){var Q=ce.invoke(se,de),ne=ce.shared,K=ne.framebuffer,ve=se.def(K,".getFramebuffer(",Q,")");se.set(K,".next",ve);var Oe=ne.context;return se.set(Oe,"."+ko,ve+"?"+ve+".width:"+Oe+"."+Yc),se.set(Oe,"."+Mo,ve+"?"+ve+".height:"+Oe+"."+Xc),ve})}else return null}function dr(U,q,ee){var Se=U.static,pe=U.dynamic;function de(Q){if(Q in Se){var ne=Se[Q],K=!0,ve=ne.x|0,Oe=ne.y|0,Be,Lt;return"width"in ne?Be=ne.width|0:K=!1,"height"in ne?Lt=ne.height|0:K=!1,new Ue(!K&&q&&q.thisDep,!K&&q&&q.contextDep,!K&&q&&q.propDep,function(Ft,Et){var Dt=Ft.shared.context,wt=Be;"width"in ne||(wt=Et.def(Dt,".",ko,"-",ve));var Ot=Lt;return"height"in ne||(Ot=Et.def(Dt,".",Mo,"-",Oe)),[ve,Oe,wt,Ot]})}else if(Q in pe){var Mt=pe[Q],gt=at(Mt,function(Ft,Et){var Dt=Ft.invoke(Et,Mt),wt=Ft.shared.context,Ot=Et.def(Dt,".x|0"),kt=Et.def(Dt,".y|0"),Vt=Et.def('"width" in ',Dt,"?",Dt,".width|0:","(",wt,".",ko,"-",Ot,")"),Ir=Et.def('"height" in ',Dt,"?",Dt,".height|0:","(",wt,".",Mo,"-",kt,")");return[Ot,kt,Vt,Ir]});return q&&(gt.thisDep=gt.thisDep||q.thisDep,gt.contextDep=gt.contextDep||q.contextDep,gt.propDep=gt.propDep||q.propDep),gt}else return q?new Ue(q.thisDep,q.contextDep,q.propDep,function(Ft,Et){var Dt=Ft.shared.context;return[0,0,Et.def(Dt,".",ko),Et.def(Dt,".",Mo)]}):null}var ce=de(Gi);if(ce){var se=ce;ce=new Ue(ce.thisDep,ce.contextDep,ce.propDep,function(Q,ne){var K=se.append(Q,ne),ve=Q.shared.context;return ne.set(ve,"."+u1,K[2]),ne.set(ve,"."+Nv,K[3]),K})}return{viewport:ce,scissor_box:de(_s)}}function un(U,q){var ee=U.static,Se=typeof ee[Ss]=="string"&&typeof ee[qu]=="string";if(Se){if(Object.keys(q.dynamic).length>0)return null;var pe=q.static,de=Object.keys(pe);if(de.length>0&&typeof pe[de[0]]=="number"){for(var ce=[],se=0;se<de.length;++se)ce.push([pe[de[se]]|0,de[se]]);return ce}}return null}function sr(U,q,ee){var Se=U.static,pe=U.dynamic;function de(K){if(K in Se){var ve=H.id(Se[K]),Oe=je(function(){return ve});return Oe.id=ve,Oe}else if(K in pe){var Be=pe[K];return at(Be,function(Lt,Mt){var gt=Lt.invoke(Mt,Be),Ft=Mt.def(Lt.shared.strings,".id(",gt,")");return Ft})}return null}var ce=de(Ss),se=de(qu),Q=null,ne;return tt(ce)&&tt(se)?(Q=ft.program(se.id,ce.id,null,ee),ne=je(function(K,ve){return K.link(Q)})):ne=new Ue(ce&&ce.thisDep||se&&se.thisDep,ce&&ce.contextDep||se&&se.contextDep,ce&&ce.propDep||se&&se.propDep,function(K,ve){var Oe=K.shared.shader,Be;ce?Be=ce.append(K,ve):Be=ve.def(Oe,".",Ss);var Lt;se?Lt=se.append(K,ve):Lt=ve.def(Oe,".",qu);var Mt=Oe+".program("+Lt+","+Be;return ve.def(Mt+")")}),{frag:ce,vert:se,progVar:ne,program:Q}}function Xn(U,q){var ee=U.static,Se=U.dynamic,pe={},de=!1;function ce(){if(hi in ee){var Et=ee[hi];return Et!==null&&et.getVAO(Et)===null&&(Et=et.createVAO(Et)),de=!0,pe.vao=Et,je(function(wt){var Ot=et.getVAO(Et);return Ot?wt.link(Ot):"null"})}else if(hi in Se){de=!0;var Dt=Se[hi];return at(Dt,function(wt,Ot){var kt=wt.invoke(Ot,Dt);return Ot.def(wt.shared.vao+".getVAO("+kt+")")})}return null}var se=ce(),Q=!1;function ne(){if(Co in ee){var Et=ee[Co];if(pe.elements=Et,re(Et)){var Dt=pe.elements=be.create(Et,!0);Et=be.getElements(Dt),Q=!0}else Et&&(Et=be.getElements(Et),Q=!0);var wt=je(function(kt,Vt){if(Et){var Ir=kt.link(Et);return kt.ELEMENTS=Ir,Ir}return kt.ELEMENTS=null,null});return wt.value=Et,wt}else if(Co in Se){Q=!0;var Ot=Se[Co];return at(Ot,function(kt,Vt){var Ir=kt.shared,Qn=Ir.isBufferArgs,qa=Ir.elements,Io=kt.invoke(Vt,Ot),Fo=Vt.def("null"),Ei=Vt.def(Qn,"(",Io,")"),ah=kt.cond(Ei).then(Fo,"=",qa,".createStream(",Io,");").else(Fo,"=",qa,".getElements(",Io,");");return Vt.entry(ah),Vt.exit(kt.cond(Ei).then(qa,".destroyStream(",Fo,");")),kt.ELEMENTS=Fo,Fo})}else if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(kt,Vt){return Vt.def(kt.shared.vao+".currentVAO?"+kt.shared.elements+".getElements("+kt.shared.vao+".currentVAO.elements):null")});return null}var K=ne();function ve(){if(Oo in ee){var Et=ee[Oo];return pe.primitive=Et,je(function(wt,Ot){return nn[Et]})}else if(Oo in Se){var Dt=Se[Oo];return at(Dt,function(wt,Ot){var kt=wt.constants.primTypes,Vt=wt.invoke(Ot,Dt);return Ot.def(kt,"[",Vt,"]")})}else{if(Q)return tt(K)?K.value?je(function(wt,Ot){return Ot.def(wt.ELEMENTS,".primType")}):je(function(){return c}):new Ue(K.thisDep,K.contextDep,K.propDep,function(wt,Ot){var kt=wt.ELEMENTS;return Ot.def(kt,"?",kt,".primType:",c)});if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(wt,Ot){return Ot.def(wt.shared.vao+".currentVAO?"+wt.shared.vao+".currentVAO.primitive:"+c)})}return null}function Oe(Et,Dt){if(Et in ee){var wt=ee[Et]|0;return Dt?pe.offset=wt:pe.instances=wt,je(function(kt,Vt){return Dt&&(kt.OFFSET=wt),wt})}else if(Et in Se){var Ot=Se[Et];return at(Ot,function(kt,Vt){var Ir=kt.invoke(Vt,Ot);return Dt&&(kt.OFFSET=Ir),Ir})}else if(Dt){if(Q)return je(function(kt,Vt){return kt.OFFSET=0,0});if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(kt,Vt){return Vt.def(kt.shared.vao+".currentVAO?"+kt.shared.vao+".currentVAO.offset:0")})}else if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(kt,Vt){return Vt.def(kt.shared.vao+".currentVAO?"+kt.shared.vao+".currentVAO.instances:-1")});return null}var Be=Oe(Es,!0);function Lt(){if(an in ee){var Et=ee[an]|0;return pe.count=Et,je(function(){return Et})}else if(an in Se){var Dt=Se[an];return at(Dt,function(Vt,Ir){var Qn=Vt.invoke(Ir,Dt);return Qn})}else if(Q)if(tt(K)){if(K)return Be?new Ue(Be.thisDep,Be.contextDep,Be.propDep,function(Vt,Ir){var Qn=Ir.def(Vt.ELEMENTS,".vertCount-",Vt.OFFSET);return Qn}):je(function(Vt,Ir){return Ir.def(Vt.ELEMENTS,".vertCount")});var wt=je(function(){return-1});return wt}else{var Ot=new Ue(K.thisDep||Be.thisDep,K.contextDep||Be.contextDep,K.propDep||Be.propDep,function(Vt,Ir){var Qn=Vt.ELEMENTS;return Vt.OFFSET?Ir.def(Qn,"?",Qn,".vertCount-",Vt.OFFSET,":-1"):Ir.def(Qn,"?",Qn,".vertCount:-1")});return Ot}else if(de){var kt=new Ue(se.thisDep,se.contextDep,se.propDep,function(Vt,Ir){return Ir.def(Vt.shared.vao,".currentVAO?",Vt.shared.vao,".currentVAO.count:-1")});return kt}return null}var Mt=ve(),gt=Lt(),Ft=Oe(As,!1);return{elements:K,primitive:Mt,count:gt,instances:Ft,offset:Be,vao:se,vaoActive:de,elementsActive:Q,static:pe}}function Tr(U,q){var ee=U.static,Se=U.dynamic,pe={};return $e.forEach(function(de){var ce=Ae(de);function se(Q,ne){if(de in ee){var K=Q(ee[de]);pe[ce]=je(function(){return K})}else if(de in Se){var ve=Se[de];pe[ce]=at(ve,function(Oe,Be){return ne(Oe,Be,Oe.invoke(Be,ve))})}}switch(de){case Iv:case Mv:case kv:case Yn:case $c:case Fv:case Gu:case Gc:case Wc:case ju:return se(function(Q){return Q},function(Q,ne,K){return K});case Bc:return se(function(Q){return J[Q]},function(Q,ne,K){var ve=Q.constants.compareFuncs;return ne.def(ve,"[",K,"]")});case Pv:return se(function(Q){return Q},function(Q,ne,K){var ve=ne.def("+",K,"[0]"),Oe=ne.def("+",K,"[1]");return[ve,Oe]});case xs:return se(function(Q){var ne="srcRGB"in Q?Q.srcRGB:Q.src,K="srcAlpha"in Q?Q.srcAlpha:Q.src,ve="dstRGB"in Q?Q.dstRGB:Q.dst,Oe="dstAlpha"in Q?Q.dstAlpha:Q.dst;return[X[ne],X[ve],X[K],X[Oe]]},function(Q,ne,K){var ve=Q.constants.blendFuncs;function Oe(Dt,wt){var Ot=ne.def('"',Dt,wt,'" in ',K,"?",K,".",Dt,wt,":",K,".",Dt);return Ot}var Be=Oe("src","RGB"),Lt=Oe("dst","RGB"),Mt=ne.def(ve,"[",Be,"]"),gt=ne.def(ve,"[",Oe("src","Alpha"),"]"),Ft=ne.def(ve,"[",Lt,"]"),Et=ne.def(ve,"[",Oe("dst","Alpha"),"]");return[Mt,Ft,gt,Et]});case bs:return se(function(Q){if(typeof Q=="string")return[Ve[Q],Ve[Q]];if(typeof Q=="object")return[Ve[Q.rgb],Ve[Q.alpha]]},function(Q,ne,K){var ve=Q.constants.blendEquations,Oe=ne.def(),Be=ne.def(),Lt=Q.cond("typeof ",K,'==="string"');return Lt.then(Oe,"=",Be,"=",ve,"[",K,"];"),Lt.else(Oe,"=",ve,"[",K,".rgb];",Be,"=",ve,"[",K,".alpha];"),ne(Lt),[Oe,Be]});case Rv:return se(function(Q){return ge(4,function(ne){return+Q[ne]})},function(Q,ne,K){return ge(4,function(ve){return ne.def("+",K,"[",ve,"]")})});case Hc:return se(function(Q){return Q|0},function(Q,ne,K){return ne.def(K,"|0")});case qc:return se(function(Q){var ne=Q.cmp||"keep",K=Q.ref||0,ve="mask"in Q?Q.mask:-1;return[J[ne],K,ve]},function(Q,ne,K){var ve=Q.constants.compareFuncs,Oe=ne.def('"cmp" in ',K,"?",ve,"[",K,".cmp]",":",N),Be=ne.def(K,".ref|0"),Lt=ne.def('"mask" in ',K,"?",K,".mask|0:-1");return[Oe,Be,Lt]});case Hu:case Ga:return se(function(Q){var ne=Q.fail||"keep",K=Q.zfail||"keep",ve=Q.zpass||"keep";return[de===Ga?p:h,ue[ne],ue[K],ue[ve]]},function(Q,ne,K){var ve=Q.constants.stencilOps;function Oe(Be){return ne.def('"',Be,'" in ',K,"?",ve,"[",K,".",Be,"]:",N)}return[de===Ga?p:h,Oe("fail"),Oe("zfail"),Oe("zpass")]});case To:return se(function(Q){var ne=Q.factor|0,K=Q.units|0;return[ne,K]},function(Q,ne,K){var ve=ne.def(K,".factor|0"),Oe=ne.def(K,".units|0");return[ve,Oe]});case Uc:return se(function(Q){var ne=0;return Q==="front"?ne=h:Q==="back"&&(ne=p),ne},function(Q,ne,K){return ne.def(K,'==="front"?',h,":",p)});case jc:return se(function(Q){return Q},function(Q,ne,K){return K});case ws:return se(function(Q){return le[Q]},function(Q,ne,K){return ne.def(K+'==="cw"?'+m+":"+b)});case zc:return se(function(Q){return Q.map(function(ne){return!!ne})},function(Q,ne,K){return ge(4,function(ve){return"!!"+K+"["+ve+"]"})});case Wu:return se(function(Q){var ne="value"in Q?Q.value:1,K=!!Q.invert;return[ne,K]},function(Q,ne,K){var ve=ne.def('"value" in ',K,"?+",K,".value:1"),Oe=ne.def("!!",K,".invert");return[ve,Oe]})}}),pe}function An(U,q){var ee=U.static,Se=U.dynamic,pe={};return Object.keys(ee).forEach(function(de){var ce=ee[de],se;if(typeof ce=="number"||typeof ce=="boolean")se=je(function(){return ce});else if(typeof ce=="function"){var Q=ce._reglType;Q==="texture2d"||Q==="textureCube"?se=je(function(ne){return ne.link(ce)}):(Q==="framebuffer"||Q==="framebufferCube")&&(se=je(function(ne){return ne.link(ce.color[0])}))}else ui(ce)&&(se=je(function(ne){var K=ne.global.def("[",ge(ce.length,function(ve){return ce[ve]}),"]");return K}));se.value=ce,pe[de]=se}),Object.keys(Se).forEach(function(de){var ce=Se[de];pe[de]=at(ce,function(se,Q){return se.invoke(Q,ce)})}),pe}function Kn(U,q){var ee=U.static,Se=U.dynamic,pe={};return Object.keys(ee).forEach(function(de){var ce=ee[de],se=H.id(de),Q=new Te;if(re(ce))Q.state=Ua,Q.buffer=Me.getBuffer(Me.create(ce,Ha,!1,!0)),Q.type=0;else{var ne=Me.getBuffer(ce);if(ne)Q.state=Ua,Q.buffer=ne,Q.type=0;else if("constant"in ce){var K=ce.constant;Q.buffer="null",Q.state=zu,typeof K=="number"?Q.x=K:za.forEach(function(Ft,Et){Et<K.length&&(Q[Ft]=K[Et])})}else{re(ce.buffer)?ne=Me.getBuffer(Me.create(ce.buffer,Ha,!1,!0)):ne=Me.getBuffer(ce.buffer);var ve=ce.offset|0,Oe=ce.stride|0,Be=ce.size|0,Lt=!!ce.normalized,Mt=0;"type"in ce&&(Mt=Ou[ce.type]);var gt=ce.divisor|0;Q.buffer=ne,Q.state=Ua,Q.size=Be,Q.normalized=Lt,Q.type=Mt||ne.dtype,Q.offset=ve,Q.stride=Oe,Q.divisor=gt}}pe[de]=je(function(Ft,Et){var Dt=Ft.attribCache;if(se in Dt)return Dt[se];var wt={isStream:!1};return Object.keys(Q).forEach(function(Ot){wt[Ot]=Q[Ot]}),Q.buffer&&(wt.buffer=Ft.link(Q.buffer),wt.type=wt.type||wt.buffer+".dtype"),Dt[se]=wt,wt})}),Object.keys(Se).forEach(function(de){var ce=Se[de];function se(Q,ne){var K=Q.invoke(ne,ce),ve=Q.shared,Oe=Q.constants,Be=ve.isBufferArgs,Lt=ve.buffer,Mt={isStream:ne.def(!1)},gt=new Te;gt.state=Ua,Object.keys(gt).forEach(function(wt){Mt[wt]=ne.def(""+gt[wt])});var Ft=Mt.buffer,Et=Mt.type;ne("if(",Be,"(",K,")){",Mt.isStream,"=true;",Ft,"=",Lt,".createStream(",Ha,",",K,");",Et,"=",Ft,".dtype;","}else{",Ft,"=",Lt,".getBuffer(",K,");","if(",Ft,"){",Et,"=",Ft,".dtype;",'}else if("constant" in ',K,"){",Mt.state,"=",zu,";","if(typeof "+K+'.constant === "number"){',Mt[za[0]],"=",K,".constant;",za.slice(1).map(function(wt){return Mt[wt]}).join("="),"=0;","}else{",za.map(function(wt,Ot){return Mt[wt]+"="+K+".constant.length>"+Ot+"?"+K+".constant["+Ot+"]:0;"}).join(""),"}}else{","if(",Be,"(",K,".buffer)){",Ft,"=",Lt,".createStream(",Ha,",",K,".buffer);","}else{",Ft,"=",Lt,".getBuffer(",K,".buffer);","}",Et,'="type" in ',K,"?",Oe.glTypes,"[",K,".type]:",Ft,".dtype;",Mt.normalized,"=!!",K,".normalized;");function Dt(wt){ne(Mt[wt],"=",K,".",wt,"|0;")}return Dt("size"),Dt("offset"),Dt("stride"),Dt("divisor"),ne("}}"),ne.exit("if(",Mt.isStream,"){",Lt,".destroyStream(",Ft,");","}"),Mt}pe[de]=at(ce,se)}),pe}function Fn(U){var q=U.static,ee=U.dynamic,Se={};return Object.keys(q).forEach(function(pe){var de=q[pe];Se[pe]=je(function(ce,se){return typeof de=="number"||typeof de=="boolean"?""+de:ce.link(de)})}),Object.keys(ee).forEach(function(pe){var de=ee[pe];Se[pe]=at(de,function(ce,se){return ce.invoke(se,de)})}),Se}function Hi(U,q,ee,Se,pe){U.static,U.dynamic;var de=un(U,q),ce=lr(U),se=dr(U,ce),Q=Xn(U),ne=Tr(U),K=sr(U,pe,de);function ve(Ft){var Et=se[Ft];Et&&(ne[Ft]=Et)}ve(Gi),ve(Ae(_s));var Oe=Object.keys(ne).length>0,Be={framebuffer:ce,draw:Q,shader:K,state:ne,dirty:Oe,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Be.profile=rr(U),Be.uniforms=An(ee),Be.drawVAO=Be.scopeVAO=Q.vao,!Be.drawVAO&&K.program&&!de&&Z.angle_instanced_arrays&&Q.static.elements){var Lt=!0,Mt=K.program.attributes.map(function(Ft){var Et=q.static[Ft];return Lt=Lt&&!!Et,Et});if(Lt&&Mt.length>0){var gt=et.getVAO(et.createVAO({attributes:Mt,elements:Q.static.elements}));Be.drawVAO=new Ue(null,null,null,function(Ft,Et){return Ft.link(gt)}),Be.useVAO=!0}}return de?Be.useVAO=!0:Be.attributes=Kn(q),Be.context=Fn(Se),Be}function ln(U,q,ee){var Se=U.shared,pe=Se.context,de=U.scope();Object.keys(ee).forEach(function(ce){q.save(pe,"."+ce);var se=ee[ce],Q=se.append(U,q);Array.isArray(Q)?de(pe,".",ce,"=[",Q.join(),"];"):de(pe,".",ce,"=",Q,";")}),q(de)}function sn(U,q,ee,Se){var pe=U.shared,de=pe.gl,ce=pe.framebuffer,se;Ne&&(se=q.def(pe.extensions,".webgl_draw_buffers"));var Q=U.constants,ne=Q.drawBuffer,K=Q.backBuffer,ve;ee?ve=ee.append(U,q):ve=q.def(ce,".next"),Se||q("if(",ve,"!==",ce,".cur){"),q("if(",ve,"){",de,".bindFramebuffer(",oe,",",ve,".framebuffer);"),Ne&&q(se,".drawBuffersWEBGL(",ne,"[",ve,".colorAttachments.length]);"),q("}else{",de,".bindFramebuffer(",oe,",null);"),Ne&&q(se,".drawBuffersWEBGL(",K,");"),q("}",ce,".cur=",ve,";"),Se||q("}")}function Kt(U,q,ee){var Se=U.shared,pe=Se.gl,de=U.current,ce=U.next,se=Se.current,Q=Se.next,ne=U.cond(se,".dirty");$e.forEach(function(K){var ve=Ae(K);if(!(ve in ee.state)){var Oe,Be;if(ve in ce){Oe=ce[ve],Be=de[ve];var Lt=ge(ot[ve].length,function(gt){return ne.def(Oe,"[",gt,"]")});ne(U.cond(Lt.map(function(gt,Ft){return gt+"!=="+Be+"["+Ft+"]"}).join("||")).then(pe,".",mt[ve],"(",Lt,");",Lt.map(function(gt,Ft){return Be+"["+Ft+"]="+gt}).join(";"),";"))}else{Oe=ne.def(Q,".",ve);var Mt=U.cond(Oe,"!==",se,".",ve);ne(Mt),ve in Re?Mt(U.cond(Oe).then(pe,".enable(",Re[ve],");").else(pe,".disable(",Re[ve],");"),se,".",ve,"=",Oe,";"):Mt(pe,".",mt[ve],"(",Oe,");",se,".",ve,"=",Oe,";")}}}),Object.keys(ee.state).length===0&&ne(se,".dirty=false;"),q(ne)}function di(U,q,ee,Se){var pe=U.shared,de=U.current,ce=pe.current,se=pe.gl,Q;Pe(Object.keys(ee)).forEach(function(ne){var K=ee[ne];if(!(Se&&!Se(K))){var ve=K.append(U,q);if(Re[ne]){var Oe=Re[ne];tt(K)?(Q=U.link(ve,{stable:!0}),q(U.cond(Q).then(se,".enable(",Oe,");").else(se,".disable(",Oe,");")),q(ce,".",ne,"=",Q,";")):(q(U.cond(ve).then(se,".enable(",Oe,");").else(se,".disable(",Oe,");")),q(ce,".",ne,"=",ve,";"))}else if(ui(ve)){var Be=de[ne];q(se,".",mt[ne],"(",ve,");",ve.map(function(Lt,Mt){return Be+"["+Mt+"]="+Lt}).join(";"),";")}else tt(K)?(Q=U.link(ve,{stable:!0}),q(se,".",mt[ne],"(",Q,");",ce,".",ne,"=",Q,";")):q(se,".",mt[ne],"(",ve,");",ce,".",ne,"=",ve,";")}})}function _r(U,q){Ze&&(U.instancing=q.def(U.shared.extensions,".angle_instanced_arrays"))}function fn(U,q,ee,Se,pe){var de=U.shared,ce=U.stats,se=de.current,Q=de.timer,ne=ee.profile;function K(){return typeof performance>"u"?"Date.now()":"performance.now()"}var ve,Oe;function Be(Dt){ve=q.def(),Dt(ve,"=",K(),";"),typeof pe=="string"?Dt(ce,".count+=",pe,";"):Dt(ce,".count++;"),it&&(Se?(Oe=q.def(),Dt(Oe,"=",Q,".getNumPendingQueries();")):Dt(Q,".beginQuery(",ce,");"))}function Lt(Dt){Dt(ce,".cpuTime+=",K(),"-",ve,";"),it&&(Se?Dt(Q,".pushScopeStats(",Oe,",",Q,".getNumPendingQueries(),",ce,");"):Dt(Q,".endQuery();"))}function Mt(Dt){var wt=q.def(se,".profile");q(se,".profile=",Dt,";"),q.exit(se,".profile=",wt,";")}var gt;if(ne){if(tt(ne)){ne.enable?(Be(q),Lt(q.exit),Mt("true")):Mt("false");return}gt=ne.append(U,q),Mt(gt)}else gt=q.def(se,".profile");var Ft=U.block();Be(Ft),q("if(",gt,"){",Ft,"}");var Et=U.block();Lt(Et),q.exit("if(",gt,"){",Et,"}")}function Un(U,q,ee,Se,pe){var de=U.shared;function ce(Q){switch(Q){case Os:case Qc:case Jc:return 2;case Wi:case Ku:case eh:return 3;case Ro:case Po:case th:return 4;default:return 1}}function se(Q,ne,K){var ve=de.gl,Oe=q.def(Q,".location"),Be=q.def(de.attributes,"[",Oe,"]"),Lt=K.state,Mt=K.buffer,gt=[K.x,K.y,K.z,K.w],Ft=["buffer","normalized","offset","stride"];function Et(){q("if(!",Be,".buffer){",ve,".enableVertexAttribArray(",Oe,");}");var wt=K.type,Ot;if(K.size?Ot=q.def(K.size,"||",ne):Ot=ne,q("if(",Be,".type!==",wt,"||",Be,".size!==",Ot,"||",Ft.map(function(Vt){return Be+"."+Vt+"!=="+K[Vt]}).join("||"),"){",ve,".bindBuffer(",Ha,",",Mt,".buffer);",ve,".vertexAttribPointer(",[Oe,Ot,wt,K.normalized,K.stride,K.offset],");",Be,".type=",wt,";",Be,".size=",Ot,";",Ft.map(function(Vt){return Be+"."+Vt+"="+K[Vt]+";"}).join(""),"}"),Ze){var kt=K.divisor;q("if(",Be,".divisor!==",kt,"){",U.instancing,".vertexAttribDivisorANGLE(",[Oe,kt],");",Be,".divisor=",kt,";}")}}function Dt(){q("if(",Be,".buffer){",ve,".disableVertexAttribArray(",Oe,");",Be,".buffer=null;","}if(",za.map(function(wt,Ot){return Be+"."+wt+"!=="+gt[Ot]}).join("||"),"){",ve,".vertexAttrib4f(",Oe,",",gt,");",za.map(function(wt,Ot){return Be+"."+wt+"="+gt[Ot]+";"}).join(""),"}")}Lt===Ua?Et():Lt===zu?Dt():(q("if(",Lt,"===",Ua,"){"),Et(),q("}else{"),Dt(),q("}"))}Se.forEach(function(Q){var ne=Q.name,K=ee.attributes[ne],ve;if(K){if(!pe(K))return;ve=K.append(U,q)}else{if(!pe(vt))return;var Oe=U.scopeAttrib(ne);ve={},Object.keys(new Te).forEach(function(Be){ve[Be]=q.def(Oe,".",Be)})}se(U.link(Q),ce(Q.info.type),ve)})}function jn(U,q,ee,Se,pe,de){for(var ce=U.shared,se=ce.gl,Q,ne=0;ne<Se.length;++ne){var K=Se[ne],ve=K.name,Oe=K.info.type,Be=ee.uniforms[ve],Lt=U.link(K),Mt=Lt+".location",gt;if(Be){if(!pe(Be))continue;if(tt(Be)){var Ft=Be.value;if(Oe===ih||Oe===u){var Et=U.link(Ft._texture||Ft.color[0]._texture);q(se,".uniform1i(",Mt,",",Et+".bind());"),q.exit(Et,".unbind();")}else if(Oe===rh||Oe===Qu||Oe===nh){var Dt=U.global.def("new Float32Array(["+Array.prototype.slice.call(Ft)+"])"),wt=2;Oe===Qu?wt=3:Oe===nh&&(wt=4),q(se,".uniformMatrix",wt,"fv(",Mt,",false,",Dt,");")}else{switch(Oe){case Br:Q="1f";break;case Os:Q="2f";break;case Wi:Q="3f";break;case Ro:Q="4f";break;case Zc:Q="1i";break;case ks:Q="1i";break;case Jc:Q="2i";break;case Qc:Q="2i";break;case eh:Q="3i";break;case Ku:Q="3i";break;case th:Q="4i";break;case Po:Q="4i";break}q(se,".uniform",Q,"(",Mt,",",ui(Ft)?Array.prototype.slice.call(Ft):Ft,");")}continue}else gt=Be.append(U,q)}else{if(!pe(vt))continue;gt=q.def(ce.uniforms,"[",H.id(ve),"]")}Oe===ih?q("if(",gt,"&&",gt,'._reglType==="framebuffer"){',gt,"=",gt,".color[0];","}"):Oe===u&&q("if(",gt,"&&",gt,'._reglType==="framebufferCube"){',gt,"=",gt,".color[0];","}");var Ot=1;switch(Oe){case ih:case u:var kt=q.def(gt,"._texture");q(se,".uniform1i(",Mt,",",kt,".bind());"),q.exit(kt,".unbind();");continue;case ks:case Zc:Q="1i";break;case Qc:case Jc:Q="2i",Ot=2;break;case Ku:case eh:Q="3i",Ot=3;break;case Po:case th:Q="4i",Ot=4;break;case Br:Q="1f";break;case Os:Q="2f",Ot=2;break;case Wi:Q="3f",Ot=3;break;case Ro:Q="4f",Ot=4;break;case rh:Q="Matrix2fv";break;case Qu:Q="Matrix3fv";break;case nh:Q="Matrix4fv";break}if(Q.charAt(0)==="M"){q(se,".uniform",Q,"(",Mt,",");var Vt=Math.pow(Oe-rh+2,2),Ir=U.global.def("new Float32Array(",Vt,")");Array.isArray(gt)?q("false,(",ge(Vt,function(Ei){return Ir+"["+Ei+"]="+gt[Ei]}),",",Ir,")"):q("false,(Array.isArray(",gt,")||",gt," instanceof Float32Array)?",gt,":(",ge(Vt,function(Ei){return Ir+"["+Ei+"]="+gt+"["+Ei+"]"}),",",Ir,")"),q(");")}else if(Ot>1){for(var Qn=[],qa=[],Io=0;Io<Ot;++Io)Array.isArray(gt)?qa.push(gt[Io]):qa.push(q.def(gt+"["+Io+"]")),de&&Qn.push(q.def());de&&q("if(!",U.batchId,"||",Qn.map(function(Ei,ah){return Ei+"!=="+qa[ah]}).join("||"),"){",Qn.map(function(Ei,ah){return Ei+"="+qa[ah]+";"}).join("")),q(se,".uniform",Q,"(",Mt,",",qa.join(","),");"),de&&q("}")}else{if(de){var Fo=q.def();q("if(!",U.batchId,"||",Fo,"!==",gt,"){",Fo,"=",gt,";")}q(se,".uniform",Q,"(",Mt,",",gt,");"),de&&q("}")}}}function Zt(U,q,ee,Se){var pe=U.shared,de=pe.gl,ce=pe.draw,se=Se.draw;function Q(){var Ot=se.elements,kt,Vt=q;return Ot?((Ot.contextDep&&Se.contextDynamic||Ot.propDep)&&(Vt=ee),kt=Ot.append(U,Vt),se.elementsActive&&Vt("if("+kt+")"+de+".bindBuffer("+Kc+","+kt+".buffer.buffer);")):(kt=Vt.def(),Vt(kt,"=",ce,".",Co,";","if(",kt,"){",de,".bindBuffer(",Kc,",",kt,".buffer.buffer);}","else if(",pe.vao,".currentVAO){",kt,"=",U.shared.elements+".getElements("+pe.vao,".currentVAO.elements);",pt?"":"if("+kt+")"+de+".bindBuffer("+Kc+","+kt+".buffer.buffer);","}")),kt}function ne(){var Ot=se.count,kt,Vt=q;return Ot?((Ot.contextDep&&Se.contextDynamic||Ot.propDep)&&(Vt=ee),kt=Ot.append(U,Vt)):kt=Vt.def(ce,".",an),kt}var K=Q();function ve(Ot){var kt=se[Ot];return kt?kt.contextDep&&Se.contextDynamic||kt.propDep?kt.append(U,ee):kt.append(U,q):q.def(ce,".",Ot)}var Oe=ve(Oo),Be=ve(Es),Lt=ne();if(typeof Lt=="number"){if(Lt===0)return}else ee("if(",Lt,"){"),ee.exit("}");var Mt,gt;Ze&&(Mt=ve(As),gt=U.instancing);var Ft=K+".type",Et=se.elements&&tt(se.elements)&&!se.vaoActive;function Dt(){function Ot(){ee(gt,".drawElementsInstancedANGLE(",[Oe,Lt,Ft,Be+"<<(("+Ft+"-"+Nc+")>>1)",Mt],");")}function kt(){ee(gt,".drawArraysInstancedANGLE(",[Oe,Be,Lt,Mt],");")}K&&K!=="null"?Et?Ot():(ee("if(",K,"){"),Ot(),ee("}else{"),kt(),ee("}")):kt()}function wt(){function Ot(){ee(de+".drawElements("+[Oe,Lt,Ft,Be+"<<(("+Ft+"-"+Nc+")>>1)"]+");")}function kt(){ee(de+".drawArrays("+[Oe,Be,Lt]+");")}K&&K!=="null"?Et?Ot():(ee("if(",K,"){"),Ot(),ee("}else{"),kt(),ee("}")):kt()}Ze&&(typeof Mt!="number"||Mt>=0)?typeof Mt=="string"?(ee("if(",Mt,">0){"),Dt(),ee("}else if(",Mt,"<0){"),wt(),ee("}")):Dt():wt()}function hr(U,q,ee,Se,pe){var de=lt(),ce=de.proc("body",pe);return Ze&&(de.instancing=ce.def(de.shared.extensions,".angle_instanced_arrays")),U(de,ce,ee,Se),de.compile().body}function Or(U,q,ee,Se){_r(U,q),ee.useVAO?ee.drawVAO?q(U.shared.vao,".setVAO(",ee.drawVAO.append(U,q),");"):q(U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"):(q(U.shared.vao,".setVAO(null);"),Un(U,q,ee,Se.attributes,function(){return!0})),jn(U,q,ee,Se.uniforms,function(){return!0},!1),Zt(U,q,q,ee)}function cn(U,q){var ee=U.proc("draw",1);_r(U,ee),ln(U,ee,q.context),sn(U,ee,q.framebuffer),Kt(U,ee,q),di(U,ee,q.state),fn(U,ee,q,!1,!0);var Se=q.shader.progVar.append(U,ee);if(ee(U.shared.gl,".useProgram(",Se,".program);"),q.shader.program)Or(U,ee,q,q.shader.program);else{ee(U.shared.vao,".setVAO(null);");var pe=U.global.def("{}"),de=ee.def(Se,".id"),ce=ee.def(pe,"[",de,"]");ee(U.cond(ce).then(ce,".call(this,a0);").else(ce,"=",pe,"[",de,"]=",U.link(function(se){return hr(Or,U,q,se,1)}),"(",Se,");",ce,".call(this,a0);"))}Object.keys(q.state).length>0&&ee(U.shared.current,".dirty=true;"),U.shared.vao&&ee(U.shared.vao,".setVAO(null);")}function Y(U,q,ee,Se){U.batchId="a1",_r(U,q);function pe(){return!0}Un(U,q,ee,Se.attributes,pe),jn(U,q,ee,Se.uniforms,pe,!1),Zt(U,q,q,ee)}function xe(U,q,ee,Se){_r(U,q);var pe=ee.contextDep,de=q.def(),ce="a0",se="a1",Q=q.def();U.shared.props=Q,U.batchId=de;var ne=U.scope(),K=U.scope();q(ne.entry,"for(",de,"=0;",de,"<",se,";++",de,"){",Q,"=",ce,"[",de,"];",K,"}",ne.exit);function ve(Ft){return Ft.contextDep&&pe||Ft.propDep}function Oe(Ft){return!ve(Ft)}if(ee.needsContext&&ln(U,K,ee.context),ee.needsFramebuffer&&sn(U,K,ee.framebuffer),di(U,K,ee.state,ve),ee.profile&&ve(ee.profile)&&fn(U,K,ee,!1,!0),Se)ee.useVAO?ee.drawVAO?ve(ee.drawVAO)?K(U.shared.vao,".setVAO(",ee.drawVAO.append(U,K),");"):ne(U.shared.vao,".setVAO(",ee.drawVAO.append(U,ne),");"):ne(U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"):(ne(U.shared.vao,".setVAO(null);"),Un(U,ne,ee,Se.attributes,Oe),Un(U,K,ee,Se.attributes,ve)),jn(U,ne,ee,Se.uniforms,Oe,!1),jn(U,K,ee,Se.uniforms,ve,!0),Zt(U,ne,K,ee);else{var Be=U.global.def("{}"),Lt=ee.shader.progVar.append(U,K),Mt=K.def(Lt,".id"),gt=K.def(Be,"[",Mt,"]");K(U.shared.gl,".useProgram(",Lt,".program);","if(!",gt,"){",gt,"=",Be,"[",Mt,"]=",U.link(function(Ft){return hr(Y,U,ee,Ft,2)}),"(",Lt,");}",gt,".call(this,a0[",de,"],",de,");")}}function ye(U,q){var ee=U.proc("batch",2);U.batchId="0",_r(U,ee);var Se=!1,pe=!0;Object.keys(q.context).forEach(function(Be){Se=Se||q.context[Be].propDep}),Se||(ln(U,ee,q.context),pe=!1);var de=q.framebuffer,ce=!1;de?(de.propDep?Se=ce=!0:de.contextDep&&Se&&(ce=!0),ce||sn(U,ee,de)):sn(U,ee,null),q.state.viewport&&q.state.viewport.propDep&&(Se=!0);function se(Be){return Be.contextDep&&Se||Be.propDep}Kt(U,ee,q),di(U,ee,q.state,function(Be){return!se(Be)}),(!q.profile||!se(q.profile))&&fn(U,ee,q,!1,"a1"),q.contextDep=Se,q.needsContext=pe,q.needsFramebuffer=ce;var Q=q.shader.progVar;if(Q.contextDep&&Se||Q.propDep)xe(U,ee,q,null);else{var ne=Q.append(U,ee);if(ee(U.shared.gl,".useProgram(",ne,".program);"),q.shader.program)xe(U,ee,q,q.shader.program);else{ee(U.shared.vao,".setVAO(null);");var K=U.global.def("{}"),ve=ee.def(ne,".id"),Oe=ee.def(K,"[",ve,"]");ee(U.cond(Oe).then(Oe,".call(this,a0,a1);").else(Oe,"=",K,"[",ve,"]=",U.link(function(Be){return hr(xe,U,q,Be,2)}),"(",ne,");",Oe,".call(this,a0,a1);"))}}Object.keys(q.state).length>0&&ee(U.shared.current,".dirty=true;"),U.shared.vao&&ee(U.shared.vao,".setVAO(null);")}function Tt(U,q){var ee=U.proc("scope",3);U.batchId="a2";var Se=U.shared,pe=Se.current;if(ln(U,ee,q.context),q.framebuffer&&q.framebuffer.append(U,ee),Pe(Object.keys(q.state)).forEach(function(se){var Q=q.state[se],ne=Q.append(U,ee);ui(ne)?ne.forEach(function(K,ve){It(K)?ee.set(U.next[se],"["+ve+"]",K):ee.set(U.next[se],"["+ve+"]",U.link(K,{stable:!0}))}):tt(Q)?ee.set(Se.next,"."+se,U.link(ne,{stable:!0})):ee.set(Se.next,"."+se,ne)}),fn(U,ee,q,!0,!0),[Co,Es,an,As,Oo].forEach(function(se){var Q=q.draw[se];if(Q){var ne=Q.append(U,ee);It(ne)?ee.set(Se.draw,"."+se,ne):ee.set(Se.draw,"."+se,U.link(ne),{stable:!0})}}),Object.keys(q.uniforms).forEach(function(se){var Q=q.uniforms[se].append(U,ee);Array.isArray(Q)&&(Q="["+Q.map(function(ne){return It(ne)?ne:U.link(ne,{stable:!0})})+"]"),ee.set(Se.uniforms,"["+U.link(H.id(se),{stable:!0})+"]",Q)}),Object.keys(q.attributes).forEach(function(se){var Q=q.attributes[se].append(U,ee),ne=U.scopeAttrib(se);Object.keys(new Te).forEach(function(K){ee.set(ne,"."+K,Q[K])})}),q.scopeVAO){var de=q.scopeVAO.append(U,ee);It(de)?ee.set(Se.vao,".targetVAO",de):ee.set(Se.vao,".targetVAO",U.link(de,{stable:!0}))}function ce(se){var Q=q.shader[se];if(Q){var ne=Q.append(U,ee);It(ne)?ee.set(Se.shader,"."+se,ne):ee.set(Se.shader,"."+se,U.link(ne,{stable:!0}))}}ce(qu),ce(Ss),Object.keys(q.state).length>0&&(ee(pe,".dirty=true;"),ee.exit(pe,".dirty=true;")),ee("a1(",U.shared.context,",a0,",U.batchId,");")}function nr(U){if(!(typeof U!="object"||ui(U))){for(var q=Object.keys(U),ee=0;ee<q.length;++ee)if(E.isDynamic(U[q[ee]]))return!0;return!1}}function Pr(U,q,ee){var Se=q.static[ee];if(!Se||!nr(Se))return;var pe=U.global,de=Object.keys(Se),ce=!1,se=!1,Q=!1,ne=U.global.def("{}");de.forEach(function(ve){var Oe=Se[ve];if(E.isDynamic(Oe)){typeof Oe=="function"&&(Oe=Se[ve]=E.unbox(Oe));var Be=at(Oe,null);ce=ce||Be.thisDep,Q=Q||Be.propDep,se=se||Be.contextDep}else{switch(pe(ne,".",ve,"="),typeof Oe){case"number":pe(Oe);break;case"string":pe('"',Oe,'"');break;case"object":Array.isArray(Oe)&&pe("[",Oe.join(),"]");break;default:pe(U.link(Oe));break}pe(";")}});function K(ve,Oe){de.forEach(function(Be){var Lt=Se[Be];if(E.isDynamic(Lt)){var Mt=ve.invoke(Oe,Lt);Oe(ne,".",Be,"=",Mt,";")}})}q.dynamic[ee]=new E.DynamicVariable(ja,{thisDep:ce,contextDep:se,propDep:Q,ref:ne,append:K}),delete q.static[ee]}function Ct(U,q,ee,Se,pe){var de=lt();de.stats=de.link(pe),Object.keys(q.static).forEach(function(se){Pr(de,q,se)}),l1.forEach(function(se){Pr(de,U,se)});var ce=Hi(U,q,ee,Se,de);return ce.shader.program&&(ce.shader.program.attributes.sort(function(se,Q){return se.name<Q.name?-1:1}),ce.shader.program.uniforms.sort(function(se,Q){return se.name<Q.name?-1:1})),cn(de,ce),Tt(de,ce),ye(de,ce),r(de.compile(),{destroy:function(){ce.shader.program.destroy()}})}return{next:Pt,current:ot,procs:function(){var U=lt(),q=U.proc("poll"),ee=U.proc("refresh"),Se=U.block();q(Se),ee(Se);var pe=U.shared,de=pe.gl,ce=pe.next,se=pe.current;Se(se,".dirty=false;"),sn(U,q),sn(U,ee,null,!0);var Q;Ze&&(Q=U.link(Ze)),Z.oes_vertex_array_object&&ee(U.link(Z.oes_vertex_array_object),".bindVertexArrayOES(null);");var ne=ee.def(pe.attributes),K=ee.def(0),ve=U.cond(K,".buffer");ve.then(de,".enableVertexAttribArray(i);",de,".bindBuffer(",Ha,",",K,".buffer.buffer);",de,".vertexAttribPointer(i,",K,".size,",K,".type,",K,".normalized,",K,".stride,",K,".offset);").else(de,".disableVertexAttribArray(i);",de,".vertexAttrib4f(i,",K,".x,",K,".y,",K,".z,",K,".w);",K,".buffer=null;");var Oe=U.link(Ee.maxAttributes,{stable:!0});return ee("for(var i=0;i<",Oe,";++i){",K,"=",ne,"[i];",ve,"}"),Ze&&ee("for(var i=0;i<",Oe,";++i){",Q,".vertexAttribDivisorANGLE(i,",ne,"[i].divisor);","}"),ee(U.shared.vao,".currentVAO=null;",U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"),Object.keys(Re).forEach(function(Be){var Lt=Re[Be],Mt=Se.def(ce,".",Be),gt=U.block();gt("if(",Mt,"){",de,".enable(",Lt,")}else{",de,".disable(",Lt,")}",se,".",Be,"=",Mt,";"),ee(gt),q("if(",Mt,"!==",se,".",Be,"){",gt,"}")}),Object.keys(mt).forEach(function(Be){var Lt=mt[Be],Mt=ot[Be],gt,Ft,Et=U.block();if(Et(de,".",Lt,"("),ui(Mt)){var Dt=Mt.length;gt=U.global.def(ce,".",Be),Ft=U.global.def(se,".",Be),Et(ge(Dt,function(wt){return gt+"["+wt+"]"}),");",ge(Dt,function(wt){return Ft+"["+wt+"]="+gt+"["+wt+"];"}).join("")),q("if(",ge(Dt,function(wt){return gt+"["+wt+"]!=="+Ft+"["+wt+"]"}).join("||"),"){",Et,"}")}else gt=Se.def(ce,".",Be),Ft=Se.def(se,".",Be),Et(gt,");",se,".",Be,"=",gt,";"),q("if(",gt,"!==",Ft,"){",Et,"}");ee(Et)}),U.compile()}(),compile:Ct}}function xt(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var Ut=34918,or=34919,Rr=35007,pr=function(I,H){if(!H.ext_disjoint_timer_query)return null;var Z=[];function Ee(){return Z.pop()||H.ext_disjoint_timer_query.createQueryEXT()}function Me(Ve){Z.push(Ve)}var be=[];function _e(Ve){var Ze=Ee();H.ext_disjoint_timer_query.beginQueryEXT(Rr,Ze),be.push(Ze),it(be.length-1,be.length,Ve)}function Ye(){H.ext_disjoint_timer_query.endQueryEXT(Rr)}function Xe(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var et=[];function ft(){return et.pop()||new Xe}function Rt(Ve){et.push(Ve)}var St=[];function it(Ve,Ze,Ne){var pt=ft();pt.startQueryIndex=Ve,pt.endQueryIndex=Ze,pt.sum=0,pt.stats=Ne,St.push(pt)}var Ge=[],he=[];function Te(){var Ve,Ze,Ne=be.length;if(Ne!==0){he.length=Math.max(he.length,Ne+1),Ge.length=Math.max(Ge.length,Ne+1),Ge[0]=0,he[0]=0;var pt=0;for(Ve=0,Ze=0;Ze<be.length;++Ze){var ot=be[Ze];H.ext_disjoint_timer_query.getQueryObjectEXT(ot,or)?(pt+=H.ext_disjoint_timer_query.getQueryObjectEXT(ot,Ut),Me(ot)):be[Ve++]=ot,Ge[Ze+1]=pt,he[Ze+1]=Ve}for(be.length=Ve,Ve=0,Ze=0;Ze<St.length;++Ze){var Pt=St[Ze],$e=Pt.startQueryIndex,Re=Pt.endQueryIndex;Pt.sum+=Ge[Re]-Ge[$e];var mt=he[$e],Ae=he[Re];Ae===mt?(Pt.stats.gpuTime+=Pt.sum/1e6,Rt(Pt)):(Pt.startQueryIndex=mt,Pt.endQueryIndex=Ae,St[Ve++]=Pt)}St.length=Ve}}return{beginQuery:_e,endQuery:Ye,pushScopeStats:it,update:Te,getNumPendingQueries:function(){return be.length},clear:function(){Z.push.apply(Z,be);for(var Ve=0;Ve<Z.length;Ve++)H.ext_disjoint_timer_query.deleteQueryEXT(Z[Ve]);be.length=0,Z.length=0},restore:function(){be.length=0,Z.length=0}}},rt=16384,Ht=256,Xt=1024,ur=34962,Ar="webglcontextlost",zr="webglcontextrestored",Xr=1,vn=2,En=3;function on(I,H){for(var Z=0;Z<I.length;++Z)if(I[Z]===H)return Z;return-1}function In(I){var H=j(I);if(!H)return null;var Z=H.gl,Ee=Z.getContextAttributes();Z.isContextLost();var Me=te(Z,H);if(!Me)return null;var be=w(),_e=xt(),Ye=H.cachedCode||{},Xe=Me.extensions,et=pr(Z,Xe),ft=x(),Rt=Z.drawingBufferWidth,St=Z.drawingBufferHeight,it={tick:0,time:0,viewportWidth:Rt,viewportHeight:St,framebufferWidth:Rt,framebufferHeight:St,drawingBufferWidth:Rt,drawingBufferHeight:St,pixelRatio:H.pixelRatio},Ge={},he={elements:null,primitive:4,count:-1,offset:0,instances:-1},Te=Yl(Z,Xe),Ve=Np(Z,_e,H,pt),Ze=es(Z,Xe,Ve,_e),Ne=Qy(Z,Xe,Te,_e,Ve,Ze,he);function pt(Zt){return Ne.destroyBuffer(Zt)}var ot=bv(Z,be,_e,H),Pt=Hy(Z,Xe,Te,function(){mt.procs.poll()},it,_e,H),$e=pv(Z,Xe,Te,_e,H),Re=Tc(Z,Xe,Te,Pt,$e,_e),mt=Wt(Z,be,Xe,Te,Ve,Ze,Pt,Re,Ge,Ne,ot,he,it,et,Ye,H),Ae=wv(Z,Re,mt.procs.poll,it),ht=mt.next,Je=Z.canvas,It=[],tr=[],bt=[],Bt=[H.onDestroy],lt=null;function rr(){if(It.length===0){et&&et.update(),lt=null;return}lt=k.next(rr),sn();for(var Zt=It.length-1;Zt>=0;--Zt){var hr=It[Zt];hr&&hr(it,null,0)}Z.flush(),et&&et.update()}function lr(){!lt&&It.length>0&&(lt=k.next(rr))}function dr(){lt&&(k.cancel(rr),lt=null)}function un(Zt){Zt.preventDefault(),dr(),tr.forEach(function(hr){hr()})}function sr(Zt){Z.getError(),Me.restore(),ot.restore(),Ve.restore(),Pt.restore(),$e.restore(),Re.restore(),Ne.restore(),et&&et.restore(),mt.procs.refresh(),lr(),bt.forEach(function(hr){hr()})}Je&&(Je.addEventListener(Ar,un,!1),Je.addEventListener(zr,sr,!1));function Xn(){It.length=0,dr(),Je&&(Je.removeEventListener(Ar,un),Je.removeEventListener(zr,sr)),ot.clear(),Re.clear(),$e.clear(),Ne.clear(),Pt.clear(),Ze.clear(),Ve.clear(),et&&et.clear(),Bt.forEach(function(Zt){Zt()})}function Tr(Zt){function hr(pe){var de=r({},pe);delete de.uniforms,delete de.attributes,delete de.context,delete de.vao,"stencil"in de&&de.stencil.op&&(de.stencil.opBack=de.stencil.opFront=de.stencil.op,delete de.stencil.op);function ce(se){if(se in de){var Q=de[se];delete de[se],Object.keys(Q).forEach(function(ne){de[se+"."+ne]=Q[ne]})}}return ce("blend"),ce("depth"),ce("cull"),ce("stencil"),ce("polygonOffset"),ce("scissor"),ce("sample"),"vao"in pe&&(de.vao=pe.vao),de}function Or(pe,de){var ce={},se={};return Object.keys(pe).forEach(function(Q){var ne=pe[Q];if(E.isDynamic(ne)){se[Q]=E.unbox(ne,Q);return}else if(de&&Array.isArray(ne)){for(var K=0;K<ne.length;++K)if(E.isDynamic(ne[K])){se[Q]=E.unbox(ne,Q);return}}ce[Q]=ne}),{dynamic:se,static:ce}}var cn=Or(Zt.context||{},!0),Y=Or(Zt.uniforms||{},!0),xe=Or(Zt.attributes||{},!1),ye=Or(hr(Zt),!1),Tt={gpuTime:0,cpuTime:0,count:0},nr=mt.compile(ye,xe,Y,cn,Tt),Pr=nr.draw,Ct=nr.batch,U=nr.scope,q=[];function ee(pe){for(;q.length<pe;)q.push(null);return q}function Se(pe,de){var ce;if(typeof pe=="function")return U.call(this,null,pe,0);if(typeof de=="function")if(typeof pe=="number")for(ce=0;ce<pe;++ce)U.call(this,null,de,ce);else if(Array.isArray(pe))for(ce=0;ce<pe.length;++ce)U.call(this,pe[ce],de,ce);else return U.call(this,pe,de,0);else if(typeof pe=="number"){if(pe>0)return Ct.call(this,ee(pe|0),pe|0)}else if(Array.isArray(pe)){if(pe.length)return Ct.call(this,pe,pe.length)}else return Pr.call(this,pe)}return r(Se,{stats:Tt,destroy:function(){nr.destroy()}})}var An=Re.setFBO=Tr({framebuffer:E.define.call(null,Xr,"framebuffer")});function Kn(Zt,hr){var Or=0;mt.procs.poll();var cn=hr.color;cn&&(Z.clearColor(+cn[0]||0,+cn[1]||0,+cn[2]||0,+cn[3]||0),Or|=rt),"depth"in hr&&(Z.clearDepth(+hr.depth),Or|=Ht),"stencil"in hr&&(Z.clearStencil(hr.stencil|0),Or|=Xt),Z.clear(Or)}function Fn(Zt){if("framebuffer"in Zt)if(Zt.framebuffer&&Zt.framebuffer_reglType==="framebufferCube")for(var hr=0;hr<6;++hr)An(r({framebuffer:Zt.framebuffer.faces[hr]},Zt),Kn);else An(Zt,Kn);else Kn(null,Zt)}function Hi(Zt){It.push(Zt);function hr(){var Or=on(It,Zt);function cn(){var Y=on(It,cn);It[Y]=It[It.length-1],It.length-=1,It.length<=0&&dr()}It[Or]=cn}return lr(),{cancel:hr}}function ln(){var Zt=ht.viewport,hr=ht.scissor_box;Zt[0]=Zt[1]=hr[0]=hr[1]=0,it.viewportWidth=it.framebufferWidth=it.drawingBufferWidth=Zt[2]=hr[2]=Z.drawingBufferWidth,it.viewportHeight=it.framebufferHeight=it.drawingBufferHeight=Zt[3]=hr[3]=Z.drawingBufferHeight}function sn(){it.tick+=1,it.time=di(),ln(),mt.procs.poll()}function Kt(){Pt.refresh(),ln(),mt.procs.refresh(),et&&et.update()}function di(){return(x()-ft)/1e3}Kt();function _r(Zt,hr){var Or;switch(Zt){case"frame":return Hi(hr);case"lost":Or=tr;break;case"restore":Or=bt;break;case"destroy":Or=Bt;break}return Or.push(hr),{cancel:function(){for(var cn=0;cn<Or.length;++cn)if(Or[cn]===hr){Or[cn]=Or[Or.length-1],Or.pop();return}}}}function fn(){return Ye}function Un(Zt){Object.entries(Zt).forEach(function(hr){Ye[hr[0]]=hr[1]})}var jn=r(Tr,{clear:Fn,prop:E.define.bind(null,Xr),context:E.define.bind(null,vn),this:E.define.bind(null,En),draw:Tr({}),buffer:function(Zt){return Ve.create(Zt,ur,!1,!1)},elements:function(Zt){return Ze.create(Zt,!1)},texture:Pt.create2D,cube:Pt.createCube,renderbuffer:$e.create,framebuffer:Re.create,framebufferCube:Re.createCube,vao:Ne.createVAO,attributes:Ee,frame:Hi,on:_r,limits:Te,hasExtension:function(Zt){return Te.extensions.indexOf(Zt.toLowerCase())>=0},read:Ae,destroy:Xn,_gl:Z,_refresh:Kt,poll:function(){sn(),et&&et.update()},now:di,stats:_e,getCachedCode:fn,preloadCachedCode:Un});return H.onDone(null,jn),jn}return In})})(Vee);var Yee=_u,Xee=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},Ok(t)?t={container:t}:Kee(t)?t={container:t}:Qee(t)?t={gl:t}:t=Yee(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=Jt.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}Ok(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=kk(),t.container.appendChild(t.canvas),Ck(t))}else if(!t.canvas)if(typeof document<"u")t.container=document.body||document.documentElement,t.canvas=kk(),t.container.appendChild(t.canvas),Ck(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch{}return t.gl}),t.gl};function Ck(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*Jt.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*Jt.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function Ok(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function Kee(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function Qee(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function kk(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}var Zee=pN,Jee=[32,126],ete=tte;function tte(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||Jee;if(n&&typeof n!="string"&&(n=Zee(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],l=a[0],s=0;l<=a[1];l++)o[s++]=String.fromCharCode(l);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var f=r.getContext("2d");f.fillStyle="#000",f.fillRect(0,0,r.width,r.height),f.font=n,f.textAlign="center",f.textBaseline="middle",f.fillStyle="#fff";for(var d=i[0]/2,g=i[1]/2,l=0;l<a.length;l++)f.fillText(a[l],d,g),(d+=i[0])>t[0]-i[0]/2&&(d=i[0]/2,g+=i[1]);return r}var vr={},Gr={},DE=32;Gr.INT_BITS=DE;Gr.INT_MAX=2147483647;Gr.INT_MIN=-1<<DE-1;Gr.sign=function(e){return(e>0)-(e<0)};Gr.abs=function(e){var t=e>>DE-1;return(e^t)-t};Gr.min=function(e,t){return t^(e^t)&-(e<t)};Gr.max=function(e,t){return e^(e^t)&-(e<t)};Gr.isPow2=function(e){return!(e&e-1)&&!!e};Gr.log2=function(e){var t,r;return t=(e>65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Gr.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Gr.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function vN(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Gr.countTrailingZeros=vN;Gr.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Gr.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Gr.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Gh=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<<i&255}})(Gh);Gr.reverse=function(e){return Gh[e&255]<<24|Gh[e>>>8&255]<<16|Gh[e>>>16&255]<<8|Gh[e>>>24&255]};Gr.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Gr.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Gr.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Gr.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Gr.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>vN(e)+1};function mN(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a<n;++a)i[a]=t;else for(a=0;a<n;++a)i[a]=mN(e,t,r+1);return i}function rte(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function nte(e,t){switch(typeof t>"u"&&(t=0),typeof e){case"number":if(e>0)return rte(e|0,t);break;case"object":if(typeof e.length=="number")return mN(e,t,0);break}return[]}var ite=nte,gN={},hy={};hy.byteLength=ute;hy.toByteArray=ste;hy.fromByteArray=hte;var da=[],Ci=[],ate=typeof Uint8Array<"u"?Uint8Array:Array,tw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var $s=0,ote=tw.length;$s<ote;++$s)da[$s]=tw[$s],Ci[tw.charCodeAt($s)]=$s;Ci["-".charCodeAt(0)]=62;Ci["_".charCodeAt(0)]=63;function yN(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function ute(e){var t=yN(e),r=t[0],n=t[1];return(r+n)*3/4-n}function lte(e,t,r){return(t+r)*3/4-r}function ste(e){var t,r=yN(e),n=r[0],i=r[1],a=new ate(lte(e,n,i)),o=0,l=i>0?n-4:n,s;for(s=0;s<l;s+=4)t=Ci[e.charCodeAt(s)]<<18|Ci[e.charCodeAt(s+1)]<<12|Ci[e.charCodeAt(s+2)]<<6|Ci[e.charCodeAt(s+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Ci[e.charCodeAt(s)]<<2|Ci[e.charCodeAt(s+1)]>>4,a[o++]=t&255),i===1&&(t=Ci[e.charCodeAt(s)]<<10|Ci[e.charCodeAt(s+1)]<<4|Ci[e.charCodeAt(s+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function fte(e){return da[e>>18&63]+da[e>>12&63]+da[e>>6&63]+da[e&63]}function cte(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(fte(n));return i.join("")}function hte(e){for(var t,r=e.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(cte(e,o,o+a>l?l:o+a));return n===1?(t=e[r-1],i.push(da[t>>2]+da[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(da[t>>10]+da[t>>4&63]+da[t<<2&63]+"=")),i.join("")}var $E={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */$E.read=function(e,t,r,n,i){var a,o,l=i*8-n-1,s=(1<<l)-1,f=s>>1,d=-7,g=r?i-1:0,v=r?-1:1,y=e[t+g];for(g+=v,a=y&(1<<-d)-1,y>>=-d,d+=l;d>0;a=a*256+e[t+g],g+=v,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=n;d>0;o=o*256+e[t+g],g+=v,d-=8);if(a===0)a=1-f;else{if(a===s)return o?NaN:(y?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-f}return(y?-1:1)*o*Math.pow(2,a-n)};$E.write=function(e,t,r,n,i,a){var o,l,s,f=a*8-i-1,d=(1<<f)-1,g=d>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:a-1,E=n?1:-1,k=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+g>=1?t+=v/s:t+=v*Math.pow(2,1-g),t*s>=2&&(o++,s/=2),o+g>=d?(l=0,o=d):o+g>=1?(l=(t*s-1)*Math.pow(2,i),o=o+g):(l=t*Math.pow(2,g-1)*Math.pow(2,i),o=0));i>=8;e[r+y]=l&255,y+=E,l/=256,i-=8);for(o=o<<i|l,f+=i;f>0;e[r+y]=o&255,y+=E,o/=256,f-=8);e[r+y-E]|=k*128};/*!
1096
+ * The buffer module from node.js, for the browser.
1097
+ *
1098
+ * @author Feross Aboukhadijeh <https://feross.org>
1099
+ * @license MIT
1100
+ */(function(e){var t=hy,r=$E;e.Buffer=o,e.SlowBuffer=x,e.INSPECT_MAX_BYTES=50;var n=2147483647;e.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var R=new Uint8Array(1);return R.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},R.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(R){if(R>n)throw new RangeError('The value "'+R+'" is invalid for option "size"');var A=new Uint8Array(R);return A.__proto__=o.prototype,A}function o(R,A,M){if(typeof R=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(R)}return l(R,A,M)}typeof Symbol<"u"&&Symbol.species!=null&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192;function l(R,A,M){if(typeof R=="string")return g(R,A);if(ArrayBuffer.isView(R))return v(R);if(R==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R);if(W(R,ArrayBuffer)||R&&W(R.buffer,ArrayBuffer))return y(R,A,M);if(typeof R=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var $=R.valueOf&&R.valueOf();if($!=null&&$!==R)return o.from($,A,M);var fe=E(R);if(fe)return fe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof R[Symbol.toPrimitive]=="function")return o.from(R[Symbol.toPrimitive]("string"),A,M);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R)}o.from=function(R,A,M){return l(R,A,M)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array;function s(R){if(typeof R!="number")throw new TypeError('"size" argument must be of type number');if(R<0)throw new RangeError('The value "'+R+'" is invalid for option "size"')}function f(R,A,M){return s(R),R<=0?a(R):A!==void 0?typeof M=="string"?a(R).fill(A,M):a(R).fill(A):a(R)}o.alloc=function(R,A,M){return f(R,A,M)};function d(R){return s(R),a(R<0?0:k(R)|0)}o.allocUnsafe=function(R){return d(R)},o.allocUnsafeSlow=function(R){return d(R)};function g(R,A){if((typeof A!="string"||A==="")&&(A="utf8"),!o.isEncoding(A))throw new TypeError("Unknown encoding: "+A);var M=w(R,A)|0,$=a(M),fe=$.write(R,A);return fe!==M&&($=$.slice(0,fe)),$}function v(R){for(var A=R.length<0?0:k(R.length)|0,M=a(A),$=0;$<A;$+=1)M[$]=R[$]&255;return M}function y(R,A,M){if(A<0||R.byteLength<A)throw new RangeError('"offset" is outside of buffer bounds');if(R.byteLength<A+(M||0))throw new RangeError('"length" is outside of buffer bounds');var $;return A===void 0&&M===void 0?$=new Uint8Array(R):M===void 0?$=new Uint8Array(R,A):$=new Uint8Array(R,A,M),$.__proto__=o.prototype,$}function E(R){if(o.isBuffer(R)){var A=k(R.length)|0,M=a(A);return M.length===0||R.copy(M,0,0,A),M}if(R.length!==void 0)return typeof R.length!="number"||ae(R.length)?a(0):v(R);if(R.type==="Buffer"&&Array.isArray(R.data))return v(R.data)}function k(R){if(R>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return R|0}function x(R){return+R!=R&&(R=0),o.alloc(+R)}o.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==o.prototype},o.compare=function(A,M){if(W(A,Uint8Array)&&(A=o.from(A,A.offset,A.byteLength)),W(M,Uint8Array)&&(M=o.from(M,M.offset,M.byteLength)),!o.isBuffer(A)||!o.isBuffer(M))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===M)return 0;for(var $=A.length,fe=M.length,Ie=0,ze=Math.min($,fe);Ie<ze;++Ie)if(A[Ie]!==M[Ie]){$=A[Ie],fe=M[Ie];break}return $<fe?-1:fe<$?1:0},o.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(A,M){if(!Array.isArray(A))throw new TypeError('"list" argument must be an Array of Buffers');if(A.length===0)return o.alloc(0);var $;if(M===void 0)for(M=0,$=0;$<A.length;++$)M+=A[$].length;var fe=o.allocUnsafe(M),Ie=0;for($=0;$<A.length;++$){var ze=A[$];if(W(ze,Uint8Array)&&(ze=o.from(ze)),!o.isBuffer(ze))throw new TypeError('"list" argument must be an Array of Buffers');ze.copy(fe,Ie),Ie+=ze.length}return fe};function w(R,A){if(o.isBuffer(R))return R.length;if(ArrayBuffer.isView(R)||W(R,ArrayBuffer))return R.byteLength;if(typeof R!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof R);var M=R.length,$=arguments.length>2&&arguments[2]===!0;if(!$&&M===0)return 0;for(var fe=!1;;)switch(A){case"ascii":case"latin1":case"binary":return M;case"utf8":case"utf-8":return Yt(R).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M*2;case"hex":return M>>>1;case"base64":return Gt(R).length;default:if(fe)return $?-1:Yt(R).length;A=(""+A).toLowerCase(),fe=!0}}o.byteLength=w;function _(R,A,M){var $=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((M===void 0||M>this.length)&&(M=this.length),M<=0)||(M>>>=0,A>>>=0,M<=A))return"";for(R||(R="utf8");;)switch(R){case"hex":return We(this,A,M);case"utf8":case"utf-8":return Fe(this,A,M);case"ascii":return nt(this,A,M);case"latin1":case"binary":return De(this,A,M);case"base64":return ke(this,A,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _t(this,A,M);default:if($)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),$=!0}}o.prototype._isBuffer=!0;function C(R,A,M){var $=R[A];R[A]=R[M],R[M]=$}o.prototype.swap16=function(){var A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var M=0;M<A;M+=2)C(this,M,M+1);return this},o.prototype.swap32=function(){var A=this.length;if(A%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var M=0;M<A;M+=4)C(this,M,M+3),C(this,M+1,M+2);return this},o.prototype.swap64=function(){var A=this.length;if(A%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var M=0;M<A;M+=8)C(this,M,M+7),C(this,M+1,M+6),C(this,M+2,M+5),C(this,M+3,M+4);return this},o.prototype.toString=function(){var A=this.length;return A===0?"":arguments.length===0?Fe(this,0,A):_.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(A){if(!o.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A?!0:o.compare(this,A)===0},o.prototype.inspect=function(){var A="",M=e.INSPECT_MAX_BYTES;return A=this.toString("hex",0,M).replace(/(.{2})/g,"$1 ").trim(),this.length>M&&(A+=" ... "),"<Buffer "+A+">"},o.prototype.compare=function(A,M,$,fe,Ie){if(W(A,Uint8Array)&&(A=o.from(A,A.offset,A.byteLength)),!o.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(M===void 0&&(M=0),$===void 0&&($=A?A.length:0),fe===void 0&&(fe=0),Ie===void 0&&(Ie=this.length),M<0||$>A.length||fe<0||Ie>this.length)throw new RangeError("out of range index");if(fe>=Ie&&M>=$)return 0;if(fe>=Ie)return-1;if(M>=$)return 1;if(M>>>=0,$>>>=0,fe>>>=0,Ie>>>=0,this===A)return 0;for(var ze=Ie-fe,Qt=$-M,cr=Math.min(ze,Qt),ir=this.slice(fe,Ie),Yr=A.slice(M,$),Mr=0;Mr<cr;++Mr)if(ir[Mr]!==Yr[Mr]){ze=ir[Mr],Qt=Yr[Mr];break}return ze<Qt?-1:Qt<ze?1:0};function T(R,A,M,$,fe){if(R.length===0)return-1;if(typeof M=="string"?($=M,M=0):M>2147483647?M=2147483647:M<-2147483648&&(M=-2147483648),M=+M,ae(M)&&(M=fe?0:R.length-1),M<0&&(M=R.length+M),M>=R.length){if(fe)return-1;M=R.length-1}else if(M<0)if(fe)M=0;else return-1;if(typeof A=="string"&&(A=o.from(A,$)),o.isBuffer(A))return A.length===0?-1:F(R,A,M,$,fe);if(typeof A=="number")return A=A&255,typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(R,A,M):Uint8Array.prototype.lastIndexOf.call(R,A,M):F(R,[A],M,$,fe);throw new TypeError("val must be string, number or Buffer")}function F(R,A,M,$,fe){var Ie=1,ze=R.length,Qt=A.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(R.length<2||A.length<2)return-1;Ie=2,ze/=2,Qt/=2,M/=2}function cr(Eu,Ta){return Ie===1?Eu[Ta]:Eu.readUInt16BE(Ta*Ie)}var ir;if(fe){var Yr=-1;for(ir=M;ir<ze;ir++)if(cr(R,ir)===cr(A,Yr===-1?0:ir-Yr)){if(Yr===-1&&(Yr=ir),ir-Yr+1===Qt)return Yr*Ie}else Yr!==-1&&(ir-=ir-Yr),Yr=-1}else for(M+Qt>ze&&(M=ze-Qt),ir=M;ir>=0;ir--){for(var Mr=!0,ra=0;ra<Qt;ra++)if(cr(R,ir+ra)!==cr(A,ra)){Mr=!1;break}if(Mr)return ir}return-1}o.prototype.includes=function(A,M,$){return this.indexOf(A,M,$)!==-1},o.prototype.indexOf=function(A,M,$){return T(this,A,M,$,!0)},o.prototype.lastIndexOf=function(A,M,$){return T(this,A,M,$,!1)};function L(R,A,M,$){M=Number(M)||0;var fe=R.length-M;$?($=Number($),$>fe&&($=fe)):$=fe;var Ie=A.length;$>Ie/2&&($=Ie/2);for(var ze=0;ze<$;++ze){var Qt=parseInt(A.substr(ze*2,2),16);if(ae(Qt))return ze;R[M+ze]=Qt}return ze}function V(R,A,M,$){return Ce(Yt(A,R.length-M),R,M,$)}function j(R,A,M,$){return Ce(Qe(A),R,M,$)}function te(R,A,M,$){return j(R,A,M,$)}function ge(R,A,M,$){return Ce(Gt(A),R,M,$)}function me(R,A,M,$){return Ce(At(A,R.length-M),R,M,$)}o.prototype.write=function(A,M,$,fe){if(M===void 0)fe="utf8",$=this.length,M=0;else if($===void 0&&typeof M=="string")fe=M,$=this.length,M=0;else if(isFinite(M))M=M>>>0,isFinite($)?($=$>>>0,fe===void 0&&(fe="utf8")):(fe=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ie=this.length-M;if(($===void 0||$>Ie)&&($=Ie),A.length>0&&($<0||M<0)||M>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var ze=!1;;)switch(fe){case"hex":return L(this,A,M,$);case"utf8":case"utf-8":return V(this,A,M,$);case"ascii":return j(this,A,M,$);case"latin1":case"binary":return te(this,A,M,$);case"base64":return ge(this,A,M,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,A,M,$);default:if(ze)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),ze=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ke(R,A,M){return A===0&&M===R.length?t.fromByteArray(R):t.fromByteArray(R.slice(A,M))}function Fe(R,A,M){M=Math.min(R.length,M);for(var $=[],fe=A;fe<M;){var Ie=R[fe],ze=null,Qt=Ie>239?4:Ie>223?3:Ie>191?2:1;if(fe+Qt<=M){var cr,ir,Yr,Mr;switch(Qt){case 1:Ie<128&&(ze=Ie);break;case 2:cr=R[fe+1],(cr&192)===128&&(Mr=(Ie&31)<<6|cr&63,Mr>127&&(ze=Mr));break;case 3:cr=R[fe+1],ir=R[fe+2],(cr&192)===128&&(ir&192)===128&&(Mr=(Ie&15)<<12|(cr&63)<<6|ir&63,Mr>2047&&(Mr<55296||Mr>57343)&&(ze=Mr));break;case 4:cr=R[fe+1],ir=R[fe+2],Yr=R[fe+3],(cr&192)===128&&(ir&192)===128&&(Yr&192)===128&&(Mr=(Ie&15)<<18|(cr&63)<<12|(ir&63)<<6|Yr&63,Mr>65535&&Mr<1114112&&(ze=Mr))}}ze===null?(ze=65533,Qt=1):ze>65535&&(ze-=65536,$.push(ze>>>10&1023|55296),ze=56320|ze&1023),$.push(ze),fe+=Qt}return ut($)}var Le=4096;function ut(R){var A=R.length;if(A<=Le)return String.fromCharCode.apply(String,R);for(var M="",$=0;$<A;)M+=String.fromCharCode.apply(String,R.slice($,$+=Le));return M}function nt(R,A,M){var $="";M=Math.min(R.length,M);for(var fe=A;fe<M;++fe)$+=String.fromCharCode(R[fe]&127);return $}function De(R,A,M){var $="";M=Math.min(R.length,M);for(var fe=A;fe<M;++fe)$+=String.fromCharCode(R[fe]);return $}function We(R,A,M){var $=R.length;(!A||A<0)&&(A=0),(!M||M<0||M>$)&&(M=$);for(var fe="",Ie=A;Ie<M;++Ie)fe+=qt(R[Ie]);return fe}function _t(R,A,M){for(var $=R.slice(A,M),fe="",Ie=0;Ie<$.length;Ie+=2)fe+=String.fromCharCode($[Ie]+$[Ie+1]*256);return fe}o.prototype.slice=function(A,M){var $=this.length;A=~~A,M=M===void 0?$:~~M,A<0?(A+=$,A<0&&(A=0)):A>$&&(A=$),M<0?(M+=$,M<0&&(M=0)):M>$&&(M=$),M<A&&(M=A);var fe=this.subarray(A,M);return fe.__proto__=o.prototype,fe};function He(R,A,M){if(R%1!==0||R<0)throw new RangeError("offset is not uint");if(R+A>M)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(A,M,$){A=A>>>0,M=M>>>0,$||He(A,M,this.length);for(var fe=this[A],Ie=1,ze=0;++ze<M&&(Ie*=256);)fe+=this[A+ze]*Ie;return fe},o.prototype.readUIntBE=function(A,M,$){A=A>>>0,M=M>>>0,$||He(A,M,this.length);for(var fe=this[A+--M],Ie=1;M>0&&(Ie*=256);)fe+=this[A+--M]*Ie;return fe},o.prototype.readUInt8=function(A,M){return A=A>>>0,M||He(A,1,this.length),this[A]},o.prototype.readUInt16LE=function(A,M){return A=A>>>0,M||He(A,2,this.length),this[A]|this[A+1]<<8},o.prototype.readUInt16BE=function(A,M){return A=A>>>0,M||He(A,2,this.length),this[A]<<8|this[A+1]},o.prototype.readUInt32LE=function(A,M){return A=A>>>0,M||He(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},o.prototype.readUInt32BE=function(A,M){return A=A>>>0,M||He(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},o.prototype.readIntLE=function(A,M,$){A=A>>>0,M=M>>>0,$||He(A,M,this.length);for(var fe=this[A],Ie=1,ze=0;++ze<M&&(Ie*=256);)fe+=this[A+ze]*Ie;return Ie*=128,fe>=Ie&&(fe-=Math.pow(2,8*M)),fe},o.prototype.readIntBE=function(A,M,$){A=A>>>0,M=M>>>0,$||He(A,M,this.length);for(var fe=M,Ie=1,ze=this[A+--fe];fe>0&&(Ie*=256);)ze+=this[A+--fe]*Ie;return Ie*=128,ze>=Ie&&(ze-=Math.pow(2,8*M)),ze},o.prototype.readInt8=function(A,M){return A=A>>>0,M||He(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},o.prototype.readInt16LE=function(A,M){A=A>>>0,M||He(A,2,this.length);var $=this[A]|this[A+1]<<8;return $&32768?$|4294901760:$},o.prototype.readInt16BE=function(A,M){A=A>>>0,M||He(A,2,this.length);var $=this[A+1]|this[A]<<8;return $&32768?$|4294901760:$},o.prototype.readInt32LE=function(A,M){return A=A>>>0,M||He(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},o.prototype.readInt32BE=function(A,M){return A=A>>>0,M||He(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},o.prototype.readFloatLE=function(A,M){return A=A>>>0,M||He(A,4,this.length),r.read(this,A,!0,23,4)},o.prototype.readFloatBE=function(A,M){return A=A>>>0,M||He(A,4,this.length),r.read(this,A,!1,23,4)},o.prototype.readDoubleLE=function(A,M){return A=A>>>0,M||He(A,8,this.length),r.read(this,A,!0,52,8)},o.prototype.readDoubleBE=function(A,M){return A=A>>>0,M||He(A,8,this.length),r.read(this,A,!1,52,8)};function we(R,A,M,$,fe,Ie){if(!o.isBuffer(R))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>fe||A<Ie)throw new RangeError('"value" argument is out of bounds');if(M+$>R.length)throw new RangeError("Index out of range")}o.prototype.writeUIntLE=function(A,M,$,fe){if(A=+A,M=M>>>0,$=$>>>0,!fe){var Ie=Math.pow(2,8*$)-1;we(this,A,M,$,Ie,0)}var ze=1,Qt=0;for(this[M]=A&255;++Qt<$&&(ze*=256);)this[M+Qt]=A/ze&255;return M+$},o.prototype.writeUIntBE=function(A,M,$,fe){if(A=+A,M=M>>>0,$=$>>>0,!fe){var Ie=Math.pow(2,8*$)-1;we(this,A,M,$,Ie,0)}var ze=$-1,Qt=1;for(this[M+ze]=A&255;--ze>=0&&(Qt*=256);)this[M+ze]=A/Qt&255;return M+$},o.prototype.writeUInt8=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,1,255,0),this[M]=A&255,M+1},o.prototype.writeUInt16LE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,2,65535,0),this[M]=A&255,this[M+1]=A>>>8,M+2},o.prototype.writeUInt16BE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,2,65535,0),this[M]=A>>>8,this[M+1]=A&255,M+2},o.prototype.writeUInt32LE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,4,4294967295,0),this[M+3]=A>>>24,this[M+2]=A>>>16,this[M+1]=A>>>8,this[M]=A&255,M+4},o.prototype.writeUInt32BE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,4,4294967295,0),this[M]=A>>>24,this[M+1]=A>>>16,this[M+2]=A>>>8,this[M+3]=A&255,M+4},o.prototype.writeIntLE=function(A,M,$,fe){if(A=+A,M=M>>>0,!fe){var Ie=Math.pow(2,8*$-1);we(this,A,M,$,Ie-1,-Ie)}var ze=0,Qt=1,cr=0;for(this[M]=A&255;++ze<$&&(Qt*=256);)A<0&&cr===0&&this[M+ze-1]!==0&&(cr=1),this[M+ze]=(A/Qt>>0)-cr&255;return M+$},o.prototype.writeIntBE=function(A,M,$,fe){if(A=+A,M=M>>>0,!fe){var Ie=Math.pow(2,8*$-1);we(this,A,M,$,Ie-1,-Ie)}var ze=$-1,Qt=1,cr=0;for(this[M+ze]=A&255;--ze>=0&&(Qt*=256);)A<0&&cr===0&&this[M+ze+1]!==0&&(cr=1),this[M+ze]=(A/Qt>>0)-cr&255;return M+$},o.prototype.writeInt8=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,1,127,-128),A<0&&(A=255+A+1),this[M]=A&255,M+1},o.prototype.writeInt16LE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,2,32767,-32768),this[M]=A&255,this[M+1]=A>>>8,M+2},o.prototype.writeInt16BE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,2,32767,-32768),this[M]=A>>>8,this[M+1]=A&255,M+2},o.prototype.writeInt32LE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,4,2147483647,-2147483648),this[M]=A&255,this[M+1]=A>>>8,this[M+2]=A>>>16,this[M+3]=A>>>24,M+4},o.prototype.writeInt32BE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[M]=A>>>24,this[M+1]=A>>>16,this[M+2]=A>>>8,this[M+3]=A&255,M+4};function qe(R,A,M,$,fe,Ie){if(M+$>R.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("Index out of range")}function st(R,A,M,$,fe){return A=+A,M=M>>>0,fe||qe(R,A,M,4),r.write(R,A,M,$,23,4),M+4}o.prototype.writeFloatLE=function(A,M,$){return st(this,A,M,!0,$)},o.prototype.writeFloatBE=function(A,M,$){return st(this,A,M,!1,$)};function Ke(R,A,M,$,fe){return A=+A,M=M>>>0,fe||qe(R,A,M,8),r.write(R,A,M,$,52,8),M+8}o.prototype.writeDoubleLE=function(A,M,$){return Ke(this,A,M,!0,$)},o.prototype.writeDoubleBE=function(A,M,$){return Ke(this,A,M,!1,$)},o.prototype.copy=function(A,M,$,fe){if(!o.isBuffer(A))throw new TypeError("argument should be a Buffer");if($||($=0),!fe&&fe!==0&&(fe=this.length),M>=A.length&&(M=A.length),M||(M=0),fe>0&&fe<$&&(fe=$),fe===$||A.length===0||this.length===0)return 0;if(M<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),A.length-M<fe-$&&(fe=A.length-M+$);var Ie=fe-$;if(this===A&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(M,$,fe);else if(this===A&&$<M&&M<fe)for(var ze=Ie-1;ze>=0;--ze)A[ze+M]=this[ze+$];else Uint8Array.prototype.set.call(A,this.subarray($,fe),M);return Ie},o.prototype.fill=function(A,M,$,fe){if(typeof A=="string"){if(typeof M=="string"?(fe=M,M=0,$=this.length):typeof $=="string"&&(fe=$,$=this.length),fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!o.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);if(A.length===1){var Ie=A.charCodeAt(0);(fe==="utf8"&&Ie<128||fe==="latin1")&&(A=Ie)}}else typeof A=="number"&&(A=A&255);if(M<0||this.length<M||this.length<$)throw new RangeError("Out of range index");if($<=M)return this;M=M>>>0,$=$===void 0?this.length:$>>>0,A||(A=0);var ze;if(typeof A=="number")for(ze=M;ze<$;++ze)this[ze]=A;else{var Qt=o.isBuffer(A)?A:o.from(A,fe),cr=Qt.length;if(cr===0)throw new TypeError('The value "'+A+'" is invalid for argument "value"');for(ze=0;ze<$-M;++ze)this[ze+M]=Qt[ze%cr]}return this};var ct=/[^+/0-9A-Za-z-_]/g;function yt(R){if(R=R.split("=")[0],R=R.trim().replace(ct,""),R.length<2)return"";for(;R.length%4!==0;)R=R+"=";return R}function qt(R){return R<16?"0"+R.toString(16):R.toString(16)}function Yt(R,A){A=A||1/0;for(var M,$=R.length,fe=null,Ie=[],ze=0;ze<$;++ze){if(M=R.charCodeAt(ze),M>55295&&M<57344){if(!fe){if(M>56319){(A-=3)>-1&&Ie.push(239,191,189);continue}else if(ze+1===$){(A-=3)>-1&&Ie.push(239,191,189);continue}fe=M;continue}if(M<56320){(A-=3)>-1&&Ie.push(239,191,189),fe=M;continue}M=(fe-55296<<10|M-56320)+65536}else fe&&(A-=3)>-1&&Ie.push(239,191,189);if(fe=null,M<128){if((A-=1)<0)break;Ie.push(M)}else if(M<2048){if((A-=2)<0)break;Ie.push(M>>6|192,M&63|128)}else if(M<65536){if((A-=3)<0)break;Ie.push(M>>12|224,M>>6&63|128,M&63|128)}else if(M<1114112){if((A-=4)<0)break;Ie.push(M>>18|240,M>>12&63|128,M>>6&63|128,M&63|128)}else throw new Error("Invalid code point")}return Ie}function Qe(R){for(var A=[],M=0;M<R.length;++M)A.push(R.charCodeAt(M)&255);return A}function At(R,A){for(var M,$,fe,Ie=[],ze=0;ze<R.length&&!((A-=2)<0);++ze)M=R.charCodeAt(ze),$=M>>8,fe=M%256,Ie.push(fe),Ie.push($);return Ie}function Gt(R){return t.toByteArray(yt(R))}function Ce(R,A,M,$){for(var fe=0;fe<$&&!(fe+M>=A.length||fe>=R.length);++fe)A[fe+M]=R[fe];return fe}function W(R,A){return R instanceof A||R!=null&&R.constructor!=null&&R.constructor.name!=null&&R.constructor.name===A.name}function ae(R){return R!==R}})(gN);var pu=Gr,Cn=ite,bN=gN.Buffer;Jt.__TYPEDARRAY_POOL||(Jt.__TYPEDARRAY_POOL={UINT8:Cn([32,0]),UINT16:Cn([32,0]),UINT32:Cn([32,0]),BIGUINT64:Cn([32,0]),INT8:Cn([32,0]),INT16:Cn([32,0]),INT32:Cn([32,0]),BIGINT64:Cn([32,0]),FLOAT:Cn([32,0]),DOUBLE:Cn([32,0]),DATA:Cn([32,0]),UINT8C:Cn([32,0]),BUFFER:Cn([32,0])});var dte=typeof Uint8ClampedArray<"u",pte=typeof BigUint64Array<"u",vte=typeof BigInt64Array<"u",Kr=Jt.__TYPEDARRAY_POOL;Kr.UINT8C||(Kr.UINT8C=Cn([32,0]));Kr.BIGUINT64||(Kr.BIGUINT64=Cn([32,0]));Kr.BIGINT64||(Kr.BIGINT64=Cn([32,0]));Kr.BUFFER||(Kr.BUFFER=Cn([32,0]));var dy=Kr.DATA,py=Kr.BUFFER;vr.free=function(t){if(bN.isBuffer(t))py[pu.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=pu.log2(r)|0;dy[n].push(t)}};function xN(e){if(e){var t=e.length||e.byteLength,r=pu.log2(t);dy[r].push(e)}}function mte(e){xN(e.buffer)}vr.freeUint8=vr.freeUint16=vr.freeUint32=vr.freeBigUint64=vr.freeInt8=vr.freeInt16=vr.freeInt32=vr.freeBigInt64=vr.freeFloat32=vr.freeFloat=vr.freeFloat64=vr.freeDouble=vr.freeUint8Clamped=vr.freeDataView=mte;vr.freeArrayBuffer=xN;vr.freeBuffer=function(t){py[pu.log2(t.length)].push(t)};vr.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return ii(t);switch(r){case"uint8":return BE(t);case"uint16":return wN(t);case"uint32":return _N(t);case"int8":return SN(t);case"int16":return EN(t);case"int32":return AN(t);case"float":case"float32":return TN(t);case"double":case"float64":return CN(t);case"uint8_clamped":return ON(t);case"bigint64":return MN(t);case"biguint64":return kN(t);case"buffer":return PN(t);case"data":case"dataview":return RN(t);default:return null}return null};function ii(t){var t=pu.nextPow2(t),r=pu.log2(t),n=dy[r];return n.length>0?n.pop():new ArrayBuffer(t)}vr.mallocArrayBuffer=ii;function BE(e){return new Uint8Array(ii(e),0,e)}vr.mallocUint8=BE;function wN(e){return new Uint16Array(ii(2*e),0,e)}vr.mallocUint16=wN;function _N(e){return new Uint32Array(ii(4*e),0,e)}vr.mallocUint32=_N;function SN(e){return new Int8Array(ii(e),0,e)}vr.mallocInt8=SN;function EN(e){return new Int16Array(ii(2*e),0,e)}vr.mallocInt16=EN;function AN(e){return new Int32Array(ii(4*e),0,e)}vr.mallocInt32=AN;function TN(e){return new Float32Array(ii(4*e),0,e)}vr.mallocFloat32=vr.mallocFloat=TN;function CN(e){return new Float64Array(ii(8*e),0,e)}vr.mallocFloat64=vr.mallocDouble=CN;function ON(e){return dte?new Uint8ClampedArray(ii(e),0,e):BE(e)}vr.mallocUint8Clamped=ON;function kN(e){return pte?new BigUint64Array(ii(8*e),0,e):null}vr.mallocBigUint64=kN;function MN(e){return vte?new BigInt64Array(ii(8*e),0,e):null}vr.mallocBigInt64=MN;function RN(e){return new DataView(ii(e),0,e)}vr.mallocDataView=RN;function PN(e){e=pu.nextPow2(e);var t=pu.log2(e),r=py[t];return r.length>0?r.pop():new bN(e)}vr.mallocBuffer=PN;vr.clearCache=function(){for(var t=0;t<32;++t)Kr.UINT8[t].length=0,Kr.UINT16[t].length=0,Kr.UINT32[t].length=0,Kr.INT8[t].length=0,Kr.INT16[t].length=0,Kr.INT32[t].length=0,Kr.FLOAT[t].length=0,Kr.DOUBLE[t].length=0,Kr.BIGUINT64[t].length=0,Kr.BIGINT64[t].length=0,Kr.UINT8C[t].length=0,dy[t].length=0,py[t].length=0};var IN=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r},gte=IN,yte=FN,Ph=96;function w2(e,t){var r=gte(getComputedStyle(e).getPropertyValue(t));return r[0]*FN(r[1],e)}function bte(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=w2(r,"font-size")/128;return t.removeChild(r),n}function FN(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return bte(e,t);case"em":return w2(t,"font-size");case"rem":return w2(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return Ph;case"cm":return Ph/2.54;case"mm":return Ph/25.4;case"pt":return Ph/72;case"pc":return Ph/6}return 1}var xte=vy,wte=vy.canvas=document.createElement("canvas"),M0=wte.getContext("2d"),NN=hg([32,126]);vy.createPairs=hg;vy.ascii=NN;function vy(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=hg(t):Array.isArray(t)?n=t:(t.o?n=hg(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=NN),M0.font=i+"px "+e;for(var o=0;o<n.length;o++){var l=n[o],s=M0.measureText(l[0]).width+M0.measureText(l[1]).width,f=M0.measureText(l).width;if(Math.abs(s-f)>i*a){var d=(f-s)/i;r[l]=d*1e3}}return r}function hg(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i<e[1];i++){var a=String.fromCharCode(i),o=n+a;t.push(o)}return t}var _te=jo;jo.canvas=document.createElement("canvas");jo.cache={};function jo(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,l=t.origin||"top";if(jo.cache[r]&&n<=jo.cache[r].em)return Mk(jo.cache[r],l);var s=t.canvas||jo.canvas,f=s.getContext("2d"),d={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},g=Math.ceil(n*1.5);s.height=g,s.width=g*.5,f.font=o;var v="H",y={top:0};f.clearRect(0,0,g,g),f.textBaseline="top",f.fillStyle="black",f.fillText(v,0,0);var E=fa(f.getImageData(0,0,g,g));f.clearRect(0,0,g,g),f.textBaseline="bottom",f.fillText(v,0,g);var k=fa(f.getImageData(0,0,g,g));y.lineHeight=y.bottom=g-k+E,f.clearRect(0,0,g,g),f.textBaseline="alphabetic",f.fillText(v,0,g);var x=fa(f.getImageData(0,0,g,g)),w=g-x-1+E;y.baseline=y.alphabetic=w,f.clearRect(0,0,g,g),f.textBaseline="middle",f.fillText(v,0,g*.5);var _=fa(f.getImageData(0,0,g,g));y.median=y.middle=g-_-1+E-g*.5,f.clearRect(0,0,g,g),f.textBaseline="hanging",f.fillText(v,0,g*.5);var C=fa(f.getImageData(0,0,g,g));y.hanging=g-C-1+E-g*.5,f.clearRect(0,0,g,g),f.textBaseline="ideographic",f.fillText(v,0,g);var T=fa(f.getImageData(0,0,g,g));if(y.ideographic=g-T-1+E,d.upper&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.upper,0,0),y.upper=fa(f.getImageData(0,0,g,g)),y.capHeight=y.baseline-y.upper),d.lower&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.lower,0,0),y.lower=fa(f.getImageData(0,0,g,g)),y.xHeight=y.baseline-y.lower),d.tittle&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.tittle,0,0),y.tittle=fa(f.getImageData(0,0,g,g))),d.ascent&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.ascent,0,0),y.ascent=fa(f.getImageData(0,0,g,g))),d.descent&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.descent,0,0),y.descent=Rk(f.getImageData(0,0,g,g))),d.overshoot){f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.overshoot,0,0);var F=Rk(f.getImageData(0,0,g,g));y.overshoot=F-w}for(var L in y)y[L]/=n;return y.em=n,jo.cache[r]=y,Mk(y,l)}function Mk(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function fa(e){for(var t=e.height,r=e.data,n=3;n<r.length;n+=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}function Rk(e){for(var t=e.height,r=e.data,n=r.length-1;n>0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}var Bs=qee,Ste=_u,Ete=x2,Ate=Xee,Tte=iN,rw=sy,Cte=ete,Lo=vr,Ote=ly,kte=HF,Mte=IN,Rte=yte,Pte=xte,Ite=Pl,Fte=_te,Nte=xp,Lte=Gr,Pk=Lte.nextPow2,Ik=new Tte,im=!1;if(document.body){var nw=document.body.appendChild(document.createElement("div"));nw.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(nw).fontStretch&&(im=!0),document.body.removeChild(nw)}var xr=function(t){Dte(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=Ate(t),this.shader=Ik.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||Ete({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),Ik.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(kte(t)?t:{})};xr.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:`
1101
+ precision highp float;
1102
+ attribute float width, charOffset, char;
1103
+ attribute vec2 position;
1104
+ uniform float fontSize, charStep, em, align, baseline;
1105
+ uniform vec4 viewport;
1106
+ uniform vec4 color;
1107
+ uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;
1108
+ varying vec2 charCoord, charId;
1109
+ varying float charWidth;
1110
+ varying vec4 fontColor;
1111
+ void main () {
1112
+ vec2 offset = floor(em * (vec2(align + charOffset, baseline)
1113
+ + vec2(positionOffset.x, -positionOffset.y)))
1114
+ / (viewport.zw * scale.xy);
1115
+
1116
+ vec2 position = (position + translate) * scale;
1117
+ position += offset * scale;
1118
+
1119
+ charCoord = position * viewport.zw + viewport.xy;
1120
+
1121
+ gl_Position = vec4(position * 2. - 1., 0, 1);
1122
+
1123
+ gl_PointSize = charStep;
1124
+
1125
+ charId.x = mod(char, atlasDim.x);
1126
+ charId.y = floor(char / atlasDim.x);
1127
+
1128
+ charWidth = width * em;
1129
+
1130
+ fontColor = color / 255.;
1131
+ }`,frag:`
1132
+ precision highp float;
1133
+ uniform float fontSize, charStep, opacity;
1134
+ uniform vec2 atlasSize;
1135
+ uniform vec4 viewport;
1136
+ uniform sampler2D atlas;
1137
+ varying vec4 fontColor;
1138
+ varying vec2 charCoord, charId;
1139
+ varying float charWidth;
1140
+
1141
+ float lightness(vec4 color) {
1142
+ return color.r * 0.299 + color.g * 0.587 + color.b * 0.114;
1143
+ }
1144
+
1145
+ void main () {
1146
+ vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;
1147
+ float halfCharStep = floor(charStep * .5 + .5);
1148
+
1149
+ // invert y and shift by 1px (FF expecially needs that)
1150
+ uv.y = charStep - uv.y;
1151
+
1152
+ // ignore points outside of character bounding box
1153
+ float halfCharWidth = ceil(charWidth * .5);
1154
+ if (floor(uv.x) > halfCharStep + halfCharWidth ||
1155
+ floor(uv.x) < halfCharStep - halfCharWidth) return;
1156
+
1157
+ uv += charId * charStep;
1158
+ uv = uv / atlasSize;
1159
+
1160
+ vec4 color = fontColor;
1161
+ vec4 mask = texture2D(atlas, uv);
1162
+
1163
+ float maskY = lightness(mask);
1164
+ // float colorY = lightness(color);
1165
+ color.a *= maskY;
1166
+ color.a *= opacity;
1167
+
1168
+ // color.a += .1;
1169
+
1170
+ // antialiasing, see yiq color space y-channel formula
1171
+ // color.rgb += (1. - color.rgb) * (1. - mask.rgb);
1172
+
1173
+ gl_FragColor = color;
1174
+ }`}),n={};return{regl:t,draw:r,atlas:n}};xr.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=Ste(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(Ke){return parseFloat(Ke)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=Ote(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=Nte(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=xr.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(Ke,ct){if(typeof Ke=="string")try{Ke=Bs.parse(Ke)}catch{Ke=Bs.parse(xr.baseFontSize+"px "+Ke)}else Ke=Bs.parse(Bs.stringify(Ke));var yt=Bs.stringify({size:xr.baseFontSize,family:Ke.family,stretch:im?Ke.stretch:void 0,variant:Ke.variant,weight:Ke.weight,style:Ke.style}),qt=Mte(Ke.size),Yt=Math.round(qt[0]*Rte(qt[1]));if(Yt!==r.fontSize[ct]&&(i=!0,r.fontSize[ct]=Yt),(!r.font[ct]||yt!=r.font[ct].baseString)&&(n=!0,r.font[ct]=xr.fonts[yt],!r.font[ct])){var Qe=Ke.family.join(", "),At=[Ke.style];Ke.style!=Ke.variant&&At.push(Ke.variant),Ke.variant!=Ke.weight&&At.push(Ke.weight),im&&Ke.weight!=Ke.stretch&&At.push(Ke.stretch),r.font[ct]={baseString:yt,family:Qe,weight:Ke.weight,stretch:Ke.stretch,style:Ke.style,variant:Ke.variant,width:{},kerning:{},metrics:Fte(Qe,{origin:"top",fontSize:xr.baseFontSize,fontStyle:At.join(" ")})},xr.fonts[yt]=r.font[ct]}}),(n||i)&&this.font.forEach(function(Ke,ct){var yt=Bs.stringify({size:r.fontSize[ct],family:Ke.family,stretch:im?Ke.stretch:void 0,variant:Ke.variant,weight:Ke.weight,style:Ke.style});if(r.fontAtlas[ct]=r.shader.atlas[yt],!r.fontAtlas[ct]){var qt=Ke.metrics;r.shader.atlas[yt]=r.fontAtlas[ct]={fontString:yt,step:Math.ceil(r.fontSize[ct]*qt.bottom*.5)*2,em:r.fontSize[ct],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o<a.length;o++)a[o]=t.text;t.text=a}var l;if(t.text!=null||n){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var s=1;s<t.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+t.text[s-1].length,this.count+=t.text[s].length,this.counts.push(t.text[s].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];l=[],this.font.forEach(function(Ke,ct){xr.atlasContext.font=Ke.baseString;for(var yt=r.fontAtlas[ct],qt=0;qt<r.text.length;qt++){var Yt=r.text.charAt(qt);if(yt.ids[Yt]==null&&(yt.ids[Yt]=yt.chars.length,yt.chars.push(Yt),l.push(Yt)),Ke.width[Yt]==null&&(Ke.width[Yt]=xr.atlasContext.measureText(Yt).width/xr.baseFontSize,r.kerning)){var Qe=[];for(var At in Ke.width)Qe.push(At+Yt,Yt+At);Ite(Ke.kerning,Pte(Ke.family,{pairs:Qe}))}}})}if(t.position)if(t.position.length>2){for(var f=!t.position[0].length,d=Lo.mallocFloat(this.count*2),g=0,v=0;g<this.counts.length;g++){var y=this.counts[g];if(f)for(var E=0;E<y;E++)d[v++]=t.position[g*2],d[v++]=t.position[g*2+1];else for(var k=0;k<y;k++)d[v++]=t.position[g][0],d[v++]=t.position[g][1]}this.position.call?this.position({type:"float",data:d}):this.position=this.regl.buffer({type:"float",data:d}),Lo.freeFloat(d)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var x=Lo.mallocUint8(this.count),w=Lo.mallocFloat(this.count*2);this.textWidth=[];for(var _=0,C=0;_<this.counts.length;_++){for(var T=this.counts[_],F=this.font[_]||this.font[0],L=this.fontAtlas[_]||this.fontAtlas[0],V=0;V<T;V++){var j=this.text.charAt(C),te=this.text.charAt(C-1);if(x[C]=L.ids[j],w[C*2]=F.width[j],V){var ge=w[C*2-2],me=w[C*2],ke=w[C*2-1],Fe=ke+ge*.5+me*.5;if(this.kerning){var Le=F.kerning[te+j];Le&&(Fe+=Le*.001)}w[C*2+1]=Fe}else w[C*2+1]=w[C*2]*.5;C++}this.textWidth.push(w.length?w[C*2-2]*.5+w[C*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:x,type:"uint8",usage:"stream"}),this.sizeBuffer({data:w,type:"float",usage:"stream"}),Lo.freeUint8(x),Lo.freeFloat(w),l.length&&this.font.forEach(function(Ke,ct){var yt=r.fontAtlas[ct],qt=yt.step,Yt=Math.floor(xr.maxAtlasSize/qt),Qe=Math.min(Yt,yt.chars.length),At=Math.ceil(yt.chars.length/Qe),Gt=Pk(Qe*qt),Ce=Pk(At*qt);yt.width=Gt,yt.height=Ce,yt.rows=At,yt.cols=Qe,yt.em&&yt.texture({data:Cte({canvas:xr.atlasCanvas,font:yt.fontString,chars:yt.chars,shape:[Gt,Ce],step:[qt,qt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(Ke,ct){var yt=Array.isArray(r.align)?r.align.length>1?r.align[ct]:r.align[0]:r.align;if(typeof yt=="number")return yt;switch(yt){case"right":case"end":return-Ke;case"center":case"centre":case"middle":return-Ke*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ke,ct){var yt=(r.font[ct]||r.font[0]).metrics,qt=0;return qt+=yt.bottom*.5,typeof Ke=="number"?qt+=Ke-yt.baseline:qt+=-yt[Ke],qt*=-1,qt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=rw(t.color,"uint8");else{var ut;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var nt=t.color.length;ut=Lo.mallocUint8(nt);for(var De=(t.color.subarray||t.color.slice).bind(t.color),We=0;We<nt;We+=4)ut.set(rw(De(We,We+4),"uint8"),We)}else{var _t=t.color.length;ut=Lo.mallocUint8(_t*4);for(var He=0;He<_t;He++)ut.set(rw(t.color[He]||0,"uint8"),He*4)}this.color=ut}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var we=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(we){var qe=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(qe);for(var st=0;st<this.batch.length;st++)this.batch[st]={count:this.counts.length>1?this.counts[st]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[st]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(st*4,st*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[st]:this.opacity,baseline:this.baselineOffset[st]!=null?this.baselineOffset[st]:this.baselineOffset[0],align:this.align?this.alignOffset[st]!=null?this.alignOffset[st]:this.alignOffset[0]:0,atlas:this.fontAtlas[st]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(st*2,st*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};xr.prototype.destroy=function(){};xr.prototype.kerning=!0;xr.prototype.position={constant:new Float32Array(2)};xr.prototype.translate=null;xr.prototype.scale=null;xr.prototype.font=null;xr.prototype.text="";xr.prototype.positionOffset=[0,0];xr.prototype.opacity=1;xr.prototype.color=new Uint8Array([0,0,0,255]);xr.prototype.alignOffset=[0,0];xr.maxAtlasSize=1024;xr.atlasCanvas=document.createElement("canvas");xr.atlasContext=xr.atlasCanvas.getContext("2d",{alpha:!1});xr.baseFontSize=64;xr.fonts={};function Dte(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var Sae=xr;function $te(e,t){return e.parent===t.parent?1:2}function Bte(e){return e.reduce(zte,0)/e.length}function zte(e,t){return e+t.x}function Ute(e){return 1+e.reduce(jte,0)}function jte(e,t){return Math.max(e,t.y)}function Gte(e){for(var t;t=e.children;)e=t[0];return e}function Wte(e){for(var t;t=e.children;)e=t[t.length-1];return e}function Hte(){var e=$te,t=1,r=1,n=!1;function i(a){var o,l=0;a.eachAfter(function(v){var y=v.children;y?(v.x=Bte(y),v.y=Ute(y)):(v.x=o?l+=e(v,o):0,v.y=0,o=v)});var s=Gte(a),f=Wte(a),d=s.x-e(s,f)/2,g=f.x+e(f,s)/2;return a.eachAfter(n?function(v){v.x=(v.x-a.x)*t,v.y=(a.y-v.y)*r}:function(v){v.x=(v.x-d)/(g-d)*t,v.y=(1-(a.y?v.y/a.y:1))*r})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(n=!1,t=+a[0],r=+a[1],i):n?null:[t,r]},i.nodeSize=function(a){return arguments.length?(n=!0,t=+a[0],r=+a[1],i):n?[t,r]:null},i}function qte(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function Vte(){return this.eachAfter(qte)}function Yte(e){var t=this,r,n=[t],i,a,o;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)n.push(i[a]);while(n.length);return this}function Xte(e){for(var t=this,r=[t],n,i;t=r.pop();)if(e(t),n=t.children,n)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this}function Kte(e){for(var t=this,r=[t],n=[],i,a,o;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function Qte(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}function Zte(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Jte(e){for(var t=this,r=ere(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function ere(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function tre(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function rre(){var e=[];return this.each(function(t){e.push(t)}),e}function nre(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function ire(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function zE(e,t){var r=new Nf(e),n=+e.value&&(r.value=e.value),i,a=[r],o,l,s,f;for(t==null&&(t=ore);i=a.pop();)if(n&&(i.value=+i.data.value),(l=t(i.data))&&(f=l.length))for(i.children=new Array(f),s=f-1;s>=0;--s)a.push(o=i.children[s]=new Nf(l[s])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(LN)}function are(){return zE(this).eachBefore(ure)}function ore(e){return e.children}function ure(e){e.data=e.data.data}function LN(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Nf(e){this.data=e,this.depth=this.height=0,this.parent=null}Nf.prototype=zE.prototype={constructor:Nf,count:Vte,each:Yte,eachAfter:Kte,eachBefore:Xte,sum:Qte,sort:Zte,path:Jte,ancestors:tre,descendants:rre,leaves:nre,links:ire,copy:are};var lre=Array.prototype.slice;function sre(e){for(var t=e.length,r,n;t;)n=Math.random()*t--|0,r=e[t],e[t]=e[n],e[n]=r;return e}function DN(e){for(var t=0,r=(e=sre(lre.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&$N(a,i)?++t:(a=cre(n=fre(n,i)),t=0);return a}function fre(e,t){var r,n;if(iw(t,e))return[t];for(r=0;r<e.length;++r)if(R0(t,e[r])&&iw(Wh(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(R0(Wh(e[r],e[n]),t)&&R0(Wh(e[r],t),e[n])&&R0(Wh(e[n],t),e[r])&&iw(BN(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function R0(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function $N(e,t){var r=e.r-t.r+1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function iw(e,t){for(var r=0;r<t.length;++r)if(!$N(e,t[r]))return!1;return!0}function cre(e){switch(e.length){case 1:return hre(e[0]);case 2:return Wh(e[0],e[1]);case 3:return BN(e[0],e[1],e[2])}}function hre(e){return{x:e.x,y:e.y,r:e.r}}function Wh(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,o=t.y,l=t.r,s=a-r,f=o-n,d=l-i,g=Math.sqrt(s*s+f*f);return{x:(r+a+s/g*d)/2,y:(n+o+f/g*d)/2,r:(g+i+l)/2}}function BN(e,t,r){var n=e.x,i=e.y,a=e.r,o=t.x,l=t.y,s=t.r,f=r.x,d=r.y,g=r.r,v=n-o,y=n-f,E=i-l,k=i-d,x=s-a,w=g-a,_=n*n+i*i-a*a,C=_-o*o-l*l+s*s,T=_-f*f-d*d+g*g,F=y*E-v*k,L=(E*T-k*C)/(F*2)-n,V=(k*x-E*w)/F,j=(y*C-v*T)/(F*2)-i,te=(v*w-y*x)/F,ge=V*V+te*te-1,me=2*(a+L*V+j*te),ke=L*L+j*j-a*a,Fe=-(ge?(me+Math.sqrt(me*me-4*ge*ke))/(2*ge):ke/me);return{x:n+L+V*Fe,y:i+j+te*Fe,r:Fe}}function Fk(e,t,r){var n=e.x-t.x,i,a,o=e.y-t.y,l,s,f=n*n+o*o;f?(a=t.r+r.r,a*=a,s=e.r+r.r,s*=s,a>s?(i=(f+s-a)/(2*f),l=Math.sqrt(Math.max(0,s/f-i*i)),r.x=e.x-i*n-l*o,r.y=e.y-i*o+l*n):(i=(f+a-s)/(2*f),l=Math.sqrt(Math.max(0,a/f-i*i)),r.x=t.x+i*n-l*o,r.y=t.y+i*o+l*n)):(r.x=t.x+r.r,r.y=t.y)}function Nk(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function Lk(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,a=(t.y*r.r+r.y*t.r)/n;return i*i+a*a}function P0(e){this._=e,this.next=null,this.previous=null}function zN(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,l,s,f,d,g;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(i>2))return t.r+r.r;Fk(r,t,n=e[2]),t=new P0(t),r=new P0(r),n=new P0(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<i;++l){Fk(t._,r._,n=e[l]),n=new P0(n),s=r.next,f=t.previous,d=r._.r,g=t._.r;do if(d<=g){if(Nk(s._,n._)){r=s,t.next=r,r.previous=t,--l;continue e}d+=s._.r,s=s.next}else{if(Nk(f._,n._)){t=f,t.next=r,r.previous=t,--l;continue e}g+=f._.r,f=f.previous}while(s!==f.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=Lk(t);(n=n.next)!==r;)(o=Lk(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=DN(t),l=0;l<i;++l)t=e[l],t.x-=n.x,t.y-=n.y;return n.r}function dre(e){return zN(e),e}function pre(e){return e==null?null:dg(e)}function dg(e){if(typeof e!="function")throw new Error;return e}function al(){return 0}function Ws(e){return function(){return e}}function vre(e){return Math.sqrt(e.value)}function mre(){var e=null,t=1,r=1,n=al;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(Dk(e)).eachAfter(aw(n,.5)).eachBefore($k(1)):a.eachBefore(Dk(vre)).eachAfter(aw(al,1)).eachAfter(aw(n,a.r/Math.min(t,r))).eachBefore($k(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=pre(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],r=+a[1],i):[t,r]},i.padding=function(a){return arguments.length?(n=typeof a=="function"?a:Ws(+a),i):n},i}function Dk(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function aw(e,t){return function(r){if(n=r.children){var n,i,a=n.length,o=e(r)*t||0,l;if(o)for(i=0;i<a;++i)n[i].r+=o;if(l=zN(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=l+o}}}function $k(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function UN(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function _p(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,f=e.value&&(n-t)/e.value;++l<s;)o=a[l],o.y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*f}function gre(){var e=1,t=1,r=0,n=!1;function i(o){var l=o.height+1;return o.x0=o.y0=r,o.x1=e,o.y1=t/l,o.eachBefore(a(t,l)),n&&o.eachBefore(UN),o}function a(o,l){return function(s){s.children&&_p(s,s.x0,o*(s.depth+1)/l,s.x1,o*(s.depth+2)/l);var f=s.x0,d=s.y0,g=s.x1-r,v=s.y1-r;g<f&&(f=g=(f+g)/2),v<d&&(d=v=(d+v)/2),s.x0=f,s.y0=d,s.x1=g,s.y1=v}}return i.round=function(o){return arguments.length?(n=!!o,i):n},i.size=function(o){return arguments.length?(e=+o[0],t=+o[1],i):[e,t]},i.padding=function(o){return arguments.length?(r=+o,i):r},i}var Bk="$",yre={depth:-1},zk={};function bre(e){return e.id}function xre(e){return e.parentId}function wre(){var e=bre,t=xre;function r(n){var i,a,o=n.length,l,s,f,d=new Array(o),g,v,y={};for(a=0;a<o;++a)i=n[a],f=d[a]=new Nf(i),(g=e(i,a,n))!=null&&(g+="")&&(v=Bk+(f.id=g),y[v]=v in y?zk:f);for(a=0;a<o;++a)if(f=d[a],g=t(n[a],a,n),g==null||!(g+="")){if(l)throw new Error("multiple roots");l=f}else{if(s=y[Bk+g],!s)throw new Error("missing: "+g);if(s===zk)throw new Error("ambiguous: "+g);s.children?s.children.push(f):s.children=[f],f.parent=s}if(!l)throw new Error("no root");if(l.parent=yre,l.eachBefore(function(E){E.depth=E.parent.depth+1,--o}).eachBefore(LN),l.parent=null,o>0)throw new Error("cycle");return l}return r.id=function(n){return arguments.length?(e=dg(n),r):e},r.parentId=function(n){return arguments.length?(t=dg(n),r):t},r}function _re(e,t){return e.parent===t.parent?1:2}function ow(e){var t=e.children;return t?t[0]:e.t}function uw(e){var t=e.children;return t?t[t.length-1]:e.t}function Sre(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function Ere(e){for(var t=0,r=0,n=e.children,i=n.length,a;--i>=0;)a=n[i],a.z+=t,a.m+=t,t+=a.s+(r+=a.c)}function Are(e,t,r){return e.a.parent===t.parent?e.a:r}function am(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}am.prototype=Object.create(Nf.prototype);function Tre(e){for(var t=new am(e,0),r,n=[t],i,a,o,l;r=n.pop();)if(a=r._.children)for(r.children=new Array(l=a.length),o=l-1;o>=0;--o)n.push(i=r.children[o]=new am(a[o],o)),i.parent=r;return(t.parent=new am(null,0)).children=[t],t}function Cre(){var e=_re,t=1,r=1,n=null;function i(f){var d=Tre(f);if(d.eachAfter(a),d.parent.m=-d.z,d.eachBefore(o),n)f.eachBefore(s);else{var g=f,v=f,y=f;f.eachBefore(function(_){_.x<g.x&&(g=_),_.x>v.x&&(v=_),_.depth>y.depth&&(y=_)});var E=g===v?1:e(g,v)/2,k=E-g.x,x=t/(v.x+E+k),w=r/(y.depth||1);f.eachBefore(function(_){_.x=(_.x+k)*x,_.y=_.depth*w})}return f}function a(f){var d=f.children,g=f.parent.children,v=f.i?g[f.i-1]:null;if(d){Ere(f);var y=(d[0].z+d[d.length-1].z)/2;v?(f.z=v.z+e(f._,v._),f.m=f.z-y):f.z=y}else v&&(f.z=v.z+e(f._,v._));f.parent.A=l(f,v,f.parent.A||g[0])}function o(f){f._.x=f.z+f.parent.m,f.m+=f.parent.m}function l(f,d,g){if(d){for(var v=f,y=f,E=d,k=v.parent.children[0],x=v.m,w=y.m,_=E.m,C=k.m,T;E=uw(E),v=ow(v),E&&v;)k=ow(k),y=uw(y),y.a=f,T=E.z+_-v.z-x+e(E._,v._),T>0&&(Sre(Are(E,f,g),f,T),x+=T,w+=T),_+=E.m,x+=v.m,C+=k.m,w+=y.m;E&&!uw(y)&&(y.t=E,y.m+=_-w),v&&!ow(k)&&(k.t=v,k.m+=x-C,g=f)}return g}function s(f){f.x*=t,f.y=f.depth*r}return i.separation=function(f){return arguments.length?(e=f,i):e},i.size=function(f){return arguments.length?(n=!1,t=+f[0],r=+f[1],i):n?null:[t,r]},i.nodeSize=function(f){return arguments.length?(n=!0,t=+f[0],r=+f[1],i):n?[t,r]:null},i}function my(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,f=e.value&&(i-r)/e.value;++l<s;)o=a[l],o.x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*f}var jN=(1+Math.sqrt(5))/2;function GN(e,t,r,n,i,a){for(var o=[],l=t.children,s,f,d=0,g=0,v=l.length,y,E,k=t.value,x,w,_,C,T,F,L;d<v;){y=i-r,E=a-n;do x=l[g++].value;while(!x&&g<v);for(w=_=x,F=Math.max(E/y,y/E)/(k*e),L=x*x*F,T=Math.max(_/L,L/w);g<v;++g){if(x+=f=l[g].value,f<w&&(w=f),f>_&&(_=f),L=x*x*F,C=Math.max(_/L,L/w),C>T){x-=f;break}T=C}o.push(s={value:x,dice:y<E,children:l.slice(d,g)}),s.dice?_p(s,r,n,i,k?n+=E*x/k:a):my(s,r,n,k?r+=y*x/k:i,a),k-=x,d=g}return o}const WN=function e(t){function r(n,i,a,o,l){GN(t,n,i,a,o,l)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(jN);function Ore(){var e=WN,t=!1,r=1,n=1,i=[0],a=al,o=al,l=al,s=al,f=al;function d(v){return v.x0=v.y0=0,v.x1=r,v.y1=n,v.eachBefore(g),i=[0],t&&v.eachBefore(UN),v}function g(v){var y=i[v.depth],E=v.x0+y,k=v.y0+y,x=v.x1-y,w=v.y1-y;x<E&&(E=x=(E+x)/2),w<k&&(k=w=(k+w)/2),v.x0=E,v.y0=k,v.x1=x,v.y1=w,v.children&&(y=i[v.depth+1]=a(v)/2,E+=f(v)-y,k+=o(v)-y,x-=l(v)-y,w-=s(v)-y,x<E&&(E=x=(E+x)/2),w<k&&(k=w=(k+w)/2),e(v,E,k,x,w))}return d.round=function(v){return arguments.length?(t=!!v,d):t},d.size=function(v){return arguments.length?(r=+v[0],n=+v[1],d):[r,n]},d.tile=function(v){return arguments.length?(e=dg(v),d):e},d.padding=function(v){return arguments.length?d.paddingInner(v).paddingOuter(v):d.paddingInner()},d.paddingInner=function(v){return arguments.length?(a=typeof v=="function"?v:Ws(+v),d):a},d.paddingOuter=function(v){return arguments.length?d.paddingTop(v).paddingRight(v).paddingBottom(v).paddingLeft(v):d.paddingTop()},d.paddingTop=function(v){return arguments.length?(o=typeof v=="function"?v:Ws(+v),d):o},d.paddingRight=function(v){return arguments.length?(l=typeof v=="function"?v:Ws(+v),d):l},d.paddingBottom=function(v){return arguments.length?(s=typeof v=="function"?v:Ws(+v),d):s},d.paddingLeft=function(v){return arguments.length?(f=typeof v=="function"?v:Ws(+v),d):f},d}function kre(e,t,r,n,i){var a=e.children,o,l=a.length,s,f=new Array(l+1);for(f[0]=s=o=0;o<l;++o)f[o+1]=s+=a[o].value;d(0,l,e.value,t,r,n,i);function d(g,v,y,E,k,x,w){if(g>=v-1){var _=a[g];_.x0=E,_.y0=k,_.x1=x,_.y1=w;return}for(var C=f[g],T=y/2+C,F=g+1,L=v-1;F<L;){var V=F+L>>>1;f[V]<T?F=V+1:L=V}T-f[F-1]<f[F]-T&&g+1<F&&--F;var j=f[F]-C,te=y-j;if(x-E>w-k){var ge=(E*te+x*j)/y;d(g,F,j,E,k,ge,w),d(F,v,te,ge,k,x,w)}else{var me=(k*te+w*j)/y;d(g,F,j,E,k,x,me),d(F,v,te,E,me,x,w)}}}function Mre(e,t,r,n,i){(e.depth&1?my:_p)(e,t,r,n,i)}const Rre=function e(t){function r(n,i,a,o,l){if((s=n._squarify)&&s.ratio===t)for(var s,f,d,g,v=-1,y,E=s.length,k=n.value;++v<E;){for(f=s[v],d=f.children,g=f.value=0,y=d.length;g<y;++g)f.value+=d[g].value;f.dice?_p(f,i,a,o,a+=(l-a)*f.value/k):my(f,i,a,i+=(o-i)*f.value/k,l),k-=f.value}else n._squarify=s=GN(t,n,i,a,o,l),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(jN),Pre=Object.freeze(Object.defineProperty({__proto__:null,cluster:Hte,hierarchy:zE,pack:mre,packEnclose:DN,packSiblings:dre,partition:gre,stratify:wre,tree:Cre,treemap:Ore,treemapBinary:kre,treemapDice:_p,treemapResquarify:Rre,treemapSlice:my,treemapSliceDice:Mre,treemapSquarify:WN},Symbol.toStringTag,{value:"Module"})),Eae=Rl(Pre);function Yf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Sp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Su(){}var Ol=.7,Lf=1/Ol,gf="\\s*([+-]?\\d+)\\s*",Wd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ire=/^#([0-9a-f]{3,8})$/,Fre=new RegExp(`^rgb\\(${gf},${gf},${gf}\\)$`),Nre=new RegExp(`^rgb\\(${xa},${xa},${xa}\\)$`),Lre=new RegExp(`^rgba\\(${gf},${gf},${gf},${Wd}\\)$`),Dre=new RegExp(`^rgba\\(${xa},${xa},${xa},${Wd}\\)$`),$re=new RegExp(`^hsl\\(${Wd},${xa},${xa}\\)$`),Bre=new RegExp(`^hsla\\(${Wd},${xa},${xa},${Wd}\\)$`),Uk={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};Yf(Su,Hd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:jk,formatHex:jk,formatHex8:zre,formatHsl:Ure,formatRgb:Gk,toString:Gk});function jk(){return this.rgb().formatHex()}function zre(){return this.rgb().formatHex8()}function Ure(){return HN(this).formatHsl()}function Gk(){return this.rgb().formatRgb()}function Hd(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ire.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Wk(t):r===3?new bn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?I0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?I0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Fre.exec(e))?new bn(t[1],t[2],t[3],1):(t=Nre.exec(e))?new bn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Lre.exec(e))?I0(t[1],t[2],t[3],t[4]):(t=Dre.exec(e))?I0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$re.exec(e))?Vk(t[1],t[2]/100,t[3]/100,1):(t=Bre.exec(e))?Vk(t[1],t[2]/100,t[3]/100,t[4]):Uk.hasOwnProperty(e)?Wk(Uk[e]):e==="transparent"?new bn(NaN,NaN,NaN,0):null}function Wk(e){return new bn(e>>16&255,e>>8&255,e&255,1)}function I0(e,t,r,n){return n<=0&&(e=t=r=NaN),new bn(e,t,r,n)}function UE(e){return e instanceof Su||(e=Hd(e)),e?(e=e.rgb(),new bn(e.r,e.g,e.b,e.opacity)):new bn}function pg(e,t,r,n){return arguments.length===1?UE(e):new bn(e,t,r,n??1)}function bn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Yf(bn,pg,Sp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bn(gl(this.r),gl(this.g),gl(this.b),vg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Hk,formatHex:Hk,formatHex8:jre,formatRgb:qk,toString:qk}));function Hk(){return`#${dl(this.r)}${dl(this.g)}${dl(this.b)}`}function jre(){return`#${dl(this.r)}${dl(this.g)}${dl(this.b)}${dl((isNaN(this.opacity)?1:this.opacity)*255)}`}function qk(){const e=vg(this.opacity);return`${e===1?"rgb(":"rgba("}${gl(this.r)}, ${gl(this.g)}, ${gl(this.b)}${e===1?")":`, ${e})`}`}function vg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dl(e){return e=gl(e),(e<16?"0":"")+e.toString(16)}function Vk(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xi(e,t,r,n)}function HN(e){if(e instanceof Xi)return new Xi(e.h,e.s,e.l,e.opacity);if(e instanceof Su||(e=Hd(e)),!e)return new Xi;if(e instanceof Xi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(r-n)/l+(r<n)*6:r===a?o=(n-t)/l+2:o=(t-r)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new Xi(o,l,s,e.opacity)}function _2(e,t,r,n){return arguments.length===1?HN(e):new Xi(e,t,r,n??1)}function Xi(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Yf(Xi,_2,Sp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new Xi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new Xi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new bn(lw(e>=240?e-240:e+120,i,n),lw(e,i,n),lw(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xi(Yk(this.h),F0(this.s),F0(this.l),vg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=vg(this.opacity);return`${e===1?"hsl(":"hsla("}${Yk(this.h)}, ${F0(this.s)*100}%, ${F0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Yk(e){return e=(e||0)%360,e<0?e+360:e}function F0(e){return Math.max(0,Math.min(1,e||0))}function lw(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const qN=Math.PI/180,VN=180/Math.PI,mg=18,YN=.96422,XN=1,KN=.82521,QN=4/29,yf=6/29,ZN=3*yf*yf,Gre=yf*yf*yf;function JN(e){if(e instanceof wa)return new wa(e.l,e.a,e.b,e.opacity);if(e instanceof Qa)return e6(e);e instanceof bn||(e=UE(e));var t=hw(e.r),r=hw(e.g),n=hw(e.b),i=sw((.2225045*t+.7168786*r+.0606169*n)/XN),a,o;return t===r&&r===n?a=o=i:(a=sw((.4360747*t+.3850649*r+.1430804*n)/YN),o=sw((.0139322*t+.0971045*r+.7141733*n)/KN)),new wa(116*i-16,500*(a-i),200*(i-o),e.opacity)}function S2(e,t,r,n){return arguments.length===1?JN(e):new wa(e,t,r,n??1)}function wa(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}Yf(wa,S2,Sp(Su,{brighter(e){return new wa(this.l+mg*(e??1),this.a,this.b,this.opacity)},darker(e){return new wa(this.l-mg*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=YN*fw(t),e=XN*fw(e),r=KN*fw(r),new bn(cw(3.1338561*t-1.6168667*e-.4906146*r),cw(-.9787684*t+1.9161415*e+.033454*r),cw(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function sw(e){return e>Gre?Math.pow(e,1/3):e/ZN+QN}function fw(e){return e>yf?e*e*e:ZN*(e-QN)}function cw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function hw(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Wre(e){if(e instanceof Qa)return new Qa(e.h,e.c,e.l,e.opacity);if(e instanceof wa||(e=JN(e)),e.a===0&&e.b===0)return new Qa(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*VN;return new Qa(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function E2(e,t,r,n){return arguments.length===1?Wre(e):new Qa(e,t,r,n??1)}function Qa(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function e6(e){if(isNaN(e.h))return new wa(e.l,0,0,e.opacity);var t=e.h*qN;return new wa(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Yf(Qa,E2,Sp(Su,{brighter(e){return new Qa(this.h,this.c,this.l+mg*(e??1),this.opacity)},darker(e){return new Qa(this.h,this.c,this.l-mg*(e??1),this.opacity)},rgb(){return e6(this).rgb()}}));var t6=-.14861,jE=1.78277,GE=-.29227,gy=-.90649,qd=1.97294,Xk=qd*gy,Kk=qd*jE,Qk=jE*GE-gy*t6;function Hre(e){if(e instanceof yl)return new yl(e.h,e.s,e.l,e.opacity);e instanceof bn||(e=UE(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(Qk*n+Xk*t-Kk*r)/(Qk+Xk-Kk),a=n-i,o=(qd*(r-i)-GE*a)/gy,l=Math.sqrt(o*o+a*a)/(qd*i*(1-i)),s=l?Math.atan2(o,a)*VN-120:NaN;return new yl(s<0?s+360:s,l,i,e.opacity)}function A2(e,t,r,n){return arguments.length===1?Hre(e):new yl(e,t,r,n??1)}function yl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Yf(yl,A2,Sp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new yl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new yl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*qN,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new bn(255*(t+r*(t6*n+jE*i)),255*(t+r*(GE*n+gy*i)),255*(t+r*(qd*n)),this.opacity)}}));function r6(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function n6(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,l=n<t-1?e[n+2]:2*a-i;return r6((r-n/t)*t,o,i,a,l)}}function i6(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],l=e[(n+2)%t];return r6((r-n/t)*t,i,a,o,l)}}const yy=e=>()=>e;function a6(e,t){return function(r){return e+r*t}}function qre(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function by(e,t){var r=t-e;return r?a6(e,r>180||r<-180?r-360*Math.round(r/360):r):yy(isNaN(e)?t:e)}function Vre(e){return(e=+e)==1?xn:function(t,r){return r-t?qre(t,r,e):yy(isNaN(t)?r:t)}}function xn(e,t){var r=t-e;return r?a6(e,r):yy(isNaN(e)?t:e)}const T2=function e(t){var r=Vre(t);function n(i,a){var o=r((i=pg(i)).r,(a=pg(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),f=xn(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=l(d),i.b=s(d),i.opacity=f(d),i+""}}return n.gamma=e,n}(1);function o6(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,l;for(o=0;o<r;++o)l=pg(t[o]),n[o]=l.r||0,i[o]=l.g||0,a[o]=l.b||0;return n=e(n),i=e(i),a=e(a),l.opacity=1,function(s){return l.r=n(s),l.g=i(s),l.b=a(s),l+""}}}var Yre=o6(n6),Xre=o6(i6);function WE(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function u6(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Kre(e,t){return(u6(t)?WE:l6)(e,t)}function l6(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=xy(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(l){for(o=0;o<n;++o)a[o]=i[o](l);return a}}function s6(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ha(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function f6(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=xy(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var C2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dw=new RegExp(C2.source,"g");function Qre(e){return function(){return e}}function Zre(e){return function(t){return e(t)+""}}function c6(e,t){var r=C2.lastIndex=dw.lastIndex=0,n,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(n=C2.exec(e))&&(i=dw.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:ha(n,i)})),r=dw.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?Zre(s[0].x):Qre(t):(t=s.length,function(f){for(var d=0,g;d<t;++d)l[(g=s[d]).i]=g.x(f);return l.join("")})}function xy(e,t){var r=typeof t,n;return t==null||r==="boolean"?yy(t):(r==="number"?ha:r==="string"?(n=Hd(t))?(t=n,T2):c6:t instanceof Hd?T2:t instanceof Date?s6:u6(t)?WE:Array.isArray(t)?l6:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?f6:ha)(e,t)}function Jre(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function ene(e,t){var r=by(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function tne(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var Zk=180/Math.PI,O2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function h6(e,t,r,n,i,a){var o,l,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,s/=l),e*n<t*r&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Zk,skewX:Math.atan(s)*Zk,scaleX:o,scaleY:l}}var N0;function rne(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?O2:h6(t.a,t.b,t.c,t.d,t.e,t.f)}function nne(e){return e==null||(N0||(N0=document.createElementNS("http://www.w3.org/2000/svg","g")),N0.setAttribute("transform",e),!(e=N0.transform.baseVal.consolidate()))?O2:(e=e.matrix,h6(e.a,e.b,e.c,e.d,e.e,e.f))}function d6(e,t,r,n){function i(f){return f.length?f.pop()+" ":""}function a(f,d,g,v,y,E){if(f!==g||d!==v){var k=y.push("translate(",null,t,null,r);E.push({i:k-4,x:ha(f,g)},{i:k-2,x:ha(d,v)})}else(g||v)&&y.push("translate("+g+t+v+r)}function o(f,d,g,v){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),v.push({i:g.push(i(g)+"rotate(",null,n)-2,x:ha(f,d)})):d&&g.push(i(g)+"rotate("+d+n)}function l(f,d,g,v){f!==d?v.push({i:g.push(i(g)+"skewX(",null,n)-2,x:ha(f,d)}):d&&g.push(i(g)+"skewX("+d+n)}function s(f,d,g,v,y,E){if(f!==g||d!==v){var k=y.push(i(y)+"scale(",null,",",null,")");E.push({i:k-4,x:ha(f,g)},{i:k-2,x:ha(d,v)})}else(g!==1||v!==1)&&y.push(i(y)+"scale("+g+","+v+")")}return function(f,d){var g=[],v=[];return f=e(f),d=e(d),a(f.translateX,f.translateY,d.translateX,d.translateY,g,v),o(f.rotate,d.rotate,g,v),l(f.skewX,d.skewX,g,v),s(f.scaleX,f.scaleY,d.scaleX,d.scaleY,g,v),f=d=null,function(y){for(var E=-1,k=v.length,x;++E<k;)g[(x=v[E]).i]=x.x(y);return g.join("")}}}var ine=d6(rne,"px, ","px)","deg)"),ane=d6(nne,", ",")",")"),one=1e-12;function Jk(e){return((e=Math.exp(e))+1/e)/2}function une(e){return((e=Math.exp(e))-1/e)/2}function lne(e){return((e=Math.exp(2*e))-1)/(e+1)}const sne=function e(t,r,n){function i(a,o){var l=a[0],s=a[1],f=a[2],d=o[0],g=o[1],v=o[2],y=d-l,E=g-s,k=y*y+E*E,x,w;if(k<one)w=Math.log(v/f)/t,x=function(V){return[l+V*y,s+V*E,f*Math.exp(t*V*w)]};else{var _=Math.sqrt(k),C=(v*v-f*f+n*k)/(2*f*r*_),T=(v*v-f*f-n*k)/(2*v*r*_),F=Math.log(Math.sqrt(C*C+1)-C),L=Math.log(Math.sqrt(T*T+1)-T);w=(L-F)/t,x=function(V){var j=V*w,te=Jk(F),ge=f/(r*_)*(te*lne(t*j+F)-une(F));return[l+ge*y,s+ge*E,f*te/Jk(t*j+F)]}}return x.duration=w*1e3*t/Math.SQRT2,x}return i.rho=function(a){var o=Math.max(.001,+a),l=o*o,s=l*l;return e(o,l,s)},i}(Math.SQRT2,2,4);function p6(e){return function(t,r){var n=e((t=_2(t)).h,(r=_2(r)).h),i=xn(t.s,r.s),a=xn(t.l,r.l),o=xn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.s=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const fne=p6(by);var cne=p6(xn);function hne(e,t){var r=xn((e=S2(e)).l,(t=S2(t)).l),n=xn(e.a,t.a),i=xn(e.b,t.b),a=xn(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}function v6(e){return function(t,r){var n=e((t=E2(t)).h,(r=E2(r)).h),i=xn(t.c,r.c),a=xn(t.l,r.l),o=xn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const dne=v6(by);var pne=v6(xn);function m6(e){return function t(r){r=+r;function n(i,a){var o=e((i=A2(i)).h,(a=A2(a)).h),l=xn(i.s,a.s),s=xn(i.l,a.l),f=xn(i.opacity,a.opacity);return function(d){return i.h=o(d),i.s=l(d),i.l=s(Math.pow(d,r)),i.opacity=f(d),i+""}}return n.gamma=t,n}(1)}const vne=m6(by);var mne=m6(xn);function gne(e,t){t===void 0&&(t=e,e=xy);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[l](o-l)}}function yne(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const bne=Object.freeze(Object.defineProperty({__proto__:null,interpolate:xy,interpolateArray:Kre,interpolateBasis:n6,interpolateBasisClosed:i6,interpolateCubehelix:vne,interpolateCubehelixLong:mne,interpolateDate:s6,interpolateDiscrete:Jre,interpolateHcl:dne,interpolateHclLong:pne,interpolateHsl:fne,interpolateHslLong:cne,interpolateHue:ene,interpolateLab:hne,interpolateNumber:ha,interpolateNumberArray:WE,interpolateObject:f6,interpolateRgb:T2,interpolateRgbBasis:Yre,interpolateRgbBasisClosed:Xre,interpolateRound:tne,interpolateString:c6,interpolateTransformCss:ine,interpolateTransformSvg:ane,interpolateZoom:sne,piecewise:gne,quantize:yne},Symbol.toStringTag,{value:"Module"})),Aae=Rl(bne);var xne="Expected a function",g6="__lodash_hash_undefined__",y6=1/0,wne=9007199254740991,_ne="[object Function]",Sne="[object GeneratorFunction]",Ene="[object Symbol]",Ane=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tne=/^\w*$/,Cne=/^\./,One=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kne=/[\\^$.*+?()[\]{}|]/g,Mne=/\\(\\)?/g,Rne=/^\[object .+?Constructor\]$/,Pne=/^(?:0|[1-9]\d*)$/,Ine=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,Fne=typeof self=="object"&&self&&self.Object===Object&&self,HE=Ine||Fne||Function("return this")();function Nne(e,t){return e==null?void 0:e[t]}function Lne(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Dne=Array.prototype,$ne=Function.prototype,b6=Object.prototype,pw=HE["__core-js_shared__"],eM=function(){var e=/[^.]+$/.exec(pw&&pw.keys&&pw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),x6=$ne.toString,wy=b6.hasOwnProperty,w6=b6.toString,Bne=RegExp("^"+x6.call(wy).replace(kne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tM=HE.Symbol,zne=Dne.splice,Une=_6(HE,"Map"),Vd=_6(Object,"create"),rM=tM?tM.prototype:void 0,nM=rM?rM.toString:void 0;function kl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function jne(){this.__data__=Vd?Vd(null):{}}function Gne(e){return this.has(e)&&delete this.__data__[e]}function Wne(e){var t=this.__data__;if(Vd){var r=t[e];return r===g6?void 0:r}return wy.call(t,e)?t[e]:void 0}function Hne(e){var t=this.__data__;return Vd?t[e]!==void 0:wy.call(t,e)}function qne(e,t){var r=this.__data__;return r[e]=Vd&&t===void 0?g6:t,this}kl.prototype.clear=jne;kl.prototype.delete=Gne;kl.prototype.get=Wne;kl.prototype.has=Hne;kl.prototype.set=qne;function Xf(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Vne(){this.__data__=[]}function Yne(e){var t=this.__data__,r=_y(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():zne.call(t,r,1),!0}function Xne(e){var t=this.__data__,r=_y(t,e);return r<0?void 0:t[r][1]}function Kne(e){return _y(this.__data__,e)>-1}function Qne(e,t){var r=this.__data__,n=_y(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Xf.prototype.clear=Vne;Xf.prototype.delete=Yne;Xf.prototype.get=Xne;Xf.prototype.has=Kne;Xf.prototype.set=Qne;function Wl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Zne(){this.__data__={hash:new kl,map:new(Une||Xf),string:new kl}}function Jne(e){return Sy(this,e).delete(e)}function eie(e){return Sy(this,e).get(e)}function tie(e){return Sy(this,e).has(e)}function rie(e,t){return Sy(this,e).set(e,t),this}Wl.prototype.clear=Zne;Wl.prototype.delete=Jne;Wl.prototype.get=eie;Wl.prototype.has=tie;Wl.prototype.set=rie;function nie(e,t,r){var n=e[t];(!(wy.call(e,t)&&S6(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function _y(e,t){for(var r=e.length;r--;)if(S6(e[r][0],t))return r;return-1}function iie(e){if(!gg(e)||cie(e))return!1;var t=vie(e)||Lne(e)?Bne:Rne;return t.test(pie(e))}function aie(e,t,r,n){if(!gg(e))return e;t=sie(t,e)?[t]:uie(t);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var s=die(t[i]),f=r;if(i!=o){var d=l[s];f=n?n(d,s,l):void 0,f===void 0&&(f=gg(d)?d:lie(t[i+1])?[]:{})}nie(l,s,f),l=l[s]}return e}function oie(e){if(typeof e=="string")return e;if(VE(e))return nM?nM.call(e):"";var t=e+"";return t=="0"&&1/e==-y6?"-0":t}function uie(e){return E6(e)?e:hie(e)}function Sy(e,t){var r=e.__data__;return fie(t)?r[typeof t=="string"?"string":"hash"]:r.map}function _6(e,t){var r=Nne(e,t);return iie(r)?r:void 0}function lie(e,t){return t=t??wne,!!t&&(typeof e=="number"||Pne.test(e))&&e>-1&&e%1==0&&e<t}function sie(e,t){if(E6(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||VE(e)?!0:Tne.test(e)||!Ane.test(e)||t!=null&&e in Object(t)}function fie(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cie(e){return!!eM&&eM in e}var hie=qE(function(e){e=gie(e);var t=[];return Cne.test(e)&&t.push(""),e.replace(One,function(r,n,i,a){t.push(i?a.replace(Mne,"$1"):n||r)}),t});function die(e){if(typeof e=="string"||VE(e))return e;var t=e+"";return t=="0"&&1/e==-y6?"-0":t}function pie(e){if(e!=null){try{return x6.call(e)}catch{}try{return e+""}catch{}}return""}function qE(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(xne);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o),o};return r.cache=new(qE.Cache||Wl),r}qE.Cache=Wl;function S6(e,t){return e===t||e!==e&&t!==t}var E6=Array.isArray;function vie(e){var t=gg(e)?w6.call(e):"";return t==_ne||t==Sne}function gg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function mie(e){return!!e&&typeof e=="object"}function VE(e){return typeof e=="symbol"||mie(e)&&w6.call(e)==Ene}function gie(e){return e==null?"":oie(e)}function yie(e,t,r){return e==null?e:aie(e,t,r)}var Tae=yie;/*! js-cookie v3.0.5 | MIT */function L0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var bie={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function k2(e,t){function r(i,a,o){if(!(typeof document>"u")){o=L0({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var s in o)o[s]&&(l+="; "+s,o[s]!==!0&&(l+="="+o[s].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+l}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},l=0;l<a.length;l++){var s=a[l].split("="),f=s.slice(1).join("=");try{var d=decodeURIComponent(s[0]);if(o[d]=e.read(f,d),i===d)break}catch{}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,a){r(i,"",L0({},a,{expires:-1}))},withAttributes:function(i){return k2(this.converter,L0({},this.attributes,i))},withConverter:function(i){return k2(L0({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Cae=k2(bie,{path:"/"});function Oae(e){let{initialItems:t=[],initialSelectedKeys:r,getKey:n=f=>f.id||f.key,filter:i,initialFilterText:a=""}=e,[o,l]=zt.useState({items:t,selectedKeys:r==="all"?"all":new Set(r||[]),filterText:a}),s=zt.useMemo(()=>i?o.items.filter(f=>i(f,o.filterText)):o.items,[o.items,o.filterText,i]);return{...o,items:s,...xie({getKey:n},l),getItem(f){return o.items.find(d=>n(d)===f)}}}function xie(e,t){let{cursor:r,getKey:n}=e;return{setSelectedKeys(i){t(a=>({...a,selectedKeys:i}))},setFilterText(i){t(a=>({...a,filterText:i}))},insert(i,...a){t(o=>Ih(o,i,...a))},insertBefore(i,...a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);if(l===-1)if(o.items.length===0)l=0;else return o;return Ih(o,l,...a)})},insertAfter(i,...a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);if(l===-1)if(o.items.length===0)l=0;else return o;return Ih(o,l+1,...a)})},prepend(...i){t(a=>Ih(a,0,...i))},append(...i){t(a=>Ih(a,a.items.length,...i))},remove(...i){t(a=>{let o=new Set(i),l=a.items.filter(f=>!o.has(n(f))),s="all";if(a.selectedKeys!=="all"){s=new Set(a.selectedKeys);for(let f of i)s.delete(f)}return r==null&&l.length===0&&(s=new Set),{...a,items:l,selectedKeys:s}})},removeSelectedItems(){t(i=>{if(i.selectedKeys==="all")return{...i,items:[],selectedKeys:new Set};let a=i.selectedKeys,o=i.items.filter(l=>!a.has(n(l)));return{...i,items:o,selectedKeys:new Set}})},move(i,a){t(o=>{let l=o.items.findIndex(d=>n(d)===i);if(l===-1)return o;let s=o.items.slice(),[f]=s.splice(l,1);return s.splice(a,0,f),{...o,items:s}})},moveBefore(i,a){t(o=>{let l=o.items.findIndex(d=>n(d)===i);if(l===-1)return o;let f=(Array.isArray(a)?a:[...a]).map(d=>o.items.findIndex(g=>n(g)===d)).sort();return iM(o,f,l)})},moveAfter(i,a){t(o=>{let l=o.items.findIndex(d=>n(d)===i);if(l===-1)return o;let f=(Array.isArray(a)?a:[...a]).map(d=>o.items.findIndex(g=>n(g)===d)).sort();return iM(o,f,l+1)})},update(i,a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);return l===-1?o:{...o,items:[...o.items.slice(0,l),a,...o.items.slice(l+1)]}})}}}function Ih(e,t,...r){return{...e,items:[...e.items.slice(0,t),...r,...e.items.slice(t)]}}function iM(e,t,r){r-=t.filter(a=>a<r).length;let n=t.map(a=>({from:a,to:r++}));for(let a=0;a<n.length;a++){let o=n[a].from;for(let l=a;l<n.length;l++)n[l].from>o&&n[l].from--}for(let a=0;a<n.length;a++){let o=n[a];for(let l=n.length-1;l>a;l--){let s=n[l];s.from<o.to?o.to++:s.from++}}let i=e.items.slice();for(let a of n){let[o]=i.splice(a.from,1);i.splice(a.to,0,o)}return{...e,items:i}}var wie={},Ep={},Ap={},Ey={},A6={};(function(e){e.__esModule=!0;var t=function(r){var n={};return function(i){return i in n||(n[i]=r(i)),n[i]}};e.default=t})(A6);var T6={},Ml={};Ml.__esModule=!0;Ml.InternalServerError=Ml.OK=void 0;Ml.OK=200;Ml.InternalServerError=500;(function(e){var t=Jt&&Jt.__spreadArray||function(l,s,f){if(f||arguments.length===2)for(var d=0,g=s.length,v;d<g;d++)(v||!(d in s))&&(v||(v=Array.prototype.slice.call(s,0,d)),v[d]=s[d]);return l.concat(v||Array.prototype.slice.call(s))};e.__esModule=!0;var r=i2,n=i2,i=Ml,a=function(l){for(var s=[],f=1;f<arguments.length;f++)s[f-1]=arguments[f];return typeof l!="string"?{on:function(d,g){g(new Error("URL must be a string."))}}:l.indexOf("https://")===0?n.get.apply(n,t([l],s,!1)):r.get.apply(r,t([l],s,!1))},o=function(l){return new Promise(function(s,f){a(l,function(d){if(d.statusCode!==i.OK)return f(new Error("HTTP Error Response: "+d.statusCode+" "+d.statusMessage+" ("+l+")"));var g=null;d.on("data",function(v){if(g===null){g=v;return}g+=v}),d.on("end",function(){return s(g)})}).on("error",f)})};e.default=o})(T6);var C6={},nu={};nu.__esModule=!0;nu.DONE=nu.OPENED=nu.UNSENT=void 0;nu.UNSENT=0;nu.OPENED=1;nu.DONE=4;(function(e){e.__esModule=!0;var t=Ml,r=nu,n=function(i){return new Promise(function(a,o){var l=new XMLHttpRequest;l.onreadystatechange=function(){l.readyState===r.DONE&&(l.status===t.OK?a(l.responseText):o(new Error("HTTP Error Response: "+l.status+" "+l.statusText+" ("+i+")")))},l.open("GET",i,!0),l.send()})};e.default=n})(C6);Ey.__esModule=!0;Ey.createLoadRemoteModule=void 0;var _ie=A6,Sie=T6,Eie=C6,Aie=typeof window<"u"&&typeof window.document<"u",Tie=Aie?Eie.default:Sie.default,Cie=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},Oie=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,i=r||Cie,a=n||Tie;return(0,_ie.default)(function(o){return a(o).then(function(l){var s={},f={exports:s},d=new Function("require","module","exports",l);return d(i,f,s),f.exports})})};Ey.createLoadRemoteModule=Oie;var Ay={};Ay.__esModule=!0;Ay.createRequires=void 0;var kie=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};Ay.createRequires=kie;(function(e){var t=Jt&&Jt.__createBinding||(Object.create?function(i,a,o,l){l===void 0&&(l=o),Object.defineProperty(i,l,{enumerable:!0,get:function(){return a[o]}})}:function(i,a,o,l){l===void 0&&(l=o),i[l]=a[o]});e.__esModule=!0,e.createRequires=e.default=void 0;var r=Ey;t(e,r,"createLoadRemoteModule","default");var n=Ay;t(e,n,"createRequires")})(Ap);const kae=yg(Ap);var Mie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Ep.__esModule=!0;Ep.createUseRemoteComponent=void 0;var aM=zt,Rie=Mie(Ap),Pie=function(e){var t=Rie.default(e),r=function(n,i){i===void 0&&(i="default");var a=aM.useState({loading:!0,err:void 0,component:void 0}),o=a[0],l=o.loading,s=o.err,f=o.component,d=a[1];return aM.useEffect(function(){var g=d;return g({loading:!0,err:void 0,component:void 0}),t(n).then(function(v){return g({loading:!1,err:void 0,component:v[i]})}).catch(function(v){return g({loading:!1,err:v,component:void 0})}),function(){g=function(){}}},[n]),[l,s,f]};return r};Ep.createUseRemoteComponent=Pie;var Tp={};Tp.__esModule=!0;Tp.createRequires=void 0;var Iie=function(e){return typeof e=="function"?e():e||{}},Fie=function(e){var t=!1;return function(r){if(t||(e=Iie(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};Tp.createRequires=Fie;var YE={};(function(e){var t=Jt&&Jt.__assign||function(){return t=Object.assign||function(o){for(var l,s=1,f=arguments.length;s<f;s++){l=arguments[s];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(o[d]=l[d])}return o},t.apply(this,arguments)};e.__esModule=!0,e.getDependencies=e.ensureRemoteComponentConfig=void 0;var r=function(o){return o&&typeof o.message=="string"&&o.message.indexOf("Cannot find module")>-1},n=function(o){return typeof o=="object"&&"remote-component.config.js"in o},i=function(o){var l=o.resolve;if(n(l))return l;var s=t({},l);return s["remote-component.config.js"]={resolve:s},s};e.ensureRemoteComponentConfig=i;var a=function(){try{return e.ensureRemoteComponentConfig(require("remote-component.config.js"))}catch(o){if(!r(o))throw o;return{}}};e.getDependencies=a})(YE);var Cp={},M2=Jt&&Jt.__assign||function(){return M2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},M2.apply(this,arguments)},Nie=Jt&&Jt.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},Lie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Cp.__esModule=!0;Cp.createRemoteComponent=void 0;var oM=Lie(zt),Die=Ep,$ie=function(e){var t=Die.createUseRemoteComponent(e),r=function(n){var i=n.url,a=n.fallback,o=a===void 0?null:a,l=n.render,s=Nie(n,["url","fallback","render"]),f=t(i),d=f[0],g=f[1],v=f[2];return d?o:l?l({err:g,Component:v}):g||!v?oM.default.createElement("div",null,"Unknown Error: ",(g||"UNKNOWN").toString()):oM.default.createElement(v,M2({},s))};return r};Cp.createRemoteComponent=$ie;var Ty={};Ty.__esModule=!0;Ty.RemoteComponent=void 0;var Bie=Cp,zie=Tp,Uie=YE,jie=zie.createRequires(Uie.getDependencies);Ty.RemoteComponent=Bie.createRemoteComponent({requires:jie});var Cy={},Gie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Cy.__esModule=!0;Cy.fetchRemoteComponent=void 0;var Wie=Gie(Ap),Hie=function(e){var t=e.requires,r=e.fetcher,n=e.url,i=e.imports,a=i===void 0?"default":i,o=Wie.default({requires:t,fetcher:r});return o(n).then(function(l){var s=l&&l[a];if(!s)throw new Error("Could not load '"+a+"' from '"+n+"'.");return s})};Cy.fetchRemoteComponent=Hie;var Oy={},qie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Oy.__esModule=!0;Oy.getServerSideProps=void 0;var Vie=qie(Ap),Yie=function(e){var t=e.url,r=e.requires,n=e.context,i=e.imports,a=i===void 0?"default":i,o=Vie.default({requires:r});return o(t).then(function(l){var s=l&&l[a]&&l[a].getServerSideProps;return typeof s=="function"?s(n):{}})};Oy.getServerSideProps=Yie;(function(e){var t=Jt&&Jt.__createBinding||(Object.create?function(f,d,g,v){v===void 0&&(v=g),Object.defineProperty(f,v,{enumerable:!0,get:function(){return d[g]}})}:function(f,d,g,v){v===void 0&&(v=g),f[v]=d[g]});e.__esModule=!0,e.getServerSideProps=e.fetchRemoteComponent=e.RemoteComponent=e.createRemoteComponent=e.getDependencies=e.createRequires=e.createUseRemoteComponent=void 0;var r=Ep;t(e,r,"createUseRemoteComponent");var n=Tp;t(e,n,"createRequires");var i=YE;t(e,i,"getDependencies");var a=Cp;t(e,a,"createRemoteComponent");var o=Ty;t(e,o,"RemoteComponent");var l=Cy;t(e,l,"fetchRemoteComponent");var s=Oy;t(e,s,"getServerSideProps")})(wie);export{uae as $,zt as A,fr as B,XE as C,Zie as D,TT as E,Hg as F,wr as G,Tae as H,tn as I,lae as J,Qie as K,Kie as L,zS as M,eae as N,DG as O,Jie as P,iae as Q,Bh as R,nae as S,EG as T,aae as U,oae as V,Cae as W,Oae as X,tae as Y,rae as Z,wie as _,fae as a,Ap as a0,kae as a1,vae as b,mae as c,i5 as d,h2 as e,cae as f,hae as g,dae as h,lg as i,WK as j,yae as k,sy as l,pae as m,gae as n,d2 as o,BF as p,x2 as q,sae as r,bae as s,T5 as t,xae as u,wae as v,_ae as w,Sae as x,Eae as y,Aae as z};
1175
+ //# sourceMappingURL=vendor-b7e5da9f.js.map