@deephaven/embed-chart 0.36.1-beta.6 → 0.37.0

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.
@@ -1,1133 +0,0 @@
1
- import{g as iT,c as Lr,a as el}from"./helpers-042e6b4d.js";var Uw={},cF={get exports(){return Uw},set exports(e){Uw=e}},Jh={};/*
2
- object-assign
3
- (c) Sindre Sorhus
4
- @license MIT
5
- */var jw=Object.getOwnPropertySymbols,hF=Object.prototype.hasOwnProperty,dF=Object.prototype.propertyIsEnumerable;function pF(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function vF(){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 tl=vF()?Object.assign:function(e,t){for(var r,n=pF(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var u in r)hF.call(r,u)&&(n[u]=r[u]);if(jw){i=jw(r);for(var l=0;l<i.length;l++)dF.call(r,i[l])&&(n[i[l]]=r[i[l]])}}return n},bh={},mF={get exports(){return bh},set exports(e){bh=e}},mr={};/** @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 Y2=tl,Zf=60103,aT=60106;mr.Fragment=60107;mr.StrictMode=60108;mr.Profiler=60114;var oT=60109,uT=60110,lT=60112;mr.Suspense=60113;var fT=60115,sT=60116;if(typeof Symbol=="function"&&Symbol.for){var Oi=Symbol.for;Zf=Oi("react.element"),aT=Oi("react.portal"),mr.Fragment=Oi("react.fragment"),mr.StrictMode=Oi("react.strict_mode"),mr.Profiler=Oi("react.profiler"),oT=Oi("react.provider"),uT=Oi("react.context"),lT=Oi("react.forward_ref"),mr.Suspense=Oi("react.suspense"),fT=Oi("react.memo"),sT=Oi("react.lazy")}var Gw=typeof Symbol=="function"&&Symbol.iterator;function gF(e){return e===null||typeof e!="object"?null:(e=Gw&&e[Gw]||e["@@iterator"],typeof e=="function"?e:null)}function ed(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 cT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hT={};function Kf(e,t,r){this.props=e,this.context=t,this.refs=hT,this.updater=r||cT}Kf.prototype.isReactComponent={};Kf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(ed(85));this.updater.enqueueSetState(this,e,t,"setState")};Kf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function dT(){}dT.prototype=Kf.prototype;function X2(e,t,r){this.props=e,this.context=t,this.refs=hT,this.updater=r||cT}var Q2=X2.prototype=new dT;Q2.constructor=X2;Y2(Q2,Kf.prototype);Q2.isPureReactComponent=!0;var Z2={current:null},pT=Object.prototype.hasOwnProperty,vT={key:!0,ref:!0,__self:!0,__source:!0};function mT(e,t,r){var n,i={},a=null,u=null;if(t!=null)for(n in t.ref!==void 0&&(u=t.ref),t.key!==void 0&&(a=""+t.key),t)pT.call(t,n)&&!vT.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),c=0;c<l;c++)s[c]=arguments[c+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:Zf,type:e,key:a,ref:u,props:i,_owner:Z2.current}}function yF(e,t){return{$$typeof:Zf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function K2(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zf}function xF(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Hw=/\/+/g;function yg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?xF(""+e.key):t.toString(36)}function _0(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case Zf:case aT:u=!0}}if(u)return u=e,i=i(u),e=n===""?"."+yg(u,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(Hw,"$&/")+"/"),_0(i,t,r,"",function(c){return c})):i!=null&&(K2(i)&&(i=yF(i,r+(!i.key||u&&u.key===i.key?"":(""+i.key).replace(Hw,"$&/")+"/")+e)),t.push(i)),1;if(u=0,n=n===""?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){a=e[l];var s=n+yg(a,l);u+=_0(a,t,r,s,i)}else if(s=gF(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=n+yg(a,l++),u+=_0(a,t,r,s,i);else if(a==="object")throw t=""+e,Error(ed(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function kp(e,t,r){if(e==null)return e;var n=[],i=0;return _0(e,n,"","",function(a){return t.call(r,a,i++)}),n}function _F(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 gT={current:null};function $a(){var e=gT.current;if(e===null)throw Error(ed(321));return e}var wF={ReactCurrentDispatcher:gT,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Z2,IsSomeRendererActing:{current:!1},assign:Y2};mr.Children={map:kp,forEach:function(e,t,r){kp(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return kp(e,function(){t++}),t},toArray:function(e){return kp(e,function(t){return t})||[]},only:function(e){if(!K2(e))throw Error(ed(143));return e}};mr.Component=Kf;mr.PureComponent=X2;mr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wF;mr.cloneElement=function(e,t,r){if(e==null)throw Error(ed(267,e));var n=Y2({},e.props),i=e.key,a=e.ref,u=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,u=Z2.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)pT.call(t,s)&&!vT.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 c=0;c<s;c++)l[c]=arguments[c+2];n.children=l}return{$$typeof:Zf,type:e.type,key:i,ref:a,props:n,_owner:u}};mr.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:uT,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:oT,_context:e},e.Consumer=e};mr.createElement=mT;mr.createFactory=function(e){var t=mT.bind(null,e);return t.type=e,t};mr.createRef=function(){return{current:null}};mr.forwardRef=function(e){return{$$typeof:lT,render:e}};mr.isValidElement=K2;mr.lazy=function(e){return{$$typeof:sT,_payload:{_status:-1,_result:e},_init:_F}};mr.memo=function(e,t){return{$$typeof:fT,type:e,compare:t===void 0?null:t}};mr.useCallback=function(e,t){return $a().useCallback(e,t)};mr.useContext=function(e,t){return $a().useContext(e,t)};mr.useDebugValue=function(){};mr.useEffect=function(e,t){return $a().useEffect(e,t)};mr.useImperativeHandle=function(e,t,r){return $a().useImperativeHandle(e,t,r)};mr.useLayoutEffect=function(e,t){return $a().useLayoutEffect(e,t)};mr.useMemo=function(e,t){return $a().useMemo(e,t)};mr.useReducer=function(e,t,r){return $a().useReducer(e,t,r)};mr.useRef=function(e){return $a().useRef(e)};mr.useState=function(e){return $a().useState(e)};mr.version="17.0.2";(function(e){e.exports=mr})(mF);const ka=iT(bh);/** @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 bF=bh,yT=60103;Jh.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Ww=Symbol.for;yT=Ww("react.element"),Jh.Fragment=Ww("react.fragment")}var SF=bF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,EF=Object.prototype.hasOwnProperty,AF={key:!0,ref:!0,__self:!0,__source:!0};function xT(e,t,r){var n,i={},a=null,u=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(u=t.ref);for(n in t)EF.call(t,n)&&!AF.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:yT,type:e,key:a,ref:u,props:i,_owner:SF.current}}Jh.jsx=xT;Jh.jsxs=xT;(function(e){e.exports=Jh})(cF);var ox={},TF={get exports(){return ox},set exports(e){ox=e}},yi={},ux={},CF={get exports(){return ux},set exports(e){ux=e}},_T={};/** @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 u=Date,l=u.now();e.unstable_now=function(){return u.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var s=null,c=null,v=function(){if(s!==null)try{var Ee=e.unstable_now();s(!0,Ee),s=null}catch(tt){throw setTimeout(v,0),tt}};t=function(Ee){s!==null?setTimeout(t,0,Ee):(s=Ee,setTimeout(v,0))},r=function(Ee,tt){c=setTimeout(Ee,tt)},n=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var x=window.setTimeout,y=window.clearTimeout;if(typeof console<"u"){var g=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 g!="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 k=!1,N=null,b=-1,w=5,A=0;e.unstable_shouldYield=function(){return e.unstable_now()>=A},i=function(){},e.unstable_forceFrameRate=function(Ee){0>Ee||125<Ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<Ee?Math.floor(1e3/Ee):5};var M=new MessageChannel,R=M.port2;M.port1.onmessage=function(){if(N!==null){var Ee=e.unstable_now();A=Ee+w;try{N(!0,Ee)?R.postMessage(null):(k=!1,N=null)}catch(tt){throw R.postMessage(null),tt}}else k=!1},t=function(Ee){N=Ee,k||(k=!0,R.postMessage(null))},r=function(Ee,tt){b=x(function(){Ee(e.unstable_now())},tt)},n=function(){y(b),b=-1}}function L(Ee,tt){var ct=Ee.length;Ee.push(tt);e:for(;;){var rt=ct-1>>>1,yt=Ee[rt];if(yt!==void 0&&0<Y(yt,tt))Ee[rt]=tt,Ee[ct]=yt,ct=rt;else break e}}function D(Ee){return Ee=Ee[0],Ee===void 0?null:Ee}function ne(Ee){var tt=Ee[0];if(tt!==void 0){var ct=Ee.pop();if(ct!==tt){Ee[0]=ct;e:for(var rt=0,yt=Ee.length;rt<yt;){var Tt=2*(rt+1)-1,Yt=Ee[Tt],Xt=Tt+1,Qe=Ee[Xt];if(Yt!==void 0&&0>Y(Yt,ct))Qe!==void 0&&0>Y(Qe,Yt)?(Ee[rt]=Qe,Ee[Xt]=ct,rt=Xt):(Ee[rt]=Yt,Ee[Tt]=ct,rt=Tt);else if(Qe!==void 0&&0>Y(Qe,ct))Ee[rt]=Qe,Ee[Xt]=ct,rt=Xt;else break e}}return tt}return null}function Y(Ee,tt){var ct=Ee.sortIndex-tt.sortIndex;return ct!==0?ct:Ee.id-tt.id}var ae=[],Ce=[],Fe=1,Ie=null,je=3,Ke=!1,mt=!1,lt=!1;function Ue(Ee){for(var tt=D(Ce);tt!==null;){if(tt.callback===null)ne(Ce);else if(tt.startTime<=Ee)ne(Ce),tt.sortIndex=tt.expirationTime,L(ae,tt);else break;tt=D(Ce)}}function Ye(Ee){if(lt=!1,Ue(Ee),!mt)if(D(ae)!==null)mt=!0,t(It);else{var tt=D(Ce);tt!==null&&r(Ye,tt.startTime-Ee)}}function It(Ee,tt){mt=!1,lt&&(lt=!1,n()),Ke=!0;var ct=je;try{for(Ue(tt),Ie=D(ae);Ie!==null&&(!(Ie.expirationTime>tt)||Ee&&!e.unstable_shouldYield());){var rt=Ie.callback;if(typeof rt=="function"){Ie.callback=null,je=Ie.priorityLevel;var yt=rt(Ie.expirationTime<=tt);tt=e.unstable_now(),typeof yt=="function"?Ie.callback=yt:Ie===D(ae)&&ne(ae),Ue(tt)}else ne(ae);Ie=D(ae)}if(Ie!==null)var Tt=!0;else{var Yt=D(Ce);Yt!==null&&r(Ye,Yt.startTime-tt),Tt=!1}return Tt}finally{Ie=null,je=ct,Ke=!1}}var Ze=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(Ee){Ee.callback=null},e.unstable_continueExecution=function(){mt||Ke||(mt=!0,t(It))},e.unstable_getCurrentPriorityLevel=function(){return je},e.unstable_getFirstCallbackNode=function(){return D(ae)},e.unstable_next=function(Ee){switch(je){case 1:case 2:case 3:var tt=3;break;default:tt=je}var ct=je;je=tt;try{return Ee()}finally{je=ct}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Ze,e.unstable_runWithPriority=function(Ee,tt){switch(Ee){case 1:case 2:case 3:case 4:case 5:break;default:Ee=3}var ct=je;je=Ee;try{return tt()}finally{je=ct}},e.unstable_scheduleCallback=function(Ee,tt,ct){var rt=e.unstable_now();switch(typeof ct=="object"&&ct!==null?(ct=ct.delay,ct=typeof ct=="number"&&0<ct?rt+ct:rt):ct=rt,Ee){case 1:var yt=-1;break;case 2:yt=250;break;case 5:yt=1073741823;break;case 4:yt=1e4;break;default:yt=5e3}return yt=ct+yt,Ee={id:Fe++,callback:tt,priorityLevel:Ee,startTime:ct,expirationTime:yt,sortIndex:-1},ct>rt?(Ee.sortIndex=ct,L(Ce,Ee),D(ae)===null&&Ee===D(Ce)&&(lt?n():lt=!0,r(Ye,ct-rt))):(Ee.sortIndex=yt,L(ae,Ee),mt||Ke||(mt=!0,t(It))),Ee},e.unstable_wrapCallback=function(Ee){var tt=je;return function(){var ct=je;je=tt;try{return Ee.apply(this,arguments)}finally{je=ct}}}})(_T);(function(e){e.exports=_T})(CF);/** @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 Wv=bh,Dr=tl,pn=ux;function st(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(!Wv)throw Error(st(227));var wT=new Set,Sh={};function rl(e,t){Df(e,t),Df(e+"Capture",t)}function Df(e,t){for(Sh[e]=t,e=0;e<t.length;e++)wT.add(t[e])}var Ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kF=/^[: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]*$/,Vw=Object.prototype.hasOwnProperty,qw={},Yw={};function OF(e){return Vw.call(Yw,e)?!0:Vw.call(qw,e)?!1:kF.test(e)?Yw[e]=!0:(qw[e]=!0,!1)}function MF(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 FF(e,t,r,n){if(t===null||typeof t>"u"||MF(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 Pn(e,t,r,n,i,a,u){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=u}var wn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){wn[e]=new Pn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];wn[t]=new Pn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){wn[e]=new Pn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){wn[e]=new Pn(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){wn[e]=new Pn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){wn[e]=new Pn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){wn[e]=new Pn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){wn[e]=new Pn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){wn[e]=new Pn(e,5,!1,e.toLowerCase(),null,!1,!1)});var J2=/[\-:]([a-z])/g;function e_(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(J2,e_);wn[t]=new Pn(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(J2,e_);wn[t]=new Pn(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(J2,e_);wn[t]=new Pn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){wn[e]=new Pn(e,1,!1,e.toLowerCase(),null,!1,!1)});wn.xlinkHref=new Pn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){wn[e]=new Pn(e,1,!1,e.toLowerCase(),null,!0,!0)});function t_(e,t,r,n){var i=wn.hasOwnProperty(t)?wn[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||(FF(t,r,i,n)&&(r=null),n||i===null?OF(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 nl=Wv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wc=60103,Fu=60106,xo=60107,r_=60108,eh=60114,n_=60109,i_=60110,Vv=60112,th=60113,$0=60120,qv=60115,a_=60116,o_=60121,u_=60128,bT=60129,l_=60130,lx=60131;if(typeof Symbol=="function"&&Symbol.for){var sn=Symbol.for;Wc=sn("react.element"),Fu=sn("react.portal"),xo=sn("react.fragment"),r_=sn("react.strict_mode"),eh=sn("react.profiler"),n_=sn("react.provider"),i_=sn("react.context"),Vv=sn("react.forward_ref"),th=sn("react.suspense"),$0=sn("react.suspense_list"),qv=sn("react.memo"),a_=sn("react.lazy"),o_=sn("react.block"),sn("react.scope"),u_=sn("react.opaque.id"),bT=sn("react.debug_trace_mode"),l_=sn("react.offscreen"),lx=sn("react.legacy_hidden")}var Xw=typeof Symbol=="function"&&Symbol.iterator;function xc(e){return e===null||typeof e!="object"?null:(e=Xw&&e[Xw]||e["@@iterator"],typeof e=="function"?e:null)}var xg;function Vc(e){if(xg===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);xg=t&&t[1]||""}return`
34
- `+xg+e}var _g=!1;function Op(e,t){if(!e||_g)return"";_g=!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
- `),u=i.length-1,l=a.length-1;1<=u&&0<=l&&i[u]!==a[l];)l--;for(;1<=u&&0<=l;u--,l--)if(i[u]!==a[l]){if(u!==1||l!==1)do if(u--,l--,0>l||i[u]!==a[l])return`
37
- `+i[u].replace(" at new "," at ");while(1<=u&&0<=l);break}}}finally{_g=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Vc(e):""}function NF(e){switch(e.tag){case 5:return Vc(e.type);case 16:return Vc("Lazy");case 13:return Vc("Suspense");case 19:return Vc("SuspenseList");case 0:case 2:case 15:return e=Op(e.type,!1),e;case 11:return e=Op(e.type.render,!1),e;case 22:return e=Op(e.type._render,!1),e;case 1:return e=Op(e.type,!0),e;default:return""}}function wf(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 xo:return"Fragment";case Fu:return"Portal";case eh:return"Profiler";case r_:return"StrictMode";case th:return"Suspense";case $0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case i_:return(e.displayName||"Context")+".Consumer";case n_:return(e._context.displayName||"Context")+".Provider";case Vv:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case qv:return wf(e.type);case o_:return wf(e._render);case a_:t=e._payload,e=e._init;try{return wf(e(t))}catch{}}return null}function Io(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ST(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function RF(e){var t=ST(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(u){n=""+u,a.call(this,u)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(u){n=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mp(e){e._valueTracker||(e._valueTracker=RF(e))}function ET(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ST(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function z0(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 fx(e,t){var r=t.checked;return Dr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Qw(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Io(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 AT(e,t){t=t.checked,t!=null&&t_(e,"checked",t,!1)}function sx(e,t){AT(e,t);var r=Io(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")?cx(e,t.type,r):t.hasOwnProperty("defaultValue")&&cx(e,t.type,Io(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Zw(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 cx(e,t,r){(t!=="number"||z0(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function IF(e){var t="";return Wv.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function hx(e,t){return e=Dr({children:void 0},t),(t=IF(t.children))&&(e.children=t),e}function bf(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=""+Io(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 dx(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(st(91));return Dr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Kw(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(st(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(st(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Io(r)}}function TT(e,t){var r=Io(t.value),n=Io(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 Jw(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var px={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function CT(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 vx(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?CT(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Fp,kT=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!==px.svg||"innerHTML"in e)e.innerHTML=t;else{for(Fp=Fp||document.createElement("div"),Fp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Eh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var rh={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},PF=["Webkit","ms","Moz","O"];Object.keys(rh).forEach(function(e){PF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rh[t]=rh[e]})});function OT(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||rh.hasOwnProperty(e)&&rh[e]?(""+t).trim():t+"px"}function MT(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=OT(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var LF=Dr({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 mx(e,t){if(t){if(LF[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(st(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(st(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(st(61))}if(t.style!=null&&typeof t.style!="object")throw Error(st(62))}}function gx(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 f_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yx=null,Sf=null,Ef=null;function eb(e){if(e=rd(e)){if(typeof yx!="function")throw Error(st(280));var t=e.stateNode;t&&(t=Jv(t),yx(e.stateNode,e.type,t))}}function FT(e){Sf?Ef?Ef.push(e):Ef=[e]:Sf=e}function NT(){if(Sf){var e=Sf,t=Ef;if(Ef=Sf=null,eb(e),t)for(e=0;e<t.length;e++)eb(t[e])}}function s_(e,t){return e(t)}function RT(e,t,r,n,i){return e(t,r,n,i)}function c_(){}var IT=s_,Nu=!1,wg=!1;function h_(){(Sf!==null||Ef!==null)&&(c_(),NT())}function DF(e,t,r){if(wg)return e(t,r);wg=!0;try{return IT(e,t,r)}finally{wg=!1,h_()}}function Ah(e,t){var r=e.stateNode;if(r===null)return null;var n=Jv(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(st(231,t,typeof r));return r}var xx=!1;if(Ra)try{var _c={};Object.defineProperty(_c,"passive",{get:function(){xx=!0}}),window.addEventListener("test",_c,_c),window.removeEventListener("test",_c,_c)}catch{xx=!1}function BF(e,t,r,n,i,a,u,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(v){this.onError(v)}}var nh=!1,U0=null,j0=!1,_x=null,$F={onError:function(e){nh=!0,U0=e}};function zF(e,t,r,n,i,a,u,l,s){nh=!1,U0=null,BF.apply($F,arguments)}function UF(e,t,r,n,i,a,u,l,s){if(zF.apply(this,arguments),nh){if(nh){var c=U0;nh=!1,U0=null}else throw Error(st(198));j0||(j0=!0,_x=c)}}function il(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 PT(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 tb(e){if(il(e)!==e)throw Error(st(188))}function jF(e){var t=e.alternate;if(!t){if(t=il(e),t===null)throw Error(st(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 tb(i),e;if(a===n)return tb(i),t;a=a.sibling}throw Error(st(188))}if(r.return!==n.return)r=i,n=a;else{for(var u=!1,l=i.child;l;){if(l===r){u=!0,r=i,n=a;break}if(l===n){u=!0,n=i,r=a;break}l=l.sibling}if(!u){for(l=a.child;l;){if(l===r){u=!0,r=a,n=i;break}if(l===n){u=!0,n=a,r=i;break}l=l.sibling}if(!u)throw Error(st(189))}}if(r.alternate!==n)throw Error(st(190))}if(r.tag!==3)throw Error(st(188));return r.stateNode.current===r?e:t}function LT(e){if(e=jF(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 rb(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var DT,d_,BT,$T,wx=!1,Yi=[],To=null,Co=null,ko=null,Th=new Map,Ch=new Map,wc=[],nb="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 bx(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function ib(e,t){switch(e){case"focusin":case"focusout":To=null;break;case"dragenter":case"dragleave":Co=null;break;case"mouseover":case"mouseout":ko=null;break;case"pointerover":case"pointerout":Th.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ch.delete(t.pointerId)}}function bc(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e=bx(t,r,n,i,a),t!==null&&(t=rd(t),t!==null&&d_(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function GF(e,t,r,n,i){switch(t){case"focusin":return To=bc(To,e,t,r,n,i),!0;case"dragenter":return Co=bc(Co,e,t,r,n,i),!0;case"mouseover":return ko=bc(ko,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return Th.set(a,bc(Th.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Ch.set(a,bc(Ch.get(a)||null,e,t,r,n,i)),!0}return!1}function HF(e){var t=Ru(e.target);if(t!==null){var r=il(t);if(r!==null){if(t=r.tag,t===13){if(t=PT(r),t!==null){e.blockedOn=t,$T(e.lanePriority,function(){pn.unstable_runWithPriority(e.priority,function(){BT(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function w0(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=g_(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=rd(r),t!==null&&d_(t),e.blockedOn=r,!1;t.shift()}return!0}function ab(e,t,r){w0(e)&&r.delete(t)}function WF(){for(wx=!1;0<Yi.length;){var e=Yi[0];if(e.blockedOn!==null){e=rd(e.blockedOn),e!==null&&DT(e);break}for(var t=e.targetContainers;0<t.length;){var r=g_(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&Yi.shift()}To!==null&&w0(To)&&(To=null),Co!==null&&w0(Co)&&(Co=null),ko!==null&&w0(ko)&&(ko=null),Th.forEach(ab),Ch.forEach(ab)}function Sc(e,t){e.blockedOn===t&&(e.blockedOn=null,wx||(wx=!0,pn.unstable_scheduleCallback(pn.unstable_NormalPriority,WF)))}function zT(e){function t(i){return Sc(i,e)}if(0<Yi.length){Sc(Yi[0],e);for(var r=1;r<Yi.length;r++){var n=Yi[r];n.blockedOn===e&&(n.blockedOn=null)}}for(To!==null&&Sc(To,e),Co!==null&&Sc(Co,e),ko!==null&&Sc(ko,e),Th.forEach(t),Ch.forEach(t),r=0;r<wc.length;r++)n=wc[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<wc.length&&(r=wc[0],r.blockedOn===null);)HF(r),r.blockedOn===null&&wc.shift()}function Np(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var cf={animationend:Np("Animation","AnimationEnd"),animationiteration:Np("Animation","AnimationIteration"),animationstart:Np("Animation","AnimationStart"),transitionend:Np("Transition","TransitionEnd")},bg={},UT={};Ra&&(UT=document.createElement("div").style,"AnimationEvent"in window||(delete cf.animationend.animation,delete cf.animationiteration.animation,delete cf.animationstart.animation),"TransitionEvent"in window||delete cf.transitionend.transition);function Yv(e){if(bg[e])return bg[e];if(!cf[e])return e;var t=cf[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in UT)return bg[e]=t[r];return e}var jT=Yv("animationend"),GT=Yv("animationiteration"),HT=Yv("animationstart"),WT=Yv("transitionend"),VT=new Map,p_=new Map,VF=["abort","abort",jT,"animationEnd",GT,"animationIteration",HT,"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",WT,"transitionEnd","waiting","waiting"];function v_(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)),p_.set(n,t),VT.set(n,i),rl(i,[n])}}var qF=pn.unstable_now;qF();var Or=8;function of(e){if(1&e)return Or=15,1;if(2&e)return Or=14,2;if(4&e)return Or=13,4;var t=24&e;return t!==0?(Or=12,t):e&32?(Or=11,32):(t=192&e,t!==0?(Or=10,t):e&256?(Or=9,256):(t=3584&e,t!==0?(Or=8,t):e&4096?(Or=7,4096):(t=4186112&e,t!==0?(Or=6,t):(t=62914560&e,t!==0?(Or=5,t):e&67108864?(Or=4,67108864):e&134217728?(Or=3,134217728):(t=805306368&e,t!==0?(Or=2,t):1073741824&e?(Or=1,1073741824):(Or=8,e))))))}function YF(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 XF(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(st(358,e))}}function kh(e,t){var r=e.pendingLanes;if(r===0)return Or=0;var n=0,i=0,a=e.expiredLanes,u=e.suspendedLanes,l=e.pingedLanes;if(a!==0)n=a,i=Or=15;else if(a=r&134217727,a!==0){var s=a&~u;s!==0?(n=of(s),i=Or):(l&=a,l!==0&&(n=of(l),i=Or))}else a=r&~u,a!==0?(n=of(a),i=Or):l!==0&&(n=of(l),i=Or);if(n===0)return 0;if(n=31-Po(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&!(t&u)){if(of(t),i<=Or)return t;Or=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Po(t),i=1<<r,n|=e[r],t&=~i;return n}function qT(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function G0(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=uf(24&~t),e===0?G0(10,t):e;case 10:return e=uf(192&~t),e===0?G0(8,t):e;case 8:return e=uf(3584&~t),e===0&&(e=uf(4186112&~t),e===0&&(e=512)),e;case 2:return t=uf(805306368&~t),t===0&&(t=268435456),t}throw Error(st(358,e))}function uf(e){return e&-e}function Sg(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Xv(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Po(t),e[t]=r}var Po=Math.clz32?Math.clz32:KF,QF=Math.log,ZF=Math.LN2;function KF(e){return e===0?32:31-(QF(e)/ZF|0)|0}var JF=pn.unstable_UserBlockingPriority,e8=pn.unstable_runWithPriority,b0=!0;function t8(e,t,r,n){Nu||c_();var i=m_,a=Nu;Nu=!0;try{RT(i,e,t,r,n)}finally{(Nu=a)||h_()}}function r8(e,t,r,n){e8(JF,m_.bind(null,e,t,r,n))}function m_(e,t,r,n){if(b0){var i;if((i=(t&4)===0)&&0<Yi.length&&-1<nb.indexOf(e))e=bx(null,e,t,r,n),Yi.push(e);else{var a=g_(e,t,r,n);if(a===null)i&&ib(e,n);else{if(i){if(-1<nb.indexOf(e)){e=bx(a,e,t,r,n),Yi.push(e);return}if(GF(a,e,t,r,n))return;ib(e,n)}oC(e,t,n,null,r)}}}}function g_(e,t,r,n){var i=f_(n);if(i=Ru(i),i!==null){var a=il(i);if(a===null)i=null;else{var u=a.tag;if(u===13){if(i=PT(a),i!==null)return i;i=null}else if(u===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return oC(e,t,n,i,r),null}var wo=null,y_=null,S0=null;function YT(){if(S0)return S0;var e,t=y_,r=t.length,n,i="value"in wo?wo.value:wo.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var u=r-e;for(n=1;n<=u&&t[r-n]===i[a-n];n++);return S0=i.slice(e,1<n?1-n:void 0)}function E0(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 Rp(){return!0}function ob(){return!1}function ii(e){function t(r,n,i,a,u){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=u,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)?Rp:ob,this.isPropagationStopped=ob,this}return Dr(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=Rp)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Rp)},persist:function(){},isPersistent:Rp}),t}var Jf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},x_=ii(Jf),td=Dr({},Jf,{view:0,detail:0}),n8=ii(td),Eg,Ag,Ec,Qv=Dr({},td,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:__,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!==Ec&&(Ec&&e.type==="mousemove"?(Eg=e.screenX-Ec.screenX,Ag=e.screenY-Ec.screenY):Ag=Eg=0,Ec=e),Eg)},movementY:function(e){return"movementY"in e?e.movementY:Ag}}),ub=ii(Qv),i8=Dr({},Qv,{dataTransfer:0}),a8=ii(i8),o8=Dr({},td,{relatedTarget:0}),Tg=ii(o8),u8=Dr({},Jf,{animationName:0,elapsedTime:0,pseudoElement:0}),l8=ii(u8),f8=Dr({},Jf,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),s8=ii(f8),c8=Dr({},Jf,{data:0}),lb=ii(c8),h8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},d8={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"},p8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v8(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=p8[e])?!!t[e]:!1}function __(){return v8}var m8=Dr({},td,{key:function(e){if(e.key){var t=h8[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=E0(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?d8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:__,charCode:function(e){return e.type==="keypress"?E0(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?E0(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),g8=ii(m8),y8=Dr({},Qv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fb=ii(y8),x8=Dr({},td,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:__}),_8=ii(x8),w8=Dr({},Jf,{propertyName:0,elapsedTime:0,pseudoElement:0}),b8=ii(w8),S8=Dr({},Qv,{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}),E8=ii(S8),A8=[9,13,27,32],w_=Ra&&"CompositionEvent"in window,ih=null;Ra&&"documentMode"in document&&(ih=document.documentMode);var T8=Ra&&"TextEvent"in window&&!ih,XT=Ra&&(!w_||ih&&8<ih&&11>=ih),sb=String.fromCharCode(32),cb=!1;function QT(e,t){switch(e){case"keyup":return A8.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ZT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hf=!1;function C8(e,t){switch(e){case"compositionend":return ZT(t);case"keypress":return t.which!==32?null:(cb=!0,sb);case"textInput":return e=t.data,e===sb&&cb?null:e;default:return null}}function k8(e,t){if(hf)return e==="compositionend"||!w_&&QT(e,t)?(e=YT(),S0=y_=wo=null,hf=!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 XT&&t.locale!=="ko"?null:t.data;default:return null}}var O8={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 hb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!O8[e.type]:t==="textarea"}function KT(e,t,r,n){FT(n),t=H0(t,"onChange"),0<t.length&&(r=new x_("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var ah=null,Oh=null;function M8(e){nC(e,0)}function Zv(e){var t=pf(e);if(ET(t))return e}function F8(e,t){if(e==="change")return t}var JT=!1;if(Ra){var Cg;if(Ra){var kg="oninput"in document;if(!kg){var db=document.createElement("div");db.setAttribute("oninput","return;"),kg=typeof db.oninput=="function"}Cg=kg}else Cg=!1;JT=Cg&&(!document.documentMode||9<document.documentMode)}function pb(){ah&&(ah.detachEvent("onpropertychange",eC),Oh=ah=null)}function eC(e){if(e.propertyName==="value"&&Zv(Oh)){var t=[];if(KT(t,Oh,e,f_(e)),e=M8,Nu)e(t);else{Nu=!0;try{s_(e,t)}finally{Nu=!1,h_()}}}}function N8(e,t,r){e==="focusin"?(pb(),ah=t,Oh=r,ah.attachEvent("onpropertychange",eC)):e==="focusout"&&pb()}function R8(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zv(Oh)}function I8(e,t){if(e==="click")return Zv(t)}function P8(e,t){if(e==="input"||e==="change")return Zv(t)}function L8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var di=typeof Object.is=="function"?Object.is:L8,D8=Object.prototype.hasOwnProperty;function Mh(e,t){if(di(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(!D8.call(t,r[n])||!di(e[r[n]],t[r[n]]))return!1;return!0}function vb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mb(e,t){var r=vb(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=vb(r)}}function tC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gb(){for(var e=window,t=z0();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=z0(e.document)}return t}function Sx(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 B8=Ra&&"documentMode"in document&&11>=document.documentMode,df=null,Ex=null,oh=null,Ax=!1;function yb(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ax||df==null||df!==z0(n)||(n=df,"selectionStart"in n&&Sx(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}),oh&&Mh(oh,n)||(oh=n,n=H0(Ex,"onSelect"),0<n.length&&(t=new x_("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=df)))}v_("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);v_("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);v_(VF,2);for(var xb="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Og=0;Og<xb.length;Og++)p_.set(xb[Og],0);Df("onMouseEnter",["mouseout","mouseover"]);Df("onMouseLeave",["mouseout","mouseover"]);Df("onPointerEnter",["pointerout","pointerover"]);Df("onPointerLeave",["pointerout","pointerover"]);rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));rl("onBeforeInput",["compositionend","keypress","textInput","paste"]);rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rC=new Set("cancel close invalid load scroll toggle".split(" ").concat(qc));function _b(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,UF(n,t,void 0,e),e.currentTarget=null}function nC(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 u=n.length-1;0<=u;u--){var l=n[u],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;_b(i,l,c),a=s}else for(u=0;u<n.length;u++){if(l=n[u],s=l.instance,c=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;_b(i,l,c),a=s}}}if(j0)throw e=_x,j0=!1,_x=null,e}function Mr(e,t){var r=lC(t),n=e+"__bubble";r.has(n)||(aC(t,e,2,!1),r.add(n))}var wb="_reactListening"+Math.random().toString(36).slice(2);function iC(e){e[wb]||(e[wb]=!0,wT.forEach(function(t){rC.has(t)||bb(t,!1,e,null),bb(t,!0,e,null)}))}function bb(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&&rC.has(e)){if(e!=="scroll")return;i|=2,a=n}var u=lC(a),l=e+"__"+(t?"capture":"bubble");u.has(l)||(t&&(i|=4),aC(a,e,i,t),u.add(l))}function aC(e,t,r,n){var i=p_.get(t);switch(i===void 0?2:i){case 0:i=t8;break;case 1:i=r8;break;default:i=m_}r=i.bind(null,t,r,e),i=void 0,!xx||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 oC(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var u=n.tag;if(u===3||u===4){var l=n.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(u===4)for(u=n.return;u!==null;){var s=u.tag;if((s===3||s===4)&&(s=u.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;u=u.return}for(;l!==null;){if(u=Ru(l),u===null)return;if(s=u.tag,s===5||s===6){n=a=u;continue e}l=l.parentNode}}n=n.return}DF(function(){var c=a,v=f_(r),x=[];e:{var y=VT.get(e);if(y!==void 0){var g=x_,k=e;switch(e){case"keypress":if(E0(r)===0)break e;case"keydown":case"keyup":g=g8;break;case"focusin":k="focus",g=Tg;break;case"focusout":k="blur",g=Tg;break;case"beforeblur":case"afterblur":g=Tg;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":g=ub;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=a8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=_8;break;case jT:case GT:case HT:g=l8;break;case WT:g=b8;break;case"scroll":g=n8;break;case"wheel":g=E8;break;case"copy":case"cut":case"paste":g=s8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=fb}var N=(t&4)!==0,b=!N&&e==="scroll",w=N?y!==null?y+"Capture":null:y;N=[];for(var A=c,M;A!==null;){M=A;var R=M.stateNode;if(M.tag===5&&R!==null&&(M=R,w!==null&&(R=Ah(A,w),R!=null&&N.push(Fh(A,R,M)))),b)break;A=A.return}0<N.length&&(y=new g(y,k,null,r,v),x.push({event:y,listeners:N}))}}if(!(t&7)){e:{if(y=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",y&&!(t&16)&&(k=r.relatedTarget||r.fromElement)&&(Ru(k)||k[es]))break e;if((g||y)&&(y=v.window===v?v:(y=v.ownerDocument)?y.defaultView||y.parentWindow:window,g?(k=r.relatedTarget||r.toElement,g=c,k=k?Ru(k):null,k!==null&&(b=il(k),k!==b||k.tag!==5&&k.tag!==6)&&(k=null)):(g=null,k=c),g!==k)){if(N=ub,R="onMouseLeave",w="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(N=fb,R="onPointerLeave",w="onPointerEnter",A="pointer"),b=g==null?y:pf(g),M=k==null?y:pf(k),y=new N(R,A+"leave",g,r,v),y.target=b,y.relatedTarget=M,R=null,Ru(v)===c&&(N=new N(w,A+"enter",k,r,v),N.target=M,N.relatedTarget=b,R=N),b=R,g&&k)t:{for(N=g,w=k,A=0,M=N;M;M=Kl(M))A++;for(M=0,R=w;R;R=Kl(R))M++;for(;0<A-M;)N=Kl(N),A--;for(;0<M-A;)w=Kl(w),M--;for(;A--;){if(N===w||w!==null&&N===w.alternate)break t;N=Kl(N),w=Kl(w)}N=null}else N=null;g!==null&&Sb(x,y,g,N,!1),k!==null&&b!==null&&Sb(x,b,k,N,!0)}}e:{if(y=c?pf(c):window,g=y.nodeName&&y.nodeName.toLowerCase(),g==="select"||g==="input"&&y.type==="file")var L=F8;else if(hb(y))if(JT)L=P8;else{L=R8;var D=N8}else(g=y.nodeName)&&g.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(L=I8);if(L&&(L=L(e,c))){KT(x,L,r,v);break e}D&&D(e,y,c),e==="focusout"&&(D=y._wrapperState)&&D.controlled&&y.type==="number"&&cx(y,"number",y.value)}switch(D=c?pf(c):window,e){case"focusin":(hb(D)||D.contentEditable==="true")&&(df=D,Ex=c,oh=null);break;case"focusout":oh=Ex=df=null;break;case"mousedown":Ax=!0;break;case"contextmenu":case"mouseup":case"dragend":Ax=!1,yb(x,r,v);break;case"selectionchange":if(B8)break;case"keydown":case"keyup":yb(x,r,v)}var ne;if(w_)e:{switch(e){case"compositionstart":var Y="onCompositionStart";break e;case"compositionend":Y="onCompositionEnd";break e;case"compositionupdate":Y="onCompositionUpdate";break e}Y=void 0}else hf?QT(e,r)&&(Y="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Y="onCompositionStart");Y&&(XT&&r.locale!=="ko"&&(hf||Y!=="onCompositionStart"?Y==="onCompositionEnd"&&hf&&(ne=YT()):(wo=v,y_="value"in wo?wo.value:wo.textContent,hf=!0)),D=H0(c,Y),0<D.length&&(Y=new lb(Y,e,null,r,v),x.push({event:Y,listeners:D}),ne?Y.data=ne:(ne=ZT(r),ne!==null&&(Y.data=ne)))),(ne=T8?C8(e,r):k8(e,r))&&(c=H0(c,"onBeforeInput"),0<c.length&&(v=new lb("onBeforeInput","beforeinput",null,r,v),x.push({event:v,listeners:c}),v.data=ne))}nC(x,t)})}function Fh(e,t,r){return{instance:e,listener:t,currentTarget:r}}function H0(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Ah(e,r),a!=null&&n.unshift(Fh(e,a,i)),a=Ah(e,t),a!=null&&n.push(Fh(e,a,i))),e=e.return}return n}function Kl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Sb(e,t,r,n,i){for(var a=t._reactName,u=[];r!==null&&r!==n;){var l=r,s=l.alternate,c=l.stateNode;if(s!==null&&s===n)break;l.tag===5&&c!==null&&(l=c,i?(s=Ah(r,a),s!=null&&u.unshift(Fh(r,s,l))):i||(s=Ah(r,a),s!=null&&u.push(Fh(r,s,l)))),r=r.return}u.length!==0&&e.push({event:t,listeners:u})}function W0(){}var Mg=null,Fg=null;function uC(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Tx(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 Eb=typeof setTimeout=="function"?setTimeout:void 0,$8=typeof clearTimeout=="function"?clearTimeout:void 0;function b_(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Af(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Ab(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 Ng=0;function z8(e){return{$$typeof:u_,toString:e,valueOf:e}}var Kv=Math.random().toString(36).slice(2),bo="__reactFiber$"+Kv,V0="__reactProps$"+Kv,es="__reactContainer$"+Kv,Tb="__reactEvents$"+Kv;function Ru(e){var t=e[bo];if(t)return t;for(var r=e.parentNode;r;){if(t=r[es]||r[bo]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Ab(e);e!==null;){if(r=e[bo])return r;e=Ab(e)}return t}e=r,r=e.parentNode}return null}function rd(e){return e=e[bo]||e[es],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function pf(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(st(33))}function Jv(e){return e[V0]||null}function lC(e){var t=e[Tb];return t===void 0&&(t=e[Tb]=new Set),t}var Cx=[],vf=-1;function Ho(e){return{current:e}}function Nr(e){0>vf||(e.current=Cx[vf],Cx[vf]=null,vf--)}function Gr(e,t){vf++,Cx[vf]=e.current,e.current=t}var Lo={},kn=Ho(Lo),Hn=Ho(!1),Hu=Lo;function Bf(e,t){var r=e.type.contextTypes;if(!r)return Lo;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 Wn(e){return e=e.childContextTypes,e!=null}function q0(){Nr(Hn),Nr(kn)}function Cb(e,t,r){if(kn.current!==Lo)throw Error(st(168));Gr(kn,t),Gr(Hn,r)}function fC(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(st(108,wf(t)||"Unknown",i));return Dr({},r,n)}function A0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lo,Hu=kn.current,Gr(kn,e),Gr(Hn,Hn.current),!0}function kb(e,t,r){var n=e.stateNode;if(!n)throw Error(st(169));r?(e=fC(e,t,Hu),n.__reactInternalMemoizedMergedChildContext=e,Nr(Hn),Nr(kn),Gr(kn,e)):Nr(Hn),Gr(Hn,r)}var S_=null,$u=null,U8=pn.unstable_runWithPriority,E_=pn.unstable_scheduleCallback,kx=pn.unstable_cancelCallback,j8=pn.unstable_shouldYield,Ob=pn.unstable_requestPaint,Ox=pn.unstable_now,G8=pn.unstable_getCurrentPriorityLevel,em=pn.unstable_ImmediatePriority,sC=pn.unstable_UserBlockingPriority,cC=pn.unstable_NormalPriority,hC=pn.unstable_LowPriority,dC=pn.unstable_IdlePriority,Rg={},H8=Ob!==void 0?Ob:function(){},Ta=null,T0=null,Ig=!1,Mb=Ox(),Tn=1e4>Mb?Ox:function(){return Ox()-Mb};function $f(){switch(G8()){case em:return 99;case sC:return 98;case cC:return 97;case hC:return 96;case dC:return 95;default:throw Error(st(332))}}function pC(e){switch(e){case 99:return em;case 98:return sC;case 97:return cC;case 96:return hC;case 95:return dC;default:throw Error(st(332))}}function Wu(e,t){return e=pC(e),U8(e,t)}function Nh(e,t,r){return e=pC(e),E_(e,t,r)}function ra(){if(T0!==null){var e=T0;T0=null,kx(e)}vC()}function vC(){if(!Ig&&Ta!==null){Ig=!0;var e=0;try{var t=Ta;Wu(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),Ta=null}catch(r){throw Ta!==null&&(Ta=Ta.slice(e+1)),E_(em,ra),r}finally{Ig=!1}}}var W8=nl.ReactCurrentBatchConfig;function Fi(e,t){if(e&&e.defaultProps){t=Dr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var Y0=Ho(null),X0=null,mf=null,Q0=null;function A_(){Q0=mf=X0=null}function T_(e){var t=Y0.current;Nr(Y0),e.type._context._currentValue=t}function mC(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 Tf(e,t){X0=e,Q0=mf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ri=!0),e.firstContext=null)}function mi(e,t){if(Q0!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Q0=e,t=1073741823),t={context:e,observedBits:t,next:null},mf===null){if(X0===null)throw Error(st(308));mf=t,X0.dependencies={lanes:0,firstContext:t,responders:null}}else mf=mf.next=t;return e._currentValue}var mo=!1;function C_(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function gC(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 Oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mo(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 Fb(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 u={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=u:a=a.next=u,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 Rh(e,t,r,n){var i=e.updateQueue;mo=!1;var a=i.firstBaseUpdate,u=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,c=s.next;s.next=null,u===null?a=c:u.next=c,u=s;var v=e.alternate;if(v!==null){v=v.updateQueue;var x=v.lastBaseUpdate;x!==u&&(x===null?v.firstBaseUpdate=c:x.next=c,v.lastBaseUpdate=s)}}if(a!==null){x=i.baseState,u=0,v=c=s=null;do{l=a.lane;var y=a.eventTime;if((n&l)===l){v!==null&&(v=v.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,k=a;switch(l=t,y=r,k.tag){case 1:if(g=k.payload,typeof g=="function"){x=g.call(y,x,l);break e}x=g;break e;case 3:g.flags=g.flags&-4097|64;case 0:if(g=k.payload,l=typeof g=="function"?g.call(y,x,l):g,l==null)break e;x=Dr({},x,l);break e;case 2:mo=!0}}a.callback!==null&&(e.flags|=32,l=i.effects,l===null?i.effects=[a]:l.push(a))}else y={eventTime:y,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},v===null?(c=v=y,s=x):v=v.next=y,u|=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);v===null&&(s=x),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=v,id|=u,e.lanes=u,e.memoizedState=x}}function Nb(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(st(191,i));i.call(n)}}}var yC=new Wv.Component().refs;function Z0(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Dr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var tm={isMounted:function(e){return(e=e._reactInternals)?il(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ri(),i=Fo(e),a=Oo(n,i);a.payload=t,r!=null&&(a.callback=r),Mo(e,a),No(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ri(),i=Fo(e),a=Oo(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),Mo(e,a),No(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ri(),n=Fo(e),i=Oo(r,n);i.tag=2,t!=null&&(i.callback=t),Mo(e,i),No(e,n,r)}};function Rb(e,t,r,n,i,a,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,u):t.prototype&&t.prototype.isPureReactComponent?!Mh(r,n)||!Mh(i,a):!0}function xC(e,t,r){var n=!1,i=Lo,a=t.contextType;return typeof a=="object"&&a!==null?a=mi(a):(i=Wn(t)?Hu:kn.current,n=t.contextTypes,a=(n=n!=null)?Bf(e,i):Lo),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=tm,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ib(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&&tm.enqueueReplaceState(t,t.state,null)}function Mx(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=yC,C_(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=mi(a):(a=Wn(t)?Hu:kn.current,i.context=Bf(e,a)),Rh(e,r,i,n),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Z0(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&&tm.enqueueReplaceState(i,i.state,null),Rh(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var Ip=Array.isArray;function Ac(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(st(309));var n=r.stateNode}if(!n)throw Error(st(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 u=n.refs;u===yC&&(u=n.refs={}),a===null?delete u[i]:u[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(st(284));if(!r._owner)throw Error(st(290,e))}return e}function Pp(e,t){if(e.type!=="textarea")throw Error(st(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _C(e){function t(b,w){if(e){var A=b.lastEffect;A!==null?(A.nextEffect=w,b.lastEffect=w):b.firstEffect=b.lastEffect=w,w.nextEffect=null,w.flags=8}}function r(b,w){if(!e)return null;for(;w!==null;)t(b,w),w=w.sibling;return null}function n(b,w){for(b=new Map;w!==null;)w.key!==null?b.set(w.key,w):b.set(w.index,w),w=w.sibling;return b}function i(b,w){return b=Bo(b,w),b.index=0,b.sibling=null,b}function a(b,w,A){return b.index=A,e?(A=b.alternate,A!==null?(A=A.index,A<w?(b.flags=2,w):A):(b.flags=2,w)):w}function u(b){return e&&b.alternate===null&&(b.flags=2),b}function l(b,w,A,M){return w===null||w.tag!==6?(w=$g(A,b.mode,M),w.return=b,w):(w=i(w,A),w.return=b,w)}function s(b,w,A,M){return w!==null&&w.elementType===A.type?(M=i(w,A.props),M.ref=Ac(b,w,A),M.return=b,M):(M=M0(A.type,A.key,A.props,null,b.mode,M),M.ref=Ac(b,w,A),M.return=b,M)}function c(b,w,A,M){return w===null||w.tag!==4||w.stateNode.containerInfo!==A.containerInfo||w.stateNode.implementation!==A.implementation?(w=zg(A,b.mode,M),w.return=b,w):(w=i(w,A.children||[]),w.return=b,w)}function v(b,w,A,M,R){return w===null||w.tag!==7?(w=Mf(A,b.mode,M,R),w.return=b,w):(w=i(w,A),w.return=b,w)}function x(b,w,A){if(typeof w=="string"||typeof w=="number")return w=$g(""+w,b.mode,A),w.return=b,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Wc:return A=M0(w.type,w.key,w.props,null,b.mode,A),A.ref=Ac(b,null,w),A.return=b,A;case Fu:return w=zg(w,b.mode,A),w.return=b,w}if(Ip(w)||xc(w))return w=Mf(w,b.mode,A,null),w.return=b,w;Pp(b,w)}return null}function y(b,w,A,M){var R=w!==null?w.key:null;if(typeof A=="string"||typeof A=="number")return R!==null?null:l(b,w,""+A,M);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Wc:return A.key===R?A.type===xo?v(b,w,A.props.children,M,R):s(b,w,A,M):null;case Fu:return A.key===R?c(b,w,A,M):null}if(Ip(A)||xc(A))return R!==null?null:v(b,w,A,M,null);Pp(b,A)}return null}function g(b,w,A,M,R){if(typeof M=="string"||typeof M=="number")return b=b.get(A)||null,l(w,b,""+M,R);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case Wc:return b=b.get(M.key===null?A:M.key)||null,M.type===xo?v(w,b,M.props.children,R,M.key):s(w,b,M,R);case Fu:return b=b.get(M.key===null?A:M.key)||null,c(w,b,M,R)}if(Ip(M)||xc(M))return b=b.get(A)||null,v(w,b,M,R,null);Pp(w,M)}return null}function k(b,w,A,M){for(var R=null,L=null,D=w,ne=w=0,Y=null;D!==null&&ne<A.length;ne++){D.index>ne?(Y=D,D=null):Y=D.sibling;var ae=y(b,D,A[ne],M);if(ae===null){D===null&&(D=Y);break}e&&D&&ae.alternate===null&&t(b,D),w=a(ae,w,ne),L===null?R=ae:L.sibling=ae,L=ae,D=Y}if(ne===A.length)return r(b,D),R;if(D===null){for(;ne<A.length;ne++)D=x(b,A[ne],M),D!==null&&(w=a(D,w,ne),L===null?R=D:L.sibling=D,L=D);return R}for(D=n(b,D);ne<A.length;ne++)Y=g(D,b,ne,A[ne],M),Y!==null&&(e&&Y.alternate!==null&&D.delete(Y.key===null?ne:Y.key),w=a(Y,w,ne),L===null?R=Y:L.sibling=Y,L=Y);return e&&D.forEach(function(Ce){return t(b,Ce)}),R}function N(b,w,A,M){var R=xc(A);if(typeof R!="function")throw Error(st(150));if(A=R.call(A),A==null)throw Error(st(151));for(var L=R=null,D=w,ne=w=0,Y=null,ae=A.next();D!==null&&!ae.done;ne++,ae=A.next()){D.index>ne?(Y=D,D=null):Y=D.sibling;var Ce=y(b,D,ae.value,M);if(Ce===null){D===null&&(D=Y);break}e&&D&&Ce.alternate===null&&t(b,D),w=a(Ce,w,ne),L===null?R=Ce:L.sibling=Ce,L=Ce,D=Y}if(ae.done)return r(b,D),R;if(D===null){for(;!ae.done;ne++,ae=A.next())ae=x(b,ae.value,M),ae!==null&&(w=a(ae,w,ne),L===null?R=ae:L.sibling=ae,L=ae);return R}for(D=n(b,D);!ae.done;ne++,ae=A.next())ae=g(D,b,ne,ae.value,M),ae!==null&&(e&&ae.alternate!==null&&D.delete(ae.key===null?ne:ae.key),w=a(ae,w,ne),L===null?R=ae:L.sibling=ae,L=ae);return e&&D.forEach(function(Fe){return t(b,Fe)}),R}return function(b,w,A,M){var R=typeof A=="object"&&A!==null&&A.type===xo&&A.key===null;R&&(A=A.props.children);var L=typeof A=="object"&&A!==null;if(L)switch(A.$$typeof){case Wc:e:{for(L=A.key,R=w;R!==null;){if(R.key===L){switch(R.tag){case 7:if(A.type===xo){r(b,R.sibling),w=i(R,A.props.children),w.return=b,b=w;break e}break;default:if(R.elementType===A.type){r(b,R.sibling),w=i(R,A.props),w.ref=Ac(b,R,A),w.return=b,b=w;break e}}r(b,R);break}else t(b,R);R=R.sibling}A.type===xo?(w=Mf(A.props.children,b.mode,M,A.key),w.return=b,b=w):(M=M0(A.type,A.key,A.props,null,b.mode,M),M.ref=Ac(b,w,A),M.return=b,b=M)}return u(b);case Fu:e:{for(R=A.key;w!==null;){if(w.key===R)if(w.tag===4&&w.stateNode.containerInfo===A.containerInfo&&w.stateNode.implementation===A.implementation){r(b,w.sibling),w=i(w,A.children||[]),w.return=b,b=w;break e}else{r(b,w);break}else t(b,w);w=w.sibling}w=zg(A,b.mode,M),w.return=b,b=w}return u(b)}if(typeof A=="string"||typeof A=="number")return A=""+A,w!==null&&w.tag===6?(r(b,w.sibling),w=i(w,A),w.return=b,b=w):(r(b,w),w=$g(A,b.mode,M),w.return=b,b=w),u(b);if(Ip(A))return k(b,w,A,M);if(xc(A))return N(b,w,A,M);if(L&&Pp(b,A),typeof A>"u"&&!R)switch(b.tag){case 1:case 22:case 0:case 11:case 15:throw Error(st(152,wf(b.type)||"Component"))}return r(b,w)}}var K0=_C(!0),wC=_C(!1),nd={},Ki=Ho(nd),Ih=Ho(nd),Ph=Ho(nd);function Iu(e){if(e===nd)throw Error(st(174));return e}function Fx(e,t){switch(Gr(Ph,t),Gr(Ih,e),Gr(Ki,nd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vx(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vx(t,e)}Nr(Ki),Gr(Ki,t)}function zf(){Nr(Ki),Nr(Ih),Nr(Ph)}function Pb(e){Iu(Ph.current);var t=Iu(Ki.current),r=vx(t,e.type);t!==r&&(Gr(Ih,e),Gr(Ki,r))}function k_(e){Ih.current===e&&(Nr(Ki),Nr(Ih))}var Ur=Ho(0);function J0(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 Oa=null,So=null,Ji=!1;function bC(e,t){var r=pi(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 Lb(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 Nx(e){if(Ji){var t=So;if(t){var r=t;if(!Lb(e,t)){if(t=Af(r.nextSibling),!t||!Lb(e,t)){e.flags=e.flags&-1025|2,Ji=!1,Oa=e;return}bC(Oa,r)}Oa=e,So=Af(t.firstChild)}else e.flags=e.flags&-1025|2,Ji=!1,Oa=e}}function Db(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Oa=e}function Lp(e){if(e!==Oa)return!1;if(!Ji)return Db(e),Ji=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Tx(t,e.memoizedProps))for(t=So;t;)bC(e,t),t=Af(t.nextSibling);if(Db(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(st(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){So=Af(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}So=null}}else So=Oa?Af(e.stateNode.nextSibling):null;return!0}function Pg(){So=Oa=null,Ji=!1}var Cf=[];function O_(){for(var e=0;e<Cf.length;e++)Cf[e]._workInProgressVersionPrimary=null;Cf.length=0}var uh=nl.ReactCurrentDispatcher,vi=nl.ReactCurrentBatchConfig,Lh=0,qr=null,An=null,xn=null,ev=!1,lh=!1;function Un(){throw Error(st(321))}function M_(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!di(e[r],t[r]))return!1;return!0}function F_(e,t,r,n,i,a){if(Lh=a,qr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,uh.current=e===null||e.memoizedState===null?q8:Y8,e=r(n,i),lh){a=0;do{if(lh=!1,!(25>a))throw Error(st(301));a+=1,xn=An=null,t.updateQueue=null,uh.current=X8,e=r(n,i)}while(lh)}if(uh.current=iv,t=An!==null&&An.next!==null,Lh=0,xn=An=qr=null,ev=!1,t)throw Error(st(300));return e}function Pu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xn===null?qr.memoizedState=xn=e:xn=xn.next=e,xn}function al(){if(An===null){var e=qr.alternate;e=e!==null?e.memoizedState:null}else e=An.next;var t=xn===null?qr.memoizedState:xn.next;if(t!==null)xn=t,An=e;else{if(e===null)throw Error(st(310));An=e,e={memoizedState:An.memoizedState,baseState:An.baseState,baseQueue:An.baseQueue,queue:An.queue,next:null},xn===null?qr.memoizedState=xn=e:xn=xn.next=e}return xn}function Xi(e,t){return typeof t=="function"?t(e):t}function Tc(e){var t=al(),r=t.queue;if(r===null)throw Error(st(311));r.lastRenderedReducer=e;var n=An,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var u=i.next;i.next=a.next,a.next=u}n.baseQueue=i=a,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var l=u=a=null,s=i;do{var c=s.lane;if((Lh&c)===c)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 v={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};l===null?(u=l=v,a=n):l=l.next=v,qr.lanes|=c,id|=c}s=s.next}while(s!==null&&s!==i);l===null?a=n:l.next=u,di(n,t.memoizedState)||(Ri=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Cc(e){var t=al(),r=t.queue;if(r===null)throw Error(st(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var u=i=i.next;do a=e(a,u.action),u=u.next;while(u!==i);di(a,t.memoizedState)||(Ri=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function Bb(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=(Lh&e)===e)&&(t._workInProgressVersionPrimary=n,Cf.push(t))),e)return r(t._source);throw Cf.push(t),Error(st(350))}function SC(e,t,r,n){var i=In;if(i===null)throw Error(st(349));var a=t._getVersion,u=a(t._source),l=uh.current,s=l.useState(function(){return Bb(i,t,r)}),c=s[1],v=s[0];s=xn;var x=e.memoizedState,y=x.refs,g=y.getSnapshot,k=x.source;x=x.subscribe;var N=qr;return e.memoizedState={refs:y,source:t,subscribe:n},l.useEffect(function(){y.getSnapshot=r,y.setSnapshot=c;var b=a(t._source);if(!di(u,b)){b=r(t._source),di(v,b)||(c(b),b=Fo(N),i.mutableReadLanes|=b&i.pendingLanes),b=i.mutableReadLanes,i.entangledLanes|=b;for(var w=i.entanglements,A=b;0<A;){var M=31-Po(A),R=1<<M;w[M]|=b,A&=~R}}},[r,t,n]),l.useEffect(function(){return n(t._source,function(){var b=y.getSnapshot,w=y.setSnapshot;try{w(b(t._source));var A=Fo(N);i.mutableReadLanes|=A&i.pendingLanes}catch(M){w(function(){throw M})}})},[t,n]),di(g,r)&&di(k,t)&&di(x,n)||(e={pending:null,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:v},e.dispatch=c=I_.bind(null,qr,e),s.queue=e,s.baseQueue=null,v=Bb(i,t,r),s.memoizedState=s.baseState=v),v}function EC(e,t,r){var n=al();return SC(n,e,t,r)}function kc(e){var t=Pu();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:e},e=e.dispatch=I_.bind(null,qr,e),[t.memoizedState,e]}function tv(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 $b(e){var t=Pu();return e={current:e},t.memoizedState=e}function rv(){return al().memoizedState}function Rx(e,t,r,n){var i=Pu();qr.flags|=e,i.memoizedState=tv(1|t,r,void 0,n===void 0?null:n)}function N_(e,t,r,n){var i=al();n=n===void 0?null:n;var a=void 0;if(An!==null){var u=An.memoizedState;if(a=u.destroy,n!==null&&M_(n,u.deps)){tv(t,r,a,n);return}}qr.flags|=e,i.memoizedState=tv(1|t,r,a,n)}function zb(e,t){return Rx(516,4,e,t)}function nv(e,t){return N_(516,4,e,t)}function AC(e,t){return N_(4,2,e,t)}function TC(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 CC(e,t,r){return r=r!=null?r.concat([e]):null,N_(4,2,TC.bind(null,t,e),r)}function R_(){}function kC(e,t){var r=al();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&M_(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function OC(e,t){var r=al();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&M_(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function V8(e,t){var r=$f();Wu(98>r?98:r,function(){e(!0)}),Wu(97<r?97:r,function(){var n=vi.transition;vi.transition=1;try{e(!1),t()}finally{vi.transition=n}})}function I_(e,t,r){var n=ri(),i=Fo(e),a={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},u=t.pending;if(u===null?a.next=a:(a.next=u.next,u.next=a),t.pending=a,u=e.alternate,e===qr||u!==null&&u===qr)lh=ev=!0;else{if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var l=t.lastRenderedState,s=u(l,r);if(a.eagerReducer=u,a.eagerState=s,di(s,l))return}catch{}finally{}No(e,i,n)}}var iv={readContext:mi,useCallback:Un,useContext:Un,useEffect:Un,useImperativeHandle:Un,useLayoutEffect:Un,useMemo:Un,useReducer:Un,useRef:Un,useState:Un,useDebugValue:Un,useDeferredValue:Un,useTransition:Un,useMutableSource:Un,useOpaqueIdentifier:Un,unstable_isNewReconciler:!1},q8={readContext:mi,useCallback:function(e,t){return Pu().memoizedState=[e,t===void 0?null:t],e},useContext:mi,useEffect:zb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Rx(4,2,TC.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Rx(4,2,e,t)},useMemo:function(e,t){var r=Pu();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Pu();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=I_.bind(null,qr,e),[n.memoizedState,e]},useRef:$b,useState:kc,useDebugValue:R_,useDeferredValue:function(e){var t=kc(e),r=t[0],n=t[1];return zb(function(){var i=vi.transition;vi.transition=1;try{n(e)}finally{vi.transition=i}},[e]),r},useTransition:function(){var e=kc(!1),t=e[0];return e=V8.bind(null,e[1]),$b(e),[e,t]},useMutableSource:function(e,t,r){var n=Pu();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},SC(n,e,t,r)},useOpaqueIdentifier:function(){if(Ji){var e=!1,t=z8(function(){throw e||(e=!0,r("r:"+(Ng++).toString(36))),Error(st(355))}),r=kc(t)[1];return!(qr.mode&2)&&(qr.flags|=516,tv(5,function(){r("r:"+(Ng++).toString(36))},void 0,null)),t}return t="r:"+(Ng++).toString(36),kc(t),t},unstable_isNewReconciler:!1},Y8={readContext:mi,useCallback:kC,useContext:mi,useEffect:nv,useImperativeHandle:CC,useLayoutEffect:AC,useMemo:OC,useReducer:Tc,useRef:rv,useState:function(){return Tc(Xi)},useDebugValue:R_,useDeferredValue:function(e){var t=Tc(Xi),r=t[0],n=t[1];return nv(function(){var i=vi.transition;vi.transition=1;try{n(e)}finally{vi.transition=i}},[e]),r},useTransition:function(){var e=Tc(Xi)[0];return[rv().current,e]},useMutableSource:EC,useOpaqueIdentifier:function(){return Tc(Xi)[0]},unstable_isNewReconciler:!1},X8={readContext:mi,useCallback:kC,useContext:mi,useEffect:nv,useImperativeHandle:CC,useLayoutEffect:AC,useMemo:OC,useReducer:Cc,useRef:rv,useState:function(){return Cc(Xi)},useDebugValue:R_,useDeferredValue:function(e){var t=Cc(Xi),r=t[0],n=t[1];return nv(function(){var i=vi.transition;vi.transition=1;try{n(e)}finally{vi.transition=i}},[e]),r},useTransition:function(){var e=Cc(Xi)[0];return[rv().current,e]},useMutableSource:EC,useOpaqueIdentifier:function(){return Cc(Xi)[0]},unstable_isNewReconciler:!1},Q8=nl.ReactCurrentOwner,Ri=!1;function jn(e,t,r,n){t.child=e===null?wC(t,null,r,n):K0(t,e.child,r,n)}function Ub(e,t,r,n,i){r=r.render;var a=t.ref;return Tf(t,i),n=F_(e,t,r,n,a,i),e!==null&&!Ri?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ma(e,t,i)):(t.flags|=1,jn(e,t,n,i),t.child)}function jb(e,t,r,n,i,a){if(e===null){var u=r.type;return typeof u=="function"&&!z_(u)&&u.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=u,MC(e,t,u,n,i,a)):(e=M0(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return u=e.child,!(i&a)&&(i=u.memoizedProps,r=r.compare,r=r!==null?r:Mh,r(i,n)&&e.ref===t.ref)?Ma(e,t,a):(t.flags|=1,e=Bo(u,n),e.ref=t.ref,e.return=t,t.child=e)}function MC(e,t,r,n,i,a){if(e!==null&&Mh(e.memoizedProps,n)&&e.ref===t.ref)if(Ri=!1,(a&i)!==0)e.flags&16384&&(Ri=!0);else return t.lanes=e.lanes,Ma(e,t,a);return Ix(e,t,r,n,a)}function Lg(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},Bp(t,r);else if(r&1073741824)t.memoizedState={baseLanes:0},Bp(t,a!==null?a.baseLanes:r);else return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Bp(t,e),null;else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Bp(t,n);return jn(e,t,i,r),t.child}function FC(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function Ix(e,t,r,n,i){var a=Wn(r)?Hu:kn.current;return a=Bf(t,a),Tf(t,i),r=F_(e,t,r,n,a,i),e!==null&&!Ri?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ma(e,t,i)):(t.flags|=1,jn(e,t,r,i),t.child)}function Gb(e,t,r,n,i){if(Wn(r)){var a=!0;A0(t)}else a=!1;if(Tf(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),xC(t,r,n),Mx(t,r,n,i),n=!0;else if(e===null){var u=t.stateNode,l=t.memoizedProps;u.props=l;var s=u.context,c=r.contextType;typeof c=="object"&&c!==null?c=mi(c):(c=Wn(r)?Hu:kn.current,c=Bf(t,c));var v=r.getDerivedStateFromProps,x=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function";x||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(l!==n||s!==c)&&Ib(t,u,n,c),mo=!1;var y=t.memoizedState;u.state=y,Rh(t,n,u,i),s=t.memoizedState,l!==n||y!==s||Hn.current||mo?(typeof v=="function"&&(Z0(t,r,v,n),s=t.memoizedState),(l=mo||Rb(t,r,l,n,y,s,c))?(x||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4)):(typeof u.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=s),u.props=n,u.state=s,u.context=c,n=l):(typeof u.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{u=t.stateNode,gC(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Fi(t.type,l),u.props=c,x=t.pendingProps,y=u.context,s=r.contextType,typeof s=="object"&&s!==null?s=mi(s):(s=Wn(r)?Hu:kn.current,s=Bf(t,s));var g=r.getDerivedStateFromProps;(v=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(l!==x||y!==s)&&Ib(t,u,n,s),mo=!1,y=t.memoizedState,u.state=y,Rh(t,n,u,i);var k=t.memoizedState;l!==x||y!==k||Hn.current||mo?(typeof g=="function"&&(Z0(t,r,g,n),k=t.memoizedState),(c=mo||Rb(t,r,c,n,y,k,s))?(v||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,k,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,k,s)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof u.componentDidUpdate!="function"||l===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&y===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=k),u.props=n,u.state=k,u.context=s,n=c):(typeof u.componentDidUpdate!="function"||l===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&y===e.memoizedState||(t.flags|=256),n=!1)}return Px(e,t,r,n,a,i)}function Px(e,t,r,n,i,a){FC(e,t);var u=(t.flags&64)!==0;if(!n&&!u)return i&&kb(t,r,!1),Ma(e,t,a);n=t.stateNode,Q8.current=t;var l=u&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&u?(t.child=K0(t,e.child,null,a),t.child=K0(t,null,l,a)):jn(e,t,l,a),t.memoizedState=n.state,i&&kb(t,r,!0),t.child}function Hb(e){var t=e.stateNode;t.pendingContext?Cb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cb(e,t.context,!1),Fx(e,t.containerInfo)}var Dp={dehydrated:null,retryLane:0};function Wb(e,t,r){var n=t.pendingProps,i=Ur.current,a=!1,u;return(u=(t.flags&64)!==0)||(u=e!==null&&e.memoizedState===null?!1:(i&2)!==0),u?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||n.fallback===void 0||n.unstable_avoidThisFallback===!0||(i|=1),Gr(Ur,i&1),e===null?(n.fallback!==void 0&&Nx(t),e=n.children,i=n.fallback,a?(e=Vb(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Dp,e):typeof n.unstable_expectedLoadTime=="number"?(e=Vb(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Dp,t.lanes=33554432,e):(r=U_({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?a?(n=Yb(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=Dp,n):(r=qb(e,t,n.children,r),t.memoizedState=null,r):a?(n=Yb(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=Dp,n):(r=qb(e,t,n.children,r),t.memoizedState=null,r)}function Vb(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=U_(t,i,0,null),r=Mf(r,i,n,null),a.return=e,r.return=e,a.sibling=r,e.child=a,r}function qb(e,t,r,n){var i=e.child;return e=i.sibling,r=Bo(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 Yb(e,t,r,n,i){var a=t.mode,u=e.child;e=u.sibling;var l={mode:"hidden",children:r};return!(a&2)&&t.child!==u?(r=t.child,r.childLanes=0,r.pendingProps=l,u=r.lastEffect,u!==null?(t.firstEffect=r.firstEffect,t.lastEffect=u,u.nextEffect=null):t.firstEffect=t.lastEffect=null):r=Bo(u,l),e!==null?n=Bo(e,n):(n=Mf(n,a,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function Xb(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),mC(e.return,t)}function Dg(e,t,r,n,i,a){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:a}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=n,u.tail=r,u.tailMode=i,u.lastEffect=a)}function Qb(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(jn(e,t,n.children,r),n=Ur.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&&Xb(e,r);else if(e.tag===19)Xb(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(Gr(Ur,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&&J0(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Dg(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&&J0(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Dg(t,!0,r,null,a,t.lastEffect);break;case"together":Dg(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ma(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),id|=t.lanes,r&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(st(153));if(t.child!==null){for(e=t.child,r=Bo(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Bo(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var NC,Lx,RC,IC;NC=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}};Lx=function(){};RC=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Iu(Ki.current);var a=null;switch(r){case"input":i=fx(e,i),n=fx(e,n),a=[];break;case"option":i=hx(e,i),n=hx(e,n),a=[];break;case"select":i=Dr({},i,{value:void 0}),n=Dr({},n,{value:void 0}),a=[];break;case"textarea":i=dx(e,i),n=dx(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=W0)}mx(r,n);var u;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(u in l)l.hasOwnProperty(u)&&(r||(r={}),r[u]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Sh.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var s=n[c];if(l=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(u in l)!l.hasOwnProperty(u)||s&&s.hasOwnProperty(u)||(r||(r={}),r[u]="");for(u in s)s.hasOwnProperty(u)&&l[u]!==s[u]&&(r||(r={}),r[u]=s[u])}else r||(a||(a=[]),a.push(c,r)),r=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Sh.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&Mr("scroll",e),a||l===s||(a=[])):typeof s=="object"&&s!==null&&s.$$typeof===u_?s.toString():(a=a||[]).push(c,s))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};IC=function(e,t,r,n){r!==n&&(t.flags|=4)};function Oc(e,t){if(!Ji)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 Z8(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 Wn(t.type)&&q0(),null;case 3:return zf(),Nr(Hn),Nr(kn),O_(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Lp(t)?t.flags|=4:n.hydrate||(t.flags|=256)),Lx(t),null;case 5:k_(t);var i=Iu(Ph.current);if(r=t.type,e!==null&&t.stateNode!=null)RC(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(st(166));return null}if(e=Iu(Ki.current),Lp(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[bo]=t,n[V0]=a,r){case"dialog":Mr("cancel",n),Mr("close",n);break;case"iframe":case"object":case"embed":Mr("load",n);break;case"video":case"audio":for(e=0;e<qc.length;e++)Mr(qc[e],n);break;case"source":Mr("error",n);break;case"img":case"image":case"link":Mr("error",n),Mr("load",n);break;case"details":Mr("toggle",n);break;case"input":Qw(n,a),Mr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Mr("invalid",n);break;case"textarea":Kw(n,a),Mr("invalid",n)}mx(r,a),e=null;for(var u in a)a.hasOwnProperty(u)&&(i=a[u],u==="children"?typeof i=="string"?n.textContent!==i&&(e=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(e=["children",""+i]):Sh.hasOwnProperty(u)&&i!=null&&u==="onScroll"&&Mr("scroll",n));switch(r){case"input":Mp(n),Zw(n,a,!0);break;case"textarea":Mp(n),Jw(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=W0)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(u=i.nodeType===9?i:i.ownerDocument,e===px.html&&(e=CT(r)),e===px.html?r==="script"?(e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=u.createElement(r,{is:n.is}):(e=u.createElement(r),r==="select"&&(u=e,n.multiple?u.multiple=!0:n.size&&(u.size=n.size))):e=u.createElementNS(e,r),e[bo]=t,e[V0]=n,NC(e,t,!1,!1),t.stateNode=e,u=gx(r,n),r){case"dialog":Mr("cancel",e),Mr("close",e),i=n;break;case"iframe":case"object":case"embed":Mr("load",e),i=n;break;case"video":case"audio":for(i=0;i<qc.length;i++)Mr(qc[i],e);i=n;break;case"source":Mr("error",e),i=n;break;case"img":case"image":case"link":Mr("error",e),Mr("load",e),i=n;break;case"details":Mr("toggle",e),i=n;break;case"input":Qw(e,n),i=fx(e,n),Mr("invalid",e);break;case"option":i=hx(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Dr({},n,{value:void 0}),Mr("invalid",e);break;case"textarea":Kw(e,n),i=dx(e,n),Mr("invalid",e);break;default:i=n}mx(r,i);var l=i;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?MT(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&kT(e,s)):a==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&Eh(e,s):typeof s=="number"&&Eh(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Sh.hasOwnProperty(a)?s!=null&&a==="onScroll"&&Mr("scroll",e):s!=null&&t_(e,a,s,u))}switch(r){case"input":Mp(e),Zw(e,n,!1);break;case"textarea":Mp(e),Jw(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Io(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?bf(e,!!n.multiple,a,!1):n.defaultValue!=null&&bf(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=W0)}uC(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)IC(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(st(166));r=Iu(Ph.current),Iu(Ki.current),Lp(t)?(n=t.stateNode,r=t.memoizedProps,n[bo]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[bo]=t,t.stateNode=n)}return null;case 13:return Nr(Ur),n=t.memoizedState,t.flags&64?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&Lp(t):r=e.memoizedState!==null,n&&!r&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Ur.current&1?_n===0&&(_n=3):((_n===0||_n===3)&&(_n=4),In===null||!(id&134217727)&&!(rs&134217727)||kf(In,Cn))),(n||r)&&(t.flags|=4),null);case 4:return zf(),Lx(t),e===null&&iC(t.stateNode.containerInfo),null;case 10:return T_(t),null;case 17:return Wn(t.type)&&q0(),null;case 19:if(Nr(Ur),n=t.memoizedState,n===null)return null;if(a=(t.flags&64)!==0,u=n.rendering,u===null)if(a)Oc(n,!1);else{if(_n!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(u=J0(e),u!==null){for(t.flags|=64,Oc(n,!1),a=u.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,u=a.alternate,u===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=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Gr(Ur,Ur.current&1|2),t.child}e=e.sibling}n.tail!==null&&Tn()>jx&&(t.flags|=64,a=!0,Oc(n,!1),t.lanes=33554432)}else{if(!a)if(e=J0(u),e!==null){if(t.flags|=64,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Oc(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!Ji)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Tn()-n.renderingStartTime>jx&&r!==1073741824&&(t.flags|=64,a=!0,Oc(n,!1),t.lanes=33554432);n.isBackwards?(u.sibling=t.child,t.child=u):(r=n.last,r!==null?r.sibling=u:t.child=u,n.last=u)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Tn(),r.sibling=null,t=Ur.current,Gr(Ur,a?t&1|2:t&1),r):null;case 23:case 24:return $_(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(st(156,t.tag))}function K8(e){switch(e.tag){case 1:Wn(e.type)&&q0();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(zf(),Nr(Hn),Nr(kn),O_(),t=e.flags,t&64)throw Error(st(285));return e.flags=t&-4097|64,e;case 5:return k_(e),null;case 13:return Nr(Ur),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Nr(Ur),null;case 4:return zf(),null;case 10:return T_(e),null;case 23:case 24:return $_(),null;default:return null}}function P_(e,t){try{var r="",n=t;do r+=NF(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 Dx(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var J8=typeof WeakMap=="function"?WeakMap:Map;function PC(e,t,r){r=Oo(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){ov||(ov=!0,Gx=n),Dx(e,t)},r}function LC(e,t,r){r=Oo(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return Dx(e,t),n(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Qi===null?Qi=new Set([this]):Qi.add(this),Dx(e,t));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),r}var e6=typeof WeakSet=="function"?WeakSet:Set;function Zb(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Ro(e,r)}else t.current=null}function t6(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:Fi(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&b_(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(st(163))}function r6(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&&(WC(r,e),s6(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:Fi(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&Nb(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}Nb(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&uC(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&&zT(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(st(163))}function Kb(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=OT("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 Jb(e,t){if($u&&typeof $u.onCommitFiberUnmount=="function")try{$u.onCommitFiberUnmount(S_,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)WC(t,r);else{n=t;try{i()}catch(a){Ro(n,a)}}r=r.next}while(r!==e)}break;case 1:if(Zb(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Ro(t,a)}break;case 5:Zb(t);break;case 4:DC(e,t)}}function eS(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 tS(e){return e.tag===5||e.tag===3||e.tag===4}function rS(e){e:{for(var t=e.return;t!==null;){if(tS(t))break e;t=t.return}throw Error(st(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(st(161))}r.flags&16&&(Eh(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||tS(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?Bx(e,r,t):$x(e,r,t)}function Bx(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=W0));else if(n!==4&&(e=e.child,e!==null))for(Bx(e,t,r),e=e.sibling;e!==null;)Bx(e,t,r),e=e.sibling}function $x(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($x(e,t,r),e=e.sibling;e!==null;)$x(e,t,r),e=e.sibling}function DC(e,t){for(var r=t,n=!1,i,a;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(st(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 u=e,l=r,s=l;;)if(Jb(u,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?(u=i,l=r.stateNode,u.nodeType===8?u.parentNode.removeChild(l):u.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(Jb(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 Bg(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[V0]=n,e==="input"&&n.type==="radio"&&n.name!=null&&AT(r,n),gx(e,i),t=gx(e,n),i=0;i<a.length;i+=2){var u=a[i],l=a[i+1];u==="style"?MT(r,l):u==="dangerouslySetInnerHTML"?kT(r,l):u==="children"?Eh(r,l):t_(r,u,l,t)}switch(e){case"input":sx(r,n);break;case"textarea":TT(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,a=n.value,a!=null?bf(r,!!n.multiple,a,!1):e!==!!n.multiple&&(n.defaultValue!=null?bf(r,!!n.multiple,n.defaultValue,!0):bf(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(st(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,zT(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(B_=Tn(),Kb(t.child,!0)),nS(t);return;case 19:nS(t);return;case 17:return;case 23:case 24:Kb(t,t.memoizedState!==null);return}throw Error(st(163))}function nS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new e6),t.forEach(function(n){var i=d6.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function n6(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var i6=Math.ceil,av=nl.ReactCurrentDispatcher,L_=nl.ReactCurrentOwner,Kt=0,In=null,on=null,Cn=0,Vu=0,zx=Ho(0),_n=0,rm=null,ts=0,id=0,rs=0,D_=0,Ux=null,B_=0,jx=1/0;function ns(){jx=Tn()+500}var Bt=null,ov=!1,Gx=null,Qi=null,Do=!1,fh=null,Yc=90,Hx=[],Wx=[],Na=null,sh=0,Vx=null,C0=-1,Ca=0,k0=0,ch=null,O0=!1;function ri(){return Kt&48?Tn():C0!==-1?C0:C0=Tn()}function Fo(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return $f()===99?1:2;if(Ca===0&&(Ca=ts),W8.transition!==0){k0!==0&&(k0=Ux!==null?Ux.pendingLanes:0),e=Ca;var t=4186112&~k0;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=$f(),Kt&4&&e===98?e=G0(12,Ca):(e=YF(e),e=G0(e,Ca)),e}function No(e,t,r){if(50<sh)throw sh=0,Vx=null,Error(st(185));if(e=nm(e,t),e===null)return null;Xv(e,t,r),e===In&&(rs|=t,_n===4&&kf(e,Cn));var n=$f();t===1?Kt&8&&!(Kt&48)?qx(e):(gi(e,r),Kt===0&&(ns(),ra())):(!(Kt&4)||n!==98&&n!==99||(Na===null?Na=new Set([e]):Na.add(e)),gi(e,r)),Ux=e}function nm(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 gi(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var l=31-Po(u),s=1<<l,c=a[l];if(c===-1){if(!(s&n)||s&i){c=t,of(s);var v=Or;a[l]=10<=v?c+250:6<=v?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);u&=~s}if(n=kh(e,e===In?Cn:0),t=Or,n===0)r!==null&&(r!==Rg&&kx(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==Rg&&kx(r)}t===15?(r=qx.bind(null,e),Ta===null?(Ta=[r],T0=E_(em,vC)):Ta.push(r),r=Rg):t===14?r=Nh(99,qx.bind(null,e)):(r=XF(t),r=Nh(r,BC.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function BC(e){if(C0=-1,k0=Ca=0,Kt&48)throw Error(st(327));var t=e.callbackNode;if(Wo()&&e.callbackNode!==t)return null;var r=kh(e,e===In?Cn:0);if(r===0)return null;var n=r,i=Kt;Kt|=16;var a=jC();(In!==e||Cn!==n)&&(ns(),Of(e,n));do try{u6();break}catch(l){UC(e,l)}while(1);if(A_(),av.current=a,Kt=i,on!==null?n=0:(In=null,Cn=0,n=_n),ts&rs)Of(e,0);else if(n!==0){if(n===2&&(Kt|=64,e.hydrate&&(e.hydrate=!1,b_(e.containerInfo)),r=qT(e),r!==0&&(n=Xc(e,r))),n===1)throw t=rm,Of(e,0),kf(e,r),gi(e,Tn()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(st(345));case 2:Tu(e);break;case 3:if(kf(e,r),(r&62914560)===r&&(n=B_+500-Tn(),10<n)){if(kh(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){ri(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Eb(Tu.bind(null,e),n);break}Tu(e);break;case 4:if(kf(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var u=31-Po(r);a=1<<u,u=n[u],u>i&&(i=u),r&=~a}if(r=i,r=Tn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*i6(r/1960))-r,10<r){e.timeoutHandle=Eb(Tu.bind(null,e),r);break}Tu(e);break;case 5:Tu(e);break;default:throw Error(st(329))}}return gi(e,Tn()),e.callbackNode===t?BC.bind(null,e):null}function kf(e,t){for(t&=~D_,t&=~rs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Po(t),n=1<<r;e[r]=-1,t&=~n}}function qx(e){if(Kt&48)throw Error(st(327));if(Wo(),e===In&&e.expiredLanes&Cn){var t=Cn,r=Xc(e,t);ts&rs&&(t=kh(e,t),r=Xc(e,t))}else t=kh(e,0),r=Xc(e,t);if(e.tag!==0&&r===2&&(Kt|=64,e.hydrate&&(e.hydrate=!1,b_(e.containerInfo)),t=qT(e),t!==0&&(r=Xc(e,t))),r===1)throw r=rm,Of(e,0),kf(e,t),gi(e,Tn()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tu(e),gi(e,Tn()),null}function a6(){if(Na!==null){var e=Na;Na=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,gi(t,Tn())})}ra()}function $C(e,t){var r=Kt;Kt|=1;try{return e(t)}finally{Kt=r,Kt===0&&(ns(),ra())}}function zC(e,t){var r=Kt;Kt&=-2,Kt|=8;try{return e(t)}finally{Kt=r,Kt===0&&(ns(),ra())}}function Bp(e,t){Gr(zx,Vu),Vu|=t,ts|=t}function $_(){Vu=zx.current,Nr(zx)}function Of(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,$8(r)),on!==null)for(r=on.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&q0();break;case 3:zf(),Nr(Hn),Nr(kn),O_();break;case 5:k_(n);break;case 4:zf();break;case 13:Nr(Ur);break;case 19:Nr(Ur);break;case 10:T_(n);break;case 23:case 24:$_()}r=r.return}In=e,on=Bo(e.current,null),Cn=Vu=ts=t,_n=0,rm=null,D_=rs=id=0}function UC(e,t){do{var r=on;try{if(A_(),uh.current=iv,ev){for(var n=qr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}ev=!1}if(Lh=0,xn=An=qr=null,lh=!1,L_.current=null,r===null||r.return===null){_n=1,rm=t,on=null;break}e:{var a=e,u=r.return,l=r,s=t;if(t=Cn,l.flags|=2048,l.firstEffect=l.lastEffect=null,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s;if(!(l.mode&2)){var v=l.alternate;v?(l.updateQueue=v.updateQueue,l.memoizedState=v.memoizedState,l.lanes=v.lanes):(l.updateQueue=null,l.memoizedState=null)}var x=(Ur.current&1)!==0,y=u;do{var g;if(g=y.tag===13){var k=y.memoizedState;if(k!==null)g=k.dehydrated!==null;else{var N=y.memoizedProps;g=N.fallback===void 0?!1:N.unstable_avoidThisFallback!==!0?!0:!x}}if(g){var b=y.updateQueue;if(b===null){var w=new Set;w.add(c),y.updateQueue=w}else b.add(c);if(!(y.mode&2)){if(y.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var A=Oo(-1,1);A.tag=2,Mo(l,A)}l.lanes|=1;break e}s=void 0,l=t;var M=a.pingCache;if(M===null?(M=a.pingCache=new J8,s=new Set,M.set(c,s)):(s=M.get(c),s===void 0&&(s=new Set,M.set(c,s))),!s.has(l)){s.add(l);var R=h6.bind(null,a,c,l);c.then(R,R)}y.flags|=4096,y.lanes=t;break e}y=y.return}while(y!==null);s=Error((wf(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.`)}_n!==5&&(_n=2),s=P_(s,l),y=u;do{switch(y.tag){case 3:a=s,y.flags|=4096,t&=-t,y.lanes|=t;var L=PC(y,a,t);Fb(y,L);break e;case 1:a=s;var D=y.type,ne=y.stateNode;if(!(y.flags&64)&&(typeof D.getDerivedStateFromError=="function"||ne!==null&&typeof ne.componentDidCatch=="function"&&(Qi===null||!Qi.has(ne)))){y.flags|=4096,t&=-t,y.lanes|=t;var Y=LC(y,a,t);Fb(y,Y);break e}}y=y.return}while(y!==null)}HC(r)}catch(ae){t=ae,on===r&&r!==null&&(on=r=r.return);continue}break}while(1)}function jC(){var e=av.current;return av.current=iv,e===null?iv:e}function Xc(e,t){var r=Kt;Kt|=16;var n=jC();In===e&&Cn===t||Of(e,t);do try{o6();break}catch(i){UC(e,i)}while(1);if(A_(),Kt=r,av.current=n,on!==null)throw Error(st(261));return In=null,Cn=0,_n}function o6(){for(;on!==null;)GC(on)}function u6(){for(;on!==null&&!j8();)GC(on)}function GC(e){var t=VC(e.alternate,e,Vu);e.memoizedProps=e.pendingProps,t===null?HC(e):on=t,L_.current=null}function HC(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=K8(t),r!==null){r.flags&=2047,on=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=Z8(r,t,Vu),r!==null){on=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||Vu&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){on=t;return}on=t=e}while(t!==null);_n===0&&(_n=5)}function Tu(e){var t=$f();return Wu(99,l6.bind(null,e,t)),null}function l6(e,t){do Wo();while(fh!==null);if(Kt&48)throw Error(st(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(st(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 u=e.eventTimes,l=e.expirationTimes;0<a;){var s=31-Po(a),c=1<<s;i[s]=0,u[s]=-1,l[s]=-1,a&=~c}if(Na!==null&&!(n&24)&&Na.has(e)&&Na.delete(e),e===In&&(on=In=null,Cn=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=Kt,Kt|=32,L_.current=null,Mg=b0,u=gb(),Sx(u)){if("selectionStart"in u)l={start:u.selectionStart,end:u.selectionEnd};else e:if(l=(l=u.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&c.rangeCount!==0){l=c.anchorNode,a=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var v=0,x=-1,y=-1,g=0,k=0,N=u,b=null;t:for(;;){for(var w;N!==l||a!==0&&N.nodeType!==3||(x=v+a),N!==s||c!==0&&N.nodeType!==3||(y=v+c),N.nodeType===3&&(v+=N.nodeValue.length),(w=N.firstChild)!==null;)b=N,N=w;for(;;){if(N===u)break t;if(b===l&&++g===a&&(x=v),b===s&&++k===c&&(y=v),(w=N.nextSibling)!==null)break;N=b,b=N.parentNode}N=w}l=x===-1||y===-1?null:{start:x,end:y}}else l=null;l=l||{start:0,end:0}}else l=null;Fg={focusedElem:u,selectionRange:l},b0=!1,ch=null,O0=!1,Bt=n;do try{f6()}catch(ae){if(Bt===null)throw Error(st(330));Ro(Bt,ae),Bt=Bt.nextEffect}while(Bt!==null);ch=null,Bt=n;do try{for(u=e;Bt!==null;){var A=Bt.flags;if(A&16&&Eh(Bt.stateNode,""),A&128){var M=Bt.alternate;if(M!==null){var R=M.ref;R!==null&&(typeof R=="function"?R(null):R.current=null)}}switch(A&1038){case 2:rS(Bt),Bt.flags&=-3;break;case 6:rS(Bt),Bt.flags&=-3,Bg(Bt.alternate,Bt);break;case 1024:Bt.flags&=-1025;break;case 1028:Bt.flags&=-1025,Bg(Bt.alternate,Bt);break;case 4:Bg(Bt.alternate,Bt);break;case 8:l=Bt,DC(u,l);var L=l.alternate;eS(l),L!==null&&eS(L)}Bt=Bt.nextEffect}}catch(ae){if(Bt===null)throw Error(st(330));Ro(Bt,ae),Bt=Bt.nextEffect}while(Bt!==null);if(R=Fg,M=gb(),A=R.focusedElem,u=R.selectionRange,M!==A&&A&&A.ownerDocument&&tC(A.ownerDocument.documentElement,A)){for(u!==null&&Sx(A)&&(M=u.start,R=u.end,R===void 0&&(R=M),"selectionStart"in A?(A.selectionStart=M,A.selectionEnd=Math.min(R,A.value.length)):(R=(M=A.ownerDocument||document)&&M.defaultView||window,R.getSelection&&(R=R.getSelection(),l=A.textContent.length,L=Math.min(u.start,l),u=u.end===void 0?L:Math.min(u.end,l),!R.extend&&L>u&&(l=u,u=L,L=l),l=mb(A,L),a=mb(A,u),l&&a&&(R.rangeCount!==1||R.anchorNode!==l.node||R.anchorOffset!==l.offset||R.focusNode!==a.node||R.focusOffset!==a.offset)&&(M=M.createRange(),M.setStart(l.node,l.offset),R.removeAllRanges(),L>u?(R.addRange(M),R.extend(a.node,a.offset)):(M.setEnd(a.node,a.offset),R.addRange(M)))))),M=[],R=A;R=R.parentNode;)R.nodeType===1&&M.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<M.length;A++)R=M[A],R.element.scrollLeft=R.left,R.element.scrollTop=R.top}b0=!!Mg,Fg=Mg=null,e.current=r,Bt=n;do try{for(A=e;Bt!==null;){var D=Bt.flags;if(D&36&&r6(A,Bt.alternate,Bt),D&128){M=void 0;var ne=Bt.ref;if(ne!==null){var Y=Bt.stateNode;switch(Bt.tag){case 5:M=Y;break;default:M=Y}typeof ne=="function"?ne(M):ne.current=M}}Bt=Bt.nextEffect}}catch(ae){if(Bt===null)throw Error(st(330));Ro(Bt,ae),Bt=Bt.nextEffect}while(Bt!==null);Bt=null,H8(),Kt=i}else e.current=r;if(Do)Do=!1,fh=e,Yc=t;else for(Bt=n;Bt!==null;)t=Bt.nextEffect,Bt.nextEffect=null,Bt.flags&8&&(D=Bt,D.sibling=null,D.stateNode=null),Bt=t;if(n=e.pendingLanes,n===0&&(Qi=null),n===1?e===Vx?sh++:(sh=0,Vx=e):sh=0,r=r.stateNode,$u&&typeof $u.onCommitFiberRoot=="function")try{$u.onCommitFiberRoot(S_,r,void 0,(r.current.flags&64)===64)}catch{}if(gi(e,Tn()),ov)throw ov=!1,e=Gx,Gx=null,e;return Kt&8||ra(),null}function f6(){for(;Bt!==null;){var e=Bt.alternate;O0||ch===null||(Bt.flags&8?rb(Bt,ch)&&(O0=!0):Bt.tag===13&&n6(e,Bt)&&rb(Bt,ch)&&(O0=!0));var t=Bt.flags;t&256&&t6(e,Bt),!(t&512)||Do||(Do=!0,Nh(97,function(){return Wo(),null})),Bt=Bt.nextEffect}}function Wo(){if(Yc!==90){var e=97<Yc?97:Yc;return Yc=90,Wu(e,c6)}return!1}function s6(e,t){Hx.push(t,e),Do||(Do=!0,Nh(97,function(){return Wo(),null}))}function WC(e,t){Wx.push(t,e),Do||(Do=!0,Nh(97,function(){return Wo(),null}))}function c6(){if(fh===null)return!1;var e=fh;if(fh=null,Kt&48)throw Error(st(331));var t=Kt;Kt|=32;var r=Wx;Wx=[];for(var n=0;n<r.length;n+=2){var i=r[n],a=r[n+1],u=i.destroy;if(i.destroy=void 0,typeof u=="function")try{u()}catch(s){if(a===null)throw Error(st(330));Ro(a,s)}}for(r=Hx,Hx=[],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(st(330));Ro(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 Kt=t,ra(),!0}function iS(e,t,r){t=P_(r,t),t=PC(e,t,1),Mo(e,t),t=ri(),e=nm(e,1),e!==null&&(Xv(e,1,t),gi(e,t))}function Ro(e,t){if(e.tag===3)iS(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){iS(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Qi===null||!Qi.has(n))){e=P_(t,e);var i=LC(r,e,1);if(Mo(r,i),i=ri(),r=nm(r,1),r!==null)Xv(r,1,i),gi(r,i);else if(typeof n.componentDidCatch=="function"&&(Qi===null||!Qi.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function h6(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=ri(),e.pingedLanes|=e.suspendedLanes&r,In===e&&(Cn&r)===r&&(_n===4||_n===3&&(Cn&62914560)===Cn&&500>Tn()-B_?Of(e,0):D_|=r),gi(e,t)}function d6(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Ca===0&&(Ca=ts),t=uf(62914560&~Ca),t===0&&(t=4194304)):t=$f()===99?1:2:t=1),r=ri(),e=nm(e,t),e!==null&&(Xv(e,t,r),gi(e,r))}var VC;VC=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Hn.current)Ri=!0;else if(r&n)Ri=!!(e.flags&16384);else{switch(Ri=!1,t.tag){case 3:Hb(t),Pg();break;case 5:Pb(t);break;case 1:Wn(t.type)&&A0(t);break;case 4:Fx(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;Gr(Y0,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?Wb(e,t,r):(Gr(Ur,Ur.current&1),t=Ma(e,t,r),t!==null?t.sibling:null);Gr(Ur,Ur.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return Qb(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Gr(Ur,Ur.current),n)break;return null;case 23:case 24:return t.lanes=0,Lg(e,t,r)}return Ma(e,t,r)}else Ri=!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=Bf(t,kn.current),Tf(t,r),i=F_(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,Wn(n)){var a=!0;A0(t)}else a=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,C_(t);var u=n.getDerivedStateFromProps;typeof u=="function"&&Z0(t,n,u,e),i.updater=tm,t.stateNode=i,i._reactInternals=t,Mx(t,n,e,r),t=Px(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=v6(i),e=Fi(i,e),a){case 0:t=Ix(null,t,i,e,r);break e;case 1:t=Gb(null,t,i,e,r);break e;case 11:t=Ub(null,t,i,e,r);break e;case 14:t=jb(null,t,i,Fi(i.type,e),n,r);break e}throw Error(st(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),Ix(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),Gb(e,t,n,i,r);case 3:if(Hb(t),n=t.updateQueue,e===null||n===null)throw Error(st(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,gC(e,t),Rh(t,n,null,r),n=t.memoizedState.element,n===i)Pg(),t=Ma(e,t,r);else{if(i=t.stateNode,(a=i.hydrate)&&(So=Af(t.stateNode.containerInfo.firstChild),Oa=t,a=Ji=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)a=e[i],a._workInProgressVersionPrimary=e[i+1],Cf.push(a);for(r=wC(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else jn(e,t,n,r),Pg();t=t.child}return t;case 5:return Pb(t),e===null&&Nx(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,u=i.children,Tx(n,i)?u=null:a!==null&&Tx(n,a)&&(t.flags|=16),FC(e,t),jn(e,t,u,r),t.child;case 6:return e===null&&Nx(t),null;case 13:return Wb(e,t,r);case 4:return Fx(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=K0(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:Fi(n,i),Ub(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,u=t.memoizedProps,a=i.value;var l=t.type._context;if(Gr(Y0,l._currentValue),l._currentValue=a,u!==null)if(l=u.value,a=di(l,a)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(l,a):1073741823)|0,a===0){if(u.children===i.children&&!Hn.current){t=Ma(e,t,r);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){u=l.child;for(var c=s.firstContext;c!==null;){if(c.context===n&&c.observedBits&a){l.tag===1&&(c=Oo(-1,r&-r),c.tag=2,Mo(l,c)),l.lanes|=r,c=l.alternate,c!==null&&(c.lanes|=r),mC(l.return,r),s.lanes|=r;break}c=c.next}}else u=l.tag===10&&l.type===t.type?null:l.child;if(u!==null)u.return=l;else for(u=l;u!==null;){if(u===t){u=null;break}if(l=u.sibling,l!==null){l.return=u.return,u=l;break}u=u.return}l=u}jn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,n=a.children,Tf(t,r),i=mi(i,a.unstable_observedBits),n=n(i),t.flags|=1,jn(e,t,n,r),t.child;case 14:return i=t.type,a=Fi(i,t.pendingProps),a=Fi(i.type,a),jb(e,t,i,a,n,r);case 15:return MC(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Wn(n)?(e=!0,A0(t)):e=!1,Tf(t,r),xC(t,n,i),Mx(t,n,i,r),Px(null,t,n,!0,e,r);case 19:return Qb(e,t,r);case 23:return Lg(e,t,r);case 24:return Lg(e,t,r)}throw Error(st(156,t.tag))};function p6(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 pi(e,t,r,n){return new p6(e,t,r,n)}function z_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function v6(e){if(typeof e=="function")return z_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vv)return 11;if(e===qv)return 14}return 2}function Bo(e,t){var r=e.alternate;return r===null?(r=pi(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 M0(e,t,r,n,i,a){var u=2;if(n=e,typeof e=="function")z_(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case xo:return Mf(r.children,i,a,t);case bT:u=8,i|=16;break;case r_:u=8,i|=1;break;case eh:return e=pi(12,r,t,i|8),e.elementType=eh,e.type=eh,e.lanes=a,e;case th:return e=pi(13,r,t,i),e.type=th,e.elementType=th,e.lanes=a,e;case $0:return e=pi(19,r,t,i),e.elementType=$0,e.lanes=a,e;case l_:return U_(r,i,a,t);case lx:return e=pi(24,r,t,i),e.elementType=lx,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case n_:u=10;break e;case i_:u=9;break e;case Vv:u=11;break e;case qv:u=14;break e;case a_:u=16,n=null;break e;case o_:u=22;break e}throw Error(st(130,e==null?e:typeof e,""))}return t=pi(u,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Mf(e,t,r,n){return e=pi(7,e,n,t),e.lanes=r,e}function U_(e,t,r,n){return e=pi(23,e,n,t),e.elementType=l_,e.lanes=r,e}function $g(e,t,r){return e=pi(6,e,null,t),e.lanes=r,e}function zg(e,t,r){return t=pi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function m6(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=Sg(0),this.expirationTimes=Sg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sg(0),this.mutableSourceEagerHydrationData=null}function g6(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fu,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function uv(e,t,r,n){var i=t.current,a=ri(),u=Fo(i);e:if(r){r=r._reactInternals;t:{if(il(r)!==r||r.tag!==1)throw Error(st(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Wn(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(st(171))}if(r.tag===1){var s=r.type;if(Wn(s)){r=fC(r,s,l);break e}}r=l}else r=Lo;return t.context===null?t.context=r:t.pendingContext=r,t=Oo(a,u),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),Mo(i,t),No(i,u,a),u}function Ug(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 aS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function j_(e,t){aS(e,t),(e=e.alternate)&&aS(e,t)}function y6(){return null}function G_(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new m6(e,t,r!=null&&r.hydrate===!0),t=pi(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,C_(t),e[es]=r.current,iC(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}G_.prototype.render=function(e){uv(e,this._internalRoot,null,null)};G_.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;uv(null,e,null,function(){t[es]=null})};function ad(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function x6(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 G_(e,0,t?{hydrate:!0}:void 0)}function im(e,t,r,n,i){var a=r._reactRootContainer;if(a){var u=a._internalRoot;if(typeof i=="function"){var l=i;i=function(){var c=Ug(u);l.call(c)}}uv(t,u,e,i)}else{if(a=r._reactRootContainer=x6(r,n),u=a._internalRoot,typeof i=="function"){var s=i;i=function(){var c=Ug(u);s.call(c)}}zC(function(){uv(t,u,e,i)})}return Ug(u)}DT=function(e){if(e.tag===13){var t=ri();No(e,4,t),j_(e,4)}};d_=function(e){if(e.tag===13){var t=ri();No(e,67108864,t),j_(e,67108864)}};BT=function(e){if(e.tag===13){var t=ri(),r=Fo(e);No(e,r,t),j_(e,r)}};$T=function(e,t){return t()};yx=function(e,t,r){switch(t){case"input":if(sx(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=Jv(n);if(!i)throw Error(st(90));ET(n),sx(n,i)}}}break;case"textarea":TT(e,r);break;case"select":t=r.value,t!=null&&bf(e,!!r.multiple,t,!1)}};s_=$C;RT=function(e,t,r,n,i){var a=Kt;Kt|=4;try{return Wu(98,e.bind(null,t,r,n,i))}finally{Kt=a,Kt===0&&(ns(),ra())}};c_=function(){!(Kt&49)&&(a6(),Wo())};IT=function(e,t){var r=Kt;Kt|=2;try{return e(t)}finally{Kt=r,Kt===0&&(ns(),ra())}};function qC(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ad(t))throw Error(st(200));return g6(e,t,null,r)}var _6={Events:[rd,pf,Jv,FT,NT,Wo,{current:!1}]},Mc={findFiberByHostInstance:Ru,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},w6={bundleType:Mc.bundleType,version:Mc.version,rendererPackageName:Mc.rendererPackageName,rendererConfig:Mc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=LT(e),e===null?null:e.stateNode},findFiberByHostInstance:Mc.findFiberByHostInstance||y6,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $p=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$p.isDisabled&&$p.supportsFiber)try{S_=$p.inject(w6),$u=$p}catch{}}yi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_6;yi.createPortal=qC;yi.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(st(188)):Error(st(268,Object.keys(e)));return e=LT(t),e=e===null?null:e.stateNode,e};yi.flushSync=function(e,t){var r=Kt;if(r&48)return e(t);Kt|=1;try{if(e)return Wu(99,e.bind(null,t))}finally{Kt=r,ra()}};yi.hydrate=function(e,t,r){if(!ad(t))throw Error(st(200));return im(null,e,t,!0,r)};yi.render=function(e,t,r){if(!ad(t))throw Error(st(200));return im(null,e,t,!1,r)};yi.unmountComponentAtNode=function(e){if(!ad(e))throw Error(st(40));return e._reactRootContainer?(zC(function(){im(null,null,e,!1,function(){e._reactRootContainer=null,e[es]=null})}),!0):!1};yi.unstable_batchedUpdates=$C;yi.unstable_createPortal=function(e,t){return qC(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};yi.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!ad(r))throw Error(st(200));if(e==null||e._reactInternals===void 0)throw Error(st(38));return im(e,t,r,!1,n)};yi.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=yi})(TF);const zp=iT(ox);var lr={},b6={get exports(){return lr},set exports(e){lr=e}},S6="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",E6=S6,A6=E6;function YC(){}function XC(){}XC.resetWarningCache=YC;var T6=function(){function e(n,i,a,u,l,s){if(s!==A6){var c=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 c.name="Invariant Violation",c}}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:XC,resetWarningCache:YC};return r.PropTypes=r,r};b6.exports=T6();var C6=function(){},k6=C6(),za=function(e){return e!==k6&&e!==null},O6=za,M6=Array.prototype.forEach,F6=Object.create,N6=function(e,t){var r;for(r in e)t[r]=e[r]},H_=function(e){var t=F6(null);return M6.call(arguments,function(r){O6(r)&&N6(Object(r),t)}),t},R6=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},jg,oS;function I6(){return oS||(oS=1,jg=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),jg}var P6=R6()?Math.sign:I6(),L6=P6,D6=Math.abs,B6=Math.floor,$6=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:L6(e)*B6(D6(e)))},z6=$6,U6=Math.max,ol=function(e){return U6(0,z6(e))},j6=ol,QC=function(e,t,r){var n;return isNaN(e)?(n=t,n>=0?r&&n?n-1:n:1):e===!1?!1:j6(e)},na=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},G6=za,Pi=function(e){if(!G6(e))throw new TypeError("Cannot use null or undefined");return e},H6=na,W6=Pi,V6=Function.prototype.bind,uS=Function.prototype.call,q6=Object.keys,Y6=Object.prototype.propertyIsEnumerable,X6=function(e,t){return function(r,n){var i,a=arguments[2],u=arguments[3];return r=Object(W6(r)),H6(n),i=q6(r),u&&i.sort(typeof u=="function"?V6.call(u,r):void 0),typeof e!="function"&&(e=i[e]),uS.call(e,i,function(l,s){return Y6.call(r,l)?uS.call(n,a,r[l],l,r,s):t})}},am=X6("forEach"),ul={},Yx={},Q6={get exports(){return Yx},set exports(e){Yx=e}},Z6=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")},Gg,lS;function K6(){return lS||(lS=1,Gg=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Gg}var Hg,fS;function J6(){if(fS)return Hg;fS=1;var e=za,t=Object.keys;return Hg=function(r){return t(e(r)?Object(r):r)},Hg}var Wg,sS;function eN(){return sS||(sS=1,Wg=K6()()?Object.keys:J6()),Wg}var Vg,cS;function tN(){if(cS)return Vg;cS=1;var e=eN(),t=Pi,r=Math.max;return Vg=function(n,i){var a,u,l=r(arguments.length,2),s;for(n=Object(t(n)),s=function(c){try{n[c]=i[c]}catch(v){a||(a=v)}},u=1;u<l;++u)i=arguments[u],e(i).forEach(s);if(a!==void 0)throw a;return n},Vg}var om=Z6()?Object.assign:tN(),rN=za,nN={function:!0,object:!0},W_=function(e){return rN(e)&&nN[typeof e]||!1};(function(e){var t=om,r=W_,n=za,i=Error.captureStackTrace;e.exports=function(a){var u=new Error(a),l=arguments[1],s=arguments[2];return n(s)||r(l)&&(s=l,l=null),n(s)&&t(u,s),n(l)&&(u.code=l),i&&i(u,e.exports),u}})(Q6);var lv={},hS={get exports(){return lv},set exports(e){lv=e}},qg,dS;function ZC(){if(dS)return qg;dS=1;var e=Pi,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return qg=function(a,u){var l,s=Object(e(u));if(a=Object(e(a)),n(s).forEach(function(c){try{t(a,c,r(u,c))}catch(v){l=v}}),typeof i=="function"&&i(s).forEach(function(c){try{t(a,c,r(u,c))}catch(v){l=v}}),l!==void 0)throw l;return a},qg}var pS=ol,KC=function(e,t){return t},Yg,vS,mS,gS;try{Object.defineProperty(KC,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}KC.length===1?(Yg={configurable:!0,writable:!1,enumerable:!1},vS=Object.defineProperty,hS.exports=function(e,t){return t=pS(t),e.length===t?e:(Yg.value=t,vS(e,"length",Yg))}):(gS=ZC(),mS=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); };")}}(),hS.exports=function(e,t){var r;if(t=pS(t),e.length===t)return e;r=mS(t)(e);try{gS(r,e)}catch{}return r});var ni={},iN={get exports(){return ni},set exports(e){ni=e}},aN=void 0,is=function(e){return e!==aN&&e!==null},oN=is,uN={object:!0,function:!0,undefined:!0},V_=function(e){return oN(e)?hasOwnProperty.call(uN,typeof e):!1},lN=V_,fN=function(e){if(!lN(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},sN=fN,cN=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!sN(e)},hN=cN,dN=/^\s*class[\s{/}]/,pN=Function.prototype.toString,JC=function(e){return!(!hN(e)||dN.test(pN.call(e)))},Xg="razdwatrzy",vN=function(){return typeof Xg.contains!="function"?!1:Xg.contains("dwa")===!0&&Xg.contains("foo")===!1},Qg,yS;function mN(){if(yS)return Qg;yS=1;var e=String.prototype.indexOf;return Qg=function(t){return e.call(this,t,arguments[1])>-1},Qg}var ek=vN()?String.prototype.contains:mN(),F0=is,xS=JC,tk=om,rk=H_,hh=ek,gN=iN.exports=function(e,t){var r,n,i,a,u;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],F0(e)?(r=hh.call(e,"c"),n=hh.call(e,"e"),i=hh.call(e,"w")):(r=i=!0,n=!1),u={value:t,configurable:r,enumerable:n,writable:i},a?tk(rk(a),u):u};gN.gs=function(e,t,r){var n,i,a,u;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],F0(t)?xS(t)?F0(r)?xS(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,F0(e)?(n=hh.call(e,"c"),i=hh.call(e,"e")):(n=!0,i=!1),u={get:t,set:r,configurable:n,enumerable:i},a?tk(rk(a),u):u};var fv={},yN={get exports(){return fv},set exports(e){fv=e}};(function(e,t){var r=ni,n=na,i=Function.prototype.apply,a=Function.prototype.call,u=Object.create,l=Object.defineProperty,s=Object.defineProperties,c=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0},x,y,g,k,N,b,w;x=function(A,M){var R;return n(M),c.call(this,"__ee__")?R=this.__ee__:(R=v.value=u(null),l(this,"__ee__",v),v.value=null),R[A]?typeof R[A]=="object"?R[A].push(M):R[A]=[R[A],M]:R[A]=M,this},y=function(A,M){var R,L;return n(M),L=this,x.call(this,A,R=function(){g.call(L,A,R),i.call(M,this,arguments)}),R.__eeOnceListener__=M,this},g=function(A,M){var R,L,D,ne;if(n(M),!c.call(this,"__ee__"))return this;if(R=this.__ee__,!R[A])return this;if(L=R[A],typeof L=="object")for(ne=0;D=L[ne];++ne)(D===M||D.__eeOnceListener__===M)&&(L.length===2?R[A]=L[ne?0:1]:L.splice(ne,1));else(L===M||L.__eeOnceListener__===M)&&delete R[A];return this},k=function(A){var M,R,L,D,ne;if(c.call(this,"__ee__")&&(D=this.__ee__[A],!!D))if(typeof D=="object"){for(R=arguments.length,ne=new Array(R-1),M=1;M<R;++M)ne[M-1]=arguments[M];for(D=D.slice(),M=0;L=D[M];++M)i.call(L,this,ne)}else switch(arguments.length){case 1:a.call(D,this);break;case 2:a.call(D,this,arguments[1]);break;case 3:a.call(D,this,arguments[1],arguments[2]);break;default:for(R=arguments.length,ne=new Array(R-1),M=1;M<R;++M)ne[M-1]=arguments[M];i.call(D,this,ne)}},N={on:x,once:y,off:g,emit:k},b={on:r(x),once:r(y),off:r(g),emit:r(k)},w=s({},b),e.exports=t=function(A){return A==null?u(w):s(Object(A),b)},t.methods=N})(yN,fv);var Zg,_S;function xN(){return _S||(_S=1,Zg=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"))}),Zg}var Kg,wS;function _N(){return wS||(wS=1,Kg=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),Kg}var Jg,bS;function wN(){if(bS)return Jg;bS=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 Jg=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__}}(),Jg}var ey,SS;function um(){return SS||(SS=1,ey=_N()()?globalThis:wN()),ey}var ty,ES;function bN(){if(ES)return ty;ES=1;var e=um(),t={object:!0,symbol:!0};return ty=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])},ty}var ry,AS;function SN(){return AS||(AS=1,ry=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),ry}var ny,TS;function nk(){if(TS)return ny;TS=1;var e=SN();return ny=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},ny}var iy,CS;function EN(){if(CS)return iy;CS=1;var e=ni,t=Object.create,r=Object.defineProperty,n=Object.prototype,i=t(null);return iy=function(a){for(var u=0,l,s;i[a+(u||"")];)++u;return a+=u||"",i[a]=!0,l="@@"+a,r(n,l,e.gs(null,function(c){s||(s=!0,r(this,l,e(c)),s=!1)})),l},iy}var ay,kS;function AN(){if(kS)return ay;kS=1;var e=ni,t=um().Symbol;return ay=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"))})},ay}var oy,OS;function TN(){if(OS)return oy;OS=1;var e=ni,t=nk(),r=Object.create(null);return oy=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})})},oy}var uy,MS;function CN(){if(MS)return uy;MS=1;var e=ni,t=nk(),r=um().Symbol,n=EN(),i=AN(),a=TN(),u=Object.create,l=Object.defineProperties,s=Object.defineProperty,c,v,x;if(typeof r=="function")try{String(r()),x=!0}catch{}else r=null;return v=function(g){if(this instanceof v)throw new TypeError("Symbol is not a constructor");return c(g)},uy=c=function y(g){var k;if(this instanceof y)throw new TypeError("Symbol is not a constructor");return x?r(g):(k=u(v.prototype),g=g===void 0?"":String(g),l(k,{__description__:e("",g),__name__:e("",n(g))}))},i(c),a(c),l(v.prototype,{constructor:e(c),toString:e("",function(){return this.__name__})}),l(c.prototype,{toString:e(function(){return"Symbol ("+t(this).__description__+")"}),valueOf:e(function(){return t(this)})}),s(c.prototype,c.toPrimitive,e("",function(){var y=t(this);return typeof y=="symbol"?y:y.toString()})),s(c.prototype,c.toStringTag,e("c","Symbol")),s(v.prototype,c.toStringTag,e("c",c.prototype[c.toStringTag])),s(v.prototype,c.toPrimitive,e("c",c.prototype[c.toPrimitive])),uy}var ly,FS;function ll(){return FS||(FS=1,ly=bN()()?um().Symbol:CN()),ly}var fy,NS;function lm(){if(NS)return fy;NS=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return fy=function(r){return e.call(r)===t},fy}var sy,RS;function kN(){if(RS)return sy;RS=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return sy=function(r){return typeof r=="function"&&t(e.call(r))},sy}var cy,IS;function fm(){if(IS)return cy;IS=1;var e=Object.prototype.toString,t=e.call("");return cy=function(r){return typeof r=="string"||r&&typeof r=="object"&&(r instanceof String||e.call(r)===t)||!1},cy}var hy,PS;function ON(){if(PS)return hy;PS=1;var e=ll().iterator,t=lm(),r=kN(),n=ol,i=na,a=Pi,u=za,l=fm(),s=Array.isArray,c=Function.prototype.call,v={configurable:!0,enumerable:!0,writable:!0,value:null},x=Object.defineProperty;return hy=function(y){var g=arguments[1],k=arguments[2],N,b,w,A,M,R,L,D,ne,Y;if(y=Object(a(y)),u(g)&&i(g),!this||this===Array||!r(this)){if(!g){if(t(y))return M=y.length,M!==1?Array.apply(null,y):(A=new Array(1),A[0]=y[0],A);if(s(y)){for(A=new Array(M=y.length),b=0;b<M;++b)A[b]=y[b];return A}}A=[]}else N=this;if(!s(y)){if((ne=y[e])!==void 0){for(L=i(ne).call(y),N&&(A=new N),D=L.next(),b=0;!D.done;)Y=g?c.call(g,k,D.value,b):D.value,N?(v.value=Y,x(A,b,v)):A[b]=Y,D=L.next(),++b;M=b}else if(l(y)){for(M=y.length,N&&(A=new N),b=0,w=0;b<M;++b)Y=y[b],b+1<M&&(R=Y.charCodeAt(0),R>=55296&&R<=56319&&(Y+=y[++b])),Y=g?c.call(g,k,Y,w):Y,N?(v.value=Y,x(A,w,v)):A[w]=Y,++w;M=w}}if(M===void 0)for(M=n(y.length),N&&(A=new N(M)),b=0;b<M;++b)Y=g?c.call(g,k,y[b],b):y[b],N?(v.value=Y,x(A,b,v)):A[b]=Y;return N&&(v.value=null,A.length=M),A},hy}var dy,LS;function sm(){return LS||(LS=1,dy=xN()()?Array.from:ON()),dy}var MN=sm(),FN=Array.isArray,NN=function(e){return FN(e)?e:MN(e)},RN=NN,IN=za,PN=na,LN=Array.prototype.slice,ik;ik=function(e){return this.map(function(t,r){return t?t(e[r]):e[r]}).concat(LN.call(e,this.length))};var DN=function(e){return e=RN(e),e.forEach(function(t){IN(t)&&PN(t)}),ik.bind(e)},Up=na,BN=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:Up(e.get)},e.set!==void 0?(t.set=Up(e.set),e.delete&&(t.delete=Up(e.delete)),e.clear&&(t.clear=Up(e.clear)),t):(t.set=t.get,t))},jp=Yx,Gp=lv,Fc=ni,ak=fv.methods,$N=DN,zN=BN,py=Function.prototype.apply,vy=Function.prototype.call,DS=Object.create,UN=Object.defineProperties,jN=ak.on,GN=ak.emit,HN=function(e,t,r){var n=DS(null),i,a,u,l,s,c,v,x,y,g,k,N,b,w,A;return t!==!1?a=t:isNaN(e.length)?a=1:a=e.length,r.normalizer&&(g=zN(r.normalizer),u=g.get,l=g.set,s=g.delete,c=g.clear),r.resolvers!=null&&(A=$N(r.resolvers)),u?w=Gp(function(M){var R,L,D=arguments;if(A&&(D=A(D)),R=u(D),R!==null&&hasOwnProperty.call(n,R))return k&&i.emit("get",R,D,this),n[R];if(D.length===1?L=vy.call(e,this,D[0]):L=py.call(e,this,D),R===null){if(R=u(D),R!==null)throw jp("Circular invocation","CIRCULAR_INVOCATION");R=l(D)}else if(hasOwnProperty.call(n,R))throw jp("Circular invocation","CIRCULAR_INVOCATION");return n[R]=L,N&&i.emit("set",R,null,L),L},a):t===0?w=function(){var M;if(hasOwnProperty.call(n,"data"))return k&&i.emit("get","data",arguments,this),n.data;if(arguments.length?M=py.call(e,this,arguments):M=vy.call(e,this),hasOwnProperty.call(n,"data"))throw jp("Circular invocation","CIRCULAR_INVOCATION");return n.data=M,N&&i.emit("set","data",null,M),M}:w=function(M){var R,L=arguments,D;if(A&&(L=A(arguments)),D=String(L[0]),hasOwnProperty.call(n,D))return k&&i.emit("get",D,L,this),n[D];if(L.length===1?R=vy.call(e,this,L[0]):R=py.call(e,this,L),hasOwnProperty.call(n,D))throw jp("Circular invocation","CIRCULAR_INVOCATION");return n[D]=R,N&&i.emit("set",D,null,R),R},i={original:e,memoized:w,profileName:r.profileName,get:function(M){return A&&(M=A(M)),u?u(M):String(M[0])},has:function(M){return hasOwnProperty.call(n,M)},delete:function(M){var R;hasOwnProperty.call(n,M)&&(s&&s(M),R=n[M],delete n[M],b&&i.emit("delete",M,R))},clear:function(){var M=n;c&&c(),n=DS(null),i.emit("clear",M)},on:function(M,R){return M==="get"?k=!0:M==="set"?N=!0:M==="delete"&&(b=!0),jN.call(this,M,R)},emit:GN,updateEnv:function(){e=i.original}},u?v=Gp(function(M){var R,L=arguments;A&&(L=A(L)),R=u(L),R!==null&&i.delete(R)},a):t===0?v=function(){return i.delete("data")}:v=function(M){return A&&(M=A(arguments)[0]),i.delete(M)},x=Gp(function(){var M,R=arguments;return t===0?n.data:(A&&(R=A(R)),u?M=u(R):M=String(R[0]),n[M])}),y=Gp(function(){var M,R=arguments;return t===0?i.has("data"):(A&&(R=A(R)),u?M=u(R):M=String(R[0]),M===null?!1:i.has(M))}),UN(w,{__memoized__:Fc(!0),delete:Fc(v),clear:Fc(i.clear),_get:Fc(x),_has:Fc(y)}),i},WN=na,VN=am,BS=ul,qN=HN,YN=QC,XN=function e(t){var r,n,i;if(WN(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=YN(r.length,t.length,r.async&&BS.async),i=qN(t,n,r),VN(BS,function(a,u){r[u]&&a(r[u],i,r)}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized)},my,$S;function QN(){return $S||($S=1,my=function(e){var t,r,n=e.length;if(!n)return"";for(t=String(e[r=0]);--n;)t+=""+e[++r];return t}),my}var gy,zS;function ZN(){return zS||(zS=1,gy=function(e){return e?function(t){for(var r=String(t[0]),n=0,i=e;--i;)r+=""+t[++n];return r}:function(){return""}}),gy}var yy,US;function KN(){return US||(US=1,yy=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),yy}var xy,jS;function JN(){return jS||(jS=1,xy=function(e){return e!==e}),xy}var _y,GS;function eR(){return GS||(GS=1,_y=KN()()?Number.isNaN:JN()),_y}var wy,HS;function q_(){if(HS)return wy;HS=1;var e=eR(),t=ol,r=Pi,n=Array.prototype.indexOf,i=Object.prototype.hasOwnProperty,a=Math.abs,u=Math.floor;return wy=function(l){var s,c,v,x;if(!e(l))return n.apply(this,arguments);for(c=t(r(this).length),v=arguments[1],isNaN(v)?v=0:v>=0?v=u(v):v=t(this.length)-u(a(v)),s=v;s<c;++s)if(i.call(this,s)&&(x=this[s],e(x)))return s;return-1},wy}var by,WS;function tR(){if(WS)return by;WS=1;var e=q_(),t=Object.create;return by=function(){var r=0,n=[],i=t(null);return{get:function(a){var u=0,l=n,s,c=a.length;if(c===0)return l[c]||null;if(l=l[c]){for(;u<c-1;){if(s=e.call(l[0],a[u]),s===-1)return null;l=l[1][s],++u}return s=e.call(l[0],a[u]),s===-1?null:l[1][s]||null}return null},set:function(a){var u=0,l=n,s,c=a.length;if(c===0)l[c]=++r;else{for(l[c]||(l[c]=[[],[]]),l=l[c];u<c-1;)s=e.call(l[0],a[u]),s===-1&&(s=l[0].push(a[u])-1,l[1].push([[],[]])),l=l[1][s],++u;s=e.call(l[0],a[u]),s===-1&&(s=l[0].push(a[u])-1),l[1][s]=++r}return i[r]=a,r},delete:function(a){var u=0,l=n,s,c=i[a],v=c.length,x=[];if(v===0)delete l[v];else if(l=l[v]){for(;u<v-1;){if(s=e.call(l[0],c[u]),s===-1)return;x.push(l,s),l=l[1][s],++u}if(s=e.call(l[0],c[u]),s===-1)return;for(a=l[1][s],l[0].splice(s,1),l[1].splice(s,1);!l[0].length&&x.length;)s=x.pop(),l=x.pop(),l[0].splice(s,1),l[1].splice(s,1)}delete i[a]},clear:function(){n=[],i=t(null)}}},by}var Sy,VS;function rR(){if(VS)return Sy;VS=1;var e=q_();return Sy=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=[]}}},Sy}var Ey,qS;function nR(){if(qS)return Ey;qS=1;var e=q_(),t=Object.create;return Ey=function(r){var n=0,i=[[],[]],a=t(null);return{get:function(u){for(var l=0,s=i,c;l<r-1;){if(c=e.call(s[0],u[l]),c===-1)return null;s=s[1][c],++l}return c=e.call(s[0],u[l]),c===-1?null:s[1][c]||null},set:function(u){for(var l=0,s=i,c;l<r-1;)c=e.call(s[0],u[l]),c===-1&&(c=s[0].push(u[l])-1,s[1].push([[],[]])),s=s[1][c],++l;return c=e.call(s[0],u[l]),c===-1&&(c=s[0].push(u[l])-1),s[1][c]=++n,a[n]=u,n},delete:function(u){for(var l=0,s=i,c,v=[],x=a[u];l<r-1;){if(c=e.call(s[0],x[l]),c===-1)return;v.push(s,c),s=s[1][c],++l}if(c=e.call(s[0],x[l]),c!==-1){for(u=s[1][c],s[0].splice(c,1),s[1].splice(c,1);!s[0].length&&v.length;)c=v.pop(),s=v.pop(),s[0].splice(c,1),s[1].splice(c,1);delete a[u]}},clear:function(){i=[[],[]],a=t(null)}}},Ey}var YS={},Ay,XS;function Y_(){if(XS)return Ay;XS=1;var e=na,t=am,r=Function.prototype.call;return Ay=function(n,i){var a={},u=arguments[2];return e(i),t(n,function(l,s,c,v){a[s]=r.call(i,u,l,s,c,v)}),a},Ay}var Ty,QS;function X_(){if(QS)return Ty;QS=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,u=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=u=++u%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=u=++u%2}};return Ty=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}(),Ty}var ZS;function iR(){if(ZS)return YS;ZS=1;var e=sm(),t=Y_(),r=ZC(),n=lv,i=X_(),a=Array.prototype.slice,u=Function.prototype.apply,l=Object.create;return ul.async=function(s,c){var v=l(null),x=l(null),y=c.memoized,g=c.original,k,N,b;c.memoized=n(function(w){var A=arguments,M=A[A.length-1];return typeof M=="function"&&(k=M,A=a.call(A,0,-1)),y.apply(N=this,b=A)},y);try{r(c.memoized,y)}catch{}c.on("get",function(w){var A,M,R;if(k){if(v[w]){typeof v[w]=="function"?v[w]=[v[w],k]:v[w].push(k),k=null;return}A=k,M=N,R=b,k=N=b=null,i(function(){var L;hasOwnProperty.call(x,w)?(L=x[w],c.emit("getasync",w,R,M),u.call(A,L.context,L.args)):(k=A,N=M,b=R,y.apply(M,R))})}}),c.original=function(){var w,A,M,R;return k?(w=e(arguments),A=function L(D){var ne,Y,ae=L.id;if(ae==null){i(u.bind(L,this,arguments));return}if(delete L.id,ne=v[ae],delete v[ae],!!ne)return Y=e(arguments),c.has(ae)&&(D?c.delete(ae):(x[ae]={context:this,args:Y},c.emit("setasync",ae,typeof ne=="function"?1:ne.length))),typeof ne=="function"?R=u.call(ne,this,Y):ne.forEach(function(Ce){R=u.call(Ce,this,Y)},this),R},M=k,k=N=b=null,w.push(A),R=u.call(g,this,w),A.cb=M,k=A,R):u.call(g,this,arguments)},c.on("set",function(w){if(!k){c.delete(w);return}v[w]?typeof v[w]=="function"?v[w]=[v[w],k.cb]:v[w].push(k.cb):v[w]=k.cb,delete k.cb,k.id=w,k=null}),c.on("delete",function(w){var A;hasOwnProperty.call(v,w)||x[w]&&(A=x[w],delete x[w],c.emit("deleteasync",w,a.call(A.args,1)))}),c.on("clear",function(){var w=x;x=l(null),c.emit("clearasync",t(w,function(A){return a.call(A.args,1)}))})},YS}var KS={},Cy,JS;function aR(){if(JS)return Cy;JS=1;var e=Array.prototype.forEach,t=Object.create;return Cy=function(r){var n=t(null);return e.call(arguments,function(i){n[i]=!0}),n},Cy}var ky,e3;function ok(){return e3||(e3=1,ky=function(e){return typeof e=="function"}),ky}var Oy,t3;function oR(){if(t3)return Oy;t3=1;var e=ok();return Oy=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},Oy}var My,r3;function uR(){if(r3)return My;r3=1;var e=Pi,t=oR();return My=function(r){return t(e(r))},My}var Fy,n3;function lR(){if(n3)return Fy;n3=1;var e=ok();return Fy=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},Fy}var Ny,i3;function fR(){if(i3)return Ny;i3=1;var e=lR(),t=/[\n\r\u2028\u2029]/g;return Ny=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},Ny}var dh={},sR={get exports(){return dh},set exports(e){dh=e}},a3;function uk(){if(a3)return dh;a3=1,sR.exports=e,dh.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return dh}var o3;function cR(){if(o3)return KS;o3=1;var e=Y_(),t=aR(),r=uR(),n=fR(),i=uk(),a=X_(),u=Object.create,l=t("then","then:finally","done","done:finally");return ul.promise=function(s,c){var v=u(null),x=u(null),y=u(null);if(s===!0)s=null;else if(s=r(s),!l[s])throw new TypeError("'"+n(s)+"' is not valid promise mode");c.on("set",function(g,k,N){var b=!1;if(!i(N)){x[g]=N,c.emit("setasync",g,1);return}v[g]=1,y[g]=N;var w=function(L){var D=v[g];if(b)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.`);D&&(delete v[g],x[g]=L,c.emit("setasync",g,D))},A=function(){b=!0,v[g]&&(delete v[g],delete y[g],c.delete(g))},M=s;if(M||(M="then"),M==="then"){var R=function(){a(A)};N=N.then(function(L){a(w.bind(this,L))},R),typeof N.finally=="function"&&N.finally(R)}else if(M==="done"){if(typeof N.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");N.done(w,A)}else if(M==="done:finally"){if(typeof N.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof N.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");N.done(w),N.finally(A)}}),c.on("get",function(g,k,N){var b;if(v[g]){++v[g];return}b=y[g];var w=function(){c.emit("getasync",g,k,N)};i(b)?typeof b.done=="function"?b.done(w):b.then(function(){a(w)}):w()}),c.on("delete",function(g){if(delete y[g],v[g]){delete v[g];return}if(hasOwnProperty.call(x,g)){var k=x[g];delete x[g],c.emit("deleteasync",g,[k])}}),c.on("clear",function(){var g=x;x=u(null),v=u(null),y=u(null),c.emit("clearasync",e(g,function(k){return[k]}))})},KS}var u3={},l3;function hR(){if(l3)return u3;l3=1;var e=na,t=am,r=ul,n=Function.prototype.apply;return r.dispose=function(i,a,u){var l;if(e(i),u.async&&r.async||u.promise&&r.promise){a.on("deleteasync",l=function(s,c){n.call(i,null,c)}),a.on("clearasync",function(s){t(s,function(c,v){l(v,c)})});return}a.on("delete",l=function(s,c){i(c)}),a.on("clear",function(s){t(s,function(c,v){l(v,c)})})},u3}var f3={},Ry,s3;function dR(){return s3||(s3=1,Ry=2147483647),Ry}var Iy,c3;function pR(){if(c3)return Iy;c3=1;var e=ol,t=dR();return Iy=function(r){if(r=e(r),r>t)throw new TypeError(r+" exceeds maximum possible timeout");return r},Iy}var h3;function vR(){if(h3)return f3;h3=1;var e=sm(),t=am,r=X_(),n=uk(),i=pR(),a=ul,u=Function.prototype,l=Math.max,s=Math.min,c=Object.create;return a.maxAge=function(v,x,y){var g,k,N,b;v=i(v),v&&(g=c(null),k=y.async&&a.async||y.promise&&a.promise?"async":"",x.on("set"+k,function(w){g[w]=setTimeout(function(){x.delete(w)},v),typeof g[w].unref=="function"&&g[w].unref(),b&&(b[w]&&b[w]!=="nextTick"&&clearTimeout(b[w]),b[w]=setTimeout(function(){delete b[w]},N),typeof b[w].unref=="function"&&b[w].unref())}),x.on("delete"+k,function(w){clearTimeout(g[w]),delete g[w],b&&(b[w]!=="nextTick"&&clearTimeout(b[w]),delete b[w])}),y.preFetch&&(y.preFetch===!0||isNaN(y.preFetch)?N=.333:N=l(s(Number(y.preFetch),1),0),N&&(b={},N=(1-N)*v,x.on("get"+k,function(w,A,M){b[w]||(b[w]="nextTick",r(function(){var R;b[w]==="nextTick"&&(delete b[w],x.delete(w),y.async&&(A=e(A),A.push(u)),R=x.memoized.apply(M,A),y.promise&&n(R)&&(typeof R.done=="function"?R.done(u,u):R.then(u,u)))}))}))),x.on("clear"+k,function(){t(g,function(w){clearTimeout(w)}),g={},b&&(t(b,function(w){w!=="nextTick"&&clearTimeout(w)}),b={})}))},f3}var d3={},Py,p3;function mR(){if(p3)return Py;p3=1;var e=ol,t=Object.create,r=Object.prototype.hasOwnProperty;return Py=function(n){var i=0,a=1,u=t(null),l=t(null),s=0,c;return n=e(n),{hit:function(v){var x=l[v],y=++s;if(u[y]=v,l[v]=y,!x)return++i,i<=n?void 0:(v=u[a],c(v),v);if(delete u[x],a===x)for(;!r.call(u,++a););},delete:c=function(v){var x=l[v];if(x&&(delete u[x],delete l[v],--i,a===x)){if(!i){s=0,a=1;return}for(;!r.call(u,++a););}},clear:function(){i=0,a=1,u=t(null),l=t(null),s=0}}},Py}var v3;function gR(){if(v3)return d3;v3=1;var e=ol,t=mR(),r=ul;return r.max=function(n,i,a){var u,l,s;n=e(n),n&&(l=t(n),u=a.async&&r.async||a.promise&&r.promise?"async":"",i.on("set"+u,s=function(c){c=l.hit(c),c!==void 0&&i.delete(c)}),i.on("get"+u,s),i.on("delete"+u,l.delete),i.on("clear"+u,l.clear))},d3}var m3={},g3;function yR(){if(g3)return m3;g3=1;var e=ni,t=ul,r=Object.create,n=Object.defineProperties;return t.refCounter=function(i,a,u){var l,s;l=r(null),s=u.async&&t.async||u.promise&&t.promise?"async":"",a.on("set"+s,function(c,v){l[c]=v||1}),a.on("get"+s,function(c){++l[c]}),a.on("delete"+s,function(c){delete l[c]}),a.on("clear"+s,function(){l={}}),n(a.memoized,{deleteRef:e(function(){var c=a.get(arguments);return c===null||!l[c]?null:--l[c]?!1:(a.delete(c),!0)}),getRefCount:e(function(){var c=a.get(arguments);return c===null||!l[c]?0:l[c]})})},m3}var xR=H_,_R=QC,wR=XN,jq=function(e){var t=xR(arguments[1]),r;return t.normalizer||(r=t.length=_R(t.length,e.length,t.async),r!==0&&(t.primitive?r===!1?t.normalizer=QN():r>1&&(t.normalizer=ZN()(r)):r===!1?t.normalizer=tR()():r===1?t.normalizer=rR()():t.normalizer=nR()(r))),t.async&&iR(),t.promise&&cR(),t.dispose&&hR(),t.maxAge&&vR(),t.max&&gR(),t.refCounter&&yR(),wR(e,t)},y3={},bR={get exports(){return y3},set exports(e){y3=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 u=typeof a;if(u==="string"||u==="number")n.push(a);else if(Array.isArray(a)){if(a.length){var l=r.apply(null,a);l&&n.push(l)}}else if(u==="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})()})(bR);var SR="Expected a function",x3=0/0,ER="[object Symbol]",AR=/^\s+|\s+$/g,TR=/^[-+]0x[0-9a-f]+$/i,CR=/^0b[01]+$/i,kR=/^0o[0-7]+$/i,OR=parseInt,MR=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr,FR=typeof self=="object"&&self&&self.Object===Object&&self,NR=MR||FR||Function("return this")(),RR=Object.prototype,IR=RR.toString,PR=Math.max,LR=Math.min,Ly=function(){return NR.Date.now()};function DR(e,t,r){var n,i,a,u,l,s,c=0,v=!1,x=!1,y=!0;if(typeof e!="function")throw new TypeError(SR);t=_3(t)||0,Xx(r)&&(v=!!r.leading,x="maxWait"in r,a=x?PR(_3(r.maxWait)||0,t):a,y="trailing"in r?!!r.trailing:y);function g(D){var ne=n,Y=i;return n=i=void 0,c=D,u=e.apply(Y,ne),u}function k(D){return c=D,l=setTimeout(w,t),v?g(D):u}function N(D){var ne=D-s,Y=D-c,ae=t-ne;return x?LR(ae,a-Y):ae}function b(D){var ne=D-s,Y=D-c;return s===void 0||ne>=t||ne<0||x&&Y>=a}function w(){var D=Ly();if(b(D))return A(D);l=setTimeout(w,N(D))}function A(D){return l=void 0,y&&n?g(D):(n=i=void 0,u)}function M(){l!==void 0&&clearTimeout(l),c=0,n=s=i=l=void 0}function R(){return l===void 0?u:A(Ly())}function L(){var D=Ly(),ne=b(D);if(n=arguments,i=this,s=D,ne){if(l===void 0)return k(s);if(x)return l=setTimeout(w,t),g(s)}return l===void 0&&(l=setTimeout(w,t)),u}return L.cancel=M,L.flush=R,L}function Xx(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function BR(e){return!!e&&typeof e=="object"}function $R(e){return typeof e=="symbol"||BR(e)&&IR.call(e)==ER}function _3(e){if(typeof e=="number")return e;if($R(e))return x3;if(Xx(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xx(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(AR,"");var r=CR.test(e);return r||kR.test(e)?OR(e.slice(2),r?2:8):TR.test(e)?x3:+e}var Gq=DR;function Qx(){return Qx=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},Qx.apply(this,arguments)}function lk(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 Zx(e,t){return Zx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zx(e,t)}function fk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zx(e,t)}function zR(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function UR(e,t){e.classList?e.classList.add(t):zR(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function w3(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function jR(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=w3(e.className,t):e.setAttribute("class",w3(e.className&&e.className.baseVal||"",t))}const b3={disabled:!1},sk=ka.createContext(null);var ck=function(t){return t.scrollTop},Qc="unmounted",Cu="exited",ku="entering",lf="entered",Kx="exiting",Ua=function(e){fk(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var u=i,l=u&&!u.isMounting?n.enter:n.appear,s;return a.appearStatus=null,n.in?l?(s=Cu,a.appearStatus=ku):s=lf:n.unmountOnExit||n.mountOnEnter?s=Qc:s=Cu,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var u=i.in;return u&&a.status===Qc?{status:Cu}: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 u=this.state.status;this.props.in?u!==ku&&u!==lf&&(a=ku):(u===ku||u===lf)&&(a=Kx)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,u,l;return a=u=l=i,i!=null&&typeof i!="number"&&(a=i.exit,u=i.enter,l=i.appear!==void 0?i.appear:u),{exit:a,enter:u,appear:l}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===ku){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:zp.findDOMNode(this);u&&ck(u)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cu&&this.setState({status:Qc})},r.performEnter=function(i){var a=this,u=this.props.enter,l=this.context?this.context.isMounting:i,s=this.props.nodeRef?[l]:[zp.findDOMNode(this),l],c=s[0],v=s[1],x=this.getTimeouts(),y=l?x.appear:x.enter;if(!i&&!u||b3.disabled){this.safeSetState({status:lf},function(){a.props.onEntered(c)});return}this.props.onEnter(c,v),this.safeSetState({status:ku},function(){a.props.onEntering(c,v),a.onTransitionEnd(y,function(){a.safeSetState({status:lf},function(){a.props.onEntered(c,v)})})})},r.performExit=function(){var i=this,a=this.props.exit,u=this.getTimeouts(),l=this.props.nodeRef?void 0:zp.findDOMNode(this);if(!a||b3.disabled){this.safeSetState({status:Cu},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Kx},function(){i.props.onExiting(l),i.onTransitionEnd(u.exit,function(){i.safeSetState({status:Cu},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,u=!0;return this.nextCallback=function(l){u&&(u=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var u=this.props.nodeRef?this.props.nodeRef.current:zp.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!u||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],c=s[0],v=s[1];this.props.addEndListener(c,v)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Qc)return null;var a=this.props,u=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=lk(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ka.createElement(sk.Provider,{value:null},typeof u=="function"?u(i,l):ka.cloneElement(ka.Children.only(u),l))},t}(ka.Component);Ua.contextType=sk;Ua.propTypes={};function Jl(){}Ua.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Jl,onEntering:Jl,onEntered:Jl,onExit:Jl,onExiting:Jl,onExited:Jl};Ua.UNMOUNTED=Qc;Ua.EXITED=Cu;Ua.ENTERING=ku;Ua.ENTERED=lf;Ua.EXITING=Kx;const GR=Ua;var HR=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return UR(t,n)})},Dy=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return jR(t,n)})},Q_=function(e){fk(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(l,s){var c=n.resolveArguments(l,s),v=c[0],x=c[1];n.removeClasses(v,"exit"),n.addClass(v,x?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(l,s)},n.onEntering=function(l,s){var c=n.resolveArguments(l,s),v=c[0],x=c[1],y=x?"appear":"enter";n.addClass(v,y,"active"),n.props.onEntering&&n.props.onEntering(l,s)},n.onEntered=function(l,s){var c=n.resolveArguments(l,s),v=c[0],x=c[1],y=x?"appear":"enter";n.removeClasses(v,y),n.addClass(v,y,"done"),n.props.onEntered&&n.props.onEntered(l,s)},n.onExit=function(l){var s=n.resolveArguments(l),c=s[0];n.removeClasses(c,"appear"),n.removeClasses(c,"enter"),n.addClass(c,"exit","base"),n.props.onExit&&n.props.onExit(l)},n.onExiting=function(l){var s=n.resolveArguments(l),c=s[0];n.addClass(c,"exit","active"),n.props.onExiting&&n.props.onExiting(l)},n.onExited=function(l){var s=n.resolveArguments(l),c=s[0];n.removeClasses(c,"exit"),n.addClass(c,"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,c=typeof s=="string",v=c&&s?s+"-":"",x=c?""+v+l:s[l],y=c?x+"-active":s[l+"Active"],g=c?x+"-done":s[l+"Done"];return{baseClassName:x,activeClassName:y,doneClassName:g}},n}var r=t.prototype;return r.addClass=function(i,a,u){var l=this.getClassNames(a)[u+"ClassName"],s=this.getClassNames("enter"),c=s.doneClassName;a==="appear"&&u==="done"&&c&&(l+=" "+c),u==="active"&&i&&ck(i),l&&(this.appliedClasses[a][u]=l,HR(i,l))},r.removeClasses=function(i,a){var u=this.appliedClasses[a],l=u.base,s=u.active,c=u.done;this.appliedClasses[a]={},l&&Dy(i,l),s&&Dy(i,s),c&&Dy(i,c)},r.render=function(){var i=this.props;i.classNames;var a=lk(i,["classNames"]);return ka.createElement(GR,Qx({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(ka.Component);Q_.defaultProps={classNames:""};Q_.propTypes={};const Hq=Q_;function S3(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 Pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S3(Object(r),!0).forEach(function(n){un(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sv(e){return sv=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},sv(e)}function WR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E3(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 VR(e,t,r){return t&&E3(e.prototype,t),r&&E3(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function un(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z_(e,t){return YR(e)||QR(e,t)||hk(e,t)||KR()}function od(e){return qR(e)||XR(e)||hk(e)||ZR()}function qR(e){if(Array.isArray(e))return Jx(e)}function YR(e){if(Array.isArray(e))return e}function XR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,u,l;try{for(r=r.call(e);!(i=(u=r.next()).done)&&(n.push(u.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 hk(e,t){if(e){if(typeof e=="string")return Jx(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 Jx(e,t)}}function Jx(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 ZR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
47
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
48
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A3=function(){},K_={},dk={},pk=null,vk={mark:A3,measure:A3};try{typeof window<"u"&&(K_=window),typeof document<"u"&&(dk=document),typeof MutationObserver<"u"&&(pk=MutationObserver),typeof performance<"u"&&(vk=performance)}catch{}var JR=K_.navigator||{},T3=JR.userAgent,C3=T3===void 0?"":T3,$o=K_,Rr=dk,k3=pk,Hp=vk;$o.document;var ja=!!Rr.documentElement&&!!Rr.head&&typeof Rr.addEventListener=="function"&&typeof Rr.createElement=="function",mk=~C3.indexOf("MSIE")||~C3.indexOf("Trident/"),Wp,Vp,qp,Yp,Xp,Ia="___FONT_AWESOME___",e2=16,gk="fa",yk="svg-inline--fa",qu="data-fa-i2svg",t2="data-fa-pseudo-element",eI="data-fa-pseudo-element-pending",J_="data-prefix",ew="data-icon",O3="fontawesome-i2svg",tI="async",rI=["HTML","HEAD","STYLE","SCRIPT"],xk=function(){try{return!0}catch{return!1}}(),Fr="classic",jr="sharp",tw=[Fr,jr];function ud(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[Fr]}})}var Dh=ud((Wp={},un(Wp,Fr,{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"}),un(Wp,jr,{fa:"solid",fass:"solid","fa-solid":"solid"}),Wp)),Bh=ud((Vp={},un(Vp,Fr,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),un(Vp,jr,{solid:"fass"}),Vp)),$h=ud((qp={},un(qp,Fr,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),un(qp,jr,{fass:"fa-solid"}),qp)),nI=ud((Yp={},un(Yp,Fr,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),un(Yp,jr,{"fa-solid":"fass"}),Yp)),iI=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,_k="fa-layers-text",aI=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,oI=ud((Xp={},un(Xp,Fr,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),un(Xp,jr,{900:"fass"}),Xp)),wk=[1,2,3,4,5,6,7,8,9,10],uI=wk.concat([11,12,13,14,15,16,17,18,19,20]),lI=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Lu={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},zh=new Set;Object.keys(Bh[Fr]).map(zh.add.bind(zh));Object.keys(Bh[jr]).map(zh.add.bind(zh));var fI=[].concat(tw,od(zh),["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",Lu.GROUP,Lu.SWAP_OPACITY,Lu.PRIMARY,Lu.SECONDARY]).concat(wk.map(function(e){return"".concat(e,"x")})).concat(uI.map(function(e){return"w-".concat(e)})),ph=$o.FontAwesomeConfig||{};function sI(e){var t=Rr.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function cI(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Rr&&typeof Rr.querySelector=="function"){var hI=[["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"]];hI.forEach(function(e){var t=Z_(e,2),r=t[0],n=t[1],i=cI(sI(r));i!=null&&(ph[n]=i)})}var bk={styleDefault:"solid",familyDefault:"classic",cssPrefix:gk,replacementClass:yk,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ph.familyPrefix&&(ph.cssPrefix=ph.familyPrefix);var Uf=Pt(Pt({},bk),ph);Uf.autoReplaceSvg||(Uf.observeMutations=!1);var Ut={};Object.keys(bk).forEach(function(e){Object.defineProperty(Ut,e,{enumerable:!0,set:function(r){Uf[e]=r,vh.forEach(function(n){return n(Ut)})},get:function(){return Uf[e]}})});Object.defineProperty(Ut,"familyPrefix",{enumerable:!0,set:function(t){Uf.cssPrefix=t,vh.forEach(function(r){return r(Ut)})},get:function(){return Uf.cssPrefix}});$o.FontAwesomeConfig=Ut;var vh=[];function dI(e){return vh.push(e),function(){vh.splice(vh.indexOf(e),1)}}var po=e2,Zi={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function pI(e){if(!(!e||!ja)){var t=Rr.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=Rr.head.childNodes,n=null,i=r.length-1;i>-1;i--){var a=r[i],u=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(u)>-1&&(n=a)}return Rr.head.insertBefore(t,n),e}}var vI="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Uh(){for(var e=12,t="";e-- >0;)t+=vI[Math.random()*62|0];return t}function as(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function rw(e){return e.classList?as(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Sk(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function mI(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(Sk(e[r]),'" ')},"").trim()}function cm(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function nw(e){return e.size!==Zi.size||e.x!==Zi.x||e.y!==Zi.y||e.rotate!==Zi.rotate||e.flipX||e.flipY}function gI(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,") "),u="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(u," ").concat(l)},c={transform:"translate(".concat(n/2*-1," -256)")};return{outer:i,inner:s,path:c}}function yI(e){var t=e.transform,r=e.width,n=r===void 0?e2:r,i=e.height,a=i===void 0?e2:i,u=e.startCentered,l=u===void 0?!1:u,s="";return l&&mk?s+="translate(".concat(t.x/po-n/2,"em, ").concat(t.y/po-a/2,"em) "):l?s+="translate(calc(-50% + ".concat(t.x/po,"em), calc(-50% + ").concat(t.y/po,"em)) "):s+="translate(".concat(t.x/po,"em, ").concat(t.y/po,"em) "),s+="scale(".concat(t.size/po*(t.flipX?-1:1),", ").concat(t.size/po*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var xI=`:root, :host {
49
- --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
50
- --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
51
- --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
52
- --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
53
- --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
54
- --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
55
- --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
56
- }
57
-
58
- svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
59
- overflow: visible;
60
- box-sizing: content-box;
61
- }
62
-
63
- .svg-inline--fa {
64
- display: var(--fa-display, inline-block);
65
- height: 1em;
66
- overflow: visible;
67
- vertical-align: -0.125em;
68
- }
69
- .svg-inline--fa.fa-2xs {
70
- vertical-align: 0.1em;
71
- }
72
- .svg-inline--fa.fa-xs {
73
- vertical-align: 0em;
74
- }
75
- .svg-inline--fa.fa-sm {
76
- vertical-align: -0.0714285705em;
77
- }
78
- .svg-inline--fa.fa-lg {
79
- vertical-align: -0.2em;
80
- }
81
- .svg-inline--fa.fa-xl {
82
- vertical-align: -0.25em;
83
- }
84
- .svg-inline--fa.fa-2xl {
85
- vertical-align: -0.3125em;
86
- }
87
- .svg-inline--fa.fa-pull-left {
88
- margin-right: var(--fa-pull-margin, 0.3em);
89
- width: auto;
90
- }
91
- .svg-inline--fa.fa-pull-right {
92
- margin-left: var(--fa-pull-margin, 0.3em);
93
- width: auto;
94
- }
95
- .svg-inline--fa.fa-li {
96
- width: var(--fa-li-width, 2em);
97
- top: 0.25em;
98
- }
99
- .svg-inline--fa.fa-fw {
100
- width: var(--fa-fw-width, 1.25em);
101
- }
102
-
103
- .fa-layers svg.svg-inline--fa {
104
- bottom: 0;
105
- left: 0;
106
- margin: auto;
107
- position: absolute;
108
- right: 0;
109
- top: 0;
110
- }
111
-
112
- .fa-layers-counter, .fa-layers-text {
113
- display: inline-block;
114
- position: absolute;
115
- text-align: center;
116
- }
117
-
118
- .fa-layers {
119
- display: inline-block;
120
- height: 1em;
121
- position: relative;
122
- text-align: center;
123
- vertical-align: -0.125em;
124
- width: 1em;
125
- }
126
- .fa-layers svg.svg-inline--fa {
127
- -webkit-transform-origin: center center;
128
- transform-origin: center center;
129
- }
130
-
131
- .fa-layers-text {
132
- left: 50%;
133
- top: 50%;
134
- -webkit-transform: translate(-50%, -50%);
135
- transform: translate(-50%, -50%);
136
- -webkit-transform-origin: center center;
137
- transform-origin: center center;
138
- }
139
-
140
- .fa-layers-counter {
141
- background-color: var(--fa-counter-background-color, #ff253a);
142
- border-radius: var(--fa-counter-border-radius, 1em);
143
- box-sizing: border-box;
144
- color: var(--fa-inverse, #fff);
145
- line-height: var(--fa-counter-line-height, 1);
146
- max-width: var(--fa-counter-max-width, 5em);
147
- min-width: var(--fa-counter-min-width, 1.5em);
148
- overflow: hidden;
149
- padding: var(--fa-counter-padding, 0.25em 0.5em);
150
- right: var(--fa-right, 0);
151
- text-overflow: ellipsis;
152
- top: var(--fa-top, 0);
153
- -webkit-transform: scale(var(--fa-counter-scale, 0.25));
154
- transform: scale(var(--fa-counter-scale, 0.25));
155
- -webkit-transform-origin: top right;
156
- transform-origin: top right;
157
- }
158
-
159
- .fa-layers-bottom-right {
160
- bottom: var(--fa-bottom, 0);
161
- right: var(--fa-right, 0);
162
- top: auto;
163
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
164
- transform: scale(var(--fa-layers-scale, 0.25));
165
- -webkit-transform-origin: bottom right;
166
- transform-origin: bottom right;
167
- }
168
-
169
- .fa-layers-bottom-left {
170
- bottom: var(--fa-bottom, 0);
171
- left: var(--fa-left, 0);
172
- right: auto;
173
- top: auto;
174
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
175
- transform: scale(var(--fa-layers-scale, 0.25));
176
- -webkit-transform-origin: bottom left;
177
- transform-origin: bottom left;
178
- }
179
-
180
- .fa-layers-top-right {
181
- top: var(--fa-top, 0);
182
- right: var(--fa-right, 0);
183
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
184
- transform: scale(var(--fa-layers-scale, 0.25));
185
- -webkit-transform-origin: top right;
186
- transform-origin: top right;
187
- }
188
-
189
- .fa-layers-top-left {
190
- left: var(--fa-left, 0);
191
- right: auto;
192
- top: var(--fa-top, 0);
193
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
194
- transform: scale(var(--fa-layers-scale, 0.25));
195
- -webkit-transform-origin: top left;
196
- transform-origin: top left;
197
- }
198
-
199
- .fa-1x {
200
- font-size: 1em;
201
- }
202
-
203
- .fa-2x {
204
- font-size: 2em;
205
- }
206
-
207
- .fa-3x {
208
- font-size: 3em;
209
- }
210
-
211
- .fa-4x {
212
- font-size: 4em;
213
- }
214
-
215
- .fa-5x {
216
- font-size: 5em;
217
- }
218
-
219
- .fa-6x {
220
- font-size: 6em;
221
- }
222
-
223
- .fa-7x {
224
- font-size: 7em;
225
- }
226
-
227
- .fa-8x {
228
- font-size: 8em;
229
- }
230
-
231
- .fa-9x {
232
- font-size: 9em;
233
- }
234
-
235
- .fa-10x {
236
- font-size: 10em;
237
- }
238
-
239
- .fa-2xs {
240
- font-size: 0.625em;
241
- line-height: 0.1em;
242
- vertical-align: 0.225em;
243
- }
244
-
245
- .fa-xs {
246
- font-size: 0.75em;
247
- line-height: 0.0833333337em;
248
- vertical-align: 0.125em;
249
- }
250
-
251
- .fa-sm {
252
- font-size: 0.875em;
253
- line-height: 0.0714285718em;
254
- vertical-align: 0.0535714295em;
255
- }
256
-
257
- .fa-lg {
258
- font-size: 1.25em;
259
- line-height: 0.05em;
260
- vertical-align: -0.075em;
261
- }
262
-
263
- .fa-xl {
264
- font-size: 1.5em;
265
- line-height: 0.0416666682em;
266
- vertical-align: -0.125em;
267
- }
268
-
269
- .fa-2xl {
270
- font-size: 2em;
271
- line-height: 0.03125em;
272
- vertical-align: -0.1875em;
273
- }
274
-
275
- .fa-fw {
276
- text-align: center;
277
- width: 1.25em;
278
- }
279
-
280
- .fa-ul {
281
- list-style-type: none;
282
- margin-left: var(--fa-li-margin, 2.5em);
283
- padding-left: 0;
284
- }
285
- .fa-ul > li {
286
- position: relative;
287
- }
288
-
289
- .fa-li {
290
- left: calc(var(--fa-li-width, 2em) * -1);
291
- position: absolute;
292
- text-align: center;
293
- width: var(--fa-li-width, 2em);
294
- line-height: inherit;
295
- }
296
-
297
- .fa-border {
298
- border-color: var(--fa-border-color, #eee);
299
- border-radius: var(--fa-border-radius, 0.1em);
300
- border-style: var(--fa-border-style, solid);
301
- border-width: var(--fa-border-width, 0.08em);
302
- padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
303
- }
304
-
305
- .fa-pull-left {
306
- float: left;
307
- margin-right: var(--fa-pull-margin, 0.3em);
308
- }
309
-
310
- .fa-pull-right {
311
- float: right;
312
- margin-left: var(--fa-pull-margin, 0.3em);
313
- }
314
-
315
- .fa-beat {
316
- -webkit-animation-name: fa-beat;
317
- animation-name: fa-beat;
318
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
319
- animation-delay: var(--fa-animation-delay, 0s);
320
- -webkit-animation-direction: var(--fa-animation-direction, normal);
321
- animation-direction: var(--fa-animation-direction, normal);
322
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
323
- animation-duration: var(--fa-animation-duration, 1s);
324
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
325
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
326
- -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
327
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
328
- }
329
-
330
- .fa-bounce {
331
- -webkit-animation-name: fa-bounce;
332
- animation-name: fa-bounce;
333
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
334
- animation-delay: var(--fa-animation-delay, 0s);
335
- -webkit-animation-direction: var(--fa-animation-direction, normal);
336
- animation-direction: var(--fa-animation-direction, normal);
337
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
338
- animation-duration: var(--fa-animation-duration, 1s);
339
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
340
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
341
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
342
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
343
- }
344
-
345
- .fa-fade {
346
- -webkit-animation-name: fa-fade;
347
- animation-name: fa-fade;
348
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
349
- animation-delay: var(--fa-animation-delay, 0s);
350
- -webkit-animation-direction: var(--fa-animation-direction, normal);
351
- animation-direction: var(--fa-animation-direction, normal);
352
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
353
- animation-duration: var(--fa-animation-duration, 1s);
354
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
355
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
356
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
357
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
358
- }
359
-
360
- .fa-beat-fade {
361
- -webkit-animation-name: fa-beat-fade;
362
- animation-name: fa-beat-fade;
363
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
364
- animation-delay: var(--fa-animation-delay, 0s);
365
- -webkit-animation-direction: var(--fa-animation-direction, normal);
366
- animation-direction: var(--fa-animation-direction, normal);
367
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
368
- animation-duration: var(--fa-animation-duration, 1s);
369
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
370
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
371
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
372
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
373
- }
374
-
375
- .fa-flip {
376
- -webkit-animation-name: fa-flip;
377
- animation-name: fa-flip;
378
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
379
- animation-delay: var(--fa-animation-delay, 0s);
380
- -webkit-animation-direction: var(--fa-animation-direction, normal);
381
- animation-direction: var(--fa-animation-direction, normal);
382
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
383
- animation-duration: var(--fa-animation-duration, 1s);
384
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
385
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
386
- -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
387
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
388
- }
389
-
390
- .fa-shake {
391
- -webkit-animation-name: fa-shake;
392
- animation-name: fa-shake;
393
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
394
- animation-delay: var(--fa-animation-delay, 0s);
395
- -webkit-animation-direction: var(--fa-animation-direction, normal);
396
- animation-direction: var(--fa-animation-direction, normal);
397
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
398
- animation-duration: var(--fa-animation-duration, 1s);
399
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
400
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
401
- -webkit-animation-timing-function: var(--fa-animation-timing, linear);
402
- animation-timing-function: var(--fa-animation-timing, linear);
403
- }
404
-
405
- .fa-spin {
406
- -webkit-animation-name: fa-spin;
407
- animation-name: fa-spin;
408
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
409
- animation-delay: var(--fa-animation-delay, 0s);
410
- -webkit-animation-direction: var(--fa-animation-direction, normal);
411
- animation-direction: var(--fa-animation-direction, normal);
412
- -webkit-animation-duration: var(--fa-animation-duration, 2s);
413
- animation-duration: var(--fa-animation-duration, 2s);
414
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
415
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
416
- -webkit-animation-timing-function: var(--fa-animation-timing, linear);
417
- animation-timing-function: var(--fa-animation-timing, linear);
418
- }
419
-
420
- .fa-spin-reverse {
421
- --fa-animation-direction: reverse;
422
- }
423
-
424
- .fa-pulse,
425
- .fa-spin-pulse {
426
- -webkit-animation-name: fa-spin;
427
- animation-name: fa-spin;
428
- -webkit-animation-direction: var(--fa-animation-direction, normal);
429
- animation-direction: var(--fa-animation-direction, normal);
430
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
431
- animation-duration: var(--fa-animation-duration, 1s);
432
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
433
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
434
- -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
435
- animation-timing-function: var(--fa-animation-timing, steps(8));
436
- }
437
-
438
- @media (prefers-reduced-motion: reduce) {
439
- .fa-beat,
440
- .fa-bounce,
441
- .fa-fade,
442
- .fa-beat-fade,
443
- .fa-flip,
444
- .fa-pulse,
445
- .fa-shake,
446
- .fa-spin,
447
- .fa-spin-pulse {
448
- -webkit-animation-delay: -1ms;
449
- animation-delay: -1ms;
450
- -webkit-animation-duration: 1ms;
451
- animation-duration: 1ms;
452
- -webkit-animation-iteration-count: 1;
453
- animation-iteration-count: 1;
454
- transition-delay: 0s;
455
- transition-duration: 0s;
456
- }
457
- }
458
- @-webkit-keyframes fa-beat {
459
- 0%, 90% {
460
- -webkit-transform: scale(1);
461
- transform: scale(1);
462
- }
463
- 45% {
464
- -webkit-transform: scale(var(--fa-beat-scale, 1.25));
465
- transform: scale(var(--fa-beat-scale, 1.25));
466
- }
467
- }
468
- @keyframes fa-beat {
469
- 0%, 90% {
470
- -webkit-transform: scale(1);
471
- transform: scale(1);
472
- }
473
- 45% {
474
- -webkit-transform: scale(var(--fa-beat-scale, 1.25));
475
- transform: scale(var(--fa-beat-scale, 1.25));
476
- }
477
- }
478
- @-webkit-keyframes fa-bounce {
479
- 0% {
480
- -webkit-transform: scale(1, 1) translateY(0);
481
- transform: scale(1, 1) translateY(0);
482
- }
483
- 10% {
484
- -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
485
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
486
- }
487
- 30% {
488
- -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));
489
- 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));
490
- }
491
- 50% {
492
- -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
493
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
494
- }
495
- 57% {
496
- -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
497
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
498
- }
499
- 64% {
500
- -webkit-transform: scale(1, 1) translateY(0);
501
- transform: scale(1, 1) translateY(0);
502
- }
503
- 100% {
504
- -webkit-transform: scale(1, 1) translateY(0);
505
- transform: scale(1, 1) translateY(0);
506
- }
507
- }
508
- @keyframes fa-bounce {
509
- 0% {
510
- -webkit-transform: scale(1, 1) translateY(0);
511
- transform: scale(1, 1) translateY(0);
512
- }
513
- 10% {
514
- -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
515
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
516
- }
517
- 30% {
518
- -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));
519
- 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));
520
- }
521
- 50% {
522
- -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
523
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
524
- }
525
- 57% {
526
- -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
527
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
528
- }
529
- 64% {
530
- -webkit-transform: scale(1, 1) translateY(0);
531
- transform: scale(1, 1) translateY(0);
532
- }
533
- 100% {
534
- -webkit-transform: scale(1, 1) translateY(0);
535
- transform: scale(1, 1) translateY(0);
536
- }
537
- }
538
- @-webkit-keyframes fa-fade {
539
- 50% {
540
- opacity: var(--fa-fade-opacity, 0.4);
541
- }
542
- }
543
- @keyframes fa-fade {
544
- 50% {
545
- opacity: var(--fa-fade-opacity, 0.4);
546
- }
547
- }
548
- @-webkit-keyframes fa-beat-fade {
549
- 0%, 100% {
550
- opacity: var(--fa-beat-fade-opacity, 0.4);
551
- -webkit-transform: scale(1);
552
- transform: scale(1);
553
- }
554
- 50% {
555
- opacity: 1;
556
- -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
557
- transform: scale(var(--fa-beat-fade-scale, 1.125));
558
- }
559
- }
560
- @keyframes fa-beat-fade {
561
- 0%, 100% {
562
- opacity: var(--fa-beat-fade-opacity, 0.4);
563
- -webkit-transform: scale(1);
564
- transform: scale(1);
565
- }
566
- 50% {
567
- opacity: 1;
568
- -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
569
- transform: scale(var(--fa-beat-fade-scale, 1.125));
570
- }
571
- }
572
- @-webkit-keyframes fa-flip {
573
- 50% {
574
- -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
575
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
576
- }
577
- }
578
- @keyframes fa-flip {
579
- 50% {
580
- -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
581
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
582
- }
583
- }
584
- @-webkit-keyframes fa-shake {
585
- 0% {
586
- -webkit-transform: rotate(-15deg);
587
- transform: rotate(-15deg);
588
- }
589
- 4% {
590
- -webkit-transform: rotate(15deg);
591
- transform: rotate(15deg);
592
- }
593
- 8%, 24% {
594
- -webkit-transform: rotate(-18deg);
595
- transform: rotate(-18deg);
596
- }
597
- 12%, 28% {
598
- -webkit-transform: rotate(18deg);
599
- transform: rotate(18deg);
600
- }
601
- 16% {
602
- -webkit-transform: rotate(-22deg);
603
- transform: rotate(-22deg);
604
- }
605
- 20% {
606
- -webkit-transform: rotate(22deg);
607
- transform: rotate(22deg);
608
- }
609
- 32% {
610
- -webkit-transform: rotate(-12deg);
611
- transform: rotate(-12deg);
612
- }
613
- 36% {
614
- -webkit-transform: rotate(12deg);
615
- transform: rotate(12deg);
616
- }
617
- 40%, 100% {
618
- -webkit-transform: rotate(0deg);
619
- transform: rotate(0deg);
620
- }
621
- }
622
- @keyframes fa-shake {
623
- 0% {
624
- -webkit-transform: rotate(-15deg);
625
- transform: rotate(-15deg);
626
- }
627
- 4% {
628
- -webkit-transform: rotate(15deg);
629
- transform: rotate(15deg);
630
- }
631
- 8%, 24% {
632
- -webkit-transform: rotate(-18deg);
633
- transform: rotate(-18deg);
634
- }
635
- 12%, 28% {
636
- -webkit-transform: rotate(18deg);
637
- transform: rotate(18deg);
638
- }
639
- 16% {
640
- -webkit-transform: rotate(-22deg);
641
- transform: rotate(-22deg);
642
- }
643
- 20% {
644
- -webkit-transform: rotate(22deg);
645
- transform: rotate(22deg);
646
- }
647
- 32% {
648
- -webkit-transform: rotate(-12deg);
649
- transform: rotate(-12deg);
650
- }
651
- 36% {
652
- -webkit-transform: rotate(12deg);
653
- transform: rotate(12deg);
654
- }
655
- 40%, 100% {
656
- -webkit-transform: rotate(0deg);
657
- transform: rotate(0deg);
658
- }
659
- }
660
- @-webkit-keyframes fa-spin {
661
- 0% {
662
- -webkit-transform: rotate(0deg);
663
- transform: rotate(0deg);
664
- }
665
- 100% {
666
- -webkit-transform: rotate(360deg);
667
- transform: rotate(360deg);
668
- }
669
- }
670
- @keyframes fa-spin {
671
- 0% {
672
- -webkit-transform: rotate(0deg);
673
- transform: rotate(0deg);
674
- }
675
- 100% {
676
- -webkit-transform: rotate(360deg);
677
- transform: rotate(360deg);
678
- }
679
- }
680
- .fa-rotate-90 {
681
- -webkit-transform: rotate(90deg);
682
- transform: rotate(90deg);
683
- }
684
-
685
- .fa-rotate-180 {
686
- -webkit-transform: rotate(180deg);
687
- transform: rotate(180deg);
688
- }
689
-
690
- .fa-rotate-270 {
691
- -webkit-transform: rotate(270deg);
692
- transform: rotate(270deg);
693
- }
694
-
695
- .fa-flip-horizontal {
696
- -webkit-transform: scale(-1, 1);
697
- transform: scale(-1, 1);
698
- }
699
-
700
- .fa-flip-vertical {
701
- -webkit-transform: scale(1, -1);
702
- transform: scale(1, -1);
703
- }
704
-
705
- .fa-flip-both,
706
- .fa-flip-horizontal.fa-flip-vertical {
707
- -webkit-transform: scale(-1, -1);
708
- transform: scale(-1, -1);
709
- }
710
-
711
- .fa-rotate-by {
712
- -webkit-transform: rotate(var(--fa-rotate-angle, none));
713
- transform: rotate(var(--fa-rotate-angle, none));
714
- }
715
-
716
- .fa-stack {
717
- display: inline-block;
718
- vertical-align: middle;
719
- height: 2em;
720
- position: relative;
721
- width: 2.5em;
722
- }
723
-
724
- .fa-stack-1x,
725
- .fa-stack-2x {
726
- bottom: 0;
727
- left: 0;
728
- margin: auto;
729
- position: absolute;
730
- right: 0;
731
- top: 0;
732
- z-index: var(--fa-stack-z-index, auto);
733
- }
734
-
735
- .svg-inline--fa.fa-stack-1x {
736
- height: 1em;
737
- width: 1.25em;
738
- }
739
- .svg-inline--fa.fa-stack-2x {
740
- height: 2em;
741
- width: 2.5em;
742
- }
743
-
744
- .fa-inverse {
745
- color: var(--fa-inverse, #fff);
746
- }
747
-
748
- .sr-only,
749
- .fa-sr-only {
750
- position: absolute;
751
- width: 1px;
752
- height: 1px;
753
- padding: 0;
754
- margin: -1px;
755
- overflow: hidden;
756
- clip: rect(0, 0, 0, 0);
757
- white-space: nowrap;
758
- border-width: 0;
759
- }
760
-
761
- .sr-only-focusable:not(:focus),
762
- .fa-sr-only-focusable:not(:focus) {
763
- position: absolute;
764
- width: 1px;
765
- height: 1px;
766
- padding: 0;
767
- margin: -1px;
768
- overflow: hidden;
769
- clip: rect(0, 0, 0, 0);
770
- white-space: nowrap;
771
- border-width: 0;
772
- }
773
-
774
- .svg-inline--fa .fa-primary {
775
- fill: var(--fa-primary-color, currentColor);
776
- opacity: var(--fa-primary-opacity, 1);
777
- }
778
-
779
- .svg-inline--fa .fa-secondary {
780
- fill: var(--fa-secondary-color, currentColor);
781
- opacity: var(--fa-secondary-opacity, 0.4);
782
- }
783
-
784
- .svg-inline--fa.fa-swap-opacity .fa-primary {
785
- opacity: var(--fa-secondary-opacity, 0.4);
786
- }
787
-
788
- .svg-inline--fa.fa-swap-opacity .fa-secondary {
789
- opacity: var(--fa-primary-opacity, 1);
790
- }
791
-
792
- .svg-inline--fa mask .fa-primary,
793
- .svg-inline--fa mask .fa-secondary {
794
- fill: black;
795
- }
796
-
797
- .fad.fa-inverse,
798
- .fa-duotone.fa-inverse {
799
- color: var(--fa-inverse, #fff);
800
- }`;function Ek(){var e=gk,t=yk,r=Ut.cssPrefix,n=Ut.replacementClass,i=xI;if(r!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),u=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(r,"-")).replace(u,"--".concat(r,"-")).replace(l,".".concat(n))}return i}var M3=!1;function By(){Ut.autoAddCss&&!M3&&(pI(Ek()),M3=!0)}var _I={mixout:function(){return{dom:{css:Ek,insertCss:By}}},hooks:function(){return{beforeDOMElementCreation:function(){By()},beforeI2svg:function(){By()}}}},Pa=$o||{};Pa[Ia]||(Pa[Ia]={});Pa[Ia].styles||(Pa[Ia].styles={});Pa[Ia].hooks||(Pa[Ia].hooks={});Pa[Ia].shims||(Pa[Ia].shims=[]);var Ii=Pa[Ia],Ak=[],wI=function e(){Rr.removeEventListener("DOMContentLoaded",e),cv=1,Ak.map(function(t){return t()})},cv=!1;ja&&(cv=(Rr.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Rr.readyState),cv||Rr.addEventListener("DOMContentLoaded",wI));function bI(e){ja&&(cv?setTimeout(e,0):Ak.push(e))}function ld(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"?Sk(e):"<".concat(t," ").concat(mI(n),">").concat(a.map(ld).join(""),"</").concat(t,">")}function F3(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var SI=function(t,r){return function(n,i,a,u){return t.call(r,n,i,a,u)}},$y=function(t,r,n,i){var a=Object.keys(t),u=a.length,l=i!==void 0?SI(r,i):r,s,c,v;for(n===void 0?(s=1,v=t[a[0]]):(s=0,v=n);s<u;s++)c=a[s],v=l(v,t[c],c,t);return v};function EI(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 r2(e){var t=EI(e);return t.length===1?t[0].toString(16):null}function AI(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 N3(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 n2(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,a=N3(t);typeof Ii.hooks.addPack=="function"&&!i?Ii.hooks.addPack(e,N3(t)):Ii.styles[e]=Pt(Pt({},Ii.styles[e]||{}),a),e==="fas"&&n2("fa",t)}var Qp,Zp,Kp,gf=Ii.styles,TI=Ii.shims,CI=(Qp={},un(Qp,Fr,Object.values($h[Fr])),un(Qp,jr,Object.values($h[jr])),Qp),iw=null,Tk={},Ck={},kk={},Ok={},Mk={},kI=(Zp={},un(Zp,Fr,Object.keys(Dh[Fr])),un(Zp,jr,Object.keys(Dh[jr])),Zp);function OI(e){return~fI.indexOf(e)}function MI(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!OI(i)?i:null}var Fk=function(){var t=function(a){return $y(gf,function(u,l,s){return u[s]=$y(l,a,{}),u},{})};Tk=t(function(i,a,u){if(a[3]&&(i[a[3]]=u),a[2]){var l=a[2].filter(function(s){return typeof s=="number"});l.forEach(function(s){i[s.toString(16)]=u})}return i}),Ck=t(function(i,a,u){if(i[u]=u,a[2]){var l=a[2].filter(function(s){return typeof s=="string"});l.forEach(function(s){i[s]=u})}return i}),Mk=t(function(i,a,u){var l=a[2];return i[u]=u,l.forEach(function(s){i[s]=u}),i});var r="far"in gf||Ut.autoFetchSvg,n=$y(TI,function(i,a){var u=a[0],l=a[1],s=a[2];return l==="far"&&!r&&(l="fas"),typeof u=="string"&&(i.names[u]={prefix:l,iconName:s}),typeof u=="number"&&(i.unicodes[u.toString(16)]={prefix:l,iconName:s}),i},{names:{},unicodes:{}});kk=n.names,Ok=n.unicodes,iw=hm(Ut.styleDefault,{family:Ut.familyDefault})};dI(function(e){iw=hm(e.styleDefault,{family:Ut.familyDefault})});Fk();function aw(e,t){return(Tk[e]||{})[t]}function FI(e,t){return(Ck[e]||{})[t]}function Du(e,t){return(Mk[e]||{})[t]}function Nk(e){return kk[e]||{prefix:null,iconName:null}}function NI(e){var t=Ok[e],r=aw("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function zo(){return iw}var ow=function(){return{prefix:null,iconName:null,rest:[]}};function hm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.family,n=r===void 0?Fr:r,i=Dh[n][e],a=Bh[n][e]||Bh[n][i],u=e in Ii.styles?e:null;return a||u||null}var R3=(Kp={},un(Kp,Fr,Object.keys($h[Fr])),un(Kp,jr,Object.keys($h[jr])),Kp);function dm(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,i=n===void 0?!1:n,a=(t={},un(t,Fr,"".concat(Ut.cssPrefix,"-").concat(Fr)),un(t,jr,"".concat(Ut.cssPrefix,"-").concat(jr)),t),u=null,l=Fr;(e.includes(a[Fr])||e.some(function(c){return R3[Fr].includes(c)}))&&(l=Fr),(e.includes(a[jr])||e.some(function(c){return R3[jr].includes(c)}))&&(l=jr);var s=e.reduce(function(c,v){var x=MI(Ut.cssPrefix,v);if(gf[v]?(v=CI[l].includes(v)?nI[l][v]:v,u=v,c.prefix=v):kI[l].indexOf(v)>-1?(u=v,c.prefix=hm(v,{family:l})):x?c.iconName=x:v!==Ut.replacementClass&&v!==a[Fr]&&v!==a[jr]&&c.rest.push(v),!i&&c.prefix&&c.iconName){var y=u==="fa"?Nk(c.iconName):{},g=Du(c.prefix,c.iconName);y.prefix&&(u=null),c.iconName=y.iconName||g||c.iconName,c.prefix=y.prefix||c.prefix,c.prefix==="far"&&!gf.far&&gf.fas&&!Ut.autoFetchSvg&&(c.prefix="fas")}return c},ow());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&l===jr&&(gf.fass||Ut.autoFetchSvg)&&(s.prefix="fass",s.iconName=Du(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||u==="fa")&&(s.prefix=zo()||"fas"),s}var RI=function(){function e(){WR(this,e),this.definitions={}}return VR(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 u=i.reduce(this._pullDefinitions,{});Object.keys(u).forEach(function(l){r.definitions[l]=Pt(Pt({},r.definitions[l]||{}),u[l]),n2(l,u[l]);var s=$h[Fr][l];s&&n2(s,u[l]),Fk()})}},{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 u=i[a],l=u.prefix,s=u.iconName,c=u.icon,v=c[2];r[l]||(r[l]={}),v.length>0&&v.forEach(function(x){typeof x=="string"&&(r[l][x]=c)}),r[l][s]=c}),r}}]),e}(),I3=[],yf={},Ff={},II=Object.keys(Ff);function PI(e,t){var r=t.mixoutsTo;return I3=e,yf={},Object.keys(Ff).forEach(function(n){II.indexOf(n)===-1&&delete Ff[n]}),I3.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(u){typeof i[u]=="function"&&(r[u]=i[u]),sv(i[u])==="object"&&Object.keys(i[u]).forEach(function(l){r[u]||(r[u]={}),r[u][l]=i[u][l]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(u){yf[u]||(yf[u]=[]),yf[u].push(a[u])})}n.provides&&n.provides(Ff)}),r}function i2(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=yf[e]||[];return a.forEach(function(u){t=u.apply(null,[t].concat(n))}),t}function Yu(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=yf[e]||[];i.forEach(function(a){a.apply(null,r)})}function La(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ff[e]?Ff[e].apply(null,t):void 0}function a2(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,r=e.prefix||zo();if(t)return t=Du(r,t)||t,F3(Rk.definitions,r,t)||F3(Ii.styles,r,t)}var Rk=new RI,LI=function(){Ut.autoReplaceSvg=!1,Ut.observeMutations=!1,Yu("noAuto")},DI={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ja?(Yu("beforeI2svg",t),La("pseudoElements2svg",t),La("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;Ut.autoReplaceSvg===!1&&(Ut.autoReplaceSvg=!0),Ut.observeMutations=!0,bI(function(){$I({autoReplaceSvgRoot:r}),Yu("watch",t)})}},BI={icon:function(t){if(t===null)return null;if(sv(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Du(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=hm(t[0]);return{prefix:n,iconName:Du(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat(Ut.cssPrefix,"-"))>-1||t.match(iI))){var i=dm(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||zo(),iconName:Du(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=zo();return{prefix:a,iconName:Du(a,t)||t}}}},ai={noAuto:LI,config:Ut,dom:DI,parse:BI,library:Rk,findIconDefinition:a2,toHtml:ld},$I=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot,n=r===void 0?Rr:r;(Object.keys(Ii.styles).length>0||Ut.autoFetchSvg)&&ja&&Ut.autoReplaceSvg&&ai.dom.i2svg({node:n})};function pm(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return ld(n)})}}),Object.defineProperty(e,"node",{get:function(){if(ja){var n=Rr.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function zI(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,u=e.transform;if(nw(u)&&r.found&&!n.found){var l=r.width,s=r.height,c={x:l/s/2,y:.5};i.style=cm(Pt(Pt({},a),{},{"transform-origin":"".concat(c.x+u.x/16,"em ").concat(c.y+u.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function UI(e){var t=e.prefix,r=e.iconName,n=e.children,i=e.attributes,a=e.symbol,u=a===!0?"".concat(t,"-").concat(Ut.cssPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Pt(Pt({},i),{},{id:u}),children:n}]}]}function uw(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,a=e.iconName,u=e.transform,l=e.symbol,s=e.title,c=e.maskId,v=e.titleId,x=e.extra,y=e.watchable,g=y===void 0?!1:y,k=n.found?n:r,N=k.width,b=k.height,w=i==="fak",A=[Ut.replacementClass,a?"".concat(Ut.cssPrefix,"-").concat(a):""].filter(function(ae){return x.classes.indexOf(ae)===-1}).filter(function(ae){return ae!==""||!!ae}).concat(x.classes).join(" "),M={children:[],attributes:Pt(Pt({},x.attributes),{},{"data-prefix":i,"data-icon":a,class:A,role:x.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(N," ").concat(b)})},R=w&&!~x.classes.indexOf("fa-fw")?{width:"".concat(N/b*16*.0625,"em")}:{};g&&(M.attributes[qu]=""),s&&(M.children.push({tag:"title",attributes:{id:M.attributes["aria-labelledby"]||"title-".concat(v||Uh())},children:[s]}),delete M.attributes.title);var L=Pt(Pt({},M),{},{prefix:i,iconName:a,main:r,mask:n,maskId:c,transform:u,symbol:l,styles:Pt(Pt({},R),x.styles)}),D=n.found&&r.found?La("generateAbstractMask",L)||{children:[],attributes:{}}:La("generateAbstractIcon",L)||{children:[],attributes:{}},ne=D.children,Y=D.attributes;return L.children=ne,L.attributes=Y,l?UI(L):zI(L)}function P3(e){var t=e.content,r=e.width,n=e.height,i=e.transform,a=e.title,u=e.extra,l=e.watchable,s=l===void 0?!1:l,c=Pt(Pt(Pt({},u.attributes),a?{title:a}:{}),{},{class:u.classes.join(" ")});s&&(c[qu]="");var v=Pt({},u.styles);nw(i)&&(v.transform=yI({transform:i,startCentered:!0,width:r,height:n}),v["-webkit-transform"]=v.transform);var x=cm(v);x.length>0&&(c.style=x);var y=[];return y.push({tag:"span",attributes:c,children:[t]}),a&&y.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),y}function jI(e){var t=e.content,r=e.title,n=e.extra,i=Pt(Pt(Pt({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),a=cm(n.styles);a.length>0&&(i.style=a);var u=[];return u.push({tag:"span",attributes:i,children:[t]}),r&&u.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),u}var zy=Ii.styles;function o2(e){var t=e[0],r=e[1],n=e.slice(4),i=Z_(n,1),a=i[0],u=null;return Array.isArray(a)?u={tag:"g",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(Lu.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(Lu.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(Lu.PRIMARY),fill:"currentColor",d:a[1]}}]}:u={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:r,icon:u}}var GI={found:!1,width:512,height:512};function HI(e,t){!xk&&!Ut.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function u2(e,t){var r=t;return t==="fa"&&Ut.styleDefault!==null&&(t=zo()),new Promise(function(n,i){if(La("missingIconAbstract"),r==="fa"){var a=Nk(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&zy[t]&&zy[t][e]){var u=zy[t][e];return n(o2(u))}HI(e,t),n(Pt(Pt({},GI),{},{icon:Ut.showMissingIcons&&e?La("missingIconAbstract")||{}:{}}))})}var L3=function(){},l2=Ut.measurePerformance&&Hp&&Hp.mark&&Hp.measure?Hp:{mark:L3,measure:L3},Zc='FA "6.2.1"',WI=function(t){return l2.mark("".concat(Zc," ").concat(t," begins")),function(){return Ik(t)}},Ik=function(t){l2.mark("".concat(Zc," ").concat(t," ends")),l2.measure("".concat(Zc," ").concat(t),"".concat(Zc," ").concat(t," begins"),"".concat(Zc," ").concat(t," ends"))},lw={begin:WI,end:Ik},N0=function(){};function D3(e){var t=e.getAttribute?e.getAttribute(qu):null;return typeof t=="string"}function VI(e){var t=e.getAttribute?e.getAttribute(J_):null,r=e.getAttribute?e.getAttribute(ew):null;return t&&r}function qI(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ut.replacementClass)}function YI(){if(Ut.autoReplaceSvg===!0)return R0.replace;var e=R0[Ut.autoReplaceSvg];return e||R0.replace}function XI(e){return Rr.createElementNS("http://www.w3.org/2000/svg",e)}function QI(e){return Rr.createElement(e)}function Pk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?XI:QI:r;if(typeof e=="string")return Rr.createTextNode(e);var i=n(e.tag);Object.keys(e.attributes||[]).forEach(function(u){i.setAttribute(u,e.attributes[u])});var a=e.children||[];return a.forEach(function(u){i.appendChild(Pk(u,{ceFn:n}))}),i}function ZI(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var R0={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(Pk(i),r)}),r.getAttribute(qu)===null&&Ut.keepOriginalSource){var n=Rr.createComment(ZI(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~rw(r).indexOf(Ut.replacementClass))return R0.replace(t);var i=new RegExp("".concat(Ut.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(l,s){return s===Ut.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 u=n.map(function(l){return ld(l)}).join(`
801
- `);r.setAttribute(qu,""),r.innerHTML=u}};function B3(e){e()}function Lk(e,t){var r=typeof t=="function"?t:N0;if(e.length===0)r();else{var n=B3;Ut.mutateApproach===tI&&(n=$o.requestAnimationFrame||B3),n(function(){var i=YI(),a=lw.begin("mutate");e.map(i),a(),r()})}}var fw=!1;function Dk(){fw=!0}function f2(){fw=!1}var hv=null;function $3(e){if(k3&&Ut.observeMutations){var t=e.treeCallback,r=t===void 0?N0:t,n=e.nodeCallback,i=n===void 0?N0:n,a=e.pseudoElementsCallback,u=a===void 0?N0:a,l=e.observeMutationsRoot,s=l===void 0?Rr:l;hv=new k3(function(c){if(!fw){var v=zo();as(c).forEach(function(x){if(x.type==="childList"&&x.addedNodes.length>0&&!D3(x.addedNodes[0])&&(Ut.searchPseudoElements&&u(x.target),r(x.target)),x.type==="attributes"&&x.target.parentNode&&Ut.searchPseudoElements&&u(x.target.parentNode),x.type==="attributes"&&D3(x.target)&&~lI.indexOf(x.attributeName))if(x.attributeName==="class"&&VI(x.target)){var y=dm(rw(x.target)),g=y.prefix,k=y.iconName;x.target.setAttribute(J_,g||v),k&&x.target.setAttribute(ew,k)}else qI(x.target)&&i(x.target)})}}),ja&&hv.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function KI(){hv&&hv.disconnect()}function JI(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(n,i){var a=i.split(":"),u=a[0],l=a.slice(1);return u&&l.length>0&&(n[u]=l.join(":").trim()),n},{})),r}function eP(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=dm(rw(e));return i.prefix||(i.prefix=zo()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=FI(i.prefix,e.innerText)||aw(i.prefix,r2(e.innerText))),!i.iconName&&Ut.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function tP(e){var t=as(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 Ut.autoA11y&&(r?t["aria-labelledby"]="".concat(Ut.replacementClass,"-title-").concat(n||Uh()):(t["aria-hidden"]="true",t.focusable="false")),t}function rP(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Zi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function z3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=eP(e),n=r.iconName,i=r.prefix,a=r.rest,u=tP(e),l=i2("parseNodeAttributes",{},e),s=t.styleParser?JI(e):[];return Pt({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Zi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:s,attributes:u}},l)}var nP=Ii.styles;function Bk(e){var t=Ut.autoReplaceSvg==="nest"?z3(e,{styleParser:!1}):z3(e);return~t.extra.classes.indexOf(_k)?La("generateLayersText",e,t):La("generateSvgReplacementMutation",e,t)}var Uo=new Set;tw.map(function(e){Uo.add("fa-".concat(e))});Object.keys(Dh[Fr]).map(Uo.add.bind(Uo));Object.keys(Dh[jr]).map(Uo.add.bind(Uo));Uo=od(Uo);function U3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ja)return Promise.resolve();var r=Rr.documentElement.classList,n=function(x){return r.add("".concat(O3,"-").concat(x))},i=function(x){return r.remove("".concat(O3,"-").concat(x))},a=Ut.autoFetchSvg?Uo:tw.map(function(v){return"fa-".concat(v)}).concat(Object.keys(nP));a.includes("fa")||a.push("fa");var u=[".".concat(_k,":not([").concat(qu,"])")].concat(a.map(function(v){return".".concat(v,":not([").concat(qu,"])")})).join(", ");if(u.length===0)return Promise.resolve();var l=[];try{l=as(e.querySelectorAll(u))}catch{}if(l.length>0)n("pending"),i("complete");else return Promise.resolve();var s=lw.begin("onTree"),c=l.reduce(function(v,x){try{var y=Bk(x);y&&v.push(y)}catch(g){xk||g.name==="MissingIcon"&&console.error(g)}return v},[]);return new Promise(function(v,x){Promise.all(c).then(function(y){Lk(y,function(){n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),s(),v()})}).catch(function(y){s(),x(y)})})}function iP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Bk(e).then(function(r){r&&Lk([r],t)})}function aP(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:a2(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:a2(i||{})),e(n,Pt(Pt({},r),{},{mask:i}))}}var oP=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?Zi:n,a=r.symbol,u=a===void 0?!1:a,l=r.mask,s=l===void 0?null:l,c=r.maskId,v=c===void 0?null:c,x=r.title,y=x===void 0?null:x,g=r.titleId,k=g===void 0?null:g,N=r.classes,b=N===void 0?[]:N,w=r.attributes,A=w===void 0?{}:w,M=r.styles,R=M===void 0?{}:M;if(t){var L=t.prefix,D=t.iconName,ne=t.icon;return pm(Pt({type:"icon"},t),function(){return Yu("beforeDOMElementCreation",{iconDefinition:t,params:r}),Ut.autoA11y&&(y?A["aria-labelledby"]="".concat(Ut.replacementClass,"-title-").concat(k||Uh()):(A["aria-hidden"]="true",A.focusable="false")),uw({icons:{main:o2(ne),mask:s?o2(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:L,iconName:D,transform:Pt(Pt({},Zi),i),symbol:u,title:y,maskId:v,titleId:k,extra:{attributes:A,styles:R,classes:b}})})}},uP={mixout:function(){return{icon:aP(oP)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=U3,r.nodeCallback=iP,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,i=n===void 0?Rr:n,a=r.callback,u=a===void 0?function(){}:a;return U3(i,u)},t.generateSvgReplacementMutation=function(r,n){var i=n.iconName,a=n.title,u=n.titleId,l=n.prefix,s=n.transform,c=n.symbol,v=n.mask,x=n.maskId,y=n.extra;return new Promise(function(g,k){Promise.all([u2(i,l),v.iconName?u2(v.iconName,v.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(N){var b=Z_(N,2),w=b[0],A=b[1];g([r,uw({icons:{main:w,mask:A},prefix:l,iconName:i,transform:s,symbol:c,maskId:x,title:a,titleId:u,extra:y,watchable:!0})])}).catch(k)})},t.generateAbstractIcon=function(r){var n=r.children,i=r.attributes,a=r.main,u=r.transform,l=r.styles,s=cm(l);s.length>0&&(i.style=s);var c;return nw(u)&&(c=La("generateAbstractTransformGrouping",{main:a,transform:u,containerWidth:a.width,iconWidth:a.width})),n.push(c||a.icon),{children:n,attributes:i}}}},lP={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 pm({type:"layer"},function(){Yu("beforeDOMElementCreation",{assembler:r,params:n});var u=[];return r(function(l){Array.isArray(l)?l.map(function(s){u=u.concat(s.abstract)}):u=u.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(Ut.cssPrefix,"-layers")].concat(od(a)).join(" ")},children:u}]})}}}},fP={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,u=n.classes,l=u===void 0?[]:u,s=n.attributes,c=s===void 0?{}:s,v=n.styles,x=v===void 0?{}:v;return pm({type:"counter",content:r},function(){return Yu("beforeDOMElementCreation",{content:r,params:n}),jI({content:r.toString(),title:a,extra:{attributes:c,styles:x,classes:["".concat(Ut.cssPrefix,"-layers-counter")].concat(od(l))}})})}}}},sP={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,a=i===void 0?Zi:i,u=n.title,l=u===void 0?null:u,s=n.classes,c=s===void 0?[]:s,v=n.attributes,x=v===void 0?{}:v,y=n.styles,g=y===void 0?{}:y;return pm({type:"text",content:r},function(){return Yu("beforeDOMElementCreation",{content:r,params:n}),P3({content:r,transform:Pt(Pt({},Zi),a),title:l,extra:{attributes:x,styles:g,classes:["".concat(Ut.cssPrefix,"-layers-text")].concat(od(c))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,u=n.extra,l=null,s=null;if(mk){var c=parseInt(getComputedStyle(r).fontSize,10),v=r.getBoundingClientRect();l=v.width/c,s=v.height/c}return Ut.autoA11y&&!i&&(u.attributes["aria-hidden"]="true"),Promise.resolve([r,P3({content:r.innerHTML,width:l,height:s,transform:a,title:i,extra:u,watchable:!0})])}}},cP=new RegExp('"',"ug"),j3=[1105920,1112319];function hP(e){var t=e.replace(cP,""),r=AI(t,0),n=r>=j3[0]&&r<=j3[1],i=t.length===2?t[0]===t[1]:!1;return{value:r2(i?t[0]:t),isSecondary:n||i}}function G3(e,t){var r="".concat(eI).concat(t.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var a=as(e.children),u=a.filter(function(ne){return ne.getAttribute(t2)===t})[0],l=$o.getComputedStyle(e,t),s=l.getPropertyValue("font-family").match(aI),c=l.getPropertyValue("font-weight"),v=l.getPropertyValue("content");if(u&&!s)return e.removeChild(u),n();if(s&&v!=="none"&&v!==""){var x=l.getPropertyValue("content"),y=~["Sharp"].indexOf(s[2])?jr:Fr,g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Bh[y][s[2].toLowerCase()]:oI[y][c],k=hP(x),N=k.value,b=k.isSecondary,w=s[0].startsWith("FontAwesome"),A=aw(g,N),M=A;if(w){var R=NI(N);R.iconName&&R.prefix&&(A=R.iconName,g=R.prefix)}if(A&&!b&&(!u||u.getAttribute(J_)!==g||u.getAttribute(ew)!==M)){e.setAttribute(r,M),u&&e.removeChild(u);var L=rP(),D=L.extra;D.attributes[t2]=t,u2(A,g).then(function(ne){var Y=uw(Pt(Pt({},L),{},{icons:{main:ne,mask:ow()},prefix:g,iconName:M,extra:D,watchable:!0})),ae=Rr.createElement("svg");t==="::before"?e.insertBefore(ae,e.firstChild):e.appendChild(ae),ae.outerHTML=Y.map(function(Ce){return ld(Ce)}).join(`
802
- `),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function dP(e){return Promise.all([G3(e,"::before"),G3(e,"::after")])}function pP(e){return e.parentNode!==document.head&&!~rI.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(t2)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function H3(e){if(ja)return new Promise(function(t,r){var n=as(e.querySelectorAll("*")).filter(pP).map(dP),i=lw.begin("searchPseudoElements");Dk(),Promise.all(n).then(function(){i(),f2(),t()}).catch(function(){i(),f2(),r()})})}var vP={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=H3,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?Rr:n;Ut.searchPseudoElements&&H3(i)}}},W3=!1,mP={mixout:function(){return{dom:{unwatch:function(){Dk(),W3=!0}}}},hooks:function(){return{bootstrap:function(){$3(i2("mutationObserverCallbacks",{}))},noAuto:function(){KI()},watch:function(r){var n=r.observeMutationsRoot;W3?f2():$3(i2("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},V3=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("-"),u=a[0],l=a.slice(1).join("-");if(u&&l==="h")return n.flipX=!0,n;if(u&&l==="v")return n.flipY=!0,n;if(l=parseFloat(l),isNaN(l))return n;switch(u){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)},gP={mixout:function(){return{parse:{transform:function(r){return V3(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=V3(i)),r}}},provides:function(t){t.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,a=r.containerWidth,u=r.iconWidth,l={transform:"translate(".concat(a/2," 256)")},s="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),v="rotate(".concat(i.rotate," 0 0)"),x={transform:"".concat(s," ").concat(c," ").concat(v)},y={transform:"translate(".concat(u/2*-1," -256)")},g={outer:l,inner:x,path:y};return{tag:"g",attributes:Pt({},g.outer),children:[{tag:"g",attributes:Pt({},g.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Pt(Pt({},n.icon.attributes),g.path)}]}]}}}},Uy={x:0,y:0,width:"100%",height:"100%"};function q3(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 yP(e){return e.tag==="g"?e.children:[e]}var xP={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?dm(i.split(" ").map(function(u){return u.trim()})):ow();return a.prefix||(a.prefix=zo()),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,u=r.mask,l=r.maskId,s=r.transform,c=a.width,v=a.icon,x=u.width,y=u.icon,g=gI({transform:s,containerWidth:x,iconWidth:c}),k={tag:"rect",attributes:Pt(Pt({},Uy),{},{fill:"white"})},N=v.children?{children:v.children.map(q3)}:{},b={tag:"g",attributes:Pt({},g.inner),children:[q3(Pt({tag:v.tag,attributes:Pt(Pt({},v.attributes),g.path)},N))]},w={tag:"g",attributes:Pt({},g.outer),children:[b]},A="mask-".concat(l||Uh()),M="clip-".concat(l||Uh()),R={tag:"mask",attributes:Pt(Pt({},Uy),{},{id:A,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[k,w]},L={tag:"defs",children:[{tag:"clipPath",attributes:{id:M},children:yP(y)},R]};return n.push(L,{tag:"rect",attributes:Pt({fill:"currentColor","clip-path":"url(#".concat(M,")"),mask:"url(#".concat(A,")")},Uy)}),{children:n,attributes:i}}}},_P={provides:function(t){var r=!1;$o.matchMedia&&(r=$o.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:Pt(Pt({},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 u=Pt(Pt({},a),{},{attributeName:"opacity"}),l={tag:"circle",attributes:Pt(Pt({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||l.children.push({tag:"animate",attributes:Pt(Pt({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Pt(Pt({},u),{},{values:"1;0;1;1;0;1;"})}),n.push(l),n.push({tag:"path",attributes:Pt(Pt({},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:Pt(Pt({},u),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:Pt(Pt({},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:Pt(Pt({},u),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},wP={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}}}},bP=[_I,uP,lP,fP,sP,vP,mP,gP,xP,_P,wP];PI(bP,{mixoutsTo:ai});ai.noAuto;ai.config;ai.library;ai.dom;var s2=ai.parse;ai.findIconDefinition;ai.toHtml;var SP=ai.icon;ai.layer;ai.text;ai.counter;function Y3(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 Eo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Y3(Object(r),!0).forEach(function(n){xf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dv(e){return dv=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},dv(e)}function xf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EP(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 AP(e,t){if(e==null)return{};var r=EP(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 c2(e){return TP(e)||CP(e)||kP(e)||OP()}function TP(e){if(Array.isArray(e))return h2(e)}function CP(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kP(e,t){if(e){if(typeof e=="string")return h2(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 h2(e,t)}}function h2(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 OP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
803
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MP(e){var t,r=e.beat,n=e.fade,i=e.beatFade,a=e.bounce,u=e.shake,l=e.flash,s=e.spin,c=e.spinPulse,v=e.spinReverse,x=e.pulse,y=e.fixedWidth,g=e.inverse,k=e.border,N=e.listItem,b=e.flip,w=e.size,A=e.rotation,M=e.pull,R=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":u,"fa-flash":l,"fa-spin":s,"fa-spin-reverse":v,"fa-spin-pulse":c,"fa-pulse":x,"fa-fw":y,"fa-inverse":g,"fa-border":k,"fa-li":N,"fa-flip":b===!0,"fa-flip-horizontal":b==="horizontal"||b==="both","fa-flip-vertical":b==="vertical"||b==="both"},xf(t,"fa-".concat(w),typeof w<"u"&&w!==null),xf(t,"fa-rotate-".concat(A),typeof A<"u"&&A!==null&&A!==0),xf(t,"fa-pull-".concat(M),typeof M<"u"&&M!==null),xf(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(R).map(function(L){return R[L]?L:null}).filter(function(L){return L})}function FP(e){return e=e-0,e===e}function $k(e){return FP(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var NP=["style"];function RP(e){return e.charAt(0).toUpperCase()+e.slice(1)}function IP(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=$k(r.slice(0,n)),a=r.slice(n+1).trim();return i.startsWith("webkit")?t[RP(i)]=a:t[i]=a,t},{})}function zk(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 zk(e,s)}),i=Object.keys(t.attributes||{}).reduce(function(s,c){var v=t.attributes[c];switch(c){case"class":s.attrs.className=v,delete t.attributes.class;break;case"style":s.attrs.style=IP(v);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?s.attrs[c.toLowerCase()]=v:s.attrs[$k(c)]=v}return s},{attrs:{}}),a=r.style,u=a===void 0?{}:a,l=AP(r,NP);return i.attrs.style=Eo(Eo({},i.attrs.style),u),e.apply(void 0,[t.tag,Eo(Eo({},i.attrs),l)].concat(c2(n)))}var Uk=!1;try{Uk=!0}catch{}function PP(){if(!Uk&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function X3(e){if(e&&dv(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(s2.icon)return s2.icon(e);if(e===null)return null;if(e&&dv(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 jy(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?xf({},e,t):{}}var vm=ka.forwardRef(function(e,t){var r=e.icon,n=e.mask,i=e.symbol,a=e.className,u=e.title,l=e.titleId,s=e.maskId,c=X3(r),v=jy("classes",[].concat(c2(MP(e)),c2(a.split(" ")))),x=jy("transform",typeof e.transform=="string"?s2.transform(e.transform):e.transform),y=jy("mask",X3(n)),g=SP(c,Eo(Eo(Eo(Eo({},v),x),y),{},{symbol:i,title:u,titleId:l,maskId:s}));if(!g)return PP("Could not find icon",c),null;var k=g.abstract,N={ref:t};return Object.keys(e).forEach(function(b){vm.defaultProps.hasOwnProperty(b)||(N[b]=e[b])}),LP(k[0],N)});vm.displayName="FontAwesomeIcon";vm.propTypes={beat:lr.bool,border:lr.bool,beatFade:lr.bool,bounce:lr.bool,className:lr.string,fade:lr.bool,flash:lr.bool,mask:lr.oneOfType([lr.object,lr.array,lr.string]),maskId:lr.string,fixedWidth:lr.bool,inverse:lr.bool,flip:lr.oneOf([!0,!1,"horizontal","vertical","both"]),icon:lr.oneOfType([lr.object,lr.array,lr.string]),listItem:lr.bool,pull:lr.oneOf(["right","left"]),pulse:lr.bool,rotation:lr.oneOf([0,90,180,270]),shake:lr.bool,size:lr.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:lr.bool,spinPulse:lr.bool,spinReverse:lr.bool,symbol:lr.oneOfType([lr.bool,lr.string]),title:lr.string,titleId:lr.string,transform:lr.oneOfType([lr.string,lr.object]),swapOpacity:lr.bool};vm.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 LP=zk.bind(null,ka.createElement),Q3=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function DP(e,t){return!!(e===t||Q3(e)&&Q3(t))}function BP(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!DP(e[r],t[r]))return!1;return!0}function Wq(e,t){t===void 0&&(t=BP);var r,n=[],i,a=!1;function u(){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 u}var Z3=Object.prototype.toString,jk=function(t){var r=Z3.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Z3.call(t.callee)==="[object Function]"),n},Gy,K3;function $P(){if(K3)return Gy;K3=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=jk,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),u=i.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(y){var g=y.constructor;return g&&g.prototype===y},c={$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},v=function(){if(typeof window>"u")return!1;for(var y in window)try{if(!c["$"+y]&&t.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{s(window[y])}catch{return!0}}catch{return!0}return!1}(),x=function(y){if(typeof window>"u"||!v)return s(y);try{return s(y)}catch{return!1}};e=function(g){var k=g!==null&&typeof g=="object",N=r.call(g)==="[object Function]",b=n(g),w=k&&r.call(g)==="[object String]",A=[];if(!k&&!N&&!b)throw new TypeError("Object.keys called on a non-object");var M=u&&N;if(w&&g.length>0&&!t.call(g,0))for(var R=0;R<g.length;++R)A.push(String(R));if(b&&g.length>0)for(var L=0;L<g.length;++L)A.push(String(L));else for(var D in g)!(M&&D==="prototype")&&t.call(g,D)&&A.push(String(D));if(a)for(var ne=x(g),Y=0;Y<l.length;++Y)!(ne&&l[Y]==="constructor")&&t.call(g,l[Y])&&A.push(l[Y]);return A}}return Gy=e,Gy}var zP=Array.prototype.slice,UP=jk,J3=Object.keys,I0=J3?function(t){return J3(t)}:$P(),eE=Object.keys;I0.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 UP(n)?eE(zP.call(n)):eE(n)})}else Object.keys=I0;return Object.keys||I0};var sw=I0,mm=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 u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==i||u.enumerable!==!0)return!1}return!0},jP=mm,Vo=function(){return jP()&&!!Symbol.toStringTag},tE=typeof Symbol<"u"&&Symbol,GP=mm,cw=function(){return typeof tE!="function"||typeof Symbol!="function"||typeof tE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:GP()},HP="Function.prototype.bind called on incompatible ",Hy=Array.prototype.slice,WP=Object.prototype.toString,VP="[object Function]",qP=function(t){var r=this;if(typeof r!="function"||WP.call(r)!==VP)throw new TypeError(HP+r);for(var n=Hy.call(arguments,1),i,a=function(){if(this instanceof i){var v=r.apply(this,n.concat(Hy.call(arguments)));return Object(v)===v?v:this}else return r.apply(t,n.concat(Hy.call(arguments)))},u=Math.max(0,r.length-n.length),l=[],s=0;s<u;s++)l.push("$"+s);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var c=function(){};c.prototype=r.prototype,i.prototype=new c,c.prototype=null}return i},YP=qP,hw=Function.prototype.bind||YP,XP=hw,QP=XP.call(Function.call,Object.prototype.hasOwnProperty),pr,jf=SyntaxError,Gk=Function,Nf=TypeError,Wy=function(e){try{return Gk('"use strict"; return ('+e+").constructor;")()}catch{}},zu=Object.getOwnPropertyDescriptor;if(zu)try{zu({},"")}catch{zu=null}var Vy=function(){throw new Nf},ZP=zu?function(){try{return arguments.callee,Vy}catch{try{return zu(arguments,"callee").get}catch{return Vy}}}():Vy,ef=cw(),go=Object.getPrototypeOf||function(e){return e.__proto__},ff={},KP=typeof Uint8Array>"u"?pr:go(Uint8Array),Rf={"%AggregateError%":typeof AggregateError>"u"?pr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pr:ArrayBuffer,"%ArrayIteratorPrototype%":ef?go([][Symbol.iterator]()):pr,"%AsyncFromSyncIteratorPrototype%":pr,"%AsyncFunction%":ff,"%AsyncGenerator%":ff,"%AsyncGeneratorFunction%":ff,"%AsyncIteratorPrototype%":ff,"%Atomics%":typeof Atomics>"u"?pr:Atomics,"%BigInt%":typeof BigInt>"u"?pr:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?pr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pr:FinalizationRegistry,"%Function%":Gk,"%GeneratorFunction%":ff,"%Int8Array%":typeof Int8Array>"u"?pr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ef?go(go([][Symbol.iterator]())):pr,"%JSON%":typeof JSON=="object"?JSON:pr,"%Map%":typeof Map>"u"?pr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ef?pr:go(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pr:Promise,"%Proxy%":typeof Proxy>"u"?pr:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?pr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ef?pr:go(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ef?go(""[Symbol.iterator]()):pr,"%Symbol%":ef?Symbol:pr,"%SyntaxError%":jf,"%ThrowTypeError%":ZP,"%TypedArray%":KP,"%TypeError%":Nf,"%Uint8Array%":typeof Uint8Array>"u"?pr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pr:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?pr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pr:WeakSet},JP=function e(t){var r;if(t==="%AsyncFunction%")r=Wy("async function () {}");else if(t==="%GeneratorFunction%")r=Wy("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Wy("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=go(i.prototype))}return Rf[t]=r,r},rE={"%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"]},fd=hw,pv=QP,eL=fd.call(Function.call,Array.prototype.concat),tL=fd.call(Function.apply,Array.prototype.splice),nE=fd.call(Function.call,String.prototype.replace),vv=fd.call(Function.call,String.prototype.slice),rL=fd.call(Function.call,RegExp.prototype.exec),nL=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,iL=/\\(\\)?/g,aL=function(t){var r=vv(t,0,1),n=vv(t,-1);if(r==="%"&&n!=="%")throw new jf("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new jf("invalid intrinsic syntax, expected opening `%`");var i=[];return nE(t,nL,function(a,u,l,s){i[i.length]=l?nE(s,iL,"$1"):u||a}),i},oL=function(t,r){var n=t,i;if(pv(rE,n)&&(i=rE[n],n="%"+i[0]+"%"),pv(Rf,n)){var a=Rf[n];if(a===ff&&(a=JP(n)),typeof a>"u"&&!r)throw new Nf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new jf("intrinsic "+t+" does not exist!")},qo=function(t,r){if(typeof t!="string"||t.length===0)throw new Nf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Nf('"allowMissing" argument must be a boolean');if(rL(/^%?[^%]*%?$/,t)===null)throw new jf("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=aL(t),i=n.length>0?n[0]:"",a=oL("%"+i+"%",r),u=a.name,l=a.value,s=!1,c=a.alias;c&&(i=c[0],tL(n,eL([0,1],c)));for(var v=1,x=!0;v<n.length;v+=1){var y=n[v],g=vv(y,0,1),k=vv(y,-1);if((g==='"'||g==="'"||g==="`"||k==='"'||k==="'"||k==="`")&&g!==k)throw new jf("property names with quotes must have matching quotes");if((y==="constructor"||!x)&&(s=!0),i+="."+y,u="%"+i+"%",pv(Rf,u))l=Rf[u];else if(l!=null){if(!(y in l)){if(!r)throw new Nf("base intrinsic for "+t+" exists, but the property is not available.");return}if(zu&&v+1>=n.length){var N=zu(l,y);x=!!N,x&&"get"in N&&!("originalValue"in N.get)?l=N.get:l=l[y]}else x=pv(l,y),l=l[y];x&&!s&&(Rf[u]=l)}}return l},Gf={},uL={get exports(){return Gf},set exports(e){Gf=e}};(function(e){var t=hw,r=qo,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(i,n),u=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(x){var y=a(t,i,arguments);if(u&&l){var g=u(y,"length");g.configurable&&l(y,"length",{value:1+s(0,x.length-(arguments.length-1))})}return y};var c=function(){return a(t,n,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(uL);var Hk=qo,Wk=Gf,lL=Wk(Hk("String.prototype.indexOf")),ia=function(t,r){var n=Hk(t,!!r);return typeof n=="function"&&lL(t,".prototype.")>-1?Wk(n):n},fL=Vo(),sL=ia,d2=sL("Object.prototype.toString"),gm=function(t){return fL&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:d2(t)==="[object Arguments]"},Vk=function(t){return gm(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&d2(t)!=="[object Array]"&&d2(t.callee)==="[object Function]"},cL=function(){return gm(arguments)}();gm.isLegacyArguments=Vk;var qk=cL?gm:Vk,hL=qo,p2=hL("%Object.defineProperty%",!0),v2=function(){if(p2)try{return p2({},"a",{value:1}),!0}catch{return!1}return!1};v2.hasArrayLengthDefineBug=function(){if(!v2())return null;try{return p2([],"length",{value:1}).length!==1}catch{return!0}};var dL=v2,pL=sw,vL=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",mL=Object.prototype.toString,gL=Array.prototype.concat,Yk=Object.defineProperty,yL=function(e){return typeof e=="function"&&mL.call(e)==="[object Function]"},xL=dL(),Xk=Yk&&xL,_L=function(e,t,r,n){t in e&&(!yL(n)||!n())||(Xk?Yk(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},Qk=function(e,t){var r=arguments.length>2?arguments[2]:{},n=pL(t);vL&&(n=gL.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)_L(e,n[i],t[n[i]],r[n[i]])};Qk.supportsDescriptors=!!Xk;var fl=Qk,iE=function(e){return e!==e},Zk=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||iE(t)&&iE(r))},wL=Zk,Kk=function(){return typeof Object.is=="function"?Object.is:wL},bL=Kk,SL=fl,EL=function(){var t=bL();return SL(Object,{is:t},{is:function(){return Object.is!==t}}),t},AL=fl,TL=Gf,CL=Zk,Jk=Kk,kL=EL,e4=TL(Jk(),Object);AL(e4,{getPolyfill:Jk,implementation:CL,shim:kL});var OL=e4,m2=ia,t4=Vo(),r4,n4,g2,y2;if(t4){r4=m2("Object.prototype.hasOwnProperty"),n4=m2("RegExp.prototype.exec"),g2={};var qy=function(){throw g2};y2={toString:qy,valueOf:qy},typeof Symbol.toPrimitive=="symbol"&&(y2[Symbol.toPrimitive]=qy)}var ML=m2("Object.prototype.toString"),FL=Object.getOwnPropertyDescriptor,NL="[object RegExp]",RL=t4?function(t){if(!t||typeof t!="object")return!1;var r=FL(t,"lastIndex"),n=r&&r4(r,"value");if(!n)return!1;try{n4(t,y2)}catch(i){return i===g2}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:ML(t)===NL},mv={},IL={get exports(){return mv},set exports(e){mv=e}},jh=function(){return typeof function(){}.name=="string"},mh=Object.getOwnPropertyDescriptor;if(mh)try{mh([],"length")}catch{mh=null}jh.functionsHaveConfigurableNames=function(){if(!jh()||!mh)return!1;var t=mh(function(){},"name");return!!t&&!!t.configurable};var PL=Function.prototype.bind;jh.boundFunctionsHaveNames=function(){return jh()&&typeof PL=="function"&&function(){}.bind().name!==""};var LL=jh;(function(e){var t=LL.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"})})(IL);var DL=mv,BL=fl.supportsDescriptors,$L=Object.getOwnPropertyDescriptor,i4=function(){if(BL&&/a/mig.flags==="gim"){var t=$L(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 DL},zL=fl.supportsDescriptors,UL=i4,jL=Object.getOwnPropertyDescriptor,GL=Object.defineProperty,HL=TypeError,aE=Object.getPrototypeOf,WL=/a/,VL=function(){if(!zL||!aE)throw new HL("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=UL(),r=aE(WL),n=jL(r,"flags");return(!n||n.get!==t)&&GL(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},qL=fl,YL=Gf,XL=mv,a4=i4,QL=VL,o4=YL(a4());qL(o4,{getPolyfill:a4,implementation:XL,shim:QL});var ZL=o4,KL={}.toString,u4=Array.isArray||function(e){return KL.call(e)=="[object Array]"},JL=Date.prototype.getDay,eD=function(t){try{return JL.call(t),!0}catch{return!1}},tD=Object.prototype.toString,rD="[object Date]",nD=Vo(),iD=function(t){return typeof t!="object"||t===null?!1:nD?eD(t):tD.call(t)===rD},aD=String.prototype.valueOf,oD=function(t){try{return aD.call(t),!0}catch{return!1}},uD=Object.prototype.toString,lD="[object String]",fD=Vo(),l4=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:fD?oD(t):uD.call(t)===lD},sD=Number.prototype.toString,cD=function(t){try{return sD.call(t),!0}catch{return!1}},hD=Object.prototype.toString,dD="[object Number]",pD=Vo(),vD=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:pD?cD(t):hD.call(t)===dD},f4=ia,mD=f4("Boolean.prototype.toString"),gD=f4("Object.prototype.toString"),yD=function(t){try{return mD(t),!0}catch{return!1}},xD="[object Boolean]",_D=Vo(),wD=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:_D&&Symbol.toStringTag in t?yD(t):gD(t)===xD},x2={},oE={get exports(){return x2},set exports(e){x2=e}},bD=Object.prototype.toString,SD=cw();if(SD){var ED=Symbol.prototype.toString,AD=/^Symbol\(.*\)$/,TD=function(t){return typeof t.valueOf()!="symbol"?!1:AD.test(ED.call(t))};oE.exports=function(t){if(typeof t=="symbol")return!0;if(bD.call(t)!=="[object Symbol]")return!1;try{return TD(t)}catch{return!1}}}else oE.exports=function(t){return!1};var _2={},uE={get exports(){return _2},set exports(e){_2=e}},lE=typeof BigInt<"u"&&BigInt,CD=function(){return typeof lE=="function"&&typeof BigInt=="function"&&typeof lE(42)=="bigint"&&typeof BigInt(42)=="bigint"},kD=CD();if(kD){var OD=BigInt.prototype.valueOf,MD=function(t){try{return OD.call(t),!0}catch{}return!1};uE.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:MD(t)}}else uE.exports=function(t){return!1};var FD=l4,ND=vD,RD=wD,ID=x2,PD=_2,LD=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(FD(t))return"String";if(ND(t))return"Number";if(RD(t))return"Boolean";if(ID(t))return"Symbol";if(PD(t))return"BigInt"},dw=typeof Map=="function"&&Map.prototype?Map:null,DD=typeof Set=="function"&&Set.prototype?Set:null,gv;dw||(gv=function(t){return!1});var s4=dw?Map.prototype.has:null,fE=DD?Set.prototype.has:null;!gv&&!s4&&(gv=function(t){return!1});var c4=gv||function(t){if(!t||typeof t!="object")return!1;try{if(s4.call(t),fE)try{fE.call(t)}catch{return!0}return t instanceof dw}catch{}return!1},BD=typeof Map=="function"&&Map.prototype?Map:null,pw=typeof Set=="function"&&Set.prototype?Set:null,yv;pw||(yv=function(t){return!1});var sE=BD?Map.prototype.has:null,h4=pw?Set.prototype.has:null;!yv&&!h4&&(yv=function(t){return!1});var d4=yv||function(t){if(!t||typeof t!="object")return!1;try{if(h4.call(t),sE)try{sE.call(t)}catch{return!0}return t instanceof pw}catch{}return!1},xv=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,cE=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,_v;xv||(_v=function(t){return!1});var w2=xv?xv.prototype.has:null,Yy=cE?cE.prototype.has:null;!_v&&!w2&&(_v=function(t){return!1});var $D=_v||function(t){if(!t||typeof t!="object")return!1;try{if(w2.call(t,w2),Yy)try{Yy.call(t,Yy)}catch{return!0}return t instanceof xv}catch{}return!1},b2={},hE={get exports(){return b2},set exports(e){b2=e}},zD=qo,p4=ia,UD=zD("%WeakSet%",!0),Xy=p4("WeakSet.prototype.has",!0);if(Xy){var Qy=p4("WeakMap.prototype.has",!0);hE.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Xy(t,Xy),Qy)try{Qy(t,Qy)}catch{return!0}return t instanceof UD}catch{}return!1}}else hE.exports=function(t){return!1};var jD=c4,GD=d4,HD=$D,WD=b2,VD=function(t){if(t&&typeof t=="object"){if(jD(t))return"Map";if(GD(t))return"Set";if(HD(t))return"WeakMap";if(WD(t))return"WeakSet"}return!1},S2={},Zy={get exports(){return S2},set exports(e){S2=e}},dE=qk;if(cw()||mm()){var Ky=Symbol.iterator;Zy.exports=function(t){if(t!=null&&typeof t[Ky]<"u")return t[Ky]();if(dE(t))return Array.prototype[Ky].call(t)}}else{var qD=u4,YD=l4,pE=qo,XD=pE("%Map%",!0),QD=pE("%Set%",!0),Mi=ia,vE=Mi("Array.prototype.push"),mE=Mi("String.prototype.charCodeAt"),ZD=Mi("String.prototype.slice"),KD=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=mE(t,r);if(i<55296||i>56319)return r+1;var a=mE(t,r+1);return a<56320||a>57343?r+1:r+2},Jy=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}}}},gE=function(t,r){if(qD(t)||dE(t))return Jy(t);if(YD(t)){var n=0;return{next:function(){var a=KD(t,n),u=ZD(t,n,a);return n=a,{done:a>t.length,value:u}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!XD&&!QD)Zy.exports=function(t){if(t!=null)return gE(t,!0)};else{var JD=c4,eB=d4,yE=Mi("Map.prototype.forEach",!0),xE=Mi("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var _E=Mi("Map.prototype.iterator",!0),wE=Mi("Set.prototype.iterator",!0),bE=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 SE=Mi("Map.prototype.@@iterator",!0)||Mi("Map.prototype._es6-shim iterator_",!0),EE=Mi("Set.prototype.@@iterator",!0)||Mi("Set.prototype._es6-shim iterator_",!0),tB=function(t){if(JD(t)){if(_E)return bE(_E(t));if(SE)return SE(t);if(yE){var r=[];return yE(t,function(i,a){vE(r,[a,i])}),Jy(r)}}if(eB(t)){if(wE)return bE(wE(t));if(EE)return EE(t);if(xE){var n=[];return xE(t,function(i){vE(n,i)}),Jy(n)}}};Zy.exports=function(t){return tB(t)||gE(t)}}}const rB={},nB=Object.freeze(Object.defineProperty({__proto__:null,default:rB},Symbol.toStringTag,{value:"Module"})),iB=el(nB);var vw=typeof Map=="function"&&Map.prototype,e1=Object.getOwnPropertyDescriptor&&vw?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,wv=vw&&e1&&typeof e1.get=="function"?e1.get:null,aB=vw&&Map.prototype.forEach,mw=typeof Set=="function"&&Set.prototype,t1=Object.getOwnPropertyDescriptor&&mw?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,bv=mw&&t1&&typeof t1.get=="function"?t1.get:null,oB=mw&&Set.prototype.forEach,uB=typeof WeakMap=="function"&&WeakMap.prototype,gh=uB?WeakMap.prototype.has:null,lB=typeof WeakSet=="function"&&WeakSet.prototype,yh=lB?WeakSet.prototype.has:null,fB=typeof WeakRef=="function"&&WeakRef.prototype,AE=fB?WeakRef.prototype.deref:null,sB=Boolean.prototype.valueOf,cB=Object.prototype.toString,hB=Function.prototype.toString,dB=String.prototype.match,gw=String.prototype.slice,Ao=String.prototype.replace,pB=String.prototype.toUpperCase,TE=String.prototype.toLowerCase,v4=RegExp.prototype.test,CE=Array.prototype.concat,Wi=Array.prototype.join,vB=Array.prototype.slice,kE=Math.floor,E2=typeof BigInt=="function"?BigInt.prototype.valueOf:null,r1=Object.getOwnPropertySymbols,A2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",On=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Hf||"symbol")?Symbol.toStringTag:null,m4=Object.prototype.propertyIsEnumerable,OE=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ME(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||v4.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-kE(-e):kE(e);if(n!==e){var i=String(n),a=gw.call(t,i.length+1);return Ao.call(i,r,"$&_")+"."+Ao.call(Ao.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ao.call(t,r,"$&_")}var T2=iB,FE=T2.custom,NE=y4(FE)?FE:null,mB=function e(t,r,n,i){var a=r||{};if(yo(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(yo(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 u=yo(a,"customInspect")?a.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(yo(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(yo(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 _4(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?ME(t,s):s}if(typeof t=="bigint"){var c=String(t)+"n";return l?ME(t,c):c}var v=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=v&&v>0&&typeof t=="object")return C2(t)?"[Array]":"[Object]";var x=IB(a,n);if(typeof i>"u")i=[];else if(x4(i,t)>=0)return"[Circular]";function y(je,Ke,mt){if(Ke&&(i=vB.call(i),i.push(Ke)),mt){var lt={depth:a.depth};return yo(a,"quoteStyle")&&(lt.quoteStyle=a.quoteStyle),e(je,lt,n+1,i)}return e(je,a,n+1,i)}if(typeof t=="function"&&!RE(t)){var g=AB(t),k=Jp(t,y);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(k.length>0?" { "+Wi.call(k,", ")+" }":"")}if(y4(t)){var N=Hf?Ao.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A2.call(t);return typeof t=="object"&&!Hf?Nc(N):N}if(FB(t)){for(var b="<"+TE.call(String(t.nodeName)),w=t.attributes||[],A=0;A<w.length;A++)b+=" "+w[A].name+"="+g4(gB(w[A].value),"double",a);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+TE.call(String(t.nodeName))+">",b}if(C2(t)){if(t.length===0)return"[]";var M=Jp(t,y);return x&&!RB(M)?"["+k2(M,x)+"]":"[ "+Wi.call(M,", ")+" ]"}if(xB(t)){var R=Jp(t,y);return!("cause"in Error.prototype)&&"cause"in t&&!m4.call(t,"cause")?"{ ["+String(t)+"] "+Wi.call(CE.call("[cause]: "+y(t.cause),R),", ")+" }":R.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Wi.call(R,", ")+" }"}if(typeof t=="object"&&u){if(NE&&typeof t[NE]=="function"&&T2)return T2(t,{depth:v-n});if(u!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(TB(t)){var L=[];return aB.call(t,function(je,Ke){L.push(y(Ke,t,!0)+" => "+y(je,t))}),IE("Map",wv.call(t),L,x)}if(OB(t)){var D=[];return oB.call(t,function(je){D.push(y(je,t))}),IE("Set",bv.call(t),D,x)}if(CB(t))return n1("WeakMap");if(MB(t))return n1("WeakSet");if(kB(t))return n1("WeakRef");if(wB(t))return Nc(y(Number(t)));if(SB(t))return Nc(y(E2.call(t)));if(bB(t))return Nc(sB.call(t));if(_B(t))return Nc(y(String(t)));if(!yB(t)&&!RE(t)){var ne=Jp(t,y),Y=OE?OE(t)===Object.prototype:t instanceof Object||t.constructor===Object,ae=t instanceof Object?"":"null prototype",Ce=!Y&&On&&Object(t)===t&&On in t?gw.call(Yo(t),8,-1):ae?"Object":"",Fe=Y||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Ie=Fe+(Ce||ae?"["+Wi.call(CE.call([],Ce||[],ae||[]),": ")+"] ":"");return ne.length===0?Ie+"{}":x?Ie+"{"+k2(ne,x)+"}":Ie+"{ "+Wi.call(ne,", ")+" }"}return String(t)};function g4(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function gB(e){return Ao.call(String(e),/"/g,"&quot;")}function C2(e){return Yo(e)==="[object Array]"&&(!On||!(typeof e=="object"&&On in e))}function yB(e){return Yo(e)==="[object Date]"&&(!On||!(typeof e=="object"&&On in e))}function RE(e){return Yo(e)==="[object RegExp]"&&(!On||!(typeof e=="object"&&On in e))}function xB(e){return Yo(e)==="[object Error]"&&(!On||!(typeof e=="object"&&On in e))}function _B(e){return Yo(e)==="[object String]"&&(!On||!(typeof e=="object"&&On in e))}function wB(e){return Yo(e)==="[object Number]"&&(!On||!(typeof e=="object"&&On in e))}function bB(e){return Yo(e)==="[object Boolean]"&&(!On||!(typeof e=="object"&&On in e))}function y4(e){if(Hf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!A2)return!1;try{return A2.call(e),!0}catch{}return!1}function SB(e){if(!e||typeof e!="object"||!E2)return!1;try{return E2.call(e),!0}catch{}return!1}var EB=Object.prototype.hasOwnProperty||function(e){return e in this};function yo(e,t){return EB.call(e,t)}function Yo(e){return cB.call(e)}function AB(e){if(e.name)return e.name;var t=dB.call(hB.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function x4(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 TB(e){if(!wv||!e||typeof e!="object")return!1;try{wv.call(e);try{bv.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function CB(e){if(!gh||!e||typeof e!="object")return!1;try{gh.call(e,gh);try{yh.call(e,yh)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function kB(e){if(!AE||!e||typeof e!="object")return!1;try{return AE.call(e),!0}catch{}return!1}function OB(e){if(!bv||!e||typeof e!="object")return!1;try{bv.call(e);try{wv.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function MB(e){if(!yh||!e||typeof e!="object")return!1;try{yh.call(e,yh);try{gh.call(e,gh)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function FB(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function _4(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return _4(gw.call(e,0,t.maxStringLength),t)+n}var i=Ao.call(Ao.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,NB);return g4(i,"single",t)}function NB(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":"")+pB.call(t.toString(16))}function Nc(e){return"Object("+e+")"}function n1(e){return e+" { ? }"}function IE(e,t,r,n){var i=n?k2(r,n):Wi.call(r,", ");return e+" ("+t+") {"+i+"}"}function RB(e){for(var t=0;t<e.length;t++)if(x4(e[t],`
804
- `)>=0)return!1;return!0}function IB(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Wi.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Wi.call(Array(t+1),r)}}function k2(e,t){if(e.length===0)return"";var r=`
805
- `+t.prev+t.base;return r+Wi.call(e,","+r)+`
806
- `+t.prev}function Jp(e,t){var r=C2(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=yo(e,i)?t(e[i],e):""}var a=typeof r1=="function"?r1(e):[],u;if(Hf){u={};for(var l=0;l<a.length;l++)u["$"+a[l]]=a[l]}for(var s in e)yo(e,s)&&(r&&String(Number(s))===s&&s<e.length||Hf&&u["$"+s]instanceof Symbol||(v4.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if(typeof r1=="function")for(var c=0;c<a.length;c++)m4.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}var yw=qo,os=ia,PB=mB,LB=yw("%TypeError%"),e0=yw("%WeakMap%",!0),t0=yw("%Map%",!0),DB=os("WeakMap.prototype.get",!0),BB=os("WeakMap.prototype.set",!0),$B=os("WeakMap.prototype.has",!0),zB=os("Map.prototype.get",!0),UB=os("Map.prototype.set",!0),jB=os("Map.prototype.has",!0),xw=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},GB=function(e,t){var r=xw(e,t);return r&&r.value},HB=function(e,t,r){var n=xw(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},WB=function(e,t){return!!xw(e,t)},VB=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new LB("Side channel does not contain "+PB(a))},get:function(a){if(e0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return DB(t,a)}else if(t0){if(r)return zB(r,a)}else if(n)return GB(n,a)},has:function(a){if(e0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return $B(t,a)}else if(t0){if(r)return jB(r,a)}else if(n)return WB(n,a);return!1},set:function(a,u){e0&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new e0),BB(t,a,u)):t0?(r||(r=new t0),UB(r,a,u)):(n||(n={key:{},next:null}),HB(n,a,u))}};return i},qB=Object.prototype.hasOwnProperty,YB=Object.prototype.toString,w4=function(t,r,n){if(YB.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 u in t)qB.call(t,u)&&r.call(n,t[u],u,t)},i1=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],XB=typeof globalThis>"u"?Lr:globalThis,b4=function(){for(var t=[],r=0;r<i1.length;r++)typeof XB[i1[r]]=="function"&&(t[t.length]=i1[r]);return t},Sv={},QB={get exports(){return Sv},set exports(e){Sv=e}},a1,PE;function ZB(){if(PE)return a1;PE=1;var e=qo,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return a1=t,a1}var LE;function S4(){return LE||(LE=1,function(e){e.exports=ZB()}(QB)),Sv}var o1,DE;function KB(){if(DE)return o1;DE=1;var e=w4,t=b4,r=ia,n=r("Object.prototype.toString"),i=Vo(),a=typeof globalThis>"u"?Lr:globalThis,u=t(),l=r("Array.prototype.indexOf",!0)||function(k,N){for(var b=0;b<k.length;b+=1)if(k[b]===N)return b;return-1},s=r("String.prototype.slice"),c={},v=S4(),x=Object.getPrototypeOf;i&&v&&x&&e(u,function(g){var k=new a[g];if(Symbol.toStringTag in k){var N=x(k),b=v(N,Symbol.toStringTag);if(!b){var w=x(N);b=v(w,Symbol.toStringTag)}c[g]=b.get}});var y=function(k){var N=!1;return e(c,function(b,w){if(!N)try{N=b.call(k)===w}catch{}}),N};return o1=function(k){if(!k||typeof k!="object")return!1;if(!i||!(Symbol.toStringTag in k)){var N=s(n(k),8,-1);return l(u,N)>-1}return v?y(k):!1},o1}var E4=w4,JB=b4,A4=ia,e7=A4("Object.prototype.toString"),T4=Vo(),BE=typeof globalThis>"u"?Lr:globalThis,t7=JB(),r7=A4("String.prototype.slice"),C4={},u1=S4(),l1=Object.getPrototypeOf;T4&&u1&&l1&&E4(t7,function(e){if(typeof BE[e]=="function"){var t=new BE[e];if(Symbol.toStringTag in t){var r=l1(t),n=u1(r,Symbol.toStringTag);if(!n){var i=l1(r);n=u1(i,Symbol.toStringTag)}C4[e]=n.get}}});var n7=function(t){var r=!1;return E4(C4,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},i7=KB(),a7=function(t){return i7(t)?!T4||!(Symbol.toStringTag in t)?r7(e7(t),8,-1):n7(t):!1},o7=sw,k4=mm(),O4=ia,$E=Object,u7=O4("Array.prototype.push"),zE=O4("Object.prototype.propertyIsEnumerable"),l7=k4?Object.getOwnPropertySymbols:null,M4=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=$E(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=$E(arguments[i]),u=o7(a),l=k4&&(Object.getOwnPropertySymbols||l7);if(l)for(var s=l(a),c=0;c<s.length;++c){var v=s[c];zE(a,v)&&u7(u,v)}for(var x=0;x<u.length;++x){var y=u[x];if(zE(a,y)){var g=a[y];n[y]=g}}}return n},f1=M4,f7=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 u in i)a+=u;return e!==a},s7=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},F4=function(){return!Object.assign||f7()||s7()?f1:Object.assign},c7=fl,h7=F4,d7=function(){var t=h7();return c7(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},p7=fl,v7=Gf,m7=M4,N4=F4,g7=d7,y7=v7.apply(N4()),R4=function(t,r){return y7(Object,arguments)};p7(R4,{getPolyfill:N4,implementation:m7,shim:g7});var x7=R4,UE=sw,jE=qk,GE=OL,HE=RL,WE=ZL,VE=u4,qE=iD,YE=LD,_7=qo,Ga=ia,XE=VD,Wf=S2,w7=VB,QE=a7,I4=x7,ZE=Ga("Date.prototype.getTime"),s1=Object.getPrototypeOf,KE=Ga("Object.prototype.toString"),Ev=_7("%Set%",!0),O2=Ga("Map.prototype.has",!0),Av=Ga("Map.prototype.get",!0),JE=Ga("Map.prototype.size",!0),Tv=Ga("Set.prototype.add",!0),P4=Ga("Set.prototype.delete",!0),Cv=Ga("Set.prototype.has",!0),P0=Ga("Set.prototype.size",!0);function eA(e,t,r,n){for(var i=Wf(e),a;(a=i.next())&&!a.done;)if(Da(t,a.value,r,n))return P4(e,a.value),!0;return!1}function L4(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 b7(e,t,r,n,i,a){var u=L4(r);if(u!=null)return u;var l=Av(t,u),s=I4({},i,{strict:!1});return typeof l>"u"&&!O2(t,u)||!Da(n,l,s,a)?!1:!O2(e,u)&&Da(n,l,s,a)}function S7(e,t,r){var n=L4(r);return n??(Cv(t,n)&&!Cv(e,n))}function tA(e,t,r,n,i,a){for(var u=Wf(e),l,s;(l=u.next())&&!l.done;)if(s=l.value,Da(r,s,i,a)&&Da(n,Av(t,s),i,a))return P4(e,s),!0;return!1}function Da(e,t,r,n){var i=r||{};if(i.strict?GE(e,t):e===t)return!0;var a=YE(e),u=YE(t);if(a!==u)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?GE(e,t):e==t;var l=n.has(e),s=n.has(t),c;if(l&&s){if(n.get(e)===n.get(t))return!0}else c={};return l||n.set(e,c),s||n.set(t,c),T7(e,t,i,n)}function rA(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 E7(e,t,r,n){if(P0(e)!==P0(t))return!1;for(var i=Wf(e),a=Wf(t),u,l,s;(u=i.next())&&!u.done;)if(u.value&&typeof u.value=="object")s||(s=new Ev),Tv(s,u.value);else if(!Cv(t,u.value)){if(r.strict||!S7(e,t,u.value))return!1;s||(s=new Ev),Tv(s,u.value)}if(s){for(;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!eA(s,l.value,r.strict,n))return!1}else if(!r.strict&&!Cv(e,l.value)&&!eA(s,l.value,r.strict,n))return!1;return P0(s)===0}return!0}function A7(e,t,r,n){if(JE(e)!==JE(t))return!1;for(var i=Wf(e),a=Wf(t),u,l,s,c,v,x;(u=i.next())&&!u.done;)if(c=u.value[0],v=u.value[1],c&&typeof c=="object")s||(s=new Ev),Tv(s,c);else if(x=Av(t,c),typeof x>"u"&&!O2(t,c)||!Da(v,x,r,n)){if(r.strict||!b7(e,t,c,v,r,n))return!1;s||(s=new Ev),Tv(s,c)}if(s){for(;(l=a.next())&&!l.done;)if(c=l.value[0],x=l.value[1],c&&typeof c=="object"){if(!tA(s,e,c,x,r,n))return!1}else if(!r.strict&&(!e.has(c)||!Da(Av(e,c),x,r,n))&&!tA(s,e,c,x,I4({},r,{strict:!1}),n))return!1;return P0(s)===0}return!0}function T7(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||KE(e)!==KE(t)||jE(e)!==jE(t))return!1;var u=VE(e),l=VE(t);if(u!==l)return!1;var s=e instanceof Error,c=t instanceof Error;if(s!==c||(s||c)&&(e.name!==t.name||e.message!==t.message))return!1;var v=HE(e),x=HE(t);if(v!==x||(v||x)&&(e.source!==t.source||WE(e)!==WE(t)))return!1;var y=qE(e),g=qE(t);if(y!==g||(y||g)&&ZE(e)!==ZE(t)||r.strict&&s1&&s1(e)!==s1(t)||QE(e)!==QE(t))return!1;var k=rA(e),N=rA(t);if(k!==N)return!1;if(k||N){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 b=UE(e),w=UE(t);if(b.length!==w.length)return!1;for(b.sort(),w.sort(),i=b.length-1;i>=0;i--)if(b[i]!=w[i])return!1;for(i=b.length-1;i>=0;i--)if(a=b[i],!Da(e[a],t[a],r,n))return!1;var A=XE(e),M=XE(t);return A!==M?!1:A==="Set"||M==="Set"?E7(e,t,r,n):A==="Map"?A7(e,t,r,n):!0}var Vq=function(t,r,n){return Da(t,r,n,w7())},nA={},C7={get exports(){return nA},set exports(e){nA=e}};/*! Native Promise Only
807
- v0.8.1 (c) Kyle Simpson
808
- MIT License: http://getify.mit-license.org
809
- */(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof Lr<"u"?Lr:Lr,function(){var r,n,i,a=Object.prototype.toString,u=typeof setImmediate<"u"?function(M){return setImmediate(M)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(M,R,L,D){return Object.defineProperty(M,R,{value:L,writable:!0,configurable:D!==!1})}}catch{r=function(R,L,D){return R[L]=D,R}}i=function(){var M,R,L;function D(ne,Y){this.fn=ne,this.self=Y,this.next=void 0}return{add:function(Y,ae){L=new D(Y,ae),R?R.next=L:M=L,R=L,L=void 0},drain:function(){var Y=M;for(M=R=n=void 0;Y;)Y.fn.call(Y.self),Y=Y.next}}}();function l(A,M){i.add(A,M),n||(n=u(i.drain))}function s(A){var M,R=typeof A;return A!=null&&(R=="object"||R=="function")&&(M=A.then),typeof M=="function"?M:!1}function c(){for(var A=0;A<this.chain.length;A++)v(this,this.state===1?this.chain[A].success:this.chain[A].failure,this.chain[A]);this.chain.length=0}function v(A,M,R){var L,D;try{M===!1?R.reject(A.msg):(M===!0?L=A.msg:L=M.call(void 0,A.msg),L===R.promise?R.reject(TypeError("Promise-chain cycle")):(D=s(L))?D.call(L,R.resolve,R.reject):R.resolve(L))}catch(ne){R.reject(ne)}}function x(A){var M,R=this;if(!R.triggered){R.triggered=!0,R.def&&(R=R.def);try{(M=s(A))?l(function(){var L=new k(R);try{M.call(A,function(){x.apply(L,arguments)},function(){y.apply(L,arguments)})}catch(D){y.call(L,D)}}):(R.msg=A,R.state=1,R.chain.length>0&&l(c,R))}catch(L){y.call(new k(R),L)}}}function y(A){var M=this;M.triggered||(M.triggered=!0,M.def&&(M=M.def),M.msg=A,M.state=2,M.chain.length>0&&l(c,M))}function g(A,M,R,L){for(var D=0;D<M.length;D++)(function(Y){A.resolve(M[Y]).then(function(Ce){R(Y,Ce)},L)})(D)}function k(A){this.def=A,this.triggered=!1}function N(A){this.promise=A,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function b(A){if(typeof A!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var M=new N(this);this.then=function(L,D){var ne={success:typeof L=="function"?L:!0,failure:typeof D=="function"?D:!1};return ne.promise=new this.constructor(function(ae,Ce){if(typeof ae!="function"||typeof Ce!="function")throw TypeError("Not a function");ne.resolve=ae,ne.reject=Ce}),M.chain.push(ne),M.state!==0&&l(c,M),ne.promise},this.catch=function(L){return this.then(void 0,L)};try{A.call(void 0,function(L){x.call(M,L)},function(L){y.call(M,L)})}catch(R){y.call(M,R)}}var w=r({},"constructor",b,!1);return b.prototype=w,r(w,"__NPO__",0,!1),r(b,"resolve",function(M){var R=this;return M&&typeof M=="object"&&M.__NPO__===1?M:new R(function(D,ne){if(typeof D!="function"||typeof ne!="function")throw TypeError("Not a function");D(M)})}),r(b,"reject",function(M){return new this(function(L,D){if(typeof L!="function"||typeof D!="function")throw TypeError("Not a function");D(M)})}),r(b,"all",function(M){var R=this;return a.call(M)!="[object Array]"?R.reject(TypeError("Not an array")):M.length===0?R.resolve([]):new R(function(D,ne){if(typeof D!="function"||typeof ne!="function")throw TypeError("Not a function");var Y=M.length,ae=Array(Y),Ce=0;g(R,M,function(Ie,je){ae[Ie]=je,++Ce===Y&&D(ae)},ne)})}),r(b,"race",function(M){var R=this;return a.call(M)!="[object Array]"?R.reject(TypeError("Not an array")):new R(function(D,ne){if(typeof D!="function"||typeof ne!="function")throw TypeError("Not a function");g(R,M,function(ae,Ce){D(Ce)},ne)})}),b})})(C7);var iA={},k7={get exports(){return iA},set exports(e){iA=e}};(function(e){(function(){var t={version:"3.8.0"},r=[].slice,n=function(o){return r.call(o)},i=self.document;function a(o){return o&&(o.ownerDocument||o.document||o).documentElement}function u(o){return o&&(o.ownerDocument&&o.ownerDocument.defaultView||o.document&&o||o.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch{n=function(f){for(var h=f.length,d=new Array(h);h--;)d[h]=f[h];return d}}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,c=l.setAttributeNS,v=this.CSSStyleDeclaration.prototype,x=v.setProperty;l.setAttribute=function(f,h){s.call(this,f,h+"")},l.setAttributeNS=function(f,h,d){c.call(this,f,h,d+"")},v.setProperty=function(f,h,d){x.call(this,f,h+"",d)}}t.ascending=y;function y(o,f){return o<f?-1:o>f?1:o>=f?0:NaN}t.descending=function(o,f){return f<o?-1:f>o?1:f>=o?0:NaN},t.min=function(o,f){var h=-1,d=o.length,p,m;if(arguments.length===1){for(;++h<d;)if((m=o[h])!=null&&m>=m){p=m;break}for(;++h<d;)(m=o[h])!=null&&p>m&&(p=m)}else{for(;++h<d;)if((m=f.call(o,o[h],h))!=null&&m>=m){p=m;break}for(;++h<d;)(m=f.call(o,o[h],h))!=null&&p>m&&(p=m)}return p},t.max=function(o,f){var h=-1,d=o.length,p,m;if(arguments.length===1){for(;++h<d;)if((m=o[h])!=null&&m>=m){p=m;break}for(;++h<d;)(m=o[h])!=null&&m>p&&(p=m)}else{for(;++h<d;)if((m=f.call(o,o[h],h))!=null&&m>=m){p=m;break}for(;++h<d;)(m=f.call(o,o[h],h))!=null&&m>p&&(p=m)}return p},t.extent=function(o,f){var h=-1,d=o.length,p,m,E;if(arguments.length===1){for(;++h<d;)if((m=o[h])!=null&&m>=m){p=E=m;break}for(;++h<d;)(m=o[h])!=null&&(p>m&&(p=m),E<m&&(E=m))}else{for(;++h<d;)if((m=f.call(o,o[h],h))!=null&&m>=m){p=E=m;break}for(;++h<d;)(m=f.call(o,o[h],h))!=null&&(p>m&&(p=m),E<m&&(E=m))}return[p,E]};function g(o){return o===null?NaN:+o}function k(o){return!isNaN(o)}t.sum=function(o,f){var h=0,d=o.length,p,m=-1;if(arguments.length===1)for(;++m<d;)k(p=+o[m])&&(h+=p);else for(;++m<d;)k(p=+f.call(o,o[m],m))&&(h+=p);return h},t.mean=function(o,f){var h=0,d=o.length,p,m=-1,E=d;if(arguments.length===1)for(;++m<d;)k(p=g(o[m]))?h+=p:--E;else for(;++m<d;)k(p=g(f.call(o,o[m],m)))?h+=p:--E;if(E)return h/E},t.quantile=function(o,f){var h=(o.length-1)*f+1,d=Math.floor(h),p=+o[d-1],m=h-d;return m?p+m*(o[d]-p):p},t.median=function(o,f){var h=[],d=o.length,p,m=-1;if(arguments.length===1)for(;++m<d;)k(p=g(o[m]))&&h.push(p);else for(;++m<d;)k(p=g(f.call(o,o[m],m)))&&h.push(p);if(h.length)return t.quantile(h.sort(y),.5)},t.variance=function(o,f){var h=o.length,d=0,p,m,E=0,_=-1,O=0;if(arguments.length===1)for(;++_<h;)k(p=g(o[_]))&&(m=p-d,d+=m/++O,E+=m*(p-d));else for(;++_<h;)k(p=g(f.call(o,o[_],_)))&&(m=p-d,d+=m/++O,E+=m*(p-d));if(O>1)return E/(O-1)},t.deviation=function(){var o=t.variance.apply(this,arguments);return o&&Math.sqrt(o)};function N(o){return{left:function(f,h,d,p){for(arguments.length<3&&(d=0),arguments.length<4&&(p=f.length);d<p;){var m=d+p>>>1;o(f[m],h)<0?d=m+1:p=m}return d},right:function(f,h,d,p){for(arguments.length<3&&(d=0),arguments.length<4&&(p=f.length);d<p;){var m=d+p>>>1;o(f[m],h)>0?p=m:d=m+1}return d}}}var b=N(y);t.bisectLeft=b.left,t.bisect=t.bisectRight=b.right,t.bisector=function(o){return N(o.length===1?function(f,h){return y(o(f),h)}:o)},t.shuffle=function(o,f,h){(d=arguments.length)<3&&(h=o.length,d<2&&(f=0));for(var d=h-f,p,m;d;)m=Math.random()*d--|0,p=o[d+f],o[d+f]=o[m+f],o[m+f]=p;return o},t.permute=function(o,f){for(var h=f.length,d=new Array(h);h--;)d[h]=o[f[h]];return d},t.pairs=function(o){for(var f=0,h=o.length-1,d=o[0],p=new Array(h<0?0:h);f<h;)p[f]=[d,d=o[++f]];return p},t.transpose=function(o){if(!(m=o.length))return[];for(var f=-1,h=t.min(o,w),d=new Array(h);++f<h;)for(var p=-1,m,E=d[f]=new Array(m);++p<m;)E[p]=o[p][f];return d};function w(o){return o.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(o){var f=[];for(var h in o)f.push(h);return f},t.values=function(o){var f=[];for(var h in o)f.push(o[h]);return f},t.entries=function(o){var f=[];for(var h in o)f.push({key:h,value:o[h]});return f},t.merge=function(o){for(var f=o.length,h,d=-1,p=0,m,E;++d<f;)p+=o[d].length;for(m=new Array(p);--f>=0;)for(E=o[f],h=E.length;--h>=0;)m[--p]=E[h];return m};var A=Math.abs;t.range=function(o,f,h){if(arguments.length<3&&(h=1,arguments.length<2&&(f=o,o=0)),(f-o)/h===1/0)throw new Error("infinite range");var d=[],p=M(A(h)),m=-1,E;if(o*=p,f*=p,h*=p,h<0)for(;(E=o+h*++m)>f;)d.push(E/p);else for(;(E=o+h*++m)<f;)d.push(E/p);return d};function M(o){for(var f=1;o*f%1;)f*=10;return f}function R(o,f){for(var h in f)Object.defineProperty(o.prototype,h,{value:f[h],enumerable:!1})}t.map=function(o,f){var h=new L;if(o instanceof L)o.forEach(function(_,O){h.set(_,O)});else if(Array.isArray(o)){var d=-1,p=o.length,m;if(arguments.length===1)for(;++d<p;)h.set(d,o[d]);else for(;++d<p;)h.set(f.call(o,m=o[d],d),m)}else for(var E in o)h.set(E,o[E]);return h};function L(){this._=Object.create(null)}var D="__proto__",ne="\0";R(L,{has:Ce,get:function(o){return this._[Y(o)]},set:function(o,f){return this._[Y(o)]=f},remove:Fe,keys:Ie,values:function(){var o=[];for(var f in this._)o.push(this._[f]);return o},entries:function(){var o=[];for(var f in this._)o.push({key:ae(f),value:this._[f]});return o},size:je,empty:Ke,forEach:function(o){for(var f in this._)o.call(this,ae(f),this._[f])}});function Y(o){return(o+="")===D||o[0]===ne?ne+o:o}function ae(o){return(o+="")[0]===ne?o.slice(1):o}function Ce(o){return Y(o)in this._}function Fe(o){return(o=Y(o))in this._&&delete this._[o]}function Ie(){var o=[];for(var f in this._)o.push(ae(f));return o}function je(){var o=0;for(var f in this._)++o;return o}function Ke(){for(var o in this._)return!1;return!0}t.nest=function(){var o={},f=[],h=[],d,p;function m(_,O,I){if(I>=f.length)return p?p.call(o,O):d?O.sort(d):O;for(var P=-1,$=O.length,z=f[I++],re,oe,j,q=new L,K;++P<$;)(K=q.get(re=z(oe=O[P])))?K.push(oe):q.set(re,[oe]);return _?(oe=_(),j=function(ue,le){oe.set(ue,m(_,le,I))}):(oe={},j=function(ue,le){oe[ue]=m(_,le,I)}),q.forEach(j),oe}function E(_,O){if(O>=f.length)return _;var I=[],P=h[O++];return _.forEach(function($,z){I.push({key:$,values:E(z,O)})}),P?I.sort(function($,z){return P($.key,z.key)}):I}return o.map=function(_,O){return m(O,_,0)},o.entries=function(_){return E(m(t.map,_,0),0)},o.key=function(_){return f.push(_),o},o.sortKeys=function(_){return h[f.length-1]=_,o},o.sortValues=function(_){return d=_,o},o.rollup=function(_){return p=_,o},o},t.set=function(o){var f=new mt;if(o)for(var h=0,d=o.length;h<d;++h)f.add(o[h]);return f};function mt(){this._=Object.create(null)}R(mt,{has:Ce,add:function(o){return this._[Y(o+="")]=!0,o},remove:Fe,values:Ie,size:je,empty:Ke,forEach:function(o){for(var f in this._)o.call(this,ae(f))}}),t.behavior={};function lt(o){return o}t.rebind=function(o,f){for(var h=1,d=arguments.length,p;++h<d;)o[p=arguments[h]]=Ue(o,f,f[p]);return o};function Ue(o,f,h){return function(){var d=h.apply(f,arguments);return d===f?o:d}}function Ye(o,f){if(f in o)return f;f=f.charAt(0).toUpperCase()+f.slice(1);for(var h=0,d=It.length;h<d;++h){var p=It[h]+f;if(p in o)return p}}var It=["webkit","ms","moz","Moz","o","O"];function Ze(){}t.dispatch=function(){for(var o=new Ee,f=-1,h=arguments.length;++f<h;)o[arguments[f]]=tt(o);return o};function Ee(){}Ee.prototype.on=function(o,f){var h=o.indexOf("."),d="";if(h>=0&&(d=o.slice(h+1),o=o.slice(0,h)),o)return arguments.length<2?this[o].on(d):this[o].on(d,f);if(arguments.length===2){if(f==null)for(o in this)this.hasOwnProperty(o)&&this[o].on(d,null);return this}};function tt(o){var f=[],h=new L;function d(){for(var p=f,m=-1,E=p.length,_;++m<E;)(_=p[m].on)&&_.apply(this,arguments);return o}return d.on=function(p,m){var E=h.get(p),_;return arguments.length<2?E&&E.on:(E&&(E.on=null,f=f.slice(0,_=f.indexOf(E)).concat(f.slice(_+1)),h.remove(p)),m&&f.push(h.set(p,{on:m})),o)},d}t.event=null;function ct(){t.event.preventDefault()}function rt(){for(var o=t.event,f;f=o.sourceEvent;)o=f;return o}function yt(o){for(var f=new Ee,h=0,d=arguments.length;++h<d;)f[arguments[h]]=tt(f);return f.of=function(p,m){return function(E){try{var _=E.sourceEvent=t.event;E.target=o,t.event=E,f[E.type].apply(p,m)}finally{t.event=_}}},f}t.requote=function(o){return o.replace(Tt,"\\$&")};var Tt=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Yt={}.__proto__?function(o,f){o.__proto__=f}:function(o,f){for(var h in f)o[h]=f[h]};function Xt(o){return Yt(o,Ae),o}var Qe=function(o,f){return f.querySelector(o)},Ot=function(o,f){return f.querySelectorAll(o)},jt=function(o,f){var h=o.matches||o[Ye(o,"matchesSelector")];return jt=function(d,p){return h.call(d,p)},jt(o,f)};typeof Sizzle=="function"&&(Qe=function(o,f){return Sizzle(o,f)[0]||null},Ot=Sizzle,jt=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Ae=t.selection.prototype=[];Ae.select=function(o){var f=[],h,d,p,m;o=G(o);for(var E=-1,_=this.length;++E<_;){f.push(h=[]),h.parentNode=(p=this[E]).parentNode;for(var O=-1,I=p.length;++O<I;)(m=p[O])?(h.push(d=o.call(m,m.__data__,O,E)),d&&"__data__"in m&&(d.__data__=m.__data__)):h.push(null)}return Xt(f)};function G(o){return typeof o=="function"?o:function(){return Qe(o,this)}}Ae.selectAll=function(o){var f=[],h,d;o=ie(o);for(var p=-1,m=this.length;++p<m;)for(var E=this[p],_=-1,O=E.length;++_<O;)(d=E[_])&&(f.push(h=n(o.call(d,d.__data__,_,p))),h.parentNode=d);return Xt(f)};function ie(o){return typeof o=="function"?o:function(){return Ot(o,this)}}var C="http://www.w3.org/1999/xhtml",S={svg:"http://www.w3.org/2000/svg",xhtml:C,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:S,qualify:function(o){var f=o.indexOf(":"),h=o;return f>=0&&(h=o.slice(0,f))!=="xmlns"&&(o=o.slice(f+1)),S.hasOwnProperty(h)?{space:S[h],local:o}:o}},Ae.attr=function(o,f){if(arguments.length<2){if(typeof o=="string"){var h=this.node();return o=t.ns.qualify(o),o.local?h.getAttributeNS(o.space,o.local):h.getAttribute(o)}for(f in o)this.each(T(f,o[f]));return this}return this.each(T(o,f))};function T(o,f){o=t.ns.qualify(o);function h(){this.removeAttribute(o)}function d(){this.removeAttributeNS(o.space,o.local)}function p(){this.setAttribute(o,f)}function m(){this.setAttributeNS(o.space,o.local,f)}function E(){var O=f.apply(this,arguments);O==null?this.removeAttribute(o):this.setAttribute(o,O)}function _(){var O=f.apply(this,arguments);O==null?this.removeAttributeNS(o.space,o.local):this.setAttributeNS(o.space,o.local,O)}return f==null?o.local?d:h:typeof f=="function"?o.local?_:E:o.local?m:p}function B(o){return o.trim().replace(/\s+/g," ")}Ae.classed=function(o,f){if(arguments.length<2){if(typeof o=="string"){var h=this.node(),d=(o=Ne(o)).length,p=-1;if(f=h.classList){for(;++p<d;)if(!f.contains(o[p]))return!1}else for(f=h.getAttribute("class");++p<d;)if(!se(o[p]).test(f))return!1;return!0}for(f in o)this.each(De(f,o[f]));return this}return this.each(De(o,f))};function se(o){return new RegExp("(?:^|\\s+)"+t.requote(o)+"(?:\\s+|$)","g")}function Ne(o){return(o+"").trim().split(/^|\s+/)}function De(o,f){o=Ne(o).map(Qt);var h=o.length;function d(){for(var m=-1;++m<h;)o[m](this,f)}function p(){for(var m=-1,E=f.apply(this,arguments);++m<h;)o[m](this,E)}return typeof f=="function"?p:d}function Qt(o){var f=se(o);return function(h,d){if(p=h.classList)return d?p.add(o):p.remove(o);var p=h.getAttribute("class")||"";d?(f.lastIndex=0,f.test(p)||h.setAttribute("class",B(p+" "+o))):h.setAttribute("class",B(p.replace(f," ")))}}Ae.style=function(o,f,h){var d=arguments.length;if(d<3){if(typeof o!="string"){d<2&&(f="");for(h in o)this.each(fr(h,o[h],f));return this}if(d<2){var p=this.node();return u(p).getComputedStyle(p,null).getPropertyValue(o)}h=""}return this.each(fr(o,f,h))};function fr(o,f,h){function d(){this.style.removeProperty(o)}function p(){this.style.setProperty(o,f,h)}function m(){var E=f.apply(this,arguments);E==null?this.style.removeProperty(o):this.style.setProperty(o,E,h)}return f==null?d:typeof f=="function"?m:p}Ae.property=function(o,f){if(arguments.length<2){if(typeof o=="string")return this.node()[o];for(f in o)this.each(rr(f,o[f]));return this}return this.each(rr(o,f))};function rr(o,f){function h(){delete this[o]}function d(){this[o]=f}function p(){var m=f.apply(this,arguments);m==null?delete this[o]:this[o]=m}return f==null?h:typeof f=="function"?p:d}Ae.text=function(o){return arguments.length?this.each(typeof o=="function"?function(){var f=o.apply(this,arguments);this.textContent=f??""}:o==null?function(){this.textContent=""}:function(){this.textContent=o}):this.node().textContent},Ae.html=function(o){return arguments.length?this.each(typeof o=="function"?function(){var f=o.apply(this,arguments);this.innerHTML=f??""}:o==null?function(){this.innerHTML=""}:function(){this.innerHTML=o}):this.node().innerHTML},Ae.append=function(o){return o=Hr(o),this.select(function(){return this.appendChild(o.apply(this,arguments))})};function Hr(o){function f(){var d=this.ownerDocument,p=this.namespaceURI;return p===C&&d.documentElement.namespaceURI===C?d.createElement(o):d.createElementNS(p,o)}function h(){return this.ownerDocument.createElementNS(o.space,o.local)}return typeof o=="function"?o:(o=t.ns.qualify(o)).local?h:f}Ae.insert=function(o,f){return o=Hr(o),f=G(f),this.select(function(){return this.insertBefore(o.apply(this,arguments),f.apply(this,arguments)||null)})},Ae.remove=function(){return this.each(Ar)};function Ar(){var o=this.parentNode;o&&o.removeChild(this)}Ae.data=function(o,f){var h=-1,d=this.length,p,m;if(!arguments.length){for(o=new Array(d=(p=this[0]).length);++h<d;)(m=p[h])&&(o[h]=m.__data__);return o}function E(P,$){var z,re=P.length,oe=$.length,j=Math.min(re,oe),q=new Array(oe),K=new Array(oe),ue=new Array(re),le,ee;if(f){var Me=new L,Be=new Array(re),Je;for(z=-1;++z<re;)(le=P[z])&&(Me.has(Je=f.call(le,le.__data__,z))?ue[z]=le:Me.set(Je,le),Be[z]=Je);for(z=-1;++z<oe;)(le=Me.get(Je=f.call($,ee=$[z],z)))?le!==!0&&(q[z]=le,le.__data__=ee):K[z]=Li(ee),Me.set(Je,!0);for(z=-1;++z<re;)z in Be&&Me.get(Be[z])!==!0&&(ue[z]=P[z])}else{for(z=-1;++z<j;)le=P[z],ee=$[z],le?(le.__data__=ee,q[z]=le):K[z]=Li(ee);for(;z<oe;++z)K[z]=Li($[z]);for(;z<re;++z)ue[z]=P[z]}K.update=q,K.parentNode=q.parentNode=ue.parentNode=P.parentNode,_.push(K),O.push(q),I.push(ue)}var _=md([]),O=Xt([]),I=Xt([]);if(typeof o=="function")for(;++h<d;)E(p=this[h],o.call(p,p.parentNode.__data__,h));else for(;++h<d;)E(p=this[h],o);return O.enter=function(){return _},O.exit=function(){return I},O};function Li(o){return{__data__:o}}Ae.datum=function(o){return arguments.length?this.property("__data__",o):this.property("__data__")},Ae.filter=function(o){var f=[],h,d,p;typeof o!="function"&&(o=Zo(o));for(var m=0,E=this.length;m<E;m++){f.push(h=[]),h.parentNode=(d=this[m]).parentNode;for(var _=0,O=d.length;_<O;_++)(p=d[_])&&o.call(p,p.__data__,_,m)&&h.push(p)}return Xt(f)};function Zo(o){return function(){return jt(this,o)}}Ae.order=function(){for(var o=-1,f=this.length;++o<f;)for(var h=this[o],d=h.length-1,p=h[d],m;--d>=0;)(m=h[d])&&(p&&p!==m.nextSibling&&p.parentNode.insertBefore(m,p),p=m);return this},Ae.sort=function(o){o=aa.apply(this,arguments);for(var f=-1,h=this.length;++f<h;)this[f].sort(o);return this.order()};function aa(o){return arguments.length||(o=y),function(f,h){return f&&h?o(f.__data__,h.__data__):!f-!h}}Ae.each=function(o){return oi(this,function(f,h,d){o.call(f,f.__data__,h,d)})};function oi(o,f){for(var h=0,d=o.length;h<d;h++)for(var p=o[h],m=0,E=p.length,_;m<E;m++)(_=p[m])&&f(_,m,h);return o}Ae.call=function(o){var f=n(arguments);return o.apply(f[0]=this,f),this},Ae.empty=function(){return!this.node()},Ae.node=function(){for(var o=0,f=this.length;o<f;o++)for(var h=this[o],d=0,p=h.length;d<p;d++){var m=h[d];if(m)return m}return null},Ae.size=function(){var o=0;return oi(this,function(){++o}),o};function md(o){return Yt(o,xi),o}var xi=[];t.selection.enter=md,t.selection.enter.prototype=xi,xi.append=Ae.append,xi.empty=Ae.empty,xi.node=Ae.node,xi.call=Ae.call,xi.size=Ae.size,xi.select=function(o){for(var f=[],h,d,p,m,E,_=-1,O=this.length;++_<O;){p=(m=this[_]).update,f.push(h=[]),h.parentNode=m.parentNode;for(var I=-1,P=m.length;++I<P;)(E=m[I])?(h.push(p[I]=d=o.call(m.parentNode,E.__data__,I,_)),d.__data__=E.__data__):h.push(null)}return Xt(f)},xi.insert=function(o,f){return arguments.length<2&&(f=Ko(this)),Ae.insert.call(this,o,f)};function Ko(o){var f,h;return function(d,p,m){var E=o[m].update,_=E.length,O;for(m!=h&&(h=m,f=0),p>=f&&(f=p+1);!(O=E[f])&&++f<_;);return O}}t.select=function(o){var f;return typeof o=="string"?(f=[Qe(o,i)],f.parentNode=i.documentElement):(f=[o],f.parentNode=a(o)),Xt([f])},t.selectAll=function(o){var f;return typeof o=="string"?(f=n(Ot(o,i)),f.parentNode=i.documentElement):(f=n(o),f.parentNode=null),Xt([f])},Ae.on=function(o,f,h){var d=arguments.length;if(d<3){if(typeof o!="string"){d<2&&(f=!1);for(h in o)this.each(dl(h,o[h],f));return this}if(d<2)return(d=this.node()["__on"+o])&&d._;h=!1}return this.each(dl(o,f,h))};function dl(o,f,h){var d="__on"+o,p=o.indexOf("."),m=vl;p>0&&(o=o.slice(0,p));var E=pl.get(o);E&&(o=E,m=Lm);function _(){var P=this[d];P&&(this.removeEventListener(o,P,P.$),delete this[d])}function O(){var P=m(f,n(arguments));_.call(this),this.addEventListener(o,this[d]=P,P.$=h),P._=f}function I(){var P=new RegExp("^__on([^.]+)"+t.requote(o)+"$"),$;for(var z in this)if($=z.match(P)){var re=this[z];this.removeEventListener($[1],re,re.$),delete this[z]}}return p?f?O:_:f?Ze:I}var pl=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&pl.forEach(function(o){"on"+o in i&&pl.remove(o)});function vl(o,f){return function(h){var d=t.event;t.event=h,f[0]=this.__data__;try{o.apply(this,f)}finally{t.event=d}}}function Lm(o,f){var h=vl(o,f);return function(d){var p=this,m=d.relatedTarget;(!m||m!==p&&!(m.compareDocumentPosition(p)&8))&&h.call(p,d)}}var oa,Dm=0;function ml(o){var f=".dragsuppress-"+ ++Dm,h="click"+f,d=t.select(u(o)).on("touchmove"+f,ct).on("dragstart"+f,ct).on("selectstart"+f,ct);if(oa==null&&(oa="onselectstart"in o?!1:Ye(o.style,"userSelect")),oa){var p=a(o).style,m=p[oa];p[oa]="none"}return function(E){if(d.on(f,null),oa&&(p[oa]=m),E){var _=function(){d.on(h,null)};d.on(h,function(){ct(),_()},!0),setTimeout(_,0)}}}t.mouse=function(o){return qn(o,rt())};var Qr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function qn(o,f){f.changedTouches&&(f=f.changedTouches[0]);var h=o.ownerSVGElement||o;if(h.createSVGPoint){var d=h.createSVGPoint();if(Qr<0){var p=u(o);if(p.scrollX||p.scrollY){h=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var m=h[0][0].getScreenCTM();Qr=!(m.f||m.e),h.remove()}}return Qr?(d.x=f.pageX,d.y=f.pageY):(d.x=f.clientX,d.y=f.clientY),d=d.matrixTransform(o.getScreenCTM().inverse()),[d.x,d.y]}var E=o.getBoundingClientRect();return[f.clientX-E.left-o.clientLeft,f.clientY-E.top-o.clientTop]}t.touch=function(o,f,h){if(arguments.length<3&&(h=f,f=rt().changedTouches),f){for(var d=0,p=f.length,m;d<p;++d)if((m=f[d]).identifier===h)return qn(o,m)}},t.behavior.drag=function(){var o=yt(p,"drag","dragstart","dragend"),f=null,h=m(Ze,t.mouse,u,"mousemove","mouseup"),d=m(Mn,t.touch,lt,"touchmove","touchend");function p(){this.on("mousedown.drag",h).on("touchstart.drag",d)}function m(E,_,O,I,P){return function(){var $=this,z=t.event.target.correspondingElement||t.event.target,re=$.parentNode,oe=o.of($,arguments),j=0,q=E(),K=".drag"+(q==null?"":"-"+q),ue,le=t.select(O(z)).on(I+K,Be).on(P+K,Je),ee=ml(z),Me=_(re,q);f?(ue=f.apply($,arguments),ue=[ue.x-Me[0],ue.y-Me[1]]):ue=[0,0],oe({type:"dragstart"});function Be(){var $e=_(re,q),it,dt;$e&&(it=$e[0]-Me[0],dt=$e[1]-Me[1],j|=it|dt,Me=$e,oe({type:"drag",x:$e[0]+ue[0],y:$e[1]+ue[1],dx:it,dy:dt}))}function Je(){_(re,q)&&(le.on(I+K,null).on(P+K,null),ee(j),oe({type:"dragend"}))}}}return p.origin=function(E){return arguments.length?(f=E,p):f},t.rebind(p,o,"on")};function Mn(){return t.event.changedTouches[0].identifier}t.touches=function(o,f){return arguments.length<2&&(f=rt().touches),f?n(f).map(function(h){var d=qn(o,h);return d.identifier=h.identifier,d}):[]};var nr=1e-6,gd=nr*nr,_i=Math.PI,Ha=2*_i,yd=Ha-nr,ui=_i/2,xd=_i/180,Jo=180/_i;function Bm(o,f,h){return(f[0]-o[0])*(h[1]-o[1])-(f[1]-o[1])*(h[0]-o[0])}function _d(o){return o>1?ui:o<-1?-ui:Math.asin(o)}function $m(o){return((o=Math.exp(o))-1/o)/2}function wd(o){return((o=Math.exp(o))+1/o)/2}function zm(o){return((o=Math.exp(2*o))-1)/(o+1)}var eu=Math.SQRT2,fs=2,bd=4;t.interpolateZoom=function(o,f){var h=o[0],d=o[1],p=o[2],m=f[0],E=f[1],_=f[2],O=m-h,I=E-d,P=O*O+I*I,$,z;if(P<gd)z=Math.log(_/p)/eu,$=function(ue){return[h+ue*O,d+ue*I,p*Math.exp(eu*ue*z)]};else{var re=Math.sqrt(P),oe=(_*_-p*p+bd*P)/(2*p*fs*re),j=(_*_-p*p-bd*P)/(2*_*fs*re),q=Math.log(Math.sqrt(oe*oe+1)-oe),K=Math.log(Math.sqrt(j*j+1)-j);z=(K-q)/eu,$=function(ue){var le=ue*z,ee=wd(q),Me=p/(fs*re)*(ee*zm(eu*le+q)-$m(q));return[h+Me*O,d+Me*I,p*ee/wd(eu*le+q)]}}return $.duration=z*1e3,$},t.behavior.zoom=function(){var o={x:0,y:0,k:1},f,h,d,p=[960,500],m=tu,E=250,_=0,O="mousedown.zoom",I="mousemove.zoom",P="mouseup.zoom",$,z="touchstart.zoom",re,oe=yt(le,"zoomstart","zoom","zoomend"),j,q,K,ue;ss||(ss="onwheel"in i?(gl=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(gl=function(){return t.event.wheelDelta},"mousewheel"):(gl=function(){return-t.event.detail},"MozMousePixelScroll"));function le(et){et.on(O,zt).on(ss+".zoom",Tr).on("dblclick.zoom",hr).on(z,ir)}le.event=function(et){et.each(function(){var Ht=oe.of(this,arguments),Vt=o;Ci?t.select(this).transition().each("start.zoom",function(){o=this.__chart__||{x:0,y:0,k:1},dt(Ht)}).tween("zoom:zoom",function(){var ar=p[0],wr=p[1],Pr=h?h[0]:ar/2,Wr=h?h[1]:wr/2,fn=t.interpolateZoom([(Pr-o.x)/o.k,(Wr-o.y)/o.k,ar/o.k],[(Pr-Vt.x)/Vt.k,(Wr-Vt.y)/Vt.k,ar/Vt.k]);return function(mn){var Jr=fn(mn),Sn=ar/Jr[2];this.__chart__=o={x:Pr-Jr[0]*Sn,y:Wr-Jr[1]*Sn,k:Sn},Gt(Ht)}}).each("interrupt.zoom",function(){xt(Ht)}).each("end.zoom",function(){xt(Ht)}):(this.__chart__=o,dt(Ht),Gt(Ht),xt(Ht))})},le.translate=function(et){return arguments.length?(o={x:+et[0],y:+et[1],k:o.k},it(),le):[o.x,o.y]},le.scale=function(et){return arguments.length?(o={x:o.x,y:o.y,k:null},Be(+et),it(),le):o.k},le.scaleExtent=function(et){return arguments.length?(m=et==null?tu:[+et[0],+et[1]],le):m},le.center=function(et){return arguments.length?(d=et&&[+et[0],+et[1]],le):d},le.size=function(et){return arguments.length?(p=et&&[+et[0],+et[1]],le):p},le.duration=function(et){return arguments.length?(E=+et,le):E},le.x=function(et){return arguments.length?(q=et,j=et.copy(),o={x:0,y:0,k:1},le):q},le.y=function(et){return arguments.length?(ue=et,K=et.copy(),o={x:0,y:0,k:1},le):ue};function ee(et){return[(et[0]-o.x)/o.k,(et[1]-o.y)/o.k]}function Me(et){return[et[0]*o.k+o.x,et[1]*o.k+o.y]}function Be(et){o.k=Math.max(m[0],Math.min(m[1],et))}function Je(et,Ht){Ht=Me(Ht),o.x+=et[0]-Ht[0],o.y+=et[1]-Ht[1]}function $e(et,Ht,Vt,ar){et.__chart__={x:o.x,y:o.y,k:o.k},Be(Math.pow(2,ar)),Je(h=Ht,Vt),et=t.select(et),E>0&&(et=et.transition().duration(E)),et.call(le.event)}function it(){q&&q.domain(j.range().map(function(et){return(et-o.x)/o.k}).map(j.invert)),ue&&ue.domain(K.range().map(function(et){return(et-o.y)/o.k}).map(K.invert))}function dt(et){_++||et({type:"zoomstart"})}function Gt(et){it(),et({type:"zoom",scale:o.k,translate:[o.x,o.y]})}function xt(et){--_||(et({type:"zoomend"}),h=null)}function zt(){var et=this,Ht=oe.of(et,arguments),Vt=0,ar=t.select(u(et)).on(I,Wr).on(P,fn),wr=ee(t.mouse(et)),Pr=ml(et);Xl.call(et),dt(Ht);function Wr(){Vt=1,Je(t.mouse(et),wr),Gt(Ht)}function fn(){ar.on(I,null).on(P,null),Pr(Vt),xt(Ht)}}function ir(){var et=this,Ht=oe.of(et,arguments),Vt={},ar=0,wr,Pr=".zoom-"+t.event.changedTouches[0].identifier,Wr="touchmove"+Pr,fn="touchend"+Pr,mn=[],Jr=t.select(et),Sn=ml(et);H(),dt(Ht),Jr.on(O,null).on(z,H);function F(){var ke=t.touches(et);return wr=o.k,ke.forEach(function(ge){ge.identifier in Vt&&(Vt[ge.identifier]=ee(ge))}),ke}function H(){var ke=t.event.target;t.select(ke).on(Wr,Z).on(fn,we),mn.push(ke);for(var ge=t.event.changedTouches,xe=0,He=ge.length;xe<He;++xe)Vt[ge[xe].identifier]=null;var We=F(),Xe=Date.now();if(We.length===1){if(Xe-re<500){var ut=We[0];$e(et,ut,Vt[ut.identifier],Math.floor(Math.log(o.k)/Math.LN2)+1),ct()}re=Xe}else if(We.length>1){var ut=We[0],Mt=We[1],wt=ut[0]-Mt[0],nt=ut[1]-Mt[1];ar=wt*wt+nt*nt}}function Z(){var ke=t.touches(et),ge,xe,He,We;Xl.call(et);for(var Xe=0,ut=ke.length;Xe<ut;++Xe,We=null)if(He=ke[Xe],We=Vt[He.identifier]){if(xe)break;ge=He,xe=We}if(We){var Mt=(Mt=He[0]-ge[0])*Mt+(Mt=He[1]-ge[1])*Mt,wt=ar&&Math.sqrt(Mt/ar);ge=[(ge[0]+He[0])/2,(ge[1]+He[1])/2],xe=[(xe[0]+We[0])/2,(xe[1]+We[1])/2],Be(wt*wr)}re=null,Je(ge,xe),Gt(Ht)}function we(){if(t.event.touches.length){for(var ke=t.event.changedTouches,ge=0,xe=ke.length;ge<xe;++ge)delete Vt[ke[ge].identifier];for(var He in Vt)return void F()}t.selectAll(mn).on(Pr,null),Jr.on(O,zt).on(z,ir),Sn(),xt(Ht)}}function Tr(){var et=oe.of(this,arguments);$?clearTimeout($):(Xl.call(this),f=ee(h=d||t.mouse(this)),dt(et)),$=setTimeout(function(){$=null,xt(et)},50),ct(),Be(Math.pow(2,gl()*.002)*o.k),Je(h,f),Gt(et)}function hr(){var et=t.mouse(this),Ht=Math.log(o.k)/Math.LN2;$e(this,et,ee(et),t.event.shiftKey?Math.ceil(Ht)-1:Math.floor(Ht)+1)}return t.rebind(le,oe,"on")};var tu=[0,1/0],gl,ss;t.color=Di;function Di(){}Di.prototype.toString=function(){return this.rgb()+""},t.hsl=Ln;function Ln(o,f,h){return this instanceof Ln?(this.h=+o,this.s=+f,void(this.l=+h)):arguments.length<2?o instanceof Ln?new Ln(o.h,o.s,o.l):la(""+o,gs,Ln):new Ln(o,f,h)}var yl=Ln.prototype=new Di;yl.brighter=function(o){return o=Math.pow(.7,arguments.length?o:1),new Ln(this.h,this.s,this.l/o)},yl.darker=function(o){return o=Math.pow(.7,arguments.length?o:1),new Ln(this.h,this.s,o*this.l)},yl.rgb=function(){return xl(this.h,this.s,this.l)};function xl(o,f,h){var d,p;o=isNaN(o)?0:(o%=360)<0?o+360:o,f=isNaN(f)||f<0?0:f>1?1:f,h=h<0?0:h>1?1:h,p=h<=.5?h*(1+f):h+f-h*f,d=2*h-p;function m(_){return _>360?_-=360:_<0&&(_+=360),_<60?d+(p-d)*_/60:_<180?p:_<240?d+(p-d)*(240-_)/60:d}function E(_){return Math.round(m(_)*255)}return new Zr(E(o+120),E(o),E(o-120))}t.hcl=Yn;function Yn(o,f,h){return this instanceof Yn?(this.h=+o,this.c=+f,void(this.l=+h)):arguments.length<2?o instanceof Yn?new Yn(o.h,o.c,o.l):o instanceof Yr?Ad(o.l,o.a,o.b):Ad((o=fa((o=t.rgb(o)).r,o.g,o.b)).l,o.a,o.b):new Yn(o,f,h)}var ru=Yn.prototype=new Di;ru.brighter=function(o){return new Yn(this.h,this.c,Math.min(100,this.l+ua*(arguments.length?o:1)))},ru.darker=function(o){return new Yn(this.h,this.c,Math.max(0,this.l-ua*(arguments.length?o:1)))},ru.rgb=function(){return nu(this.h,this.c,this.l).rgb()};function nu(o,f,h){return isNaN(o)&&(o=0),isNaN(f)&&(f=0),new Yr(h,Math.cos(o*=xd)*f,Math.sin(o)*f)}t.lab=Yr;function Yr(o,f,h){return this instanceof Yr?(this.l=+o,this.a=+f,void(this.b=+h)):arguments.length<2?o instanceof Yr?new Yr(o.l,o.a,o.b):o instanceof Yn?nu(o.h,o.c,o.l):fa((o=Zr(o)).r,o.g,o.b):new Yr(o,f,h)}var ua=18,cs=.95047,hs=1,Sd=1.08883,ds=Yr.prototype=new Di;ds.brighter=function(o){return new Yr(Math.min(100,this.l+ua*(arguments.length?o:1)),this.a,this.b)},ds.darker=function(o){return new Yr(Math.max(0,this.l-ua*(arguments.length?o:1)),this.a,this.b)},ds.rgb=function(){return Ed(this.l,this.a,this.b)};function Ed(o,f,h){var d=(o+16)/116,p=d+f/500,m=d-h/200;return p=ps(p)*cs,d=ps(d)*hs,m=ps(m)*Sd,new Zr(ms(3.2404542*p-1.5371385*d-.4985314*m),ms(-.969266*p+1.8760108*d+.041556*m),ms(.0556434*p-.2040259*d+1.0572252*m))}function Ad(o,f,h){return o>0?new Yn(Math.atan2(h,f)*Jo,Math.sqrt(f*f+h*h),o):new Yn(NaN,NaN,o)}function ps(o){return o>.206893034?o*o*o:(o-4/29)/7.787037}function vs(o){return o>.008856?Math.pow(o,1/3):7.787037*o+4/29}function ms(o){return Math.round(255*(o<=.00304?12.92*o:1.055*Math.pow(o,1/2.4)-.055))}t.rgb=Zr;function Zr(o,f,h){return this instanceof Zr?(this.r=~~o,this.g=~~f,void(this.b=~~h)):arguments.length<2?o instanceof Zr?new Zr(o.r,o.g,o.b):la(""+o,Zr,xl):new Zr(o,f,h)}function Td(o){return new Zr(o>>16,o>>8&255,o&255)}function _l(o){return Td(o)+""}var Bi=Zr.prototype=new Di;Bi.brighter=function(o){o=Math.pow(.7,arguments.length?o:1);var f=this.r,h=this.g,d=this.b,p=30;return!f&&!h&&!d?new Zr(p,p,p):(f&&f<p&&(f=p),h&&h<p&&(h=p),d&&d<p&&(d=p),new Zr(Math.min(255,f/o),Math.min(255,h/o),Math.min(255,d/o)))},Bi.darker=function(o){return o=Math.pow(.7,arguments.length?o:1),new Zr(o*this.r,o*this.g,o*this.b)},Bi.hsl=function(){return gs(this.r,this.g,this.b)},Bi.toString=function(){return"#"+Wa(this.r)+Wa(this.g)+Wa(this.b)};function Wa(o){return o<16?"0"+Math.max(0,o).toString(16):Math.min(255,o).toString(16)}function la(o,f,h){var d=0,p=0,m=0,E,_,O;if(E=/([a-z]+)\((.*)\)/.exec(o=o.toLowerCase()),E)switch(_=E[2].split(","),E[1]){case"hsl":return h(parseFloat(_[0]),parseFloat(_[1])/100,parseFloat(_[2])/100);case"rgb":return f($i(_[0]),$i(_[1]),$i(_[2]))}return(O=Va.get(o))?f(O.r,O.g,O.b):(o!=null&&o.charAt(0)==="#"&&!isNaN(O=parseInt(o.slice(1),16))&&(o.length===4?(d=(O&3840)>>4,d=d>>4|d,p=O&240,p=p>>4|p,m=O&15,m=m<<4|m):o.length===7&&(d=(O&16711680)>>16,p=(O&65280)>>8,m=O&255)),f(d,p,m))}function gs(o,f,h){var d=Math.min(o/=255,f/=255,h/=255),p=Math.max(o,f,h),m=p-d,E,_,O=(p+d)/2;return m?(_=O<.5?m/(p+d):m/(2-p-d),o==p?E=(f-h)/m+(f<h?6:0):f==p?E=(h-o)/m+2:E=(o-f)/m+4,E*=60):(E=NaN,_=O>0&&O<1?0:E),new Ln(E,_,O)}function fa(o,f,h){o=wl(o),f=wl(f),h=wl(h);var d=vs((.4124564*o+.3575761*f+.1804375*h)/cs),p=vs((.2126729*o+.7151522*f+.072175*h)/hs),m=vs((.0193339*o+.119192*f+.9503041*h)/Sd);return Yr(116*p-16,500*(d-p),200*(p-m))}function wl(o){return(o/=255)<=.04045?o/12.92:Math.pow((o+.055)/1.055,2.4)}function $i(o){var f=parseFloat(o);return o.charAt(o.length-1)==="%"?Math.round(f*2.55):f}var Va=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});Va.forEach(function(o,f){Va.set(o,Td(f))});function vr(o){return typeof o=="function"?o:function(){return o}}t.functor=vr,t.xhr=ys(lt);function ys(o){return function(f,h,d){return arguments.length===2&&typeof h=="function"&&(d=h,h=null),bl(f,h,o,d)}}function bl(o,f,h,d){var p={},m=t.dispatch("beforesend","progress","load","error"),E={},_=new XMLHttpRequest,O=null;self.XDomainRequest&&!("withCredentials"in _)&&/^(http(s)?:)?\/\//.test(o)&&(_=new XDomainRequest),"onload"in _?_.onload=_.onerror=I:_.onreadystatechange=function(){_.readyState>3&&I()};function I(){var P=_.status,$;if(!P&&Um(_)||P>=200&&P<300||P===304){try{$=h.call(p,_)}catch(z){m.error.call(p,z);return}m.load.call(p,$)}else m.error.call(p,_)}return _.onprogress=function(P){var $=t.event;t.event=P;try{m.progress.call(p,_)}finally{t.event=$}},p.header=function(P,$){return P=(P+"").toLowerCase(),arguments.length<2?E[P]:($==null?delete E[P]:E[P]=$+"",p)},p.mimeType=function(P){return arguments.length?(f=P==null?null:P+"",p):f},p.responseType=function(P){return arguments.length?(O=P,p):O},p.response=function(P){return h=P,p},["get","post"].forEach(function(P){p[P]=function(){return p.send.apply(p,[P].concat(n(arguments)))}}),p.send=function(P,$,z){if(arguments.length===2&&typeof $=="function"&&(z=$,$=null),_.open(P,o,!0),f!=null&&!("accept"in E)&&(E.accept=f+",*/*"),_.setRequestHeader)for(var re in E)_.setRequestHeader(re,E[re]);return f!=null&&_.overrideMimeType&&_.overrideMimeType(f),O!=null&&(_.responseType=O),z!=null&&p.on("error",z).on("load",function(oe){z(null,oe)}),m.beforesend.call(p,_),_.send($??null),p},p.abort=function(){return _.abort(),p},t.rebind(p,m,"on"),d==null?p:p.get(Cd(d))}function Cd(o){return o.length===1?function(f,h){o(f==null?h:null)}:o}function Um(o){var f=o.responseType;return f&&f!=="text"?o.response:o.responseText}t.dsv=function(o,f){var h=new RegExp('["'+o+`
810
- ]`),d=o.charCodeAt(0);function p(I,P,$){arguments.length<3&&($=P,P=null);var z=bl(I,f,P==null?m:E(P),$);return z.row=function(re){return arguments.length?z.response((P=re)==null?m:E(re)):P},z}function m(I){return p.parse(I.responseText)}function E(I){return function(P){return p.parse(P.responseText,I)}}p.parse=function(I,P){var $;return p.parseRows(I,function(z,re){if($)return $(z,re-1);var oe=function(j){for(var q={},K=z.length,ue=0;ue<K;++ue)q[z[ue]]=j[ue];return q};$=P?function(j,q){return P(oe(j),q)}:oe})},p.parseRows=function(I,P){var $={},z={},re=[],oe=I.length,j=0,q=0,K,ue;function le(){if(j>=oe)return z;if(ue)return ue=!1,$;var Me=j;if(I.charCodeAt(Me)===34){for(var Be=Me;Be++<oe;)if(I.charCodeAt(Be)===34){if(I.charCodeAt(Be+1)!==34)break;++Be}j=Be+2;var Je=I.charCodeAt(Be+1);return Je===13?(ue=!0,I.charCodeAt(Be+2)===10&&++j):Je===10&&(ue=!0),I.slice(Me+1,Be).replace(/""/g,'"')}for(;j<oe;){var Je=I.charCodeAt(j++),$e=1;if(Je===10)ue=!0;else if(Je===13)ue=!0,I.charCodeAt(j)===10&&(++j,++$e);else if(Je!==d)continue;return I.slice(Me,j-$e)}return I.slice(Me)}for(;(K=le())!==z;){for(var ee=[];K!==$&&K!==z;)ee.push(K),K=le();P&&(ee=P(ee,q++))==null||re.push(ee)}return re},p.format=function(I){if(Array.isArray(I[0]))return p.formatRows(I);var P=new mt,$=[];return I.forEach(function(z){for(var re in z)P.has(re)||$.push(P.add(re))}),[$.map(O).join(o)].concat(I.map(function(z){return $.map(function(re){return O(z[re])}).join(o)})).join(`
811
- `)},p.formatRows=function(I){return I.map(_).join(`
812
- `)};function _(I){return I.map(O).join(o)}function O(I){return h.test(I)?'"'+I.replace(/\"/g,'""')+'"':I}return p},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var Sl,iu,Xn,El,Qn=this[Ye(this,"requestAnimationFrame")]||function(o){setTimeout(o,17)};t.timer=function(){qa.apply(this,arguments)};function qa(o,f,h){var d=arguments.length;d<2&&(f=0),d<3&&(h=Date.now());var p=h+f,m={c:o,t:p,n:null};return iu?iu.n=m:Sl=m,iu=m,Xn||(El=clearTimeout(El),Xn=1,Qn(Ya)),m}function Ya(){var o=zi(),f=Al()-o;f>24?(isFinite(f)&&(clearTimeout(El),El=setTimeout(Ya,f)),Xn=0):(Xn=1,Qn(Ya))}t.timer.flush=function(){zi(),Al()};function zi(){for(var o=Date.now(),f=Sl;f;)o>=f.t&&f.c(o-f.t)&&(f.c=null),f=f.n;return o}function Al(){for(var o,f=Sl,h=1/0;f;)f.c?(f.t<h&&(h=f.t),f=(o=f).n):f=o?o.n=f.n:Sl=f.n;return iu=o,h}t.round=function(o,f){return f?Math.round(o*(f=Math.pow(10,f)))/f:Math.round(o)},t.geom={};function wi(o){return o[0]}function bi(o){return o[1]}t.geom.hull=function(o){var f=wi,h=bi;if(arguments.length)return d(o);function d(p){if(p.length<3)return[];var m=vr(f),E=vr(h),_,O=p.length,I=[],P=[];for(_=0;_<O;_++)I.push([+m.call(this,p[_],_),+E.call(this,p[_],_),_]);for(I.sort(kd),_=0;_<O;_++)P.push([I[_][0],-I[_][1]]);var $=au(I),z=au(P),re=z[0]===$[0],oe=z[z.length-1]===$[$.length-1],j=[];for(_=$.length-1;_>=0;--_)j.push(p[I[$[_]][2]]);for(_=+re;_<z.length-oe;++_)j.push(p[I[z[_]][2]]);return j}return d.x=function(p){return arguments.length?(f=p,d):f},d.y=function(p){return arguments.length?(h=p,d):h},d};function au(o){for(var f=o.length,h=[0,1],d=2,p=2;p<f;p++){for(;d>1&&Bm(o[h[d-2]],o[h[d-1]],o[p])<=0;)--d;h[d++]=p}return h.slice(0,d)}function kd(o,f){return o[0]-f[0]||o[1]-f[1]}t.geom.polygon=function(o){return Yt(o,Xa),o};var Xa=t.geom.polygon.prototype=[];Xa.area=function(){for(var o=-1,f=this.length,h,d=this[f-1],p=0;++o<f;)h=d,d=this[o],p+=h[1]*d[0]-h[0]*d[1];return p*.5},Xa.centroid=function(o){var f=-1,h=this.length,d=0,p=0,m,E=this[h-1],_;for(arguments.length||(o=-1/(6*this.area()));++f<h;)m=E,E=this[f],_=m[0]*E[1]-E[0]*m[1],d+=(m[0]+E[0])*_,p+=(m[1]+E[1])*_;return[d*o,p*o]},Xa.clip=function(o){for(var f,h=Od(o),d=-1,p=this.length-Od(this),m,E,_=this[p-1],O,I,P;++d<p;){for(f=o.slice(),o.length=0,O=this[d],I=f[(E=f.length-h)-1],m=-1;++m<E;)P=f[m],Tl(P,_,O)?(Tl(I,_,O)||o.push(xs(I,P,_,O)),o.push(P)):Tl(I,_,O)&&o.push(xs(I,P,_,O)),I=P;h&&o.push(o[0]),_=O}return o};function Tl(o,f,h){return(h[0]-f[0])*(o[1]-f[1])<(h[1]-f[1])*(o[0]-f[0])}function xs(o,f,h,d){var p=o[0],m=h[0],E=f[0]-p,_=d[0]-m,O=o[1],I=h[1],P=f[1]-O,$=d[1]-I,z=(_*(O-I)-$*(p-m))/($*E-_*P);return[p+z*E,O+z*P]}function Od(o){var f=o[0],h=o[o.length-1];return!(f[0]-h[0]||f[1]-h[1])}var Qa,sa,Ui,ou=[],uu,ca,ha=[];function _s(){Ol(this),this.edge=this.site=this.circle=null}function Cl(o){var f=ou.pop()||new _s;return f.site=o,f}function lu(o){Zn(o),Ui.remove(o),ou.push(o),Ol(o)}function ws(o){var f=o.circle,h=f.x,d=f.cy,p={x:h,y:d},m=o.P,E=o.N,_=[o];lu(o);for(var O=m;O.circle&&A(h-O.circle.x)<nr&&A(d-O.circle.cy)<nr;)m=O.P,_.unshift(O),lu(O),O=m;_.unshift(O),Zn(O);for(var I=E;I.circle&&A(h-I.circle.x)<nr&&A(d-I.circle.cy)<nr;)E=I.N,_.push(I),lu(I),I=E;_.push(I),Zn(I);var P=_.length,$;for($=1;$<P;++$)I=_[$],O=_[$-1],Za(I.edge,O.site,I.site,p);O=_[0],I=_[P-1],I.edge=su(O.site,I.site,null,p),da(O),da(I)}function Md(o){for(var f=o.x,h=o.y,d,p,m,E,_=Ui._;_;)if(m=bs(_,h)-f,m>nr)_=_.L;else if(E=f-Fd(_,h),E>nr){if(!_.R){d=_;break}_=_.R}else{m>-nr?(d=_.P,p=_):E>-nr?(d=_,p=_.N):d=p=_;break}var O=Cl(o);if(Ui.insert(d,O),!(!d&&!p)){if(d===p){Zn(d),p=Cl(d.site),Ui.insert(O,p),O.edge=p.edge=su(d.site,O.site),da(d),da(p);return}if(!p){O.edge=su(d.site,O.site);return}Zn(d),Zn(p);var I=d.site,P=I.x,$=I.y,z=o.x-P,re=o.y-$,oe=p.site,j=oe.x-P,q=oe.y-$,K=2*(z*q-re*j),ue=z*z+re*re,le=j*j+q*q,ee={x:(q*ue-re*le)/K+P,y:(z*le-j*ue)/K+$};Za(p.edge,I,oe,ee),O.edge=su(I,o,null,ee),p.edge=su(o,oe,null,ee),da(d),da(p)}}function bs(o,f){var h=o.site,d=h.x,p=h.y,m=p-f;if(!m)return d;var E=o.P;if(!E)return-1/0;h=E.site;var _=h.x,O=h.y,I=O-f;if(!I)return _;var P=_-d,$=1/m-1/I,z=P/I;return $?(-z+Math.sqrt(z*z-2*$*(P*P/(-2*I)-O+I/2+p-m/2)))/$+d:(d+_)/2}function Fd(o,f){var h=o.N;if(h)return bs(h,f);var d=o.site;return d.y===f?d.x:1/0}function Ss(o){this.site=o,this.edges=[]}Ss.prototype.prepare=function(){for(var o=this.edges,f=o.length,h;f--;)h=o[f].edge,(!h.b||!h.a)&&o.splice(f,1);return o.sort(Es),o.length};function Nd(o){for(var f=o[0][0],h=o[1][0],d=o[0][1],p=o[1][1],m,E,_,O,I=sa,P=I.length,$,z,re,oe,j,q;P--;)if($=I[P],!(!$||!$.prepare()))for(re=$.edges,oe=re.length,z=0;z<oe;)q=re[z].end(),_=q.x,O=q.y,j=re[++z%oe].start(),m=j.x,E=j.y,(A(_-m)>nr||A(O-E)>nr)&&(re.splice(z,0,new kl(jm($.site,q,A(_-f)<nr&&p-O>nr?{x:f,y:A(m-f)<nr?E:p}:A(O-p)<nr&&h-_>nr?{x:A(E-p)<nr?m:h,y:p}:A(_-h)<nr&&O-d>nr?{x:h,y:A(m-h)<nr?E:d}:A(O-d)<nr&&_-f>nr?{x:A(E-d)<nr?m:f,y:d}:null),$.site,null)),++oe)}function Es(o,f){return f.angle-o.angle}function Rd(){Ol(this),this.x=this.y=this.arc=this.site=this.cy=null}function da(o){var f=o.P,h=o.N;if(!(!f||!h)){var d=f.site,p=o.site,m=h.site;if(d!==m){var E=p.x,_=p.y,O=d.x-E,I=d.y-_,P=m.x-E,q=m.y-_,$=2*(O*q-I*P);if(!($>=-gd)){var z=O*O+I*I,re=P*P+q*q,oe=(q*z-I*re)/$,j=(O*re-P*z)/$,q=j+_,K=ha.pop()||new Rd;K.arc=o,K.site=p,K.x=oe+E,K.y=q+Math.sqrt(oe*oe+j*j),K.cy=q,o.circle=K;for(var ue=null,le=ca._;le;)if(K.y<le.y||K.y===le.y&&K.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}ca.insert(ue,K),ue||(uu=K)}}}}function Zn(o){var f=o.circle;f&&(f.P||(uu=f.N),ca.remove(f),ha.push(f),Ol(f),o.circle=null)}function As(o,f,h,d){return function(p){var m=p.a,E=p.b,_=m.x,O=m.y,I=E.x,P=E.y,$=0,z=1,re=I-_,oe=P-O,j;if(j=o-_,!(!re&&j>0)){if(j/=re,re<0){if(j<$)return;j<z&&(z=j)}else if(re>0){if(j>z)return;j>$&&($=j)}if(j=h-_,!(!re&&j<0)){if(j/=re,re<0){if(j>z)return;j>$&&($=j)}else if(re>0){if(j<$)return;j<z&&(z=j)}if(j=f-O,!(!oe&&j>0)){if(j/=oe,oe<0){if(j<$)return;j<z&&(z=j)}else if(oe>0){if(j>z)return;j>$&&($=j)}if(j=d-O,!(!oe&&j<0)){if(j/=oe,oe<0){if(j>z)return;j>$&&($=j)}else if(oe>0){if(j<$)return;j<z&&(z=j)}return $>0&&(p.a={x:_+$*re,y:O+$*oe}),z<1&&(p.b={x:_+z*re,y:O+z*oe}),p}}}}}}function Ts(o){for(var f=Qa,h=As(o[0][0],o[0][1],o[1][0],o[1][1]),d=f.length,p;d--;)p=f[d],(!fu(p,o)||!h(p)||A(p.a.x-p.b.x)<nr&&A(p.a.y-p.b.y)<nr)&&(p.a=p.b=null,f.splice(d,1))}function fu(o,f){var h=o.b;if(h)return!0;var d=o.a,p=f[0][0],m=f[1][0],E=f[0][1],_=f[1][1],O=o.l,I=o.r,P=O.x,$=O.y,z=I.x,re=I.y,oe=(P+z)/2,j=($+re)/2,q,K;if(re===$){if(oe<p||oe>=m)return;if(P>z){if(!d)d={x:oe,y:E};else if(d.y>=_)return;h={x:oe,y:_}}else{if(!d)d={x:oe,y:_};else if(d.y<E)return;h={x:oe,y:E}}}else if(q=(P-z)/(re-$),K=j-q*oe,q<-1||q>1)if(P>z){if(!d)d={x:(E-K)/q,y:E};else if(d.y>=_)return;h={x:(_-K)/q,y:_}}else{if(!d)d={x:(_-K)/q,y:_};else if(d.y<E)return;h={x:(E-K)/q,y:E}}else if($<re){if(!d)d={x:p,y:q*p+K};else if(d.x>=m)return;h={x:m,y:q*m+K}}else{if(!d)d={x:m,y:q*m+K};else if(d.x<p)return;h={x:p,y:q*p+K}}return o.a=d,o.b=h,!0}function Id(o,f){this.l=o,this.r=f,this.a=this.b=null}function su(o,f,h,d){var p=new Id(o,f);return Qa.push(p),h&&Za(p,o,f,h),d&&Za(p,f,o,d),sa[o.i].edges.push(new kl(p,o,f)),sa[f.i].edges.push(new kl(p,f,o)),p}function jm(o,f,h){var d=new Id(o,null);return d.a=f,d.b=h,Qa.push(d),d}function Za(o,f,h,d){!o.a&&!o.b?(o.a=d,o.l=f,o.r=h):o.l===h?o.b=d:o.a=d}function kl(o,f,h){var d=o.a,p=o.b;this.edge=o,this.site=f,this.angle=h?Math.atan2(h.y-f.y,h.x-f.x):o.l===f?Math.atan2(p.x-d.x,d.y-p.y):Math.atan2(d.x-p.x,p.y-d.y)}kl.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 Cs(){this._=null}function Ol(o){o.U=o.C=o.L=o.R=o.P=o.N=null}Cs.prototype={insert:function(o,f){var h,d,p;if(o){if(f.P=o,f.N=o.N,o.N&&(o.N.P=f),o.N=f,o.R){for(o=o.R;o.L;)o=o.L;o.L=f}else o.R=f;h=o}else this._?(o=Ml(this._),f.P=null,f.N=o,o.P=o.L=f,h=o):(f.P=f.N=null,this._=f,h=null);for(f.L=f.R=null,f.U=h,f.C=!0,o=f;h&&h.C;)d=h.U,h===d.L?(p=d.R,p&&p.C?(h.C=p.C=!1,d.C=!0,o=d):(o===h.R&&(pa(this,h),o=h,h=o.U),h.C=!1,d.C=!0,cu(this,d))):(p=d.L,p&&p.C?(h.C=p.C=!1,d.C=!0,o=d):(o===h.L&&(cu(this,h),o=h,h=o.U),h.C=!1,d.C=!0,pa(this,d))),h=o.U;this._.C=!1},remove:function(o){o.N&&(o.N.P=o.P),o.P&&(o.P.N=o.N),o.N=o.P=null;var f=o.U,h,d=o.L,p=o.R,m,E;if(d?p?m=Ml(p):m=d:m=p,f?f.L===o?f.L=m:f.R=m:this._=m,d&&p?(E=m.C,m.C=o.C,m.L=d,d.U=m,m!==p?(f=m.U,m.U=o.U,o=m.R,f.L=o,m.R=p,p.U=m):(m.U=f,f=m,o=m.R)):(E=o.C,o=m),o&&(o.U=f),!E){if(o&&o.C){o.C=!1;return}do{if(o===this._)break;if(o===f.L){if(h=f.R,h.C&&(h.C=!1,f.C=!0,pa(this,f),h=f.R),h.L&&h.L.C||h.R&&h.R.C){(!h.R||!h.R.C)&&(h.L.C=!1,h.C=!0,cu(this,h),h=f.R),h.C=f.C,f.C=h.R.C=!1,pa(this,f),o=this._;break}}else if(h=f.L,h.C&&(h.C=!1,f.C=!0,cu(this,f),h=f.L),h.L&&h.L.C||h.R&&h.R.C){(!h.L||!h.L.C)&&(h.R.C=!1,h.C=!0,pa(this,h),h=f.L),h.C=f.C,f.C=h.L.C=!1,cu(this,f),o=this._;break}h.C=!0,o=f,f=f.U}while(!o.C);o&&(o.C=!1)}}};function pa(o,f){var h=f,d=f.R,p=h.U;p?p.L===h?p.L=d:p.R=d:o._=d,d.U=p,h.U=d,h.R=d.L,h.R&&(h.R.U=h),d.L=h}function cu(o,f){var h=f,d=f.L,p=h.U;p?p.L===h?p.L=d:p.R=d:o._=d,d.U=p,h.U=d,h.L=d.R,h.L&&(h.L.U=h),d.R=h}function Ml(o){for(;o.L;)o=o.L;return o}function Fl(o,f){var h=o.sort(Pd).pop(),d,p,m;for(Qa=[],sa=new Array(o.length),Ui=new Cs,ca=new Cs;;)if(m=uu,h&&(!m||h.y<m.y||h.y===m.y&&h.x<m.x))(h.x!==d||h.y!==p)&&(sa[h.i]=new Ss(h),Md(h),d=h.x,p=h.y),h=o.pop();else if(m)ws(m.arc);else break;f&&(Ts(f),Nd(f));var E={cells:sa,edges:Qa};return Ui=ca=Qa=sa=null,E}function Pd(o,f){return f.y-o.y||f.x-o.x}t.geom.voronoi=function(o){var f=wi,h=bi,d=f,p=h,m=Ka;if(o)return E(o);function E(O){var I=new Array(O.length),P=m[0][0],$=m[0][1],z=m[1][0],re=m[1][1];return Fl(_(O),m).cells.forEach(function(oe,j){var q=oe.edges,K=oe.site,ue=I[j]=q.length?q.map(function(le){var ee=le.start();return[ee.x,ee.y]}):K.x>=P&&K.x<=z&&K.y>=$&&K.y<=re?[[P,re],[z,re],[z,$],[P,$]]:[];ue.point=O[j]}),I}function _(O){return O.map(function(I,P){return{x:Math.round(d(I,P)/nr)*nr,y:Math.round(p(I,P)/nr)*nr,i:P}})}return E.links=function(O){return Fl(_(O)).edges.filter(function(I){return I.l&&I.r}).map(function(I){return{source:O[I.l.i],target:O[I.r.i]}})},E.triangles=function(O){var I=[];return Fl(_(O)).cells.forEach(function(P,$){for(var z=P.site,re=P.edges.sort(Es),oe=-1,j=re.length,q,K=re[j-1].edge,ue=K.l===z?K.r:K.l;++oe<j;)q=ue,K=re[oe].edge,ue=K.l===z?K.r:K.l,$<q.i&&$<ue.i&&Gm(z,q,ue)<0&&I.push([O[$],O[q.i],O[ue.i]])}),I},E.x=function(O){return arguments.length?(d=vr(f=O),E):f},E.y=function(O){return arguments.length?(p=vr(h=O),E):h},E.clipExtent=function(O){return arguments.length?(m=O??Ka,E):m===Ka?null:m},E.size=function(O){return arguments.length?E.clipExtent(O&&[[0,0],O]):m===Ka?null:m&&m[1]},E};var Ka=[[-1e6,-1e6],[1e6,1e6]];function Gm(o,f,h){return(o.x-h.x)*(f.y-o.y)-(o.x-f.x)*(h.y-o.y)}t.geom.delaunay=function(o){return t.geom.voronoi().triangles(o)},t.geom.quadtree=function(o,f,h,d,p){var m=wi,E=bi,_;if(_=arguments.length)return m=Nl,E=Hm,_===3&&(p=h,d=f,h=f=0),O(o);function O(I){var P,$=vr(m),z=vr(E),re,oe,j,q,K,ue,le,ee;if(f!=null)K=f,ue=h,le=d,ee=p;else if(le=ee=-(K=ue=1/0),re=[],oe=[],q=I.length,_)for(j=0;j<q;++j)P=I[j],P.x<K&&(K=P.x),P.y<ue&&(ue=P.y),P.x>le&&(le=P.x),P.y>ee&&(ee=P.y),re.push(P.x),oe.push(P.y);else for(j=0;j<q;++j){var Me=+$(P=I[j],j),Be=+z(P,j);Me<K&&(K=Me),Be<ue&&(ue=Be),Me>le&&(le=Me),Be>ee&&(ee=Be),re.push(Me),oe.push(Be)}var Je=le-K,$e=ee-ue;Je>$e?ee=ue+Je:le=K+$e;function it(xt,zt,ir,Tr,hr,et,Ht,Vt){if(!(isNaN(ir)||isNaN(Tr)))if(xt.leaf){var ar=xt.x,wr=xt.y;if(ar!=null)if(A(ar-ir)+A(wr-Tr)<.01)dt(xt,zt,ir,Tr,hr,et,Ht,Vt);else{var Pr=xt.point;xt.x=xt.y=xt.point=null,dt(xt,Pr,ar,wr,hr,et,Ht,Vt),dt(xt,zt,ir,Tr,hr,et,Ht,Vt)}else xt.x=ir,xt.y=Tr,xt.point=zt}else dt(xt,zt,ir,Tr,hr,et,Ht,Vt)}function dt(xt,zt,ir,Tr,hr,et,Ht,Vt){var ar=(hr+Ht)*.5,wr=(et+Vt)*.5,Pr=ir>=ar,Wr=Tr>=wr,fn=Wr<<1|Pr;xt.leaf=!1,xt=xt.nodes[fn]||(xt.nodes[fn]=Ld()),Pr?hr=ar:Ht=ar,Wr?et=wr:Vt=wr,it(xt,zt,ir,Tr,hr,et,Ht,Vt)}var Gt=Ld();if(Gt.add=function(xt){it(Gt,xt,+$(xt,++j),+z(xt,j),K,ue,le,ee)},Gt.visit=function(xt){hu(xt,Gt,K,ue,le,ee)},Gt.find=function(xt){return Wm(Gt,xt[0],xt[1],K,ue,le,ee)},j=-1,f==null){for(;++j<q;)it(Gt,I[j],re[j],oe[j],K,ue,le,ee);--j}else I.forEach(Gt.add);return re=oe=I=P=null,Gt}return O.x=function(I){return arguments.length?(m=I,O):m},O.y=function(I){return arguments.length?(E=I,O):E},O.extent=function(I){return arguments.length?(I==null?f=h=d=p=null:(f=+I[0][0],h=+I[0][1],d=+I[1][0],p=+I[1][1]),O):f==null?null:[[f,h],[d,p]]},O.size=function(I){return arguments.length?(I==null?f=h=d=p=null:(f=h=0,d=+I[0],p=+I[1]),O):f==null?null:[d-f,p-h]},O};function Nl(o){return o.x}function Hm(o){return o.y}function Ld(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function hu(o,f,h,d,p,m){if(!o(f,h,d,p,m)){var E=(h+p)*.5,_=(d+m)*.5,O=f.nodes;O[0]&&hu(o,O[0],h,d,E,_),O[1]&&hu(o,O[1],E,d,p,_),O[2]&&hu(o,O[2],h,_,E,m),O[3]&&hu(o,O[3],E,_,p,m)}}function Wm(o,f,h,d,p,m,E){var _=1/0,O;return function I(P,$,z,re,oe){if(!($>m||z>E||re<d||oe<p)){if(j=P.point){var j,q=f-P.x,K=h-P.y,ue=q*q+K*K;if(ue<_){var le=Math.sqrt(_=ue);d=f-le,p=h-le,m=f+le,E=h+le,O=j}}for(var ee=P.nodes,Me=($+re)*.5,Be=(z+oe)*.5,Je=f>=Me,$e=h>=Be,it=$e<<1|Je,dt=it+4;it<dt;++it)if(P=ee[it&3])switch(it&3){case 0:I(P,$,z,Me,Be);break;case 1:I(P,Me,z,re,Be);break;case 2:I(P,$,Be,Me,oe);break;case 3:I(P,Me,Be,re,oe);break}}}(o,d,p,m,E),O}t.interpolateRgb=ks;function ks(o,f){o=t.rgb(o),f=t.rgb(f);var h=o.r,d=o.g,p=o.b,m=f.r-h,E=f.g-d,_=f.b-p;return function(O){return"#"+Wa(Math.round(h+m*O))+Wa(Math.round(d+E*O))+Wa(Math.round(p+_*O))}}t.interpolateObject=Dd;function Dd(o,f){var h={},d={},p;for(p in o)p in f?h[p]=li(o[p],f[p]):d[p]=o[p];for(p in f)p in o||(d[p]=f[p]);return function(m){for(p in h)d[p]=h[p](m);return d}}t.interpolateNumber=Si;function Si(o,f){return o=+o,f=+f,function(h){return o*(1-h)+f*h}}t.interpolateString=Os;function Os(o,f){var h=va.lastIndex=Ms.lastIndex=0,d,p,m,E=-1,_=[],O=[];for(o=o+"",f=f+"";(d=va.exec(o))&&(p=Ms.exec(f));)(m=p.index)>h&&(m=f.slice(h,m),_[E]?_[E]+=m:_[++E]=m),(d=d[0])===(p=p[0])?_[E]?_[E]+=p:_[++E]=p:(_[++E]=null,O.push({i:E,x:Si(d,p)})),h=Ms.lastIndex;return h<f.length&&(m=f.slice(h),_[E]?_[E]+=m:_[++E]=m),_.length<2?O[0]?(f=O[0].x,function(I){return f(I)+""}):function(){return f}:(f=O.length,function(I){for(var P=0,$;P<f;++P)_[($=O[P]).i]=$.x(I);return _.join("")})}var va=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ms=new RegExp(va.source,"g");t.interpolate=li;function li(o,f){for(var h=t.interpolators.length,d;--h>=0&&!(d=t.interpolators[h](o,f)););return d}t.interpolators=[function(o,f){var h=typeof f;return(h==="string"?Va.has(f.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(f)?ks:Os:f instanceof Di?ks:Array.isArray(f)?bn:h==="object"&&isNaN(f)?Dd:Si)(o,f)}],t.interpolateArray=bn;function bn(o,f){var h=[],d=[],p=o.length,m=f.length,E=Math.min(o.length,f.length),_;for(_=0;_<E;++_)h.push(li(o[_],f[_]));for(;_<p;++_)d[_]=o[_];for(;_<m;++_)d[_]=f[_];return function(O){for(_=0;_<E;++_)d[_]=h[_](O);return d}}var ma=function(){return lt},Bd=t.map({linear:ma,poly:Xr,quad:function(){return Ud},cubic:function(){return Vm},sin:function(){return jd},exp:function(){return Gd},circle:function(){return ga},elastic:Hd,back:Wd,bounce:function(){return qm}}),$d=t.map({in:lt,out:Fs,"in-out":Ns,"out-in":function(o){return Ns(Fs(o))}});t.ease=function(o){var f=o.indexOf("-"),h=f>=0?o.slice(0,f):o,d=f>=0?o.slice(f+1):"in";return h=Bd.get(h)||ma,d=$d.get(d)||lt,zd(d(h.apply(null,r.call(arguments,1))))};function zd(o){return function(f){return f<=0?0:f>=1?1:o(f)}}function Fs(o){return function(f){return 1-o(1-f)}}function Ns(o){return function(f){return .5*(f<.5?o(2*f):2-o(2-2*f))}}function Ud(o){return o*o}function Vm(o){return o*o*o}function Ja(o){if(o<=0)return 0;if(o>=1)return 1;var f=o*o,h=f*o;return 4*(o<.5?h:3*(o-f)+h-.75)}function Xr(o){return function(f){return Math.pow(f,o)}}function jd(o){return 1-Math.cos(o*ui)}function Gd(o){return Math.pow(2,10*(o-1))}function ga(o){return 1-Math.sqrt(1-o*o)}function Hd(o,f){var h;return arguments.length<2&&(f=.45),arguments.length?h=f/Ha*Math.asin(1/o):(o=1,h=f/4),function(d){return 1+o*Math.pow(2,-10*d)*Math.sin((d-h)*Ha/f)}}function Wd(o){return o||(o=1.70158),function(f){return f*f*((o+1)*f-o)}}function qm(o){return o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375}t.interpolateHcl=Ym;function Ym(o,f){o=t.hcl(o),f=t.hcl(f);var h=o.h,d=o.c,p=o.l,m=f.h-h,E=f.c-d,_=f.l-p;return isNaN(E)&&(E=0,d=isNaN(d)?f.c:d),isNaN(m)?(m=0,h=isNaN(h)?f.h:h):m>180?m-=360:m<-180&&(m+=360),function(O){return nu(h+m*O,d+E*O,p+_*O)+""}}t.interpolateHsl=Xm;function Xm(o,f){o=t.hsl(o),f=t.hsl(f);var h=o.h,d=o.s,p=o.l,m=f.h-h,E=f.s-d,_=f.l-p;return isNaN(E)&&(E=0,d=isNaN(d)?f.s:d),isNaN(m)?(m=0,h=isNaN(h)?f.h:h):m>180?m-=360:m<-180&&(m+=360),function(O){return xl(h+m*O,d+E*O,p+_*O)+""}}t.interpolateLab=Qm;function Qm(o,f){o=t.lab(o),f=t.lab(f);var h=o.l,d=o.a,p=o.b,m=f.l-h,E=f.a-d,_=f.b-p;return function(O){return Ed(h+m*O,d+E*O,p+_*O)+""}}t.interpolateRound=Rl;function Rl(o,f){return f-=o,function(h){return Math.round(o+f*h)}}t.transform=function(o){var f=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(h){if(h!=null){f.setAttribute("transform",h);var d=f.transform.baseVal.consolidate()}return new Rs(d?d.matrix:Zm)})(o)};function Rs(o){var f=[o.a,o.b],h=[o.c,o.d],d=Is(f),p=Vd(f,h),m=Is(qd(h,f,-p))||0;f[0]*h[1]<h[0]*f[1]&&(f[0]*=-1,f[1]*=-1,d*=-1,p*=-1),this.rotate=(d?Math.atan2(f[1],f[0]):Math.atan2(-h[0],h[1]))*Jo,this.translate=[o.e,o.f],this.scale=[d,m],this.skew=m?Math.atan2(p,m)*Jo:0}Rs.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function Vd(o,f){return o[0]*f[0]+o[1]*f[1]}function Is(o){var f=Math.sqrt(Vd(o,o));return f&&(o[0]/=f,o[1]/=f),f}function qd(o,f,h){return o[0]+=h*f[0],o[1]+=h*f[1],o}var Zm={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=Ps;function Ei(o){return o.length?o.pop()+",":""}function Km(o,f,h,d){if(o[0]!==f[0]||o[1]!==f[1]){var p=h.push("translate(",null,",",null,")");d.push({i:p-4,x:Si(o[0],f[0])},{i:p-2,x:Si(o[1],f[1])})}else(f[0]||f[1])&&h.push("translate("+f+")")}function ji(o,f,h,d){o!==f?(o-f>180?f+=360:f-o>180&&(o+=360),d.push({i:h.push(Ei(h)+"rotate(",null,")")-2,x:Si(o,f)})):f&&h.push(Ei(h)+"rotate("+f+")")}function Il(o,f,h,d){o!==f?d.push({i:h.push(Ei(h)+"skewX(",null,")")-2,x:Si(o,f)}):f&&h.push(Ei(h)+"skewX("+f+")")}function Yd(o,f,h,d){if(o[0]!==f[0]||o[1]!==f[1]){var p=h.push(Ei(h)+"scale(",null,",",null,")");d.push({i:p-4,x:Si(o[0],f[0])},{i:p-2,x:Si(o[1],f[1])})}else(f[0]!==1||f[1]!==1)&&h.push(Ei(h)+"scale("+f+")")}function Ps(o,f){var h=[],d=[];return o=t.transform(o),f=t.transform(f),Km(o.translate,f.translate,h,d),ji(o.rotate,f.rotate,h,d),Il(o.skew,f.skew,h,d),Yd(o.scale,f.scale,h,d),o=f=null,function(p){for(var m=-1,E=d.length,_;++m<E;)h[(_=d[m]).i]=_.x(p);return h.join("")}}function Xd(o,f){return f=(f-=o=+o)||1/f,function(h){return(h-o)/f}}function Qd(o,f){return f=(f-=o=+o)||1/f,function(h){return Math.max(0,Math.min(1,(h-o)/f))}}t.layout={},t.layout.bundle=function(){return function(o){for(var f=[],h=-1,d=o.length;++h<d;)f.push(Zd(o[h]));return f}};function Zd(o){for(var f=o.source,h=o.target,d=Kd(f,h),p=[f];f!==d;)f=f.parent,p.push(f);for(var m=p.length;h!==d;)p.splice(m,0,h),h=h.parent;return p}function Ls(o){for(var f=[],h=o.parent;h!=null;)f.push(o),o=h,h=h.parent;return f.push(o),f}function Kd(o,f){if(o===f)return o;for(var h=Ls(o),d=Ls(f),p=h.pop(),m=d.pop(),E=null;p===m;)E=p,p=h.pop(),m=d.pop();return E}t.layout.chord=function(){var o={},f,h,d,p,m=0,E,_,O;function I(){var $={},z=[],re=t.range(p),oe=[],j,q,K,ue,le;for(f=[],h=[],j=0,ue=-1;++ue<p;){for(q=0,le=-1;++le<p;)q+=d[ue][le];z.push(q),oe.push(t.range(p)),j+=q}for(E&&re.sort(function(Gt,xt){return E(z[Gt],z[xt])}),_&&oe.forEach(function(Gt,xt){Gt.sort(function(zt,ir){return _(d[xt][zt],d[xt][ir])})}),j=(Ha-m*p)/j,q=0,ue=-1;++ue<p;){for(K=q,le=-1;++le<p;){var ee=re[ue],Me=oe[ee][le],Be=d[ee][Me],Je=q,$e=q+=Be*j;$[ee+"-"+Me]={index:ee,subindex:Me,startAngle:Je,endAngle:$e,value:Be}}h[ee]={index:ee,startAngle:K,endAngle:q,value:z[ee]},q+=m}for(ue=-1;++ue<p;)for(le=ue-1;++le<p;){var it=$[ue+"-"+le],dt=$[le+"-"+ue];(it.value||dt.value)&&f.push(it.value<dt.value?{source:dt,target:it}:{source:it,target:dt})}O&&P()}function P(){f.sort(function($,z){return O(($.source.value+$.target.value)/2,(z.source.value+z.target.value)/2)})}return o.matrix=function($){return arguments.length?(p=(d=$)&&d.length,f=h=null,o):d},o.padding=function($){return arguments.length?(m=$,f=h=null,o):m},o.sortGroups=function($){return arguments.length?(E=$,f=h=null,o):E},o.sortSubgroups=function($){return arguments.length?(_=$,f=null,o):_},o.sortChords=function($){return arguments.length?(O=$,f&&P(),o):O},o.chords=function(){return f||I(),f},o.groups=function(){return h||I(),h},o},t.layout.force=function(){var o={},f=t.dispatch("start","tick","end"),h,d=[1,1],p,m,E=.9,_=Ai,O=Ds,I=-30,P=eo,$=.1,z=.64,re=[],oe=[],j,q,K;function ue(ee){return function(Me,Be,Je,$e){if(Me.point!==ee){var it=Me.cx-ee.x,dt=Me.cy-ee.y,Gt=$e-Be,xt=it*it+dt*dt;if(Gt*Gt/z<xt){if(xt<P){var zt=Me.charge/xt;ee.px-=it*zt,ee.py-=dt*zt}return!0}if(Me.point&&xt&&xt<P){var zt=Me.pointCharge/xt;ee.px-=it*zt,ee.py-=dt*zt}}return!Me.charge}}o.tick=function(){if((m*=.99)<.005)return h=null,f.end({type:"end",alpha:m=0}),!0;var ee=re.length,Me=oe.length,Be,Je,$e,it,dt,Gt,xt,zt,ir;for(Je=0;Je<Me;++Je)$e=oe[Je],it=$e.source,dt=$e.target,zt=dt.x-it.x,ir=dt.y-it.y,(Gt=zt*zt+ir*ir)&&(Gt=m*q[Je]*((Gt=Math.sqrt(Gt))-j[Je])/Gt,zt*=Gt,ir*=Gt,dt.x-=zt*(xt=it.weight+dt.weight?it.weight/(it.weight+dt.weight):.5),dt.y-=ir*xt,it.x+=zt*(xt=1-xt),it.y+=ir*xt);if((xt=m*$)&&(zt=d[0]/2,ir=d[1]/2,Je=-1,xt))for(;++Je<ee;)$e=re[Je],$e.x+=(zt-$e.x)*xt,$e.y+=(ir-$e.y)*xt;if(I)for(rp(Be=t.geom.quadtree(re),m,K),Je=-1;++Je<ee;)($e=re[Je]).fixed||Be.visit(ue($e));for(Je=-1;++Je<ee;)$e=re[Je],$e.fixed?($e.x=$e.px,$e.y=$e.py):($e.x-=($e.px-($e.px=$e.x))*E,$e.y-=($e.py-($e.py=$e.y))*E);f.tick({type:"tick",alpha:m})},o.nodes=function(ee){return arguments.length?(re=ee,o):re},o.links=function(ee){return arguments.length?(oe=ee,o):oe},o.size=function(ee){return arguments.length?(d=ee,o):d},o.linkDistance=function(ee){return arguments.length?(_=typeof ee=="function"?ee:+ee,o):_},o.distance=o.linkDistance,o.linkStrength=function(ee){return arguments.length?(O=typeof ee=="function"?ee:+ee,o):O},o.friction=function(ee){return arguments.length?(E=+ee,o):E},o.charge=function(ee){return arguments.length?(I=typeof ee=="function"?ee:+ee,o):I},o.chargeDistance=function(ee){return arguments.length?(P=ee*ee,o):Math.sqrt(P)},o.gravity=function(ee){return arguments.length?($=+ee,o):$},o.theta=function(ee){return arguments.length?(z=ee*ee,o):Math.sqrt(z)},o.alpha=function(ee){return arguments.length?(ee=+ee,m?ee>0?m=ee:(h.c=null,h.t=NaN,h=null,f.end({type:"end",alpha:m=0})):ee>0&&(f.start({type:"start",alpha:m=ee}),h=qa(o.tick)),o):m},o.start=function(){var ee,Me=re.length,Be=oe.length,Je=d[0],$e=d[1],it,dt;for(ee=0;ee<Me;++ee)(dt=re[ee]).index=ee,dt.weight=0;for(ee=0;ee<Be;++ee)dt=oe[ee],typeof dt.source=="number"&&(dt.source=re[dt.source]),typeof dt.target=="number"&&(dt.target=re[dt.target]),++dt.source.weight,++dt.target.weight;for(ee=0;ee<Me;++ee)dt=re[ee],isNaN(dt.x)&&(dt.x=Gt("x",Je)),isNaN(dt.y)&&(dt.y=Gt("y",$e)),isNaN(dt.px)&&(dt.px=dt.x),isNaN(dt.py)&&(dt.py=dt.y);if(j=[],typeof _=="function")for(ee=0;ee<Be;++ee)j[ee]=+_.call(this,oe[ee],ee);else for(ee=0;ee<Be;++ee)j[ee]=_;if(q=[],typeof O=="function")for(ee=0;ee<Be;++ee)q[ee]=+O.call(this,oe[ee],ee);else for(ee=0;ee<Be;++ee)q[ee]=O;if(K=[],typeof I=="function")for(ee=0;ee<Me;++ee)K[ee]=+I.call(this,re[ee],ee);else for(ee=0;ee<Me;++ee)K[ee]=I;function Gt(xt,zt){if(!it){for(it=new Array(Me),hr=0;hr<Me;++hr)it[hr]=[];for(hr=0;hr<Be;++hr){var ir=oe[hr];it[ir.source.index].push(ir.target),it[ir.target.index].push(ir.source)}}for(var Tr=it[ee],hr=-1,et=Tr.length,Ht;++hr<et;)if(!isNaN(Ht=Tr[hr][xt]))return Ht;return Math.random()*zt}return o.resume()},o.resume=function(){return o.alpha(.1)},o.stop=function(){return o.alpha(0)},o.drag=function(){if(p||(p=t.behavior.drag().origin(lt).on("dragstart.force",Jd).on("drag.force",le).on("dragend.force",ep)),!arguments.length)return p;this.on("mouseover.force",Kn).on("mouseout.force",tp).call(p)};function le(ee){ee.px=t.event.x,ee.py=t.event.y,o.resume()}return t.rebind(o,f,"on")};function Jd(o){o.fixed|=2}function ep(o){o.fixed&=-7}function Kn(o){o.fixed|=4,o.px=o.x,o.py=o.y}function tp(o){o.fixed&=-5}function rp(o,f,h){var d=0,p=0;if(o.charge=0,!o.leaf)for(var m=o.nodes,E=m.length,_=-1,O;++_<E;)O=m[_],O!=null&&(rp(O,f,h),o.charge+=O.charge,d+=O.charge*O.cx,p+=O.charge*O.cy);if(o.point){o.leaf||(o.point.x+=Math.random()-.5,o.point.y+=Math.random()-.5);var I=f*h[o.point.index];o.charge+=o.pointCharge=I,d+=I*o.point.x,p+=I*o.point.y}o.cx=d/o.charge,o.cy=p/o.charge}var Ai=20,Ds=1,eo=1/0;t.layout.hierarchy=function(){var o=Jm,f=np,h=ip;function d(p){var m=[p],E=[],_;for(p.depth=0;(_=m.pop())!=null;)if(E.push(_),(I=f.call(d,_,_.depth))&&(O=I.length)){for(var O,I,P;--O>=0;)m.push(P=I[O]),P.parent=_,P.depth=_.depth+1;h&&(_.value=0),_.children=I}else h&&(_.value=+h.call(d,_,_.depth)||0),delete _.children;return Jn(p,function($){var z,re;o&&(z=$.children)&&z.sort(o),h&&(re=$.parent)&&(re.value+=$.value)}),E}return d.sort=function(p){return arguments.length?(o=p,d):o},d.children=function(p){return arguments.length?(f=p,d):f},d.value=function(p){return arguments.length?(h=p,d):h},d.revalue=function(p){return h&&(ro(p,function(m){m.children&&(m.value=0)}),Jn(p,function(m){var E;m.children||(m.value=+h.call(d,m,m.depth)||0),(E=m.parent)&&(E.value+=m.value)})),p},d};function to(o,f){return t.rebind(o,f,"sort","children","value"),o.nodes=o,o.links=eg,o}function ro(o,f){for(var h=[o];(o=h.pop())!=null;)if(f(o),(p=o.children)&&(d=p.length))for(var d,p;--d>=0;)h.push(p[d])}function Jn(o,f){for(var h=[o],d=[];(o=h.pop())!=null;)if(d.push(o),(E=o.children)&&(m=E.length))for(var p=-1,m,E;++p<m;)h.push(E[p]);for(;(o=d.pop())!=null;)f(o)}function np(o){return o.children}function ip(o){return o.value}function Jm(o,f){return f.value-o.value}function eg(o){return t.merge(o.map(function(f){return(f.children||[]).map(function(h){return{source:f,target:h}})}))}t.layout.partition=function(){var o=t.layout.hierarchy(),f=[1,1];function h(m,E,_,O){var I=m.children;if(m.x=E,m.y=m.depth*O,m.dx=_,m.dy=O,I&&($=I.length)){var P=-1,$,z,re;for(_=m.value?_/m.value:0;++P<$;)h(z=I[P],E,re=z.value*_,O),E+=re}}function d(m){var E=m.children,_=0;if(E&&(I=E.length))for(var O=-1,I;++O<I;)_=Math.max(_,d(E[O]));return 1+_}function p(m,E){var _=o.call(this,m,E);return h(_[0],0,f[0],f[1]/d(_[0])),_}return p.size=function(m){return arguments.length?(f=m,p):f},to(p,o)},t.layout.pie=function(){var o=Number,f=ap,h=0,d=Ha,p=0;function m(E){var _=E.length,O=E.map(function(ue,le){return+o.call(m,ue,le)}),I=+(typeof h=="function"?h.apply(this,arguments):h),P=(typeof d=="function"?d.apply(this,arguments):d)-I,$=Math.min(Math.abs(P)/_,+(typeof p=="function"?p.apply(this,arguments):p)),z=$*(P<0?-1:1),re=t.sum(O),oe=re?(P-_*z)/re:0,j=t.range(_),q=[],K;return f!=null&&j.sort(f===ap?function(ue,le){return O[le]-O[ue]}:function(ue,le){return f(E[ue],E[le])}),j.forEach(function(ue){q[ue]={data:E[ue],value:K=O[ue],startAngle:I,endAngle:I+=K*oe+z,padAngle:$}}),q}return m.value=function(E){return arguments.length?(o=E,m):o},m.sort=function(E){return arguments.length?(f=E,m):f},m.startAngle=function(E){return arguments.length?(h=E,m):h},m.endAngle=function(E){return arguments.length?(d=E,m):d},m.padAngle=function(E){return arguments.length?(p=E,m):p},m};var ap={};t.layout.stack=function(){var o=lt,f=$s,h=zs,d=ng,p=tg,m=rg;function E(_,O){if(!(oe=_.length))return _;var I=_.map(function(ue,le){return o.call(E,ue,le)}),P=I.map(function(ue){return ue.map(function(le,ee){return[p.call(E,le,ee),m.call(E,le,ee)]})}),$=f.call(E,P,O);I=t.permute(I,$),P=t.permute(P,$);var z=h.call(E,P,O),re=I[0].length,oe,j,q,K;for(q=0;q<re;++q)for(d.call(E,I[0][q],K=z[q],P[0][q][1]),j=1;j<oe;++j)d.call(E,I[j][q],K+=P[j-1][q][1],P[j][q][1]);return _}return E.values=function(_){return arguments.length?(o=_,E):o},E.order=function(_){return arguments.length?(f=typeof _=="function"?_:Bs.get(_)||$s,E):f},E.offset=function(_){return arguments.length?(h=typeof _=="function"?_:Pl.get(_)||zs,E):h},E.x=function(_){return arguments.length?(p=_,E):p},E.y=function(_){return arguments.length?(m=_,E):m},E.out=function(_){return arguments.length?(d=_,E):d},E};function tg(o){return o.x}function rg(o){return o.y}function ng(o,f,h){o.y0=f,o.y=h}var Bs=t.map({"inside-out":function(o){var f=o.length,h,d,p=o.map(op),m=o.map(Ll),E=t.range(f).sort(function($,z){return p[$]-p[z]}),_=0,O=0,I=[],P=[];for(h=0;h<f;++h)d=E[h],_<O?(_+=m[d],I.push(d)):(O+=m[d],P.push(d));return P.reverse().concat(I)},reverse:function(o){return t.range(o.length).reverse()},default:$s}),Pl=t.map({silhouette:function(o){var f=o.length,h=o[0].length,d=[],p=0,m,E,_,O=[];for(E=0;E<h;++E){for(m=0,_=0;m<f;m++)_+=o[m][E][1];_>p&&(p=_),d.push(_)}for(E=0;E<h;++E)O[E]=(p-d[E])/2;return O},wiggle:function(o){var f=o.length,h=o[0],d=h.length,p,m,E,_,O,I,P,$,z,re=[];for(re[0]=$=z=0,m=1;m<d;++m){for(p=0,_=0;p<f;++p)_+=o[p][m][1];for(p=0,O=0,P=h[m][0]-h[m-1][0];p<f;++p){for(E=0,I=(o[p][m][1]-o[p][m-1][1])/(2*P);E<p;++E)I+=(o[E][m][1]-o[E][m-1][1])/P;O+=I*o[p][m][1]}re[m]=$-=_?O/_*P:0,$<z&&(z=$)}for(m=0;m<d;++m)re[m]-=z;return re},expand:function(o){var f=o.length,h=o[0].length,d=1/f,p,m,E,_=[];for(m=0;m<h;++m){for(p=0,E=0;p<f;p++)E+=o[p][m][1];if(E)for(p=0;p<f;p++)o[p][m][1]/=E;else for(p=0;p<f;p++)o[p][m][1]=d}for(m=0;m<h;++m)_[m]=0;return _},zero:zs});function $s(o){return t.range(o.length)}function zs(o){for(var f=-1,h=o[0].length,d=[];++f<h;)d[f]=0;return d}function op(o){for(var f=1,h=0,d=o[0][1],p,m=o.length;f<m;++f)(p=o[f][1])>d&&(h=f,d=p);return h}function Ll(o){return o.reduce(Us,0)}function Us(o,f){return o+f[1]}t.layout.histogram=function(){var o=!0,f=Number,h=ag,d=ig;function p(m,z){for(var _=[],O=m.map(f,this),I=h.call(this,O,z),P=d.call(this,I,O,z),$,z=-1,re=O.length,oe=P.length-1,j=o?1:1/re,q;++z<oe;)$=_[z]=[],$.dx=P[z+1]-($.x=P[z]),$.y=0;if(oe>0)for(z=-1;++z<re;)q=O[z],q>=I[0]&&q<=I[1]&&($=_[t.bisect(P,q,1,oe)-1],$.y+=j,$.push(m[z]));return _}return p.value=function(m){return arguments.length?(f=m,p):f},p.range=function(m){return arguments.length?(h=vr(m),p):h},p.bins=function(m){return arguments.length?(d=typeof m=="number"?function(E){return js(E,m)}:vr(m),p):d},p.frequency=function(m){return arguments.length?(o=!!m,p):o},p};function ig(o,f){return js(o,Math.ceil(Math.log(f.length)/Math.LN2+1))}function js(o,f){for(var h=-1,d=+o[0],p=(o[1]-d)/f,m=[];++h<=f;)m[h]=p*h+d;return m}function ag(o){return[t.min(o),t.max(o)]}t.layout.pack=function(){var o=t.layout.hierarchy().sort(og),f=0,h=[1,1],d;function p(m,E){var _=o.call(this,m,E),O=_[0],I=h[0],P=h[1],$=d==null?Math.sqrt:typeof d=="function"?d:function(){return d};if(O.x=O.y=0,Jn(O,function(re){re.r=+$(re.value)}),Jn(O,Hs),f){var z=f*(d?1:Math.max(2*O.r/I,2*O.r/P))/2;Jn(O,function(re){re.r+=z}),Jn(O,Hs),Jn(O,function(re){re.r-=z})}return fp(O,I/2,P/2,d?1:1/Math.max(2*O.r/I,2*O.r/P)),_}return p.size=function(m){return arguments.length?(h=m,p):h},p.radius=function(m){return arguments.length?(d=m==null||typeof m=="function"?m:+m,p):d},p.padding=function(m){return arguments.length?(f=+m,p):f},to(p,o)};function og(o,f){return o.value-f.value}function Gs(o,f){var h=o._pack_next;o._pack_next=f,f._pack_prev=o,f._pack_next=h,h._pack_prev=f}function up(o,f){o._pack_next=f,f._pack_prev=o}function lp(o,f){var h=f.x-o.x,d=f.y-o.y,p=o.r+f.r;return .999*p*p>h*h+d*d}function Hs(o){if(!(f=o.children)||!(z=f.length))return;var f,h=1/0,d=-1/0,p=1/0,m=-1/0,E,_,O,I,P,$,z;function re(ee){h=Math.min(ee.x-ee.r,h),d=Math.max(ee.x+ee.r,d),p=Math.min(ee.y-ee.r,p),m=Math.max(ee.y+ee.r,m)}if(f.forEach(ug),E=f[0],E.x=-E.r,E.y=0,re(E),z>1&&(_=f[1],_.x=_.r,_.y=0,re(_),z>2))for(O=f[2],sp(E,_,O),re(O),Gs(E,O),E._pack_prev=O,Gs(O,_),_=E._pack_next,I=3;I<z;I++){sp(E,_,O=f[I]);var oe=0,j=1,q=1;for(P=_._pack_next;P!==_;P=P._pack_next,j++)if(lp(P,O)){oe=1;break}if(oe==1)for($=E._pack_prev;$!==P._pack_prev&&!lp($,O);$=$._pack_prev,q++);oe?(j<q||j==q&&_.r<E.r?up(E,_=P):up(E=$,_),I--):(Gs(E,O),_=O,re(O))}var K=(h+d)/2,ue=(p+m)/2,le=0;for(I=0;I<z;I++)O=f[I],O.x-=K,O.y-=ue,le=Math.max(le,O.r+Math.sqrt(O.x*O.x+O.y*O.y));o.r=le,f.forEach(lg)}function ug(o){o._pack_next=o._pack_prev=o}function lg(o){delete o._pack_next,delete o._pack_prev}function fp(o,f,h,d){var p=o.children;if(o.x=f+=d*o.x,o.y=h+=d*o.y,o.r*=d,p)for(var m=-1,E=p.length;++m<E;)fp(p[m],f,h,d)}function sp(o,f,h){var d=o.r+h.r,p=f.x-o.x,m=f.y-o.y;if(d&&(p||m)){var E=f.r+h.r,_=p*p+m*m;E*=E,d*=d;var O=.5+(d-E)/(2*_),I=Math.sqrt(Math.max(0,2*E*(d+_)-(d-=_)*d-E*E))/(2*_);h.x=o.x+O*p+I*m,h.y=o.y+O*m-I*p}else h.x=o.x+d,h.y=o.y}t.layout.tree=function(){var o=t.layout.hierarchy().sort(null).value(null),f=cp,h=[1,1],d=null;function p(P,$){var z=o.call(this,P,$),re=z[0],oe=m(re);if(Jn(oe,E),oe.parent.m=-oe.z,ro(oe,_),d)ro(re,I);else{var j=re,q=re,K=re;ro(re,function(Me){Me.x<j.x&&(j=Me),Me.x>q.x&&(q=Me),Me.depth>K.depth&&(K=Me)});var ue=f(j,q)/2-j.x,le=h[0]/(q.x+f(q,j)/2+ue),ee=h[1]/(K.depth||1);ro(re,function(Me){Me.x=(Me.x+ue)*le,Me.y=Me.depth*ee})}return z}function m(P){for(var $={A:null,children:[P]},z=[$],re;(re=z.pop())!=null;)for(var oe=re.children,j,q=0,K=oe.length;q<K;++q)z.push((oe[q]=j={_:oe[q],parent:re,children:(j=oe[q].children)&&j.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:q}).a=j);return $.children[0]}function E(P){var $=P.children,z=P.parent.children,re=P.i?z[P.i-1]:null;if($.length){sg(P);var oe=($[0].z+$[$.length-1].z)/2;re?(P.z=re.z+f(P._,re._),P.m=P.z-oe):P.z=oe}else re&&(P.z=re.z+f(P._,re._));P.parent.A=O(P,re,P.parent.A||z[0])}function _(P){P._.x=P.z+P.parent.m,P.m+=P.parent.m}function O(P,$,z){if($){for(var re=P,oe=P,j=$,q=re.parent.children[0],K=re.m,ue=oe.m,le=j.m,ee=q.m,Me;j=Vs(j),re=Ws(re),j&&re;)q=Ws(q),oe=Vs(oe),oe.a=P,Me=j.z+le-re.z-K+f(j._,re._),Me>0&&(fg(fi(j,P,z),P,Me),K+=Me,ue+=Me),le+=j.m,K+=re.m,ee+=q.m,ue+=oe.m;j&&!Vs(oe)&&(oe.t=j,oe.m+=le-ue),re&&!Ws(q)&&(q.t=re,q.m+=K-ee,z=P)}return z}function I(P){P.x*=h[0],P.y=P.depth*h[1]}return p.separation=function(P){return arguments.length?(f=P,p):f},p.size=function(P){return arguments.length?(d=(h=P)==null?I:null,p):d?null:h},p.nodeSize=function(P){return arguments.length?(d=(h=P)==null?null:I,p):d?h:null},to(p,o)};function cp(o,f){return o.parent==f.parent?1:2}function Ws(o){var f=o.children;return f.length?f[0]:o.t}function Vs(o){var f=o.children,h;return(h=f.length)?f[h-1]:o.t}function fg(o,f,h){var d=h/(f.i-o.i);f.c-=d,f.s+=h,o.c+=d,f.z+=h,f.m+=h}function sg(o){for(var f=0,h=0,d=o.children,p=d.length,m;--p>=0;)m=d[p],m.z+=f,m.m+=f,f+=m.s+(h+=m.c)}function fi(o,f,h){return o.a.parent===f.parent?o.a:h}t.layout.cluster=function(){var o=t.layout.hierarchy().sort(null).value(null),f=cp,h=[1,1],d=!1;function p(m,E){var _=o.call(this,m,E),O=_[0],I,P=0;Jn(O,function(j){var q=j.children;q&&q.length?(j.x=cg(q),j.y=hp(q)):(j.x=I?P+=f(j,I):0,j.y=0,I=j)});var $=dp(O),z=pp(O),re=$.x-f($,z)/2,oe=z.x+f(z,$)/2;return Jn(O,d?function(j){j.x=(j.x-O.x)*h[0],j.y=(O.y-j.y)*h[1]}:function(j){j.x=(j.x-re)/(oe-re)*h[0],j.y=(1-(O.y?j.y/O.y:1))*h[1]}),_}return p.separation=function(m){return arguments.length?(f=m,p):f},p.size=function(m){return arguments.length?(d=(h=m)==null,p):d?null:h},p.nodeSize=function(m){return arguments.length?(d=(h=m)!=null,p):d?h:null},to(p,o)};function hp(o){return 1+t.max(o,function(f){return f.y})}function cg(o){return o.reduce(function(f,h){return f+h.x},0)/o.length}function dp(o){var f=o.children;return f&&f.length?dp(f[0]):o}function pp(o){var f=o.children,h;return f&&(h=f.length)?pp(f[h-1]):o}t.layout.treemap=function(){var o=t.layout.hierarchy(),f=Math.round,h=[1,1],d=null,p=qs,m=!1,E,_="squarify",O=.5*(1+Math.sqrt(5));function I(j,q){for(var K=-1,ue=j.length,le,ee;++K<ue;)ee=(le=j[K]).value*(q<0?0:q),le.area=isNaN(ee)||ee<=0?0:ee}function P(j){var q=j.children;if(q&&q.length){var K=p(j),ue=[],le=q.slice(),ee,Me=1/0,Be,Je=_==="slice"?K.dx:_==="dice"?K.dy:_==="slice-dice"?j.depth&1?K.dy:K.dx:Math.min(K.dx,K.dy),$e;for(I(le,K.dx*K.dy/j.value),ue.area=0;($e=le.length)>0;)ue.push(ee=le[$e-1]),ue.area+=ee.area,_!=="squarify"||(Be=z(ue,Je))<=Me?(le.pop(),Me=Be):(ue.area-=ue.pop().area,re(ue,Je,K,!1),Je=Math.min(K.dx,K.dy),ue.length=ue.area=0,Me=1/0);ue.length&&(re(ue,Je,K,!0),ue.length=ue.area=0),q.forEach(P)}}function $(j){var q=j.children;if(q&&q.length){var K=p(j),ue=q.slice(),le,ee=[];for(I(ue,K.dx*K.dy/j.value),ee.area=0;le=ue.pop();)ee.push(le),ee.area+=le.area,le.z!=null&&(re(ee,le.z?K.dx:K.dy,K,!ue.length),ee.length=ee.area=0);q.forEach($)}}function z(j,q){for(var K=j.area,ue,le=0,ee=1/0,Me=-1,Be=j.length;++Me<Be;)(ue=j[Me].area)&&(ue<ee&&(ee=ue),ue>le&&(le=ue));return K*=K,q*=q,K?Math.max(q*le*O/K,K/(q*ee*O)):1/0}function re(j,q,K,ue){var le=-1,ee=j.length,Me=K.x,Be=K.y,Je=q?f(j.area/q):0,$e;if(q==K.dx){for((ue||Je>K.dy)&&(Je=K.dy);++le<ee;)$e=j[le],$e.x=Me,$e.y=Be,$e.dy=Je,Me+=$e.dx=Math.min(K.x+K.dx-Me,Je?f($e.area/Je):0);$e.z=!0,$e.dx+=K.x+K.dx-Me,K.y+=Je,K.dy-=Je}else{for((ue||Je>K.dx)&&(Je=K.dx);++le<ee;)$e=j[le],$e.x=Me,$e.y=Be,$e.dx=Je,Be+=$e.dy=Math.min(K.y+K.dy-Be,Je?f($e.area/Je):0);$e.z=!1,$e.dy+=K.y+K.dy-Be,K.x+=Je,K.dx-=Je}}function oe(j){var q=E||o(j),K=q[0];return K.x=K.y=0,K.value?(K.dx=h[0],K.dy=h[1]):K.dx=K.dy=0,E&&o.revalue(K),I([K],K.dx*K.dy/K.value),(E?$:P)(K),m&&(E=q),q}return oe.size=function(j){return arguments.length?(h=j,oe):h},oe.padding=function(j){if(!arguments.length)return d;function q(le){var ee=j.call(oe,le,le.depth);return ee==null?qs(le):vp(le,typeof ee=="number"?[ee,ee,ee,ee]:ee)}function K(le){return vp(le,j)}var ue;return p=(d=j)==null?qs:(ue=typeof j)=="function"?q:(ue==="number"&&(j=[j,j,j,j]),K),oe},oe.round=function(j){return arguments.length?(f=j?Math.round:Number,oe):f!=Number},oe.sticky=function(j){return arguments.length?(m=j,E=null,oe):m},oe.ratio=function(j){return arguments.length?(O=j,oe):O},oe.mode=function(j){return arguments.length?(_=j+"",oe):_},to(oe,o)};function qs(o){return{x:o.x,y:o.y,dx:o.dx,dy:o.dy}}function vp(o,f){var h=o.x+f[3],d=o.y+f[0],p=o.dx-f[1]-f[3],m=o.dy-f[0]-f[2];return p<0&&(h+=p/2,p=0),m<0&&(d+=m/2,m=0),{x:h,y:d,dx:p,dy:m}}t.random={normal:function(o,f){var h=arguments.length;return h<2&&(f=1),h<1&&(o=0),function(){var d,p,m;do d=Math.random()*2-1,p=Math.random()*2-1,m=d*d+p*p;while(!m||m>1);return o+f*d*Math.sqrt(-2*Math.log(m)/m)}},logNormal:function(){var o=t.random.normal.apply(t,arguments);return function(){return Math.exp(o())}},bates:function(o){var f=t.random.irwinHall(o);return function(){return f()/o}},irwinHall:function(o){return function(){for(var f=0,h=0;h<o;h++)f+=Math.random();return f}}},t.scale={};function Dl(o){var f=o[0],h=o[o.length-1];return f<h?[f,h]:[h,f]}function Bl(o){return o.rangeExtent?o.rangeExtent():Dl(o.range())}function hg(o,f,h,d){var p=h(o[0],o[1]),m=d(f[0],f[1]);return function(E){return m(p(E))}}function zr(o,f){var h=0,d=o.length-1,p=o[h],m=o[d],E;return m<p&&(E=h,h=d,d=E,E=p,p=m,m=E),o[h]=f.floor(p),o[d]=f.ceil(m),o}function ya(o){return o?{floor:function(f){return Math.floor(f/o)*o},ceil:function(f){return Math.ceil(f/o)*o}}:no}var no={floor:lt,ceil:lt};function dg(o,f,h,d){var p=[],m=[],E=0,_=Math.min(o.length,f.length)-1;for(o[_]<o[0]&&(o=o.slice().reverse(),f=f.slice().reverse());++E<=_;)p.push(h(o[E-1],o[E])),m.push(d(f[E-1],f[E]));return function(O){var I=t.bisect(o,O,1,_)-1;return m[I](p[I](O))}}t.scale.linear=function(){return xa([0,1],[0,1],li,!1)};function xa(o,f,h,d){var p,m;function E(){var O=Math.min(o.length,f.length)>2?dg:hg,I=d?Qd:Xd;return p=O(o,f,I,h),m=O(f,o,I,li),_}function _(O){return p(O)}return _.invert=function(O){return m(O)},_.domain=function(O){return arguments.length?(o=O.map(Number),E()):o},_.range=function(O){return arguments.length?(f=O,E()):f},_.rangeRound=function(O){return _.range(O).interpolate(Rl)},_.clamp=function(O){return arguments.length?(d=O,E()):d},_.interpolate=function(O){return arguments.length?(h=O,E()):h},_.ticks=function(O){return pu(o,O)},_.tickFormat=function(O,I){return d3_scale_linearTickFormat(o,O,I)},_.nice=function(O){return _a(o,O),E()},_.copy=function(){return xa(o,f,h,d)},E()}function Ys(o,f){return t.rebind(o,f,"range","rangeRound","interpolate","clamp")}function _a(o,f){return zr(o,ya(du(o,f)[2])),zr(o,ya(du(o,f)[2])),o}function du(o,f){f==null&&(f=10);var h=Dl(o),d=h[1]-h[0],p=Math.pow(10,Math.floor(Math.log(d/f)/Math.LN10)),m=f/d*p;return m<=.15?p*=10:m<=.35?p*=5:m<=.75&&(p*=2),h[0]=Math.ceil(h[0]/p)*p,h[1]=Math.floor(h[1]/p)*p+p*.5,h[2]=p,h}function pu(o,f){return t.range.apply(t,du(o,f))}t.scale.log=function(){return $l(t.scale.linear().domain([0,1]),10,!0,[1,10])};function $l(o,f,h,d){function p(_){return(h?Math.log(_<0?0:_):-Math.log(_>0?0:-_))/Math.log(f)}function m(_){return h?Math.pow(f,_):-Math.pow(f,-_)}function E(_){return o(p(_))}return E.invert=function(_){return m(o.invert(_))},E.domain=function(_){return arguments.length?(h=_[0]>=0,o.domain((d=_.map(Number)).map(p)),E):d},E.base=function(_){return arguments.length?(f=+_,o.domain(d.map(p)),E):f},E.nice=function(){var _=zr(d.map(p),h?Math:Xs);return o.domain(_),d=_.map(m),E},E.ticks=function(){var _=Dl(d),O=[],I=_[0],P=_[1],$=Math.floor(p(I)),z=Math.ceil(p(P)),re=f%1?2:f;if(isFinite(z-$)){if(h){for(;$<z;$++)for(var oe=1;oe<re;oe++)O.push(m($)*oe);O.push(m($))}else for(O.push(m($));$++<z;)for(var oe=re-1;oe>0;oe--)O.push(m($)*oe);for($=0;O[$]<I;$++);for(z=O.length;O[z-1]>P;z--);O=O.slice($,z)}return O},E.copy=function(){return $l(o.copy(),f,h,d)},Ys(E,o)}var Xs={floor:function(o){return-Math.ceil(-o)},ceil:function(o){return-Math.floor(-o)}};t.scale.pow=function(){return zl(t.scale.linear(),1,[0,1])};function zl(o,f,h){var d=wa(f),p=wa(1/f);function m(E){return o(d(E))}return m.invert=function(E){return p(o.invert(E))},m.domain=function(E){return arguments.length?(o.domain((h=E.map(Number)).map(d)),m):h},m.ticks=function(E){return pu(h,E)},m.tickFormat=function(E,_){return d3_scale_linearTickFormat(h,E,_)},m.nice=function(E){return m.domain(_a(h,E))},m.exponent=function(E){return arguments.length?(d=wa(f=E),p=wa(1/f),o.domain(h.map(d)),m):f},m.copy=function(){return zl(o.copy(),f,h)},Ys(m,o)}function wa(o){return function(f){return f<0?-Math.pow(-f,o):Math.pow(f,o)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return Qs([],{t:"range",a:[[]]})};function Qs(o,f){var h,d,p;function m(_){return d[((h.get(_)||(f.t==="range"?h.set(_,o.push(_)):NaN))-1)%d.length]}function E(_,O){return t.range(o.length).map(function(I){return _+O*I})}return m.domain=function(_){if(!arguments.length)return o;o=[],h=new L;for(var O=-1,I=_.length,P;++O<I;)h.has(P=_[O])||h.set(P,o.push(P));return m[f.t].apply(m,f.a)},m.range=function(_){return arguments.length?(d=_,p=0,f={t:"range",a:arguments},m):d},m.rangePoints=function(_,O){arguments.length<2&&(O=0);var I=_[0],P=_[1],$=o.length<2?(I=(I+P)/2,0):(P-I)/(o.length-1+O);return d=E(I+$*O/2,$),p=0,f={t:"rangePoints",a:arguments},m},m.rangeRoundPoints=function(_,O){arguments.length<2&&(O=0);var I=_[0],P=_[1],$=o.length<2?(I=P=Math.round((I+P)/2),0):(P-I)/(o.length-1+O)|0;return d=E(I+Math.round($*O/2+(P-I-(o.length-1+O)*$)/2),$),p=0,f={t:"rangeRoundPoints",a:arguments},m},m.rangeBands=function(_,O,I){arguments.length<2&&(O=0),arguments.length<3&&(I=O);var P=_[1]<_[0],$=_[P-0],z=_[1-P],re=(z-$)/(o.length-O+2*I);return d=E($+re*I,re),P&&d.reverse(),p=re*(1-O),f={t:"rangeBands",a:arguments},m},m.rangeRoundBands=function(_,O,I){arguments.length<2&&(O=0),arguments.length<3&&(I=O);var P=_[1]<_[0],$=_[P-0],z=_[1-P],re=Math.floor((z-$)/(o.length-O+2*I));return d=E($+Math.round((z-$-(o.length-O)*re)/2),re),P&&d.reverse(),p=Math.round(re*(1-O)),f={t:"rangeRoundBands",a:arguments},m},m.rangeBand=function(){return p},m.rangeExtent=function(){return Dl(f.a[0])},m.copy=function(){return Qs(o,f)},m.domain(o)}t.scale.category10=function(){return t.scale.ordinal().range(mp)},t.scale.category20=function(){return t.scale.ordinal().range(gp)},t.scale.category20b=function(){return t.scale.ordinal().range(yp)},t.scale.category20c=function(){return t.scale.ordinal().range(xp)};var mp=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(_l),gp=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(_l),yp=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(_l),xp=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(_l);t.scale.quantile=function(){return Ul([],[])};function Ul(o,f){var h;function d(){var m=0,E=f.length;for(h=[];++m<E;)h[m-1]=t.quantile(o,m/E);return p}function p(m){if(!isNaN(m=+m))return f[t.bisect(h,m)]}return p.domain=function(m){return arguments.length?(o=m.map(g).filter(k).sort(y),d()):o},p.range=function(m){return arguments.length?(f=m,d()):f},p.quantiles=function(){return h},p.invertExtent=function(m){return m=f.indexOf(m),m<0?[NaN,NaN]:[m>0?h[m-1]:o[0],m<h.length?h[m]:o[o.length-1]]},p.copy=function(){return Ul(o,f)},d()}t.scale.quantize=function(){return jl(0,1,[0,1])};function jl(o,f,h){var d,p;function m(_){return h[Math.max(0,Math.min(p,Math.floor(d*(_-o))))]}function E(){return d=h.length/(f-o),p=h.length-1,m}return m.domain=function(_){return arguments.length?(o=+_[0],f=+_[_.length-1],E()):[o,f]},m.range=function(_){return arguments.length?(h=_,E()):h},m.invertExtent=function(_){return _=h.indexOf(_),_=_<0?NaN:_/d+o,[_,_+1/d]},m.copy=function(){return jl(o,f,h)},E()}t.scale.threshold=function(){return Zs([.5],[0,1])};function Zs(o,f){function h(d){if(d<=d)return f[t.bisect(o,d)]}return h.domain=function(d){return arguments.length?(o=d,h):o},h.range=function(d){return arguments.length?(f=d,h):f},h.invertExtent=function(d){return d=f.indexOf(d),[o[d-1],o[d]]},h.copy=function(){return Zs(o,f)},h}t.scale.identity=function(){return Ks([0,1])};function Ks(o){function f(h){return+h}return f.invert=f,f.domain=f.range=function(h){return arguments.length?(o=h.map(f),f):o},f.ticks=function(h){return pu(o,h)},f.tickFormat=function(h,d){return d3_scale_linearTickFormat(o,h,d)},f.copy=function(){return Ks(o)},f}t.svg={};function _p(){return 0}t.svg.arc=function(){var o=Js,f=wp,h=_p,d=vu,p=ec,m=Gl,E=tc;function _(){var I=Math.max(0,+o.apply(this,arguments)),P=Math.max(0,+f.apply(this,arguments)),$=p.apply(this,arguments)-ui,z=m.apply(this,arguments)-ui,re=Math.abs(z-$),oe=$>z?0:1;if(P<I&&(j=P,P=I,I=j),re>=yd)return O(P,oe)+(I?O(I,1-oe):"")+"Z";var j,q,K,ue,le=0,ee=0,Me,Be,Je,$e,it,dt,Gt,xt,zt=[];if((ue=(+E.apply(this,arguments)||0)/2)&&(K=d===vu?Math.sqrt(I*I+P*P):+d.apply(this,arguments),oe||(ee*=-1),P&&(ee=_d(K/P*Math.sin(ue))),I&&(le=_d(K/I*Math.sin(ue)))),P){Me=P*Math.cos($+ee),Be=P*Math.sin($+ee),Je=P*Math.cos(z-ee),$e=P*Math.sin(z-ee);var ir=Math.abs(z-$-2*ee)<=_i?0:1;if(ee&&mu(Me,Be,Je,$e)===oe^ir){var Tr=($+z)/2;Me=P*Math.cos(Tr),Be=P*Math.sin(Tr),Je=$e=null}}else Me=Be=0;if(I){it=I*Math.cos(z-le),dt=I*Math.sin(z-le),Gt=I*Math.cos($+le),xt=I*Math.sin($+le);var hr=Math.abs($-z+2*le)<=_i?0:1;if(le&&mu(it,dt,Gt,xt)===1-oe^hr){var et=($+z)/2;it=I*Math.cos(et),dt=I*Math.sin(et),Gt=xt=null}}else it=dt=0;if(re>nr&&(j=Math.min(Math.abs(P-I)/2,+h.apply(this,arguments)))>.001){q=I<P^oe?0:1;var Ht=j,Vt=j;if(re<_i){var ar=Gt==null?[it,dt]:Je==null?[Me,Be]:xs([Me,Be],[Gt,xt],[Je,$e],[it,dt]),wr=Me-ar[0],Pr=Be-ar[1],Wr=Je-ar[0],fn=$e-ar[1],mn=1/Math.sin(Math.acos((wr*Wr+Pr*fn)/(Math.sqrt(wr*wr+Pr*Pr)*Math.sqrt(Wr*Wr+fn*fn)))/2),Jr=Math.sqrt(ar[0]*ar[0]+ar[1]*ar[1]);Vt=Math.min(j,(I-Jr)/(mn-1)),Ht=Math.min(j,(P-Jr)/(mn+1))}if(Je!=null){var Sn=io(Gt==null?[it,dt]:[Gt,xt],[Me,Be],P,Ht,oe),F=io([Je,$e],[it,dt],P,Ht,oe);j===Ht?zt.push("M",Sn[0],"A",Ht,",",Ht," 0 0,",q," ",Sn[1],"A",P,",",P," 0 ",1-oe^mu(Sn[1][0],Sn[1][1],F[1][0],F[1][1]),",",oe," ",F[1],"A",Ht,",",Ht," 0 0,",q," ",F[0]):zt.push("M",Sn[0],"A",Ht,",",Ht," 0 1,",q," ",F[0])}else zt.push("M",Me,",",Be);if(Gt!=null){var H=io([Me,Be],[Gt,xt],I,-Vt,oe),Z=io([it,dt],Je==null?[Me,Be]:[Je,$e],I,-Vt,oe);j===Vt?zt.push("L",Z[0],"A",Vt,",",Vt," 0 0,",q," ",Z[1],"A",I,",",I," 0 ",oe^mu(Z[1][0],Z[1][1],H[1][0],H[1][1]),",",1-oe," ",H[1],"A",Vt,",",Vt," 0 0,",q," ",H[0]):zt.push("L",Z[0],"A",Vt,",",Vt," 0 0,",q," ",H[0])}else zt.push("L",it,",",dt)}else zt.push("M",Me,",",Be),Je!=null&&zt.push("A",P,",",P," 0 ",ir,",",oe," ",Je,",",$e),zt.push("L",it,",",dt),Gt!=null&&zt.push("A",I,",",I," 0 ",hr,",",1-oe," ",Gt,",",xt);return zt.push("Z"),zt.join("")}function O(I,P){return"M0,"+I+"A"+I+","+I+" 0 1,"+P+" 0,"+-I+"A"+I+","+I+" 0 1,"+P+" 0,"+I}return _.innerRadius=function(I){return arguments.length?(o=vr(I),_):o},_.outerRadius=function(I){return arguments.length?(f=vr(I),_):f},_.cornerRadius=function(I){return arguments.length?(h=vr(I),_):h},_.padRadius=function(I){return arguments.length?(d=I==vu?vu:vr(I),_):d},_.startAngle=function(I){return arguments.length?(p=vr(I),_):p},_.endAngle=function(I){return arguments.length?(m=vr(I),_):m},_.padAngle=function(I){return arguments.length?(E=vr(I),_):E},_.centroid=function(){var I=(+o.apply(this,arguments)+ +f.apply(this,arguments))/2,P=(+p.apply(this,arguments)+ +m.apply(this,arguments))/2-ui;return[Math.cos(P)*I,Math.sin(P)*I]},_};var vu="auto";function Js(o){return o.innerRadius}function wp(o){return o.outerRadius}function ec(o){return o.startAngle}function Gl(o){return o.endAngle}function tc(o){return o&&o.padAngle}function mu(o,f,h,d){return(o-h)*f-(f-d)*o>0?0:1}function io(o,f,h,d,p){var m=o[0]-f[0],E=o[1]-f[1],_=(p?d:-d)/Math.sqrt(m*m+E*E),O=_*E,I=-_*m,P=o[0]+O,$=o[1]+I,z=f[0]+O,re=f[1]+I,oe=(P+z)/2,j=($+re)/2,q=z-P,K=re-$,ue=q*q+K*K,le=h-d,ee=P*re-z*$,Me=(K<0?-1:1)*Math.sqrt(Math.max(0,le*le*ue-ee*ee)),Be=(ee*K-q*Me)/ue,Je=(-ee*q-K*Me)/ue,$e=(ee*K+q*Me)/ue,it=(-ee*q+K*Me)/ue,dt=Be-oe,Gt=Je-j,xt=$e-oe,zt=it-j;return dt*dt+Gt*Gt>xt*xt+zt*zt&&(Be=$e,Je=it),[[Be-O,Je-I],[Be*h/le,Je*h/le]]}function rc(){return!0}function nc(o){var f=wi,h=bi,d=rc,p=Dn,m=p.key,E=.7;function _(O){var I=[],P=[],$=-1,z=O.length,re,oe=vr(f),j=vr(h);function q(){I.push("M",p(o(P),E))}for(;++$<z;)d.call(this,re=O[$],$)?P.push([+oe.call(this,re,$),+j.call(this,re,$)]):P.length&&(q(),P=[]);return P.length&&q(),I.length?I.join(""):null}return _.x=function(O){return arguments.length?(f=O,_):f},_.y=function(O){return arguments.length?(h=O,_):h},_.defined=function(O){return arguments.length?(d=O,_):d},_.interpolate=function(O){return arguments.length?(typeof O=="function"?m=p=O:m=(p=gu.get(O)||Dn).key,_):m},_.tension=function(O){return arguments.length?(E=O,_):E},_}t.svg.line=function(){return nc(lt)};var gu=t.map({linear:Dn,"linear-closed":ic,step:ac,"step-before":yu,"step-after":ba,basis:xu,"basis-open":Wl,"basis-closed":ao,bundle:oo,cardinal:Ti,"cardinal-open":bp,"cardinal-closed":Hl,monotone:pg});gu.forEach(function(o,f){f.key=o,f.closed=/-closed$/.test(o)});function Dn(o){return o.length>1?o.join("L"):o+"Z"}function ic(o){return o.join("L")+"Z"}function ac(o){for(var f=0,h=o.length,d=o[0],p=[d[0],",",d[1]];++f<h;)p.push("H",(d[0]+(d=o[f])[0])/2,"V",d[1]);return h>1&&p.push("H",d[0]),p.join("")}function yu(o){for(var f=0,h=o.length,d=o[0],p=[d[0],",",d[1]];++f<h;)p.push("V",(d=o[f])[1],"H",d[0]);return p.join("")}function ba(o){for(var f=0,h=o.length,d=o[0],p=[d[0],",",d[1]];++f<h;)p.push("H",(d=o[f])[0],"V",d[1]);return p.join("")}function bp(o,f){return o.length<4?Dn(o):o[1]+Sa(o.slice(1,-1),Gi(o,f))}function Hl(o,f){return o.length<3?ic(o):o[0]+Sa((o.push(o[0]),o),Gi([o[o.length-2]].concat(o,[o[1]]),f))}function Ti(o,f){return o.length<3?Dn(o):o[0]+Sa(o,Gi(o,f))}function Sa(o,f){if(f.length<1||o.length!=f.length&&o.length!=f.length+2)return Dn(o);var h=o.length!=f.length,d="",p=o[0],m=o[1],E=f[0],_=E,O=1;if(h&&(d+="Q"+(m[0]-E[0]*2/3)+","+(m[1]-E[1]*2/3)+","+m[0]+","+m[1],p=o[1],O=2),f.length>1){_=f[1],m=o[O],O++,d+="C"+(p[0]+E[0])+","+(p[1]+E[1])+","+(m[0]-_[0])+","+(m[1]-_[1])+","+m[0]+","+m[1];for(var I=2;I<f.length;I++,O++)m=o[O],_=f[I],d+="S"+(m[0]-_[0])+","+(m[1]-_[1])+","+m[0]+","+m[1]}if(h){var P=o[O];d+="Q"+(m[0]+_[0]*2/3)+","+(m[1]+_[1]*2/3)+","+P[0]+","+P[1]}return d}function Gi(o,f){for(var h=[],d=(1-f)/2,p,m=o[0],E=o[1],_=1,O=o.length;++_<O;)p=m,m=E,E=o[_],h.push([d*(E[0]-p[0]),d*(E[1]-p[1])]);return h}function xu(o){if(o.length<3)return Dn(o);var f=1,h=o.length,d=o[0],p=d[0],m=d[1],E=[p,p,p,(d=o[1])[0]],_=[m,m,m,d[1]],O=[p,",",m,"L",Kr(ei,E),",",Kr(ei,_)];for(o.push(o[h-1]);++f<=h;)d=o[f],E.shift(),E.push(d[0]),_.shift(),_.push(d[1]),_u(O,E,_);return o.pop(),O.push("L",d),O.join("")}function Wl(o){if(o.length<4)return Dn(o);for(var f=[],h=-1,d=o.length,p,m=[0],E=[0];++h<3;)p=o[h],m.push(p[0]),E.push(p[1]);for(f.push(Kr(ei,m)+","+Kr(ei,E)),--h;++h<d;)p=o[h],m.shift(),m.push(p[0]),E.shift(),E.push(p[1]),_u(f,m,E);return f.join("")}function ao(o){for(var f,h=-1,d=o.length,p=d+4,m,E=[],_=[];++h<4;)m=o[h%d],E.push(m[0]),_.push(m[1]);for(f=[Kr(ei,E),",",Kr(ei,_)],--h;++h<p;)m=o[h%d],E.shift(),E.push(m[0]),_.shift(),_.push(m[1]),_u(f,E,_);return f.join("")}function oo(o,f){var h=o.length-1;if(h)for(var d=o[0][0],p=o[0][1],m=o[h][0]-d,E=o[h][1]-p,_=-1,O,I;++_<=h;)O=o[_],I=_/h,O[0]=f*O[0]+(1-f)*(d+I*m),O[1]=f*O[1]+(1-f)*(p+I*E);return xu(o)}function Kr(o,f){return o[0]*f[0]+o[1]*f[1]+o[2]*f[2]+o[3]*f[3]}var Vl=[0,2/3,1/3,0],ql=[0,1/3,2/3,0],ei=[0,1/6,2/3,1/6];function _u(o,f,h){o.push("C",Kr(Vl,f),",",Kr(Vl,h),",",Kr(ql,f),",",Kr(ql,h),",",Kr(ei,f),",",Kr(ei,h))}function wu(o,f){return(f[1]-o[1])/(f[0]-o[0])}function uo(o){for(var f=0,h=o.length-1,d=[],p=o[0],m=o[1],E=d[0]=wu(p,m);++f<h;)d[f]=(E+(E=wu(p=m,m=o[f+1])))/2;return d[f]=E,d}function lo(o){for(var f=[],h,d,p,m,E=uo(o),_=-1,O=o.length-1;++_<O;)h=wu(o[_],o[_+1]),A(h)<nr?E[_]=E[_+1]=0:(d=E[_]/h,p=E[_+1]/h,m=d*d+p*p,m>9&&(m=h*3/Math.sqrt(m),E[_]=m*d,E[_+1]=m*p));for(_=-1;++_<=O;)m=(o[Math.min(O,_+1)][0]-o[Math.max(0,_-1)][0])/(6*(1+E[_]*E[_])),f.push([m||0,E[_]*m||0]);return f}function pg(o){return o.length<3?Dn(o):o[0]+Sa(o,lo(o))}t.svg.line.radial=function(){var o=nc(Sp);return o.radius=o.x,delete o.x,o.angle=o.y,delete o.y,o};function Sp(o){for(var f,h=-1,d=o.length,p,m;++h<d;)f=o[h],p=f[0],m=f[1]-ui,f[0]=p*Math.cos(m),f[1]=p*Math.sin(m);return o}function oc(o){var f=wi,h=wi,d=0,p=bi,m=rc,E=Dn,_=E.key,O=E,I="L",P=.7;function $(z){var re=[],oe=[],j=[],q=-1,K=z.length,ue,le=vr(f),ee=vr(d),Me=f===h?function(){return Je}:vr(h),Be=d===p?function(){return $e}:vr(p),Je,$e;function it(){re.push("M",E(o(j),P),I,O(o(oe.reverse()),P),"Z")}for(;++q<K;)m.call(this,ue=z[q],q)?(oe.push([Je=+le.call(this,ue,q),$e=+ee.call(this,ue,q)]),j.push([+Me.call(this,ue,q),+Be.call(this,ue,q)])):oe.length&&(it(),oe=[],j=[]);return oe.length&&it(),re.length?re.join(""):null}return $.x=function(z){return arguments.length?(f=h=z,$):h},$.x0=function(z){return arguments.length?(f=z,$):f},$.x1=function(z){return arguments.length?(h=z,$):h},$.y=function(z){return arguments.length?(d=p=z,$):p},$.y0=function(z){return arguments.length?(d=z,$):d},$.y1=function(z){return arguments.length?(p=z,$):p},$.defined=function(z){return arguments.length?(m=z,$):m},$.interpolate=function(z){return arguments.length?(typeof z=="function"?_=E=z:_=(E=gu.get(z)||Dn).key,O=E.reverse||E,I=E.closed?"M":"L",$):_},$.tension=function(z){return arguments.length?(P=z,$):P},$}yu.reverse=ba,ba.reverse=yu,t.svg.area=function(){return oc(lt)},t.svg.area.radial=function(){var o=oc(Sp);return o.radius=o.x,delete o.x,o.innerRadius=o.x0,delete o.x0,o.outerRadius=o.x1,delete o.x1,o.angle=o.y,delete o.y,o.startAngle=o.y0,delete o.y0,o.endAngle=o.y1,delete o.y1,o};function uc(o){return o.source}function lc(o){return o.target}t.svg.chord=function(){var o=uc,f=lc,h=vg,d=ec,p=Gl;function m(P,$){var z=E(this,o,P,$),re=E(this,f,P,$);return"M"+z.p0+O(z.r,z.p1,z.a1-z.a0)+(_(z,re)?I(z.r,z.p1,z.r,z.p0):I(z.r,z.p1,re.r,re.p0)+O(re.r,re.p1,re.a1-re.a0)+I(re.r,re.p1,z.r,z.p0))+"Z"}function E(P,$,z,re){var oe=$.call(P,z,re),j=h.call(P,oe,re),q=d.call(P,oe,re)-ui,K=p.call(P,oe,re)-ui;return{r:j,a0:q,a1:K,p0:[j*Math.cos(q),j*Math.sin(q)],p1:[j*Math.cos(K),j*Math.sin(K)]}}function _(P,$){return P.a0==$.a0&&P.a1==$.a1}function O(P,$,z){return"A"+P+","+P+" 0 "+ +(z>_i)+",1 "+$}function I(P,$,z,re){return"Q 0,0 "+re}return m.radius=function(P){return arguments.length?(h=vr(P),m):h},m.source=function(P){return arguments.length?(o=vr(P),m):o},m.target=function(P){return arguments.length?(f=vr(P),m):f},m.startAngle=function(P){return arguments.length?(d=vr(P),m):d},m.endAngle=function(P){return arguments.length?(p=vr(P),m):p},m};function vg(o){return o.radius}t.svg.diagonal=function(){var o=uc,f=lc,h=Ea;function d(p,m){var E=o.call(this,p,m),_=f.call(this,p,m),O=(E.y+_.y)/2,I=[E,{x:E.x,y:O},{x:_.x,y:O},_];return I=I.map(h),"M"+I[0]+"C"+I[1]+" "+I[2]+" "+I[3]}return d.source=function(p){return arguments.length?(o=vr(p),d):o},d.target=function(p){return arguments.length?(f=vr(p),d):f},d.projection=function(p){return arguments.length?(h=p,d):h},d};function Ea(o){return[o.x,o.y]}t.svg.diagonal.radial=function(){var o=t.svg.diagonal(),f=Ea,h=o.projection;return o.projection=function(d){return arguments.length?h(fc(f=d)):f},o};function fc(o){return function(){var f=o.apply(this,arguments),h=f[0],d=f[1]-ui;return[h*Math.cos(d),h*Math.sin(d)]}}t.svg.symbol=function(){var o=gg,f=mg;function h(d,p){return(Ap.get(o.call(this,d,p))||Ep)(f.call(this,d,p))}return h.type=function(d){return arguments.length?(o=vr(d),h):o},h.size=function(d){return arguments.length?(f=vr(d),h):f},h};function mg(){return 64}function gg(){return"circle"}function Ep(o){var f=Math.sqrt(o/_i);return"M0,"+f+"A"+f+","+f+" 0 1,1 0,"+-f+"A"+f+","+f+" 0 1,1 0,"+f+"Z"}var Ap=t.map({circle:Ep,cross:function(o){var f=Math.sqrt(o/5)/2;return"M"+-3*f+","+-f+"H"+-f+"V"+-3*f+"H"+f+"V"+-f+"H"+3*f+"V"+f+"H"+f+"V"+3*f+"H"+-f+"V"+f+"H"+-3*f+"Z"},diamond:function(o){var f=Math.sqrt(o/(2*Tp)),h=f*Tp;return"M0,"+-f+"L"+h+",0 0,"+f+" "+-h+",0Z"},square:function(o){var f=Math.sqrt(o)/2;return"M"+-f+","+-f+"L"+f+","+-f+" "+f+","+f+" "+-f+","+f+"Z"},"triangle-down":function(o){var f=Math.sqrt(o/Yl),h=f*Yl/2;return"M0,"+h+"L"+f+","+-h+" "+-f+","+-h+"Z"},"triangle-up":function(o){var f=Math.sqrt(o/Yl),h=f*Yl/2;return"M0,"+-h+"L"+f+","+h+" "+-f+","+h+"Z"}});t.svg.symbolTypes=Ap.keys();var Yl=Math.sqrt(3),Tp=Math.tan(30*xd);Ae.transition=function(o){for(var f=Ci||++Ql,h=Su(o),d=[],p,m,E=fo||{time:Date.now(),ease:Ja,delay:0,duration:250},_=-1,O=this.length;++_<O;){d.push(p=[]);for(var I=this[_],P=-1,$=I.length;++P<$;)(m=I[P])&&so(m,P,h,f,E),p.push(m)}return bu(d,h,f)},Ae.interrupt=function(o){return this.each(o==null?Xl:Cp(Su(o)))};var Xl=Cp(Su());function Cp(o){return function(){var f,h,d;(f=this[o])&&(d=f[h=f.active])&&(d.timer.c=null,d.timer.t=NaN,--f.count?delete f[h]:delete this[o],f.active+=.5,d.event&&d.event.interrupt.call(this,this.__data__,d.index))}}function bu(o,f,h){return Yt(o,Ir),o.namespace=f,o.id=h,o}var Ir=[],Ql=0,Ci,fo;Ir.call=Ae.call,Ir.empty=Ae.empty,Ir.node=Ae.node,Ir.size=Ae.size,t.transition=function(o,f){return o&&o.transition?Ci?o.transition(f):o:t.selection().transition(o)},t.transition.prototype=Ir,Ir.select=function(o){var f=this.id,h=this.namespace,d=[],p,m,E;o=G(o);for(var _=-1,O=this.length;++_<O;){d.push(p=[]);for(var I=this[_],P=-1,$=I.length;++P<$;)(E=I[P])&&(m=o.call(E,E.__data__,P,_))?("__data__"in E&&(m.__data__=E.__data__),so(m,P,h,f,E[h][f]),p.push(m)):p.push(null)}return bu(d,h,f)},Ir.selectAll=function(o){var f=this.id,h=this.namespace,d=[],p,m,E,_,O;o=ie(o);for(var I=-1,P=this.length;++I<P;)for(var $=this[I],z=-1,re=$.length;++z<re;)if(E=$[z]){O=E[h][f],m=o.call(E,E.__data__,z,I),d.push(p=[]);for(var oe=-1,j=m.length;++oe<j;)(_=m[oe])&&so(_,oe,h,f,O),p.push(_)}return bu(d,h,f)},Ir.filter=function(o){var f=[],h,d,p;typeof o!="function"&&(o=Zo(o));for(var m=0,E=this.length;m<E;m++){f.push(h=[]);for(var d=this[m],_=0,O=d.length;_<O;_++)(p=d[_])&&o.call(p,p.__data__,_,m)&&h.push(p)}return bu(f,this.namespace,this.id)},Ir.tween=function(o,f){var h=this.id,d=this.namespace;return arguments.length<2?this.node()[d][h].tween.get(o):oi(this,f==null?function(p){p[d][h].tween.remove(o)}:function(p){p[d][h].tween.set(o,f)})};function Zl(o,f,h,d){var p=o.id,m=o.namespace;return oi(o,typeof h=="function"?function(E,_,O){E[m][p].tween.set(f,d(h.call(E,E.__data__,_,O)))}:(h=d(h),function(E){E[m][p].tween.set(f,h)}))}Ir.attr=function(o,f){if(arguments.length<2){for(f in o)this.attr(f,o[f]);return this}var h=o=="transform"?Ps:li,d=t.ns.qualify(o);function p(){this.removeAttribute(d)}function m(){this.removeAttributeNS(d.space,d.local)}function E(O){return O==null?p:(O+="",function(){var I=this.getAttribute(d),P;return I!==O&&(P=h(I,O),function($){this.setAttribute(d,P($))})})}function _(O){return O==null?m:(O+="",function(){var I=this.getAttributeNS(d.space,d.local),P;return I!==O&&(P=h(I,O),function($){this.setAttributeNS(d.space,d.local,P($))})})}return Zl(this,"attr."+o,f,d.local?_:E)},Ir.attrTween=function(o,f){var h=t.ns.qualify(o);function d(m,E){var _=f.call(this,m,E,this.getAttribute(h));return _&&function(O){this.setAttribute(h,_(O))}}function p(m,E){var _=f.call(this,m,E,this.getAttributeNS(h.space,h.local));return _&&function(O){this.setAttributeNS(h.space,h.local,_(O))}}return this.tween("attr."+o,h.local?p:d)},Ir.style=function(o,f,h){var d=arguments.length;if(d<3){if(typeof o!="string"){d<2&&(f="");for(h in o)this.style(h,o[h],f);return this}h=""}function p(){this.style.removeProperty(o)}function m(E){return E==null?p:(E+="",function(){var _=u(this).getComputedStyle(this,null).getPropertyValue(o),O;return _!==E&&(O=li(_,E),function(I){this.style.setProperty(o,O(I),h)})})}return Zl(this,"style."+o,f,m)},Ir.styleTween=function(o,f,h){arguments.length<3&&(h="");function d(p,m){var E=f.call(this,p,m,u(this).getComputedStyle(this,null).getPropertyValue(o));return E&&function(_){this.style.setProperty(o,E(_),h)}}return this.tween("style."+o,d)},Ir.text=function(o){return Zl(this,"text",o,sc)};function sc(o){return o==null&&(o=""),function(){this.textContent=o}}Ir.remove=function(){var o=this.namespace;return this.each("end.transition",function(){var f;this[o].count<2&&(f=this.parentNode)&&f.removeChild(this)})},Ir.ease=function(o){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].ease:(typeof o!="function"&&(o=t.ease.apply(t,arguments)),oi(this,function(d){d[h][f].ease=o}))},Ir.delay=function(o){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].delay:oi(this,typeof o=="function"?function(d,p,m){d[h][f].delay=+o.call(d,d.__data__,p,m)}:(o=+o,function(d){d[h][f].delay=o}))},Ir.duration=function(o){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].duration:oi(this,typeof o=="function"?function(d,p,m){d[h][f].duration=Math.max(1,o.call(d,d.__data__,p,m))}:(o=Math.max(1,o),function(d){d[h][f].duration=o}))},Ir.each=function(o,f){var h=this.id,d=this.namespace;if(arguments.length<2){var p=fo,m=Ci;try{Ci=h,oi(this,function(E,_,O){fo=E[d][h],o.call(E,E.__data__,_,O)})}finally{fo=p,Ci=m}}else oi(this,function(E){var _=E[d][h];(_.event||(_.event=t.dispatch("start","end","interrupt"))).on(o,f)});return this},Ir.transition=function(){for(var o=this.id,f=++Ql,h=this.namespace,d=[],p,m,E,_,O=0,I=this.length;O<I;O++){d.push(p=[]);for(var m=this[O],P=0,$=m.length;P<$;P++)(E=m[P])&&(_=E[h][o],so(E,P,h,f,{time:_.time,ease:_.ease,delay:_.delay+_.duration,duration:_.duration})),p.push(E)}return bu(d,h,f)};function Su(o){return o==null?"__transition__":"__transition_"+o+"__"}function so(o,f,h,d,p){var m=o[h]||(o[h]={active:0,count:0}),E=m[d],_,O,I,P,$;function z(j){var q=E.delay;if(O.t=q+_,q<=j)return re(j-q);O.c=re}function re(j){var q=m.active,K=m[q];K&&(K.timer.c=null,K.timer.t=NaN,--m.count,delete m[q],K.event&&K.event.interrupt.call(o,o.__data__,K.index));for(var ue in m)if(+ue<d){var le=m[ue];le.timer.c=null,le.timer.t=NaN,--m.count,delete m[ue]}O.c=oe,qa(function(){return O.c&&oe(j||1)&&(O.c=null,O.t=NaN),1},0,_),m.active=d,E.event&&E.event.start.call(o,o.__data__,f),$=[],E.tween.forEach(function(ee,Me){(Me=Me.call(o,o.__data__,f))&&$.push(Me)}),P=E.ease,I=E.duration}function oe(j){for(var q=j/I,K=P(q),ue=$.length;ue>0;)$[--ue].call(o,K);if(q>=1)return E.event&&E.event.end.call(o,o.__data__,f),--m.count?delete m[d]:delete o[h],1}E||(_=p.time,O=qa(z,0,_),E=m[d]={tween:new L,time:_,timer:O,delay:p.delay,duration:p.duration,ease:p.ease,index:f},p=null,++m.count)}t.svg.axis=function(){var o=t.scale.linear(),f=cc,h=6,d=6,p=3,m=[10],E=null,_;function O(I){I.each(function(){var P=t.select(this),$=this.__chart__||o,z=this.__chart__=o.copy(),re=E??(z.ticks?z.ticks.apply(z,m):z.domain()),oe=_??(z.tickFormat?z.tickFormat.apply(z,m):lt),j=P.selectAll(".tick").data(re,z),q=j.enter().insert("g",".domain").attr("class","tick").style("opacity",nr),K=t.transition(j.exit()).style("opacity",nr).remove(),ue=t.transition(j.order()).style("opacity",1),le=Math.max(h,0)+p,ee,Me=Bl(z),Be=P.selectAll(".domain").data([0]),Je=(Be.enter().append("path").attr("class","domain"),t.transition(Be));q.append("line"),q.append("text");var $e=q.select("line"),it=ue.select("line"),dt=j.select("text").text(oe),Gt=q.select("text"),xt=ue.select("text"),zt=f==="top"||f==="left"?-1:1,ir,Tr,hr,et;if(f==="bottom"||f==="top"?(ee=dc,ir="x",hr="y",Tr="x2",et="y2",dt.attr("dy",zt<0?"0em":".71em").style("text-anchor","middle"),Je.attr("d","M"+Me[0]+","+zt*d+"V0H"+Me[1]+"V"+zt*d)):(ee=pc,ir="y",hr="x",Tr="y2",et="x2",dt.attr("dy",".32em").style("text-anchor",zt<0?"end":"start"),Je.attr("d","M"+zt*d+","+Me[0]+"H0V"+Me[1]+"H"+zt*d)),$e.attr(et,zt*h),Gt.attr(hr,zt*le),it.attr(Tr,0).attr(et,zt*h),xt.attr(ir,0).attr(hr,zt*le),z.rangeBand){var Ht=z,Vt=Ht.rangeBand()/2;$=z=function(ar){return Ht(ar)+Vt}}else $.rangeBand?$=z:K.call(ee,z,$);q.call(ee,$,z),ue.call(ee,z,z)})}return O.scale=function(I){return arguments.length?(o=I,O):o},O.orient=function(I){return arguments.length?(f=I in hc?I+"":cc,O):f},O.ticks=function(){return arguments.length?(m=n(arguments),O):m},O.tickValues=function(I){return arguments.length?(E=I,O):E},O.tickFormat=function(I){return arguments.length?(_=I,O):_},O.tickSize=function(I){var P=arguments.length;return P?(h=+I,d=+arguments[P-1],O):h},O.innerTickSize=function(I){return arguments.length?(h=+I,O):h},O.outerTickSize=function(I){return arguments.length?(d=+I,O):d},O.tickPadding=function(I){return arguments.length?(p=+I,O):p},O.tickSubdivide=function(){return arguments.length&&O},O};var cc="bottom",hc={top:1,right:1,bottom:1,left:1};function dc(o,f,h){o.attr("transform",function(d){var p=f(d);return"translate("+(isFinite(p)?p:h(d))+",0)"})}function pc(o,f,h){o.attr("transform",function(d){var p=f(d);return"translate(0,"+(isFinite(p)?p:h(d))+")"})}t.svg.brush=function(){var o=yt(P,"brushstart","brush","brushend"),f=null,h=null,d=[0,0],p=[0,0],m,E,_=!0,O=!0,I=Eu[0];function P(j){j.each(function(){var q=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),K=q.selectAll(".background").data([0]);K.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),q.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ue=q.selectAll(".resize").data(I,lt);ue.exit().remove(),ue.enter().append("g").attr("class",function(Be){return"resize "+Be}).style("cursor",function(Be){return vc[Be]}).append("rect").attr("x",function(Be){return/[ew]$/.test(Be)?-3:null}).attr("y",function(Be){return/^[ns]/.test(Be)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ue.style("display",P.empty()?"none":null);var le=t.transition(q),ee=t.transition(K),Me;f&&(Me=Bl(f),ee.attr("x",Me[0]).attr("width",Me[1]-Me[0]),z(le)),h&&(Me=Bl(h),ee.attr("y",Me[0]).attr("height",Me[1]-Me[0]),re(le)),$(le)})}P.event=function(j){j.each(function(){var q=o.of(this,arguments),K={x:d,y:p,i:m,j:E},ue=this.__chart__||K;this.__chart__=K,Ci?t.select(this).transition().each("start.brush",function(){m=ue.i,E=ue.j,d=ue.x,p=ue.y,q({type:"brushstart"})}).tween("brush:brush",function(){var le=bn(d,K.x),ee=bn(p,K.y);return m=E=null,function(Me){d=K.x=le(Me),p=K.y=ee(Me),q({type:"brush",mode:"resize"})}}).each("end.brush",function(){m=K.i,E=K.j,q({type:"brush",mode:"resize"}),q({type:"brushend"})}):(q({type:"brushstart"}),q({type:"brush",mode:"resize"}),q({type:"brushend"}))})};function $(j){j.selectAll(".resize").attr("transform",function(q){return"translate("+d[+/e$/.test(q)]+","+p[+/^s/.test(q)]+")"})}function z(j){j.select(".extent").attr("x",d[0]),j.selectAll(".extent,.n>rect,.s>rect").attr("width",d[1]-d[0])}function re(j){j.select(".extent").attr("y",p[0]),j.selectAll(".extent,.e>rect,.w>rect").attr("height",p[1]-p[0])}function oe(){var j=this,q=t.select(t.event.target),K=o.of(j,arguments),ue=t.select(j),le=q.datum(),ee=!/^(n|s)$/.test(le)&&f,Me=!/^(e|w)$/.test(le)&&h,Be=q.classed("extent"),Je=ml(j),$e,it=t.mouse(j),dt,Gt=t.select(u(j)).on("keydown.brush",ir).on("keyup.brush",Tr);if(t.event.changedTouches?Gt.on("touchmove.brush",hr).on("touchend.brush",Ht):Gt.on("mousemove.brush",hr).on("mouseup.brush",Ht),ue.interrupt().selectAll("*").interrupt(),Be)it[0]=d[0]-it[0],it[1]=p[0]-it[1];else if(le){var xt=+/w$/.test(le),zt=+/^n/.test(le);dt=[d[1-xt]-it[0],p[1-zt]-it[1]],it[0]=d[xt],it[1]=p[zt]}else t.event.altKey&&($e=it.slice());ue.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",q.style("cursor")),K({type:"brushstart"}),hr();function ir(){t.event.keyCode==32&&(Be||($e=null,it[0]-=d[1],it[1]-=p[1],Be=2),ct())}function Tr(){t.event.keyCode==32&&Be==2&&(it[0]+=d[1],it[1]+=p[1],Be=0,ct())}function hr(){var Vt=t.mouse(j),ar=!1;dt&&(Vt[0]+=dt[0],Vt[1]+=dt[1]),Be||(t.event.altKey?($e||($e=[(d[0]+d[1])/2,(p[0]+p[1])/2]),it[0]=d[+(Vt[0]<$e[0])],it[1]=p[+(Vt[1]<$e[1])]):$e=null),ee&&et(Vt,f,0)&&(z(ue),ar=!0),Me&&et(Vt,h,1)&&(re(ue),ar=!0),ar&&($(ue),K({type:"brush",mode:Be?"move":"resize"}))}function et(Vt,ar,wr){var Pr=Bl(ar),Wr=Pr[0],fn=Pr[1],mn=it[wr],Jr=wr?p:d,Sn=Jr[1]-Jr[0],F,H;if(Be&&(Wr-=mn,fn-=Sn+mn),F=(wr?O:_)?Math.max(Wr,Math.min(fn,Vt[wr])):Vt[wr],Be?H=(F+=mn)+Sn:($e&&(mn=Math.max(Wr,Math.min(fn,2*$e[wr]-F))),mn<F?(H=F,F=mn):H=mn),Jr[0]!=F||Jr[1]!=H)return wr?E=null:m=null,Jr[0]=F,Jr[1]=H,!0}function Ht(){hr(),ue.style("pointer-events","all").selectAll(".resize").style("display",P.empty()?"none":null),t.select("body").style("cursor",null),Gt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),Je(),K({type:"brushend"})}}return P.x=function(j){return arguments.length?(f=j,I=Eu[!f<<1|!h],P):f},P.y=function(j){return arguments.length?(h=j,I=Eu[!f<<1|!h],P):h},P.clamp=function(j){return arguments.length?(f&&h?(_=!!j[0],O=!!j[1]):f?_=!!j:h&&(O=!!j),P):f&&h?[_,O]:f?_:h?O:null},P.extent=function(j){var q,K,ue,le,ee;return arguments.length?(f&&(q=j[0],K=j[1],h&&(q=q[0],K=K[0]),m=[q,K],f.invert&&(q=f(q),K=f(K)),K<q&&(ee=q,q=K,K=ee),(q!=d[0]||K!=d[1])&&(d=[q,K])),h&&(ue=j[0],le=j[1],f&&(ue=ue[1],le=le[1]),E=[ue,le],h.invert&&(ue=h(ue),le=h(le)),le<ue&&(ee=ue,ue=le,le=ee),(ue!=p[0]||le!=p[1])&&(p=[ue,le])),P):(f&&(m?(q=m[0],K=m[1]):(q=d[0],K=d[1],f.invert&&(q=f.invert(q),K=f.invert(K)),K<q&&(ee=q,q=K,K=ee))),h&&(E?(ue=E[0],le=E[1]):(ue=p[0],le=p[1],h.invert&&(ue=h.invert(ue),le=h.invert(le)),le<ue&&(ee=ue,ue=le,le=ee))),f&&h?[[q,ue],[K,le]]:f?[q,K]:h&&[ue,le])},P.clear=function(){return P.empty()||(d=[0,0],p=[0,0],m=E=null),P},P.empty=function(){return!!f&&d[0]==d[1]||!!h&&p[0]==p[1]},t.rebind(P,o,"on")};var vc={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Eu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=ys(function(o){return o.responseText}),t.json=function(o,f){return bl(o,"application/json",mc,f)};function mc(o){return JSON.parse(o.responseText)}t.html=function(o,f){return bl(o,"text/html",gc,f)};function gc(o){var f=i.createRange();return f.selectNode(i.body),f.createContextualFragment(o.responseText)}t.xml=ys(function(o){return o.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(k7);var c1=new Date,h1=new Date;function ln(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 u=i(a),l=i.ceil(a);return a-u<l-a?u:l},i.offset=function(a,u){return t(a=new Date(+a),u==null?1:Math.floor(u)),a},i.range=function(a,u,l){var s=[],c;if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<u)||!(l>0))return s;do s.push(c=new Date(+a)),t(a,l),e(a);while(c<a&&a<u);return s},i.filter=function(a){return ln(function(u){if(u>=u)for(;e(u),!a(u);)u.setTime(u-1)},function(u,l){if(u>=u)if(l<0)for(;++l<=0;)for(;t(u,-1),!a(u););else for(;--l>=0;)for(;t(u,1),!a(u););})},r&&(i.count=function(a,u){return c1.setTime(+a),h1.setTime(+u),e(c1),e(h1),Math.floor(r(c1,h1))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(u){return n(u)%a===0}:function(u){return i.count(0,u)%a===0}):i}),i}var kv=ln(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});kv.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ln(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):kv};const aA=kv;var oA=kv.range,Ov=1e3,Xu=6e4,Mv=36e5,D4=864e5,B4=6048e5,$4=ln(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ov)},function(e,t){return(t-e)/Ov},function(e){return e.getUTCSeconds()});const uA=$4;var lA=$4.range,z4=ln(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ov)},function(e,t){e.setTime(+e+t*Xu)},function(e,t){return(t-e)/Xu},function(e){return e.getMinutes()});const O7=z4;var M7=z4.range,U4=ln(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ov-e.getMinutes()*Xu)},function(e,t){e.setTime(+e+t*Mv)},function(e,t){return(t-e)/Mv},function(e){return e.getHours()});const F7=U4;var N7=U4.range,j4=ln(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())*Xu)/D4},function(e){return e.getDate()-1});const _w=j4;var R7=j4.range;function sl(e){return ln(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())*Xu)/B4})}var Fv=sl(0),Gh=sl(1),G4=sl(2),H4=sl(3),Qu=sl(4),W4=sl(5),V4=sl(6),fA=Fv.range,I7=Gh.range,P7=G4.range,L7=H4.range,D7=Qu.range,B7=W4.range,$7=V4.range,q4=ln(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 z7=q4;var U7=q4.range,ww=ln(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()});ww.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ln(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 Vf=ww;var j7=ww.range,Y4=ln(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Xu)},function(e,t){return(t-e)/Xu},function(e){return e.getUTCMinutes()});const G7=Y4;var H7=Y4.range,X4=ln(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Mv)},function(e,t){return(t-e)/Mv},function(e){return e.getUTCHours()});const W7=X4;var V7=X4.range,Q4=ln(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/D4},function(e){return e.getUTCDate()-1});const bw=Q4;var q7=Q4.range;function cl(e){return ln(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)/B4})}var Nv=cl(0),Hh=cl(1),Z4=cl(2),K4=cl(3),Zu=cl(4),J4=cl(5),eO=cl(6),sA=Nv.range,Y7=Hh.range,X7=Z4.range,Q7=K4.range,Z7=Zu.range,K7=J4.range,J7=eO.range,tO=ln(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 e$=tO;var t$=tO.range,Sw=ln(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()});Sw.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ln(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 qf=Sw;var r$=Sw.range;const n$=Object.freeze(Object.defineProperty({__proto__:null,timeDay:_w,timeDays:R7,timeFriday:W4,timeFridays:B7,timeHour:F7,timeHours:N7,timeInterval:ln,timeMillisecond:aA,timeMilliseconds:oA,timeMinute:O7,timeMinutes:M7,timeMonday:Gh,timeMondays:I7,timeMonth:z7,timeMonths:U7,timeSaturday:V4,timeSaturdays:$7,timeSecond:uA,timeSeconds:lA,timeSunday:Fv,timeSundays:fA,timeThursday:Qu,timeThursdays:D7,timeTuesday:G4,timeTuesdays:P7,timeWednesday:H4,timeWednesdays:L7,timeWeek:Fv,timeWeeks:fA,timeYear:Vf,timeYears:j7,utcDay:bw,utcDays:q7,utcFriday:J4,utcFridays:K7,utcHour:W7,utcHours:V7,utcMillisecond:aA,utcMilliseconds:oA,utcMinute:G7,utcMinutes:H7,utcMonday:Hh,utcMondays:Y7,utcMonth:e$,utcMonths:t$,utcSaturday:eO,utcSaturdays:J7,utcSecond:uA,utcSeconds:lA,utcSunday:Nv,utcSundays:sA,utcThursday:Zu,utcThursdays:Z7,utcTuesday:Z4,utcTuesdays:X7,utcWednesday:K4,utcWednesdays:Q7,utcWeek:Nv,utcWeeks:sA,utcYear:qf,utcYears:r$},Symbol.toStringTag,{value:"Module"}));function d1(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 p1(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 Rc(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function rO(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,u=e.shortDays,l=e.months,s=e.shortMonths,c=Ic(i),v=Pc(i),x=Ic(a),y=Pc(a),g=Ic(u),k=Pc(u),N=Ic(l),b=Pc(l),w=Ic(s),A=Pc(s),M={a:Ue,A:Ye,b:It,B:Ze,c:null,d:mA,e:mA,f:T$,g:L$,G:B$,H:S$,I:E$,j:A$,L:nO,m:C$,M:k$,p:Ee,q:tt,Q:xA,s:_A,S:O$,u:M$,U:F$,V:N$,w:R$,W:I$,x:null,X:null,y:P$,Y:D$,Z:$$,"%":yA},R={a:ct,A:rt,b:yt,B:Tt,c:null,d:gA,e:gA,f:G$,g:J$,G:t9,H:z$,I:U$,j:j$,L:aO,m:H$,M:W$,p:Yt,q:Xt,Q:xA,s:_A,S:V$,u:q$,U:Y$,V:X$,w:Q$,W:Z$,x:null,X:null,y:K$,Y:e9,Z:r9,"%":yA},L={a:Ce,A:Fe,b:Ie,B:je,c:Ke,d:pA,e:pA,f:x$,g:dA,G:hA,H:vA,I:vA,j:v$,L:y$,m:p$,M:m$,p:ae,q:d$,Q:w$,s:b$,S:g$,u:l$,U:f$,V:s$,w:u$,W:c$,x:mt,X:lt,y:dA,Y:hA,Z:h$,"%":_$};M.x=D(r,M),M.X=D(n,M),M.c=D(t,M),R.x=D(r,R),R.X=D(n,R),R.c=D(t,R);function D(Qe,Ot){return function(jt){var Ae=[],G=-1,ie=0,C=Qe.length,S,T,B;for(jt instanceof Date||(jt=new Date(+jt));++G<C;)Qe.charCodeAt(G)===37&&(Ae.push(Qe.slice(ie,G)),(T=cA[S=Qe.charAt(++G)])!=null?S=Qe.charAt(++G):T=S==="e"?" ":"0",(B=Ot[S])&&(S=B(jt,T)),Ae.push(S),ie=G+1);return Ae.push(Qe.slice(ie,G)),Ae.join("")}}function ne(Qe,Ot){return function(jt){var Ae=Rc(1900,void 0,1),G=Y(Ae,Qe,jt+="",0),ie,C;if(G!=jt.length)return null;if("Q"in Ae)return new Date(Ae.Q);if("s"in Ae)return new Date(Ae.s*1e3+("L"in Ae?Ae.L:0));if(Ot&&!("Z"in Ae)&&(Ae.Z=0),"p"in Ae&&(Ae.H=Ae.H%12+Ae.p*12),Ae.m===void 0&&(Ae.m="q"in Ae?Ae.q:0),"V"in Ae){if(Ae.V<1||Ae.V>53)return null;"w"in Ae||(Ae.w=1),"Z"in Ae?(ie=p1(Rc(Ae.y,0,1)),C=ie.getUTCDay(),ie=C>4||C===0?Hh.ceil(ie):Hh(ie),ie=bw.offset(ie,(Ae.V-1)*7),Ae.y=ie.getUTCFullYear(),Ae.m=ie.getUTCMonth(),Ae.d=ie.getUTCDate()+(Ae.w+6)%7):(ie=d1(Rc(Ae.y,0,1)),C=ie.getDay(),ie=C>4||C===0?Gh.ceil(ie):Gh(ie),ie=_w.offset(ie,(Ae.V-1)*7),Ae.y=ie.getFullYear(),Ae.m=ie.getMonth(),Ae.d=ie.getDate()+(Ae.w+6)%7)}else("W"in Ae||"U"in Ae)&&("w"in Ae||(Ae.w="u"in Ae?Ae.u%7:"W"in Ae?1:0),C="Z"in Ae?p1(Rc(Ae.y,0,1)).getUTCDay():d1(Rc(Ae.y,0,1)).getDay(),Ae.m=0,Ae.d="W"in Ae?(Ae.w+6)%7+Ae.W*7-(C+5)%7:Ae.w+Ae.U*7-(C+6)%7);return"Z"in Ae?(Ae.H+=Ae.Z/100|0,Ae.M+=Ae.Z%100,p1(Ae)):d1(Ae)}}function Y(Qe,Ot,jt,Ae){for(var G=0,ie=Ot.length,C=jt.length,S,T;G<ie;){if(Ae>=C)return-1;if(S=Ot.charCodeAt(G++),S===37){if(S=Ot.charAt(G++),T=L[S in cA?Ot.charAt(G++):S],!T||(Ae=T(Qe,jt,Ae))<0)return-1}else if(S!=jt.charCodeAt(Ae++))return-1}return Ae}function ae(Qe,Ot,jt){var Ae=c.exec(Ot.slice(jt));return Ae?(Qe.p=v[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Ce(Qe,Ot,jt){var Ae=g.exec(Ot.slice(jt));return Ae?(Qe.w=k[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Fe(Qe,Ot,jt){var Ae=x.exec(Ot.slice(jt));return Ae?(Qe.w=y[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Ie(Qe,Ot,jt){var Ae=w.exec(Ot.slice(jt));return Ae?(Qe.m=A[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function je(Qe,Ot,jt){var Ae=N.exec(Ot.slice(jt));return Ae?(Qe.m=b[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Ke(Qe,Ot,jt){return Y(Qe,t,Ot,jt)}function mt(Qe,Ot,jt){return Y(Qe,r,Ot,jt)}function lt(Qe,Ot,jt){return Y(Qe,n,Ot,jt)}function Ue(Qe){return u[Qe.getDay()]}function Ye(Qe){return a[Qe.getDay()]}function It(Qe){return s[Qe.getMonth()]}function Ze(Qe){return l[Qe.getMonth()]}function Ee(Qe){return i[+(Qe.getHours()>=12)]}function tt(Qe){return 1+~~(Qe.getMonth()/3)}function ct(Qe){return u[Qe.getUTCDay()]}function rt(Qe){return a[Qe.getUTCDay()]}function yt(Qe){return s[Qe.getUTCMonth()]}function Tt(Qe){return l[Qe.getUTCMonth()]}function Yt(Qe){return i[+(Qe.getUTCHours()>=12)]}function Xt(Qe){return 1+~~(Qe.getUTCMonth()/3)}return{format:function(Qe){var Ot=D(Qe+="",M);return Ot.toString=function(){return Qe},Ot},parse:function(Qe){var Ot=ne(Qe+="",!1);return Ot.toString=function(){return Qe},Ot},utcFormat:function(Qe){var Ot=D(Qe+="",R);return Ot.toString=function(){return Qe},Ot},utcParse:function(Qe){var Ot=ne(Qe+="",!0);return Ot.toString=function(){return Qe},Ot}}}var cA={"-":"",_:" ",0:"0"},vn=/^\s*\d+/,i$=/^%/,a$=/[\\^$*+?|[\]().{}]/g;function gr(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 o$(e){return e.replace(a$,"\\$&")}function Ic(e){return new RegExp("^(?:"+e.map(o$).join("|")+")","i")}function Pc(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function u$(e,t,r){var n=vn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function l$(e,t,r){var n=vn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function f$(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function s$(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function c$(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function hA(e,t,r){var n=vn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function dA(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function h$(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 d$(e,t,r){var n=vn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function p$(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function pA(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function v$(e,t,r){var n=vn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function vA(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function m$(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function g$(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function y$(e,t,r){var n=vn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function x$(e,t,r){var n=vn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function _$(e,t,r){var n=i$.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function w$(e,t,r){var n=vn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function b$(e,t,r){var n=vn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function mA(e,t){return gr(e.getDate(),t,2)}function S$(e,t){return gr(e.getHours(),t,2)}function E$(e,t){return gr(e.getHours()%12||12,t,2)}function A$(e,t){return gr(1+_w.count(Vf(e),e),t,3)}function nO(e,t){return gr(e.getMilliseconds(),t,3)}function T$(e,t){return nO(e,t)+"000"}function C$(e,t){return gr(e.getMonth()+1,t,2)}function k$(e,t){return gr(e.getMinutes(),t,2)}function O$(e,t){return gr(e.getSeconds(),t,2)}function M$(e){var t=e.getDay();return t===0?7:t}function F$(e,t){return gr(Fv.count(Vf(e)-1,e),t,2)}function iO(e){var t=e.getDay();return t>=4||t===0?Qu(e):Qu.ceil(e)}function N$(e,t){return e=iO(e),gr(Qu.count(Vf(e),e)+(Vf(e).getDay()===4),t,2)}function R$(e){return e.getDay()}function I$(e,t){return gr(Gh.count(Vf(e)-1,e),t,2)}function P$(e,t){return gr(e.getFullYear()%100,t,2)}function L$(e,t){return e=iO(e),gr(e.getFullYear()%100,t,2)}function D$(e,t){return gr(e.getFullYear()%1e4,t,4)}function B$(e,t){var r=e.getDay();return e=r>=4||r===0?Qu(e):Qu.ceil(e),gr(e.getFullYear()%1e4,t,4)}function $$(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+gr(t/60|0,"0",2)+gr(t%60,"0",2)}function gA(e,t){return gr(e.getUTCDate(),t,2)}function z$(e,t){return gr(e.getUTCHours(),t,2)}function U$(e,t){return gr(e.getUTCHours()%12||12,t,2)}function j$(e,t){return gr(1+bw.count(qf(e),e),t,3)}function aO(e,t){return gr(e.getUTCMilliseconds(),t,3)}function G$(e,t){return aO(e,t)+"000"}function H$(e,t){return gr(e.getUTCMonth()+1,t,2)}function W$(e,t){return gr(e.getUTCMinutes(),t,2)}function V$(e,t){return gr(e.getUTCSeconds(),t,2)}function q$(e){var t=e.getUTCDay();return t===0?7:t}function Y$(e,t){return gr(Nv.count(qf(e)-1,e),t,2)}function oO(e){var t=e.getUTCDay();return t>=4||t===0?Zu(e):Zu.ceil(e)}function X$(e,t){return e=oO(e),gr(Zu.count(qf(e),e)+(qf(e).getUTCDay()===4),t,2)}function Q$(e){return e.getUTCDay()}function Z$(e,t){return gr(Hh.count(qf(e)-1,e),t,2)}function K$(e,t){return gr(e.getUTCFullYear()%100,t,2)}function J$(e,t){return e=oO(e),gr(e.getUTCFullYear()%100,t,2)}function e9(e,t){return gr(e.getUTCFullYear()%1e4,t,4)}function t9(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Zu(e):Zu.ceil(e),gr(e.getUTCFullYear()%1e4,t,4)}function r9(){return"+0000"}function yA(){return"%"}function xA(e){return+e}function _A(e){return Math.floor(+e/1e3)}var tf,uO,lO,Ew,Aw;fO({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 fO(e){return tf=rO(e),uO=tf.format,lO=tf.parse,Ew=tf.utcFormat,Aw=tf.utcParse,tf}var sO="%Y-%m-%dT%H:%M:%S.%LZ";function n9(e){return e.toISOString()}var i9=Date.prototype.toISOString?n9:Ew(sO);const a9=i9;function o9(e){var t=new Date(e);return isNaN(t)?null:t}var u9=+new Date("2000-01-01T00:00:00.000Z")?o9:Aw(sO);const l9=u9,f9=Object.freeze(Object.defineProperty({__proto__:null,isoFormat:a9,isoParse:l9,get timeFormat(){return uO},timeFormatDefaultLocale:fO,timeFormatLocale:rO,get timeParse(){return lO},get utcFormat(){return Ew},get utcParse(){return Aw}},Symbol.toStringTag,{value:"Module"})),qq=el(f9);function s9(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Rv(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 Yf(e){return e=Rv(Math.abs(e)),e?e[1]:NaN}function c9(e,t){return function(r,n){for(var i=r.length,a=[],u=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[u=(u+1)%e.length];return a.reverse().join(t)}}function h9(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var d9=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Iv(e){if(!(t=d9.exec(e)))throw new Error("invalid format: "+e);var t;return new ym({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]})}Iv.prototype=ym.prototype;function ym(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+""}ym.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 p9(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 cO;function v9(e,t){var r=Rv(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(cO=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,u=n.length;return a===u?n:a>u?n+new Array(a-u+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Rv(e,Math.max(0,t+a-1))[0]}function wA(e,t){var r=Rv(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 bA={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:s9,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 wA(e*100,t)},r:wA,s:v9,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function SA(e){return e}var EA=Array.prototype.map,AA=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hO(e){var t=e.grouping===void 0||e.thousands===void 0?SA:c9(EA.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?SA:h9(EA.call(e.numerals,String)),u=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(x){x=Iv(x);var y=x.fill,g=x.align,k=x.sign,N=x.symbol,b=x.zero,w=x.width,A=x.comma,M=x.precision,R=x.trim,L=x.type;L==="n"?(A=!0,L="g"):bA[L]||(M===void 0&&(M=12),R=!0,L="g"),(b||y==="0"&&g==="=")&&(b=!0,y="0",g="=");var D=N==="$"?r:N==="#"&&/[boxX]/.test(L)?"0"+L.toLowerCase():"",ne=N==="$"?n:/[%p]/.test(L)?u:"",Y=bA[L],ae=/[defgprs%]/.test(L);M=M===void 0?6:/[gprs]/.test(L)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function Ce(Fe){var Ie=D,je=ne,Ke,mt,lt;if(L==="c")je=Y(Fe)+je,Fe="";else{Fe=+Fe;var Ue=Fe<0||1/Fe<0;if(Fe=isNaN(Fe)?s:Y(Math.abs(Fe),M),R&&(Fe=p9(Fe)),Ue&&+Fe==0&&k!=="+"&&(Ue=!1),Ie=(Ue?k==="("?k:l:k==="-"||k==="("?"":k)+Ie,je=(L==="s"?AA[8+cO/3]:"")+je+(Ue&&k==="("?")":""),ae){for(Ke=-1,mt=Fe.length;++Ke<mt;)if(lt=Fe.charCodeAt(Ke),48>lt||lt>57){je=(lt===46?i+Fe.slice(Ke+1):Fe.slice(Ke))+je,Fe=Fe.slice(0,Ke);break}}}A&&!b&&(Fe=t(Fe,1/0));var Ye=Ie.length+Fe.length+je.length,It=Ye<w?new Array(w-Ye+1).join(y):"";switch(A&&b&&(Fe=t(It+Fe,It.length?w-je.length:1/0),It=""),g){case"<":Fe=Ie+Fe+je+It;break;case"=":Fe=Ie+It+Fe+je;break;case"^":Fe=It.slice(0,Ye=It.length>>1)+Ie+Fe+je+It.slice(Ye);break;default:Fe=It+Ie+Fe+je;break}return a(Fe)}return Ce.toString=function(){return x+""},Ce}function v(x,y){var g=c((x=Iv(x),x.type="f",x)),k=Math.max(-8,Math.min(8,Math.floor(Yf(y)/3)))*3,N=Math.pow(10,-k),b=AA[8+k/3];return function(w){return g(N*w)+b}}return{format:c,formatPrefix:v}}var r0,dO,pO;vO({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function vO(e){return r0=hO(e),dO=r0.format,pO=r0.formatPrefix,r0}function m9(e){return Math.max(0,-Yf(Math.abs(e)))}function g9(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yf(t)/3)))*3-Yf(Math.abs(e)))}function y9(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yf(t)-Yf(e))+1}const x9=Object.freeze(Object.defineProperty({__proto__:null,FormatSpecifier:ym,get format(){return dO},formatDefaultLocale:vO,formatLocale:hO,get formatPrefix(){return pO},formatSpecifier:Iv,precisionFixed:m9,precisionPrefix:g9,precisionRound:y9},Symbol.toStringTag,{value:"Module"})),Yq=el(x9);var _9=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},w9=_9,Xq=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&w9(r))return!1}else if(t!=="number")return!1;return e-e<1},TA={},b9={get exports(){return TA},set exports(e){TA=e}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,u=t.min,l=t.max,s=t.random;function c(G,ie){if(G=G||"",ie=ie||{},G instanceof c)return G;if(!(this instanceof c))return new c(G,ie);var C=v(G);this._originalInput=G,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=a(100*this._a)/100,this._format=ie.format||C.format,this._gradientType=ie.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=C.ok,this._tc_id=i++}c.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 G=this.toRgb();return(G.r*299+G.g*587+G.b*114)/1e3},getLuminance:function(){var G=this.toRgb(),ie,C,S,T,B,se;return ie=G.r/255,C=G.g/255,S=G.b/255,ie<=.03928?T=ie/12.92:T=t.pow((ie+.055)/1.055,2.4),C<=.03928?B=C/12.92:B=t.pow((C+.055)/1.055,2.4),S<=.03928?se=S/12.92:se=t.pow((S+.055)/1.055,2.4),.2126*T+.7152*B+.0722*se},setAlpha:function(G){return this._a=It(G),this._roundA=a(100*this._a)/100,this},toHsv:function(){var G=k(this._r,this._g,this._b);return{h:G.h*360,s:G.s,v:G.v,a:this._a}},toHsvString:function(){var G=k(this._r,this._g,this._b),ie=a(G.h*360),C=a(G.s*100),S=a(G.v*100);return this._a==1?"hsv("+ie+", "+C+"%, "+S+"%)":"hsva("+ie+", "+C+"%, "+S+"%, "+this._roundA+")"},toHsl:function(){var G=y(this._r,this._g,this._b);return{h:G.h*360,s:G.s,l:G.l,a:this._a}},toHslString:function(){var G=y(this._r,this._g,this._b),ie=a(G.h*360),C=a(G.s*100),S=a(G.l*100);return this._a==1?"hsl("+ie+", "+C+"%, "+S+"%)":"hsla("+ie+", "+C+"%, "+S+"%, "+this._roundA+")"},toHex:function(G){return b(this._r,this._g,this._b,G)},toHexString:function(G){return"#"+this.toHex(G)},toHex8:function(G){return w(this._r,this._g,this._b,this._a,G)},toHex8String:function(G){return"#"+this.toHex8(G)},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(Ze(this._r,255)*100)+"%",g:a(Ze(this._g,255)*100)+"%",b:a(Ze(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(Ze(this._r,255)*100)+"%, "+a(Ze(this._g,255)*100)+"%, "+a(Ze(this._b,255)*100)+"%)":"rgba("+a(Ze(this._r,255)*100)+"%, "+a(Ze(this._g,255)*100)+"%, "+a(Ze(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Ue[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(G){var ie="#"+A(this._r,this._g,this._b,this._a),C=ie,S=this._gradientType?"GradientType = 1, ":"";if(G){var T=c(G);C="#"+A(T._r,T._g,T._b,T._a)}return"progid:DXImageTransform.Microsoft.gradient("+S+"startColorstr="+ie+",endColorstr="+C+")"},toString:function(G){var ie=!!G;G=G||this._format;var C=!1,S=this._a<1&&this._a>=0,T=!ie&&S&&(G==="hex"||G==="hex6"||G==="hex3"||G==="hex4"||G==="hex8"||G==="name");return T?G==="name"&&this._a===0?this.toName():this.toRgbString():(G==="rgb"&&(C=this.toRgbString()),G==="prgb"&&(C=this.toPercentageRgbString()),(G==="hex"||G==="hex6")&&(C=this.toHexString()),G==="hex3"&&(C=this.toHexString(!0)),G==="hex4"&&(C=this.toHex8String(!0)),G==="hex8"&&(C=this.toHex8String()),G==="name"&&(C=this.toName()),G==="hsl"&&(C=this.toHslString()),G==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(G,ie){var C=G.apply(null,[this].concat([].slice.call(ie)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification(ne,arguments)},darken:function(){return this._applyModification(Y,arguments)},desaturate:function(){return this._applyModification(M,arguments)},saturate:function(){return this._applyModification(R,arguments)},greyscale:function(){return this._applyModification(L,arguments)},spin:function(){return this._applyModification(ae,arguments)},_applyCombination:function(G,ie){return G.apply(null,[this].concat([].slice.call(ie)))},analogous:function(){return this._applyCombination(Ke,arguments)},complement:function(){return this._applyCombination(Ce,arguments)},monochromatic:function(){return this._applyCombination(mt,arguments)},splitcomplement:function(){return this._applyCombination(je,arguments)},triad:function(){return this._applyCombination(Fe,arguments)},tetrad:function(){return this._applyCombination(Ie,arguments)}},c.fromRatio=function(G,ie){if(typeof G=="object"){var C={};for(var S in G)G.hasOwnProperty(S)&&(S==="a"?C[S]=G[S]:C[S]=Tt(G[S]));G=C}return c(G,ie)};function v(G){var ie={r:0,g:0,b:0},C=1,S=null,T=null,B=null,se=!1,Ne=!1;return typeof G=="string"&&(G=jt(G)),typeof G=="object"&&(Ot(G.r)&&Ot(G.g)&&Ot(G.b)?(ie=x(G.r,G.g,G.b),se=!0,Ne=String(G.r).substr(-1)==="%"?"prgb":"rgb"):Ot(G.h)&&Ot(G.s)&&Ot(G.v)?(S=Tt(G.s),T=Tt(G.v),ie=N(G.h,S,T),se=!0,Ne="hsv"):Ot(G.h)&&Ot(G.s)&&Ot(G.l)&&(S=Tt(G.s),B=Tt(G.l),ie=g(G.h,S,B),se=!0,Ne="hsl"),G.hasOwnProperty("a")&&(C=G.a)),C=It(C),{ok:se,format:G.format||Ne,r:u(255,l(ie.r,0)),g:u(255,l(ie.g,0)),b:u(255,l(ie.b,0)),a:C}}function x(G,ie,C){return{r:Ze(G,255)*255,g:Ze(ie,255)*255,b:Ze(C,255)*255}}function y(G,ie,C){G=Ze(G,255),ie=Ze(ie,255),C=Ze(C,255);var S=l(G,ie,C),T=u(G,ie,C),B,se,Ne=(S+T)/2;if(S==T)B=se=0;else{var De=S-T;switch(se=Ne>.5?De/(2-S-T):De/(S+T),S){case G:B=(ie-C)/De+(ie<C?6:0);break;case ie:B=(C-G)/De+2;break;case C:B=(G-ie)/De+4;break}B/=6}return{h:B,s:se,l:Ne}}function g(G,ie,C){var S,T,B;G=Ze(G,360),ie=Ze(ie,100),C=Ze(C,100);function se(Qt,fr,rr){return rr<0&&(rr+=1),rr>1&&(rr-=1),rr<1/6?Qt+(fr-Qt)*6*rr:rr<1/2?fr:rr<2/3?Qt+(fr-Qt)*(2/3-rr)*6:Qt}if(ie===0)S=T=B=C;else{var Ne=C<.5?C*(1+ie):C+ie-C*ie,De=2*C-Ne;S=se(De,Ne,G+1/3),T=se(De,Ne,G),B=se(De,Ne,G-1/3)}return{r:S*255,g:T*255,b:B*255}}function k(G,ie,C){G=Ze(G,255),ie=Ze(ie,255),C=Ze(C,255);var S=l(G,ie,C),T=u(G,ie,C),B,se,Ne=S,De=S-T;if(se=S===0?0:De/S,S==T)B=0;else{switch(S){case G:B=(ie-C)/De+(ie<C?6:0);break;case ie:B=(C-G)/De+2;break;case C:B=(G-ie)/De+4;break}B/=6}return{h:B,s:se,v:Ne}}function N(G,ie,C){G=Ze(G,360)*6,ie=Ze(ie,100),C=Ze(C,100);var S=t.floor(G),T=G-S,B=C*(1-ie),se=C*(1-T*ie),Ne=C*(1-(1-T)*ie),De=S%6,Qt=[C,se,B,B,Ne,C][De],fr=[Ne,C,C,se,B,B][De],rr=[B,B,Ne,C,C,se][De];return{r:Qt*255,g:fr*255,b:rr*255}}function b(G,ie,C,S){var T=[yt(a(G).toString(16)),yt(a(ie).toString(16)),yt(a(C).toString(16))];return S&&T[0].charAt(0)==T[0].charAt(1)&&T[1].charAt(0)==T[1].charAt(1)&&T[2].charAt(0)==T[2].charAt(1)?T[0].charAt(0)+T[1].charAt(0)+T[2].charAt(0):T.join("")}function w(G,ie,C,S,T){var B=[yt(a(G).toString(16)),yt(a(ie).toString(16)),yt(a(C).toString(16)),yt(Yt(S))];return T&&B[0].charAt(0)==B[0].charAt(1)&&B[1].charAt(0)==B[1].charAt(1)&&B[2].charAt(0)==B[2].charAt(1)&&B[3].charAt(0)==B[3].charAt(1)?B[0].charAt(0)+B[1].charAt(0)+B[2].charAt(0)+B[3].charAt(0):B.join("")}function A(G,ie,C,S){var T=[yt(Yt(S)),yt(a(G).toString(16)),yt(a(ie).toString(16)),yt(a(C).toString(16))];return T.join("")}c.equals=function(G,ie){return!G||!ie?!1:c(G).toRgbString()==c(ie).toRgbString()},c.random=function(){return c.fromRatio({r:s(),g:s(),b:s()})};function M(G,ie){ie=ie===0?0:ie||10;var C=c(G).toHsl();return C.s-=ie/100,C.s=Ee(C.s),c(C)}function R(G,ie){ie=ie===0?0:ie||10;var C=c(G).toHsl();return C.s+=ie/100,C.s=Ee(C.s),c(C)}function L(G){return c(G).desaturate(100)}function D(G,ie){ie=ie===0?0:ie||10;var C=c(G).toHsl();return C.l+=ie/100,C.l=Ee(C.l),c(C)}function ne(G,ie){ie=ie===0?0:ie||10;var C=c(G).toRgb();return C.r=l(0,u(255,C.r-a(255*-(ie/100)))),C.g=l(0,u(255,C.g-a(255*-(ie/100)))),C.b=l(0,u(255,C.b-a(255*-(ie/100)))),c(C)}function Y(G,ie){ie=ie===0?0:ie||10;var C=c(G).toHsl();return C.l-=ie/100,C.l=Ee(C.l),c(C)}function ae(G,ie){var C=c(G).toHsl(),S=(C.h+ie)%360;return C.h=S<0?360+S:S,c(C)}function Ce(G){var ie=c(G).toHsl();return ie.h=(ie.h+180)%360,c(ie)}function Fe(G){var ie=c(G).toHsl(),C=ie.h;return[c(G),c({h:(C+120)%360,s:ie.s,l:ie.l}),c({h:(C+240)%360,s:ie.s,l:ie.l})]}function Ie(G){var ie=c(G).toHsl(),C=ie.h;return[c(G),c({h:(C+90)%360,s:ie.s,l:ie.l}),c({h:(C+180)%360,s:ie.s,l:ie.l}),c({h:(C+270)%360,s:ie.s,l:ie.l})]}function je(G){var ie=c(G).toHsl(),C=ie.h;return[c(G),c({h:(C+72)%360,s:ie.s,l:ie.l}),c({h:(C+216)%360,s:ie.s,l:ie.l})]}function Ke(G,ie,C){ie=ie||6,C=C||30;var S=c(G).toHsl(),T=360/C,B=[c(G)];for(S.h=(S.h-(T*ie>>1)+720)%360;--ie;)S.h=(S.h+T)%360,B.push(c(S));return B}function mt(G,ie){ie=ie||6;for(var C=c(G).toHsv(),S=C.h,T=C.s,B=C.v,se=[],Ne=1/ie;ie--;)se.push(c({h:S,s:T,v:B})),B=(B+Ne)%1;return se}c.mix=function(G,ie,C){C=C===0?0:C||50;var S=c(G).toRgb(),T=c(ie).toRgb(),B=C/100,se={r:(T.r-S.r)*B+S.r,g:(T.g-S.g)*B+S.g,b:(T.b-S.b)*B+S.b,a:(T.a-S.a)*B+S.a};return c(se)},c.readability=function(G,ie){var C=c(G),S=c(ie);return(t.max(C.getLuminance(),S.getLuminance())+.05)/(t.min(C.getLuminance(),S.getLuminance())+.05)},c.isReadable=function(G,ie,C){var S=c.readability(G,ie),T,B;switch(B=!1,T=Ae(C),T.level+T.size){case"AAsmall":case"AAAlarge":B=S>=4.5;break;case"AAlarge":B=S>=3;break;case"AAAsmall":B=S>=7;break}return B},c.mostReadable=function(G,ie,C){var S=null,T=0,B,se,Ne,De;C=C||{},se=C.includeFallbackColors,Ne=C.level,De=C.size;for(var Qt=0;Qt<ie.length;Qt++)B=c.readability(G,ie[Qt]),B>T&&(T=B,S=c(ie[Qt]));return c.isReadable(G,S,{level:Ne,size:De})||!se?S:(C.includeFallbackColors=!1,c.mostReadable(G,["#fff","#000"],C))};var lt=c.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"},Ue=c.hexNames=Ye(lt);function Ye(G){var ie={};for(var C in G)G.hasOwnProperty(C)&&(ie[G[C]]=C);return ie}function It(G){return G=parseFloat(G),(isNaN(G)||G<0||G>1)&&(G=1),G}function Ze(G,ie){ct(G)&&(G="100%");var C=rt(G);return G=u(ie,l(0,parseFloat(G))),C&&(G=parseInt(G*ie,10)/100),t.abs(G-ie)<1e-6?1:G%ie/parseFloat(ie)}function Ee(G){return u(1,l(0,G))}function tt(G){return parseInt(G,16)}function ct(G){return typeof G=="string"&&G.indexOf(".")!=-1&&parseFloat(G)===1}function rt(G){return typeof G=="string"&&G.indexOf("%")!=-1}function yt(G){return G.length==1?"0"+G:""+G}function Tt(G){return G<=1&&(G=G*100+"%"),G}function Yt(G){return t.round(parseFloat(G)*255).toString(16)}function Xt(G){return tt(G)/255}var Qe=function(){var G="[-\\+]?\\d+%?",ie="[-\\+]?\\d*\\.\\d+%?",C="(?:"+ie+")|(?:"+G+")",S="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",T="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+S),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+S),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+S),hsva:new RegExp("hsva"+T),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 Ot(G){return!!Qe.CSS_UNIT.exec(G)}function jt(G){G=G.replace(r,"").replace(n,"").toLowerCase();var ie=!1;if(lt[G])G=lt[G],ie=!0;else if(G=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=Qe.rgb.exec(G))?{r:C[1],g:C[2],b:C[3]}:(C=Qe.rgba.exec(G))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=Qe.hsl.exec(G))?{h:C[1],s:C[2],l:C[3]}:(C=Qe.hsla.exec(G))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=Qe.hsv.exec(G))?{h:C[1],s:C[2],v:C[3]}:(C=Qe.hsva.exec(G))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=Qe.hex8.exec(G))?{r:tt(C[1]),g:tt(C[2]),b:tt(C[3]),a:Xt(C[4]),format:ie?"name":"hex8"}:(C=Qe.hex6.exec(G))?{r:tt(C[1]),g:tt(C[2]),b:tt(C[3]),format:ie?"name":"hex"}:(C=Qe.hex4.exec(G))?{r:tt(C[1]+""+C[1]),g:tt(C[2]+""+C[2]),b:tt(C[3]+""+C[3]),a:Xt(C[4]+""+C[4]),format:ie?"name":"hex8"}:(C=Qe.hex3.exec(G))?{r:tt(C[1]+""+C[1]),g:tt(C[2]+""+C[2]),b:tt(C[3]+""+C[3]),format:ie?"name":"hex"}:!1}function Ae(G){var ie,C;return G=G||{level:"AA",size:"small"},ie=(G.level||"AA").toUpperCase(),C=(G.size||"small").toLowerCase(),ie!=="AA"&&ie!=="AAA"&&(ie="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:ie,size:C}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(b9);var S9=E9;function E9(){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 A9=T9;function T9(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 C9=k9;function k9(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 mO=O9;function O9(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 M9=F9;function F9(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],u=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]=u,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 N9=R9;function R9(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],u=t[4],l=t[5],s=t[6],c=t[7],v=t[8],x=t[9],y=t[10],g=t[11],k=t[12],N=t[13],b=t[14],w=t[15],A=r*l-n*u,M=r*s-i*u,R=r*c-a*u,L=n*s-i*l,D=n*c-a*l,ne=i*c-a*s,Y=v*N-x*k,ae=v*b-y*k,Ce=v*w-g*k,Fe=x*b-y*N,Ie=x*w-g*N,je=y*w-g*b,Ke=A*je-M*Ie+R*Fe+L*Ce-D*ae+ne*Y;return Ke?(Ke=1/Ke,e[0]=(l*je-s*Ie+c*Fe)*Ke,e[1]=(i*Ie-n*je-a*Fe)*Ke,e[2]=(N*ne-b*D+w*L)*Ke,e[3]=(y*D-x*ne-g*L)*Ke,e[4]=(s*Ce-u*je-c*ae)*Ke,e[5]=(r*je-i*Ce+a*ae)*Ke,e[6]=(b*R-k*ne-w*M)*Ke,e[7]=(v*ne-y*R+g*M)*Ke,e[8]=(u*Ie-l*Ce+c*Y)*Ke,e[9]=(n*Ce-r*Ie-a*Y)*Ke,e[10]=(k*D-N*R+w*A)*Ke,e[11]=(x*R-v*D-g*A)*Ke,e[12]=(l*ae-u*Fe-s*Y)*Ke,e[13]=(r*Fe-n*ae+i*Y)*Ke,e[14]=(N*M-k*L-b*A)*Ke,e[15]=(v*L-x*M+y*A)*Ke,e):null}var I9=P9;function P9(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],u=t[4],l=t[5],s=t[6],c=t[7],v=t[8],x=t[9],y=t[10],g=t[11],k=t[12],N=t[13],b=t[14],w=t[15];return e[0]=l*(y*w-g*b)-x*(s*w-c*b)+N*(s*g-c*y),e[1]=-(n*(y*w-g*b)-x*(i*w-a*b)+N*(i*g-a*y)),e[2]=n*(s*w-c*b)-l*(i*w-a*b)+N*(i*c-a*s),e[3]=-(n*(s*g-c*y)-l*(i*g-a*y)+x*(i*c-a*s)),e[4]=-(u*(y*w-g*b)-v*(s*w-c*b)+k*(s*g-c*y)),e[5]=r*(y*w-g*b)-v*(i*w-a*b)+k*(i*g-a*y),e[6]=-(r*(s*w-c*b)-u*(i*w-a*b)+k*(i*c-a*s)),e[7]=r*(s*g-c*y)-u*(i*g-a*y)+v*(i*c-a*s),e[8]=u*(x*w-g*N)-v*(l*w-c*N)+k*(l*g-c*x),e[9]=-(r*(x*w-g*N)-v*(n*w-a*N)+k*(n*g-a*x)),e[10]=r*(l*w-c*N)-u*(n*w-a*N)+k*(n*c-a*l),e[11]=-(r*(l*g-c*x)-u*(n*g-a*x)+v*(n*c-a*l)),e[12]=-(u*(x*b-y*N)-v*(l*b-s*N)+k*(l*y-s*x)),e[13]=r*(x*b-y*N)-v*(n*b-i*N)+k*(n*y-i*x),e[14]=-(r*(l*b-s*N)-u*(n*b-i*N)+k*(n*s-i*l)),e[15]=r*(l*y-s*x)-u*(n*y-i*x)+v*(n*s-i*l),e}var L9=D9;function D9(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],u=e[5],l=e[6],s=e[7],c=e[8],v=e[9],x=e[10],y=e[11],g=e[12],k=e[13],N=e[14],b=e[15],w=t*u-r*a,A=t*l-n*a,M=t*s-i*a,R=r*l-n*u,L=r*s-i*u,D=n*s-i*l,ne=c*k-v*g,Y=c*N-x*g,ae=c*b-y*g,Ce=v*N-x*k,Fe=v*b-y*k,Ie=x*b-y*N;return w*Ie-A*Fe+M*Ce+R*ae-L*Y+D*ne}var B9=$9;function $9(e,t,r){var n=t[0],i=t[1],a=t[2],u=t[3],l=t[4],s=t[5],c=t[6],v=t[7],x=t[8],y=t[9],g=t[10],k=t[11],N=t[12],b=t[13],w=t[14],A=t[15],M=r[0],R=r[1],L=r[2],D=r[3];return e[0]=M*n+R*l+L*x+D*N,e[1]=M*i+R*s+L*y+D*b,e[2]=M*a+R*c+L*g+D*w,e[3]=M*u+R*v+L*k+D*A,M=r[4],R=r[5],L=r[6],D=r[7],e[4]=M*n+R*l+L*x+D*N,e[5]=M*i+R*s+L*y+D*b,e[6]=M*a+R*c+L*g+D*w,e[7]=M*u+R*v+L*k+D*A,M=r[8],R=r[9],L=r[10],D=r[11],e[8]=M*n+R*l+L*x+D*N,e[9]=M*i+R*s+L*y+D*b,e[10]=M*a+R*c+L*g+D*w,e[11]=M*u+R*v+L*k+D*A,M=r[12],R=r[13],L=r[14],D=r[15],e[12]=M*n+R*l+L*x+D*N,e[13]=M*i+R*s+L*y+D*b,e[14]=M*a+R*c+L*g+D*w,e[15]=M*u+R*v+L*k+D*A,e}var z9=U9;function U9(e,t,r){var n=r[0],i=r[1],a=r[2],u,l,s,c,v,x,y,g,k,N,b,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]):(u=t[0],l=t[1],s=t[2],c=t[3],v=t[4],x=t[5],y=t[6],g=t[7],k=t[8],N=t[9],b=t[10],w=t[11],e[0]=u,e[1]=l,e[2]=s,e[3]=c,e[4]=v,e[5]=x,e[6]=y,e[7]=g,e[8]=k,e[9]=N,e[10]=b,e[11]=w,e[12]=u*n+v*i+k*a+t[12],e[13]=l*n+x*i+N*a+t[13],e[14]=s*n+y*i+b*a+t[14],e[15]=c*n+g*i+w*a+t[15]),e}var j9=G9;function G9(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 H9=W9;function W9(e,t,r,n){var i=n[0],a=n[1],u=n[2],l=Math.sqrt(i*i+a*a+u*u),s,c,v,x,y,g,k,N,b,w,A,M,R,L,D,ne,Y,ae,Ce,Fe,Ie,je,Ke,mt;return Math.abs(l)<1e-6?null:(l=1/l,i*=l,a*=l,u*=l,s=Math.sin(r),c=Math.cos(r),v=1-c,x=t[0],y=t[1],g=t[2],k=t[3],N=t[4],b=t[5],w=t[6],A=t[7],M=t[8],R=t[9],L=t[10],D=t[11],ne=i*i*v+c,Y=a*i*v+u*s,ae=u*i*v-a*s,Ce=i*a*v-u*s,Fe=a*a*v+c,Ie=u*a*v+i*s,je=i*u*v+a*s,Ke=a*u*v-i*s,mt=u*u*v+c,e[0]=x*ne+N*Y+M*ae,e[1]=y*ne+b*Y+R*ae,e[2]=g*ne+w*Y+L*ae,e[3]=k*ne+A*Y+D*ae,e[4]=x*Ce+N*Fe+M*Ie,e[5]=y*Ce+b*Fe+R*Ie,e[6]=g*Ce+w*Fe+L*Ie,e[7]=k*Ce+A*Fe+D*Ie,e[8]=x*je+N*Ke+M*mt,e[9]=y*je+b*Ke+R*mt,e[10]=g*je+w*Ke+L*mt,e[11]=k*je+A*Ke+D*mt,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var V9=q9;function q9(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],u=t[5],l=t[6],s=t[7],c=t[8],v=t[9],x=t[10],y=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+c*n,e[5]=u*i+v*n,e[6]=l*i+x*n,e[7]=s*i+y*n,e[8]=c*i-a*n,e[9]=v*i-u*n,e[10]=x*i-l*n,e[11]=y*i-s*n,e}var Y9=X9;function X9(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],u=t[1],l=t[2],s=t[3],c=t[8],v=t[9],x=t[10],y=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-c*n,e[1]=u*i-v*n,e[2]=l*i-x*n,e[3]=s*i-y*n,e[8]=a*n+c*i,e[9]=u*n+v*i,e[10]=l*n+x*i,e[11]=s*n+y*i,e}var Q9=Z9;function Z9(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],u=t[1],l=t[2],s=t[3],c=t[4],v=t[5],x=t[6],y=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+c*n,e[1]=u*i+v*n,e[2]=l*i+x*n,e[3]=s*i+y*n,e[4]=c*i-a*n,e[5]=v*i-u*n,e[6]=x*i-l*n,e[7]=y*i-s*n,e}var K9=J9;function J9(e,t,r){var n,i,a,u=r[0],l=r[1],s=r[2],c=Math.sqrt(u*u+l*l+s*s);return Math.abs(c)<1e-6?null:(c=1/c,u*=c,l*=c,s*=c,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=u*u*a+i,e[1]=l*u*a+s*n,e[2]=s*u*a-l*n,e[3]=0,e[4]=u*l*a-s*n,e[5]=l*l*a+i,e[6]=s*l*a+u*n,e[7]=0,e[8]=u*s*a+l*n,e[9]=l*s*a-u*n,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var ez=tz;function tz(e,t,r){var n=t[0],i=t[1],a=t[2],u=t[3],l=n+n,s=i+i,c=a+a,v=n*l,x=n*s,y=n*c,g=i*s,k=i*c,N=a*c,b=u*l,w=u*s,A=u*c;return e[0]=1-(g+N),e[1]=x+A,e[2]=y-w,e[3]=0,e[4]=x-A,e[5]=1-(v+N),e[6]=k+b,e[7]=0,e[8]=y+w,e[9]=k-b,e[10]=1-(v+g),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}var rz=nz;function nz(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 iz=az;function az(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 oz=uz;function uz(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 lz=fz;function fz(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 sz=cz;function cz(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 hz=dz;function dz(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],u=r+r,l=n+n,s=i+i,c=r*u,v=n*u,x=n*l,y=i*u,g=i*l,k=i*s,N=a*u,b=a*l,w=a*s;return e[0]=1-x-k,e[1]=v+w,e[2]=y-b,e[3]=0,e[4]=v-w,e[5]=1-c-k,e[6]=g+N,e[7]=0,e[8]=y+b,e[9]=g-N,e[10]=1-c-x,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var pz=vz;function vz(e,t,r,n,i,a,u){var l=1/(r-t),s=1/(i-n),c=1/(a-u);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]=(u+a)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=u*a*2*c,e[15]=0,e}var mz=gz;function gz(e,t,r,n,i){var a=1/Math.tan(t/2),u=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)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*u,e[15]=0,e}var yz=xz;function xz(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),u=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(u+l),c=2/(i+a);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-((u-l)*s*.5),e[9]=(i-a)*c*.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 _z=wz;function wz(e,t,r,n,i,a,u){var l=1/(t-r),s=1/(n-i),c=1/(a-u);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*c,e[11]=0,e[12]=(t+r)*l,e[13]=(i+n)*s,e[14]=(u+a)*c,e[15]=1,e}var bz=mO,Sz=Ez;function Ez(e,t,r,n){var i,a,u,l,s,c,v,x,y,g,k=t[0],N=t[1],b=t[2],w=n[0],A=n[1],M=n[2],R=r[0],L=r[1],D=r[2];return Math.abs(k-R)<1e-6&&Math.abs(N-L)<1e-6&&Math.abs(b-D)<1e-6?bz(e):(v=k-R,x=N-L,y=b-D,g=1/Math.sqrt(v*v+x*x+y*y),v*=g,x*=g,y*=g,i=A*y-M*x,a=M*v-w*y,u=w*x-A*v,g=Math.sqrt(i*i+a*a+u*u),g?(g=1/g,i*=g,a*=g,u*=g):(i=0,a=0,u=0),l=x*u-y*a,s=y*i-v*u,c=v*a-x*i,g=Math.sqrt(l*l+s*s+c*c),g?(g=1/g,l*=g,s*=g,c*=g):(l=0,s=0,c=0),e[0]=i,e[1]=l,e[2]=v,e[3]=0,e[4]=a,e[5]=s,e[6]=x,e[7]=0,e[8]=u,e[9]=c,e[10]=y,e[11]=0,e[12]=-(i*k+a*N+u*b),e[13]=-(l*k+s*N+c*b),e[14]=-(v*k+x*N+y*b),e[15]=1,e)}var Az=Tz;function Tz(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 Qq={create:S9,clone:A9,copy:C9,identity:mO,transpose:M9,invert:N9,adjoint:I9,determinant:L9,multiply:B9,translate:z9,scale:j9,rotate:H9,rotateX:V9,rotateY:Y9,rotateZ:Q9,fromRotation:K9,fromRotationTranslation:ez,fromScaling:rz,fromTranslation:iz,fromXRotation:oz,fromYRotation:lz,fromZRotation:sz,fromQuat:hz,frustum:pz,perspective:mz,perspectiveFromFieldOfView:yz,ortho:_z,lookAt:Sz,str:Az},Pv={},Cz={get exports(){return Pv},set exports(e){Pv=e}};Cz.exports=Tw;Pv.isMobile=Tw;Pv.default=Tw;const kz=/(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,Oz=/CrOS/,Mz=/android|ipad|playbook|silk/i;function Tw(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=kz.test(t)&&!Oz.test(t)||!!e.tablet&&Mz.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var Fz=!0,Nz=Fz,M2;typeof Lr.matchMedia=="function"?M2=!Lr.matchMedia("(hover: none)").matches:M2=Nz;var Zq=M2,F2={},Rz={get exports(){return F2},set exports(e){F2=e}},If=typeof Reflect=="object"?Reflect:null,CA=If&&typeof If.apply=="function"?If.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},L0;If&&typeof If.ownKeys=="function"?L0=If.ownKeys:Object.getOwnPropertySymbols?L0=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:L0=function(t){return Object.getOwnPropertyNames(t)};function Iz(e){console&&console.warn&&console.warn(e)}var gO=Number.isNaN||function(t){return t!==t};function Sr(){Sr.init.call(this)}Rz.exports=Sr;F2.once=Bz;Sr.EventEmitter=Sr;Sr.prototype._events=void 0;Sr.prototype._eventsCount=0;Sr.prototype._maxListeners=void 0;var kA=10;function xm(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Sr,"defaultMaxListeners",{enumerable:!0,get:function(){return kA},set:function(e){if(typeof e!="number"||e<0||gO(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");kA=e}});Sr.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};Sr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||gO(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 yO(e){return e._maxListeners===void 0?Sr.defaultMaxListeners:e._maxListeners}Sr.prototype.getMaxListeners=function(){return yO(this)};Sr.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 u;if(r.length>0&&(u=r[0]),u instanceof Error)throw u;var l=new Error("Unhandled error."+(u?" ("+u.message+")":""));throw l.context=u,l}var s=a[t];if(s===void 0)return!1;if(typeof s=="function")CA(s,this,r);else for(var c=s.length,v=SO(s,c),n=0;n<c;++n)CA(v[n],this,r);return!0};function xO(e,t,r,n){var i,a,u;if(xm(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),u=a[t]),u===void 0)u=a[t]=r,++e._eventsCount;else if(typeof u=="function"?u=a[t]=n?[r,u]:[u,r]:n?u.unshift(r):u.push(r),i=yO(e),i>0&&u.length>i&&!u.warned){u.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=u.length,Iz(l)}return e}Sr.prototype.addListener=function(t,r){return xO(this,t,r,!1)};Sr.prototype.on=Sr.prototype.addListener;Sr.prototype.prependListener=function(t,r){return xO(this,t,r,!0)};function Pz(){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 _O(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Pz.bind(n);return i.listener=r,n.wrapFn=i,i}Sr.prototype.once=function(t,r){return xm(r),this.on(t,_O(this,t,r)),this};Sr.prototype.prependOnceListener=function(t,r){return xm(r),this.prependListener(t,_O(this,t,r)),this};Sr.prototype.removeListener=function(t,r){var n,i,a,u,l;if(xm(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,u=n.length-1;u>=0;u--)if(n[u]===r||n[u].listener===r){l=n[u].listener,a=u;break}if(a<0)return this;a===0?n.shift():Lz(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,l||r)}return this};Sr.prototype.off=Sr.prototype.removeListener;Sr.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),u;for(i=0;i<a.length;++i)u=a[i],u!=="removeListener"&&this.removeAllListeners(u);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 wO(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?Dz(i):SO(i,i.length)}Sr.prototype.listeners=function(t){return wO(this,t,!0)};Sr.prototype.rawListeners=function(t){return wO(this,t,!1)};Sr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):bO.call(e,t)};Sr.prototype.listenerCount=bO;function bO(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}Sr.prototype.eventNames=function(){return this._eventsCount>0?L0(this._events):[]};function SO(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function Lz(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Dz(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function Bz(e,t){return new Promise(function(r,n){function i(u){e.removeListener(t,a),n(u)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}EO(e,t,a,{once:!0}),t!=="error"&&$z(e,i,{once:!0})})}function $z(e,t,r){typeof e.on=="function"&&EO(e,"error",t,r)}function EO(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 AO=Uz,v1={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},zz=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Uz(e){var t=[];return e.replace(zz,function(r,n,i){var a=n.toLowerCase();for(i=Gz(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==v1[a])return i.unshift(n),t.push(i);if(i.length<v1[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,v1[a])))}}),t}var jz=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function Gz(e){var t=e.match(jz);return t?t.map(Number):[]}var Hz={left:0,top:0},Kq=Wz;function Wz(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=Vz(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Vz(e){return e===window||e===document||e===document.body?Hz:e.getBoundingClientRect()}function qz(){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 Jq=qz();function Yz(){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,u){return n("temp_status",{seg:i,above:a,below:u})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,u){return n("status",{seg:i,above:a,below:u})},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 Xz=Yz;function Qz(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],u=n[1],l=i[0],s=i[1],c=r[0],v=r[1];return(l-a)*(v-u)-(s-u)*(c-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],u=i[0]-n[0],l=r[0]-n[0],s=i[1]-n[1],c=l*u+a*s;if(c<e)return!1;var v=u*u+s*s;return!(c-v>-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],u=r[1]-n[1],l=n[0]-i[0],s=n[1]-i[1];return Math.abs(a*s-l*u)<e},linesIntersect:function(r,n,i,a){var u=n[0]-r[0],l=n[1]-r[1],s=a[0]-i[0],c=a[1]-i[1],v=u*c-l*s;if(Math.abs(v)<e)return!1;var x=r[0]-i[0],y=r[1]-i[1],g=(s*y-c*x)/v,k=(u*y-l*x)/v,N={alongA:0,alongB:0,pt:[r[0]+g*u,r[1]+g*l]};return g<=-e?N.alongA=-2:g<e?N.alongA=-1:g-1<=-e?N.alongA=0:g-1<e?N.alongA=1:N.alongA=2,k<=-e?N.alongB=-2:k<e?N.alongB=-1:k-1<=-e?N.alongB=0:k-1<e?N.alongB=1:N.alongB=2,N},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],u=n[n.length-1][0],l=n[n.length-1][1],s=!1,c=0;c<n.length;c++){var v=n[c][0],x=n[c][1];x-a>e!=l-a>e&&(u-v)*(a-x)/(l-x)+v-i>e&&(s=!s),u=v,l=x}return s}};return t}var Zz=Qz,Kz={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}},Jz=Kz,Lc=Jz;function eU(e,t,r){function n(k,N){return{id:r?r.segmentId():-1,start:k,end:N,myFill:{above:null,below:null},otherFill:null}}function i(k,N,b){return{id:r?r.segmentId():-1,start:k,end:N,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=Lc.create();function u(k,N,b,w,A,M){var R=t.pointsCompare(N,A);return R!==0?R:t.pointsSame(b,M)?0:k!==w?k?1:-1:t.pointAboveOrOnLine(b,w?A:M,w?M:A)?1:-1}function l(k,N){a.insertBefore(k,function(b){var w=u(k.isStart,k.pt,N,b.isStart,b.pt,b.other.pt);return w<0})}function s(k,N){var b=Lc.node({isStart:!0,pt:k.start,seg:k,primary:N,other:null,status:null});return l(b,k.end),b}function c(k,N,b){var w=Lc.node({isStart:!1,pt:N.end,seg:N,primary:b,other:k,status:null});k.other=w,l(w,k.pt)}function v(k,N){var b=s(k,N);return c(b,k,N),b}function x(k,N){r&&r.segmentChop(k.seg,N),k.other.remove(),k.seg.end=N,k.other.pt=N,l(k.other,k.pt)}function y(k,N){var b=i(N,k.seg.end,k.seg);return x(k,N),v(b,k.primary)}function g(k,N){var b=Lc.create();function w(Ke,mt){var lt=Ke.seg.start,Ue=Ke.seg.end,Ye=mt.seg.start,It=mt.seg.end;return t.pointsCollinear(lt,Ye,It)?t.pointsCollinear(Ue,Ye,It)||t.pointAboveOrOnLine(Ue,Ye,It)?1:-1:t.pointAboveOrOnLine(lt,Ye,It)?1:-1}function A(Ke){return b.findTransition(function(mt){var lt=w(Ke,mt.ev);return lt>0})}function M(Ke,mt){var lt=Ke.seg,Ue=mt.seg,Ye=lt.start,It=lt.end,Ze=Ue.start,Ee=Ue.end;r&&r.checkIntersection(lt,Ue);var tt=t.linesIntersect(Ye,It,Ze,Ee);if(tt===!1){if(!t.pointsCollinear(Ye,It,Ze)||t.pointsSame(Ye,Ee)||t.pointsSame(It,Ze))return!1;var ct=t.pointsSame(Ye,Ze),rt=t.pointsSame(It,Ee);if(ct&&rt)return mt;var yt=!ct&&t.pointBetween(Ye,Ze,Ee),Tt=!rt&&t.pointBetween(It,Ze,Ee);if(ct)return Tt?y(mt,It):y(Ke,Ee),mt;yt&&(rt||(Tt?y(mt,It):y(Ke,Ee)),y(mt,Ye))}else tt.alongA===0&&(tt.alongB===-1?y(Ke,Ze):tt.alongB===0?y(Ke,tt.pt):tt.alongB===1&&y(Ke,Ee)),tt.alongB===0&&(tt.alongA===-1?y(mt,Ye):tt.alongA===0?y(mt,tt.pt):tt.alongA===1&&y(mt,It));return!1}for(var R=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let Ke=function(){if(ne){var mt=M(L,ne);if(mt)return mt}return Y?M(L,Y):!1};r&&r.segmentNew(L.seg,L.primary);var D=A(L),ne=D.before?D.before.ev:null,Y=D.after?D.after.ev:null;r&&r.tempStatus(L.seg,ne?ne.seg:!1,Y?Y.seg:!1);var ae=Ke();if(ae){if(e){var Ce;L.seg.myFill.below===null?Ce=!0:Ce=L.seg.myFill.above!==L.seg.myFill.below,Ce&&(ae.seg.myFill.above=!ae.seg.myFill.above)}else ae.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(ae.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var Ce;L.seg.myFill.below===null?Ce=!0:Ce=L.seg.myFill.above!==L.seg.myFill.below,Y?L.seg.myFill.below=Y.seg.myFill.above:L.seg.myFill.below=k,Ce?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var Fe;Y?L.primary===Y.primary?Fe=Y.seg.otherFill.above:Fe=Y.seg.myFill.above:Fe=L.primary?N:k,L.seg.otherFill={above:Fe,below:Fe}}r&&r.status(L.seg,ne?ne.seg:!1,Y?Y.seg:!1),L.other.status=D.insert(Lc.node({ev:L}))}else{var Ie=L.status;if(Ie===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(Ie.prev)&&b.exists(Ie.next)&&M(Ie.prev.ev,Ie.next.ev),r&&r.statusRemove(Ie.ev.seg),Ie.remove(),!L.primary){var je=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=je}R.push(L.seg)}a.getHead().remove()}return r&&r.done(),R}return e?{addRegion:function(k){for(var N,b=k[k.length-1],w=0;w<k.length;w++){N=b,b=k[w];var A=t.pointsCompare(N,b);A!==0&&v(n(A<0?N:b,A<0?b:N),!0)}},calculate:function(k){return g(k,!1)}}:{calculate:function(k,N,b,w){return k.forEach(function(A){v(i(A.start,A.end,A),!0)}),b.forEach(function(A){v(i(A.start,A.end,A),!1)}),g(N,w)}}}var tU=eU;function rU(e,t,r){var n=[],i=[];return e.forEach(function(a){var u=a.start,l=a.end;if(t.pointsSame(u,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},c={index:0,matches_head:!1,matches_pt1:!1},v=s;function x(Ie,je,Ke){return v.index=Ie,v.matches_head=je,v.matches_pt1=Ke,v===s?(v=c,!1):(v=null,!0)}for(var y=0;y<n.length;y++){var g=n[y],k=g[0];g[1];var N=g[g.length-1];if(g[g.length-2],t.pointsSame(k,u)){if(x(y,!0,!0))break}else if(t.pointsSame(k,l)){if(x(y,!0,!1))break}else if(t.pointsSame(N,u)){if(x(y,!1,!0))break}else if(t.pointsSame(N,l)&&x(y,!1,!1))break}if(v===s){n.push([u,l]),r&&r.chainNew(u,l);return}if(v===c){r&&r.chainMatch(s.index);var b=s.index,w=s.matches_pt1?l:u,A=s.matches_head,g=n[b],M=A?g[0]:g[g.length-1],R=A?g[1]:g[g.length-2],L=A?g[g.length-1]:g[0],D=A?g[g.length-2]:g[1];if(t.pointsCollinear(R,M,w)&&(A?(r&&r.chainRemoveHead(s.index,w),g.shift()):(r&&r.chainRemoveTail(s.index,w),g.pop()),M=R),t.pointsSame(L,w)){n.splice(b,1),t.pointsCollinear(D,L,M)&&(A?(r&&r.chainRemoveTail(s.index,M),g.pop()):(r&&r.chainRemoveHead(s.index,M),g.shift())),r&&r.chainClose(s.index),i.push(g);return}A?(r&&r.chainAddHead(s.index,w),g.unshift(w)):(r&&r.chainAddTail(s.index,w),g.push(w));return}function ne(Ie){r&&r.chainReverse(Ie),n[Ie].reverse()}function Y(Ie,je){var Ke=n[Ie],mt=n[je],lt=Ke[Ke.length-1],Ue=Ke[Ke.length-2],Ye=mt[0],It=mt[1];t.pointsCollinear(Ue,lt,Ye)&&(r&&r.chainRemoveTail(Ie,lt),Ke.pop(),lt=Ue),t.pointsCollinear(lt,Ye,It)&&(r&&r.chainRemoveHead(je,Ye),mt.shift()),r&&r.chainJoin(Ie,je),n[Ie]=Ke.concat(mt),n.splice(je,1)}var ae=s.index,Ce=c.index;r&&r.chainConnect(ae,Ce);var Fe=n[ae].length<n[Ce].length;s.matches_head?c.matches_head?Fe?(ne(ae),Y(ae,Ce)):(ne(Ce),Y(Ce,ae)):Y(Ce,ae):c.matches_head?Y(ae,Ce):Fe?(ne(ae),Y(Ce,ae)):(ne(Ce),Y(ae,Ce))}),i}var nU=rU;function Dc(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 iU={union:function(e,t){return Dc(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Dc(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Dc(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Dc(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Dc(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},aU=iU,oU={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function u(c){var v=c.slice(0,c.length-1);return e.segments({inverted:!1,regions:[v]})}for(var l=u(a[0]),s=1;s<a.length;s++)l=e.selectDifference(e.combine(l,u(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(g,k){return t.pointInsideRegion([(g[0][0]+g[1][0])*.5,(g[0][1]+g[1][1])*.5],k)}function i(g){return{region:g,children:[]}}var a=i(null);function u(g,k){for(var N=0;N<g.children.length;N++){var b=g.children[N];if(n(k,b.region)){u(b,k);return}}for(var w=i(k),N=0;N<g.children.length;N++){var b=g.children[N];n(b.region,k)&&(w.children.push(b),g.children.splice(N,1),N--)}g.children.push(w)}for(var l=0;l<r.regions.length;l++){var s=r.regions[l];s.length<3||u(a,s)}function c(g,k){for(var N=0,b=g[g.length-1][0],w=g[g.length-1][1],A=[],M=0;M<g.length;M++){var R=g[M][0],L=g[M][1];A.push([R,L]),N+=L*b-R*w,b=R,w=L}var D=N<0;return D!==k&&A.reverse(),A.push([A[0][0],A[0][1]]),A}var v=[];function x(g){var k=[c(g.region,!1)];v.push(k);for(var N=0;N<g.children.length;N++)k.push(y(g.children[N]))}function y(g){for(var k=0;k<g.children.length;k++)x(g.children[k]);return c(g.region,!0)}for(var l=0;l<a.children.length;l++)x(a.children[l]);return v.length<=0?{type:"Polygon",coordinates:[]}:v.length==1?{type:"Polygon",coordinates:v[0]}:{type:"MultiPolygon",coordinates:v}}},uU=oU;/*
813
- * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
814
- * @license MIT
815
- * @preserve Project Home: https://github.com/voidqk/polybooljs
816
- */var lU=Xz,fU=Zz,OA=tU,sU=nU,Bc=aU,MA=uU,ci=!1,$c=fU(),Gn;Gn={buildLog:function(e){return e===!0?ci=lU():e===!1&&(ci=!1),ci===!1?!1:ci.list},epsilon:function(e){return $c.epsilon(e)},segments:function(e){var t=OA(!0,$c,ci);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=OA(!1,$c,ci);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Bc.union(e.combined,ci),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Bc.intersect(e.combined,ci),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Bc.difference(e.combined,ci),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Bc.differenceRev(e.combined,ci),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Bc.xor(e.combined,ci),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:sU(e.segments,$c,ci),inverted:e.inverted}},polygonFromGeoJSON:function(e){return MA.toPolygon(Gn,e)},polygonToGeoJSON:function(e){return MA.fromPolygon(Gn,$c,e)},union:function(e,t){return zc(e,t,Gn.selectUnion)},intersect:function(e,t){return zc(e,t,Gn.selectIntersect)},difference:function(e,t){return zc(e,t,Gn.selectDifference)},differenceRev:function(e,t){return zc(e,t,Gn.selectDifferenceRev)},xor:function(e,t){return zc(e,t,Gn.selectXor)}};function zc(e,t,r){var n=Gn.segments(e),i=Gn.segments(t),a=Gn.combine(n,i),u=r(a);return Gn.polygon(u)}typeof window=="object"&&(window.PolyBool=Gn);var eY=Gn,tY=function(t,r,n,i){var a=t[0],u=t[1],l=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var s=i-n,c=0,v=s-1;c<s;v=c++){var x=r[c+n][0],y=r[c+n][1],g=r[v+n][0],k=r[v+n][1],N=y>u!=k>u&&a<(g-x)*(u-y)/(k-y)+x;N&&(l=!l)}return l};const rY=el(n$);var N2={},cU={get exports(){return N2},set exports(e){N2=e}};function hU(e,t,r,n,i){for(var a=i+1;n<=i;){var u=n+i>>>1,l=e[u],s=r!==void 0?r(l,t):l-t;s>=0?(a=u,i=u-1):n=u+1}return a}function dU(e,t,r,n,i){for(var a=i+1;n<=i;){var u=n+i>>>1,l=e[u],s=r!==void 0?r(l,t):l-t;s>0?(a=u,i=u-1):n=u+1}return a}function pU(e,t,r,n,i){for(var a=n-1;n<=i;){var u=n+i>>>1,l=e[u],s=r!==void 0?r(l,t):l-t;s<0?(a=u,n=u+1):i=u-1}return a}function vU(e,t,r,n,i){for(var a=n-1;n<=i;){var u=n+i>>>1,l=e[u],s=r!==void 0?r(l,t):l-t;s<=0?(a=u,n=u+1):i=u-1}return a}function mU(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,u=e[a],l=r!==void 0?r(u,t):u-t;if(l===0)return a;l<=0?n=a+1:i=a-1}return-1}function Uc(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 gU={ge:function(e,t,r,n,i){return Uc(e,t,r,n,i,hU)},gt:function(e,t,r,n,i){return Uc(e,t,r,n,i,dU)},lt:function(e,t,r,n,i){return Uc(e,t,r,n,i,pU)},le:function(e,t,r,n,i){return Uc(e,t,r,n,i,vU)},eq:function(e,t,r,n,i){return Uc(e,t,r,n,i,mU)}},sd=yU;function yU(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var Xo=function(t,r,n){var i={},a,u;if(typeof r=="string"&&(r=FA(r)),Array.isArray(r)){var l={};for(u=0;u<r.length;u++)l[r[u]]=!0;r=l}for(a in r)r[a]=FA(r[a]);var s={};for(a in r){var c=r[a];if(Array.isArray(c))for(u=0;u<c.length;u++){var v=c[u];if(n&&(s[v]=!0),v in t){if(i[a]=t[v],n)for(var x=u;x<c.length;x++)s[c[x]]=!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},m1={};function FA(e){return m1[e]?m1[e]:(typeof e=="string"&&(e=m1[e]=e.split(/\s*,\s*|\s+/)),e)}var xU=Xo,_m=_U;function _U(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=xU(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 cd=wU;function wU(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,u=n,l=e.length;u<l;u+=t)e[u]>i&&(i=e[u]),e[u]<a&&(a=e[u]);r[n]=a,r[t+n]=i}return r}var TO=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},Cw=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}},NA=Cw,hd=bU;function bU(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,u,l,s;(!t||typeof t=="string")&&(t=new(NA(t||"float32"))(i+r));var c=t.length-r;if(i!==c)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+c);for(a=0,l=r;a<e.length;a++)for(u=0;u<n;u++)t[l++]=e[a][u]===null?NaN:e[a][u]}else if(!t||typeof t=="string"){var v=NA(t||"float32");if(Array.isArray(e)||t==="array")for(t=new v(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 v(e):(t=new v(e.length+r),t.set(e,r))}else t.set(e,r);return t}var SU=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},EU=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const RA=gU,IA=sd,AU=_m,TU=cd,PA=Xo,g1=TO,CU=hd,kU=SU,OU=Cw,LA=EU,MU=1073741824;var FU=function(t,r){r||(r={}),t=CU(t,"float64"),r=PA(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=g1(r.maxDepth,255),i=g1(r.bounds,TU(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=DA(t,i),u=t.length>>>1,l;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?l=new(OU(r.dtype))(u):r.dtype&&(l=r.dtype,Array.isArray(l)&&(l.length=u));for(let w=0;w<u;++w)l[w]=w;let s=[],c=[],v=[],x=[];g(0,0,1,l,0,1);let y=0;for(let w=0;w<s.length;w++){let A=s[w];if(l.set)l.set(A,y);else for(let R=0,L=A.length;R<L;R++)l[R+y]=A[R];let M=y+s[w].length;x[w]=[y,M],y=M}return l.range=k,l;function g(w,A,M,R,L,D){if(!R.length)return null;let ne=s[L]||(s[L]=[]),Y=v[L]||(v[L]=[]),ae=c[L]||(c[L]=[]),Ce=ne.length;if(L++,L>n||D>MU){for(let Ye=0;Ye<R.length;Ye++)ne.push(R[Ye]),Y.push(D),ae.push(null,null,null,null);return Ce}if(ne.push(R[0]),Y.push(D),R.length<=1)return ae.push(null,null,null,null),Ce;let Fe=M*.5,Ie=w+Fe,je=A+Fe,Ke=[],mt=[],lt=[],Ue=[];for(let Ye=1,It=R.length;Ye<It;Ye++){let Ze=R[Ye],Ee=a[Ze*2],tt=a[Ze*2+1];Ee<Ie?tt<je?Ke.push(Ze):mt.push(Ze):tt<je?lt.push(Ze):Ue.push(Ze)}return D<<=2,ae.push(g(w,A,Fe,Ke,L,D),g(w,je,Fe,mt,L,D+1),g(Ie,A,Fe,lt,L,D+2),g(Ie,je,Fe,Ue,L,D+3)),Ce}function k(...w){let A;if(kU(w[w.length-1])){let lt=w.pop();!w.length&&(lt.x!=null||lt.l!=null||lt.left!=null)&&(w=[lt],A={}),A=PA(lt,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else A={};w.length||(w=i);let M=AU(...w),[R,L,D,ne]=[Math.min(M.x,M.x+M.width),Math.min(M.y,M.y+M.height),Math.max(M.x,M.x+M.width),Math.max(M.y,M.y+M.height)],[Y,ae,Ce,Fe]=DA([R,L,D,ne],i),Ie=g1(A.level,s.length);if(A.d!=null){let lt;typeof A.d=="number"?lt=[A.d,A.d]:A.d.length&&(lt=A.d),Ie=Math.min(Math.max(Math.ceil(-LA(Math.abs(lt[0])/(i[2]-i[0]))),Math.ceil(-LA(Math.abs(lt[1])/(i[3]-i[1])))),Ie)}if(Ie=Math.min(Ie,s.length),A.lod)return N(Y,ae,Ce,Fe,Ie);let je=[];Ke(0,0,1,0,0,1);function Ke(lt,Ue,Ye,It,Ze,Ee){if(Ze===null||Ee===null)return;let tt=lt+Ye,ct=Ue+Ye;if(Y>tt||ae>ct||Ce<lt||Fe<Ue||It>=Ie||Ze===Ee)return;let rt=s[It];Ee===void 0&&(Ee=rt.length);for(let G=Ze;G<Ee;G++){let ie=rt[G],C=t[ie*2],S=t[ie*2+1];C>=R&&C<=D&&S>=L&&S<=ne&&je.push(ie)}let yt=c[It],Tt=yt[Ze*4+0],Yt=yt[Ze*4+1],Xt=yt[Ze*4+2],Qe=yt[Ze*4+3],Ot=mt(yt,Ze+1),jt=Ye*.5,Ae=It+1;Ke(lt,Ue,jt,Ae,Tt,Yt||Xt||Qe||Ot),Ke(lt,Ue+jt,jt,Ae,Yt,Xt||Qe||Ot),Ke(lt+jt,Ue,jt,Ae,Xt,Qe||Ot),Ke(lt+jt,Ue+jt,jt,Ae,Qe,Ot)}function mt(lt,Ue){let Ye=null,It=0;for(;Ye===null;)if(Ye=lt[Ue*4+It],It++,It>lt.length)return null;return Ye}return je}function N(w,A,M,R,L){let D=[];for(let ne=0;ne<L;ne++){let Y=v[ne],ae=x[ne][0],Ce=b(w,A,ne),Fe=b(M,R,ne),Ie=RA.ge(Y,Ce),je=RA.gt(Y,Fe,Ie,Y.length-1);D[ne]=[Ie+ae,je+ae]}return D}function b(w,A,M){let R=1,L=.5,D=.5,ne=.5;for(let Y=0;Y<M;Y++)R<<=2,R+=w<L?A<D?0:1:A<D?2:3,ne*=.5,L+=w<L?-ne:ne,D+=A<D?-ne:ne;return R}};function DA(e,t){let[r,n,i,a]=t,u=1/(i-r),l=1/(a-n),s=new Array(e.length);for(let c=0,v=e.length/2;c<v;c++)s[2*c]=IA((e[2*c]-r)*u,0,1),s[2*c+1]=IA((e[2*c+1]-n)*l,0,1);return s}(function(e){e.exports=FU})(cU);var CO=NU;function NU(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var u=a[0],l=u.toUpperCase();if(u!=l)switch(a[0]=l,u){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 RU=function(){function e(t,r){var n=[],i=!0,a=!1,u=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(c){a=!0,u=c}finally{try{!i&&l.return&&l.return()}finally{if(a)throw u}}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")}}(),xh=Math.PI*2,y1=function(t,r,n,i,a,u,l){var s=t.x,c=t.y;s*=r,c*=n;var v=i*s-a*c,x=a*s+i*c;return{x:v+u,y:x+l}},IU=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),u=Math.cos(t+r),l=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:u+l*n,y:l-u*n},{x:u,y:l}]},BA=function(t,r,n,i){var a=t*i-r*n<0?-1:1,u=t*n+r*i;return u>1&&(u=1),u<-1&&(u=-1),a*Math.acos(u)},PU=function(t,r,n,i,a,u,l,s,c,v,x,y){var g=Math.pow(a,2),k=Math.pow(u,2),N=Math.pow(x,2),b=Math.pow(y,2),w=g*k-g*b-k*N;w<0&&(w=0),w/=g*b+k*N,w=Math.sqrt(w)*(l===s?-1:1);var A=w*a/u*y,M=w*-u/a*x,R=v*A-c*M+(t+n)/2,L=c*A+v*M+(r+i)/2,D=(x-A)/a,ne=(y-M)/u,Y=(-x-A)/a,ae=(-y-M)/u,Ce=BA(1,0,D,ne),Fe=BA(D,ne,Y,ae);return s===0&&Fe>0&&(Fe-=xh),s===1&&Fe<0&&(Fe+=xh),[R,L,Ce,Fe]},LU=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,u=t.rx,l=t.ry,s=t.xAxisRotation,c=s===void 0?0:s,v=t.largeArcFlag,x=v===void 0?0:v,y=t.sweepFlag,g=y===void 0?0:y,k=[];if(u===0||l===0)return[];var N=Math.sin(c*xh/360),b=Math.cos(c*xh/360),w=b*(r-i)/2+N*(n-a)/2,A=-N*(r-i)/2+b*(n-a)/2;if(w===0&&A===0)return[];u=Math.abs(u),l=Math.abs(l);var M=Math.pow(w,2)/Math.pow(u,2)+Math.pow(A,2)/Math.pow(l,2);M>1&&(u*=Math.sqrt(M),l*=Math.sqrt(M));var R=PU(r,n,i,a,u,l,x,g,N,b,w,A),L=RU(R,4),D=L[0],ne=L[1],Y=L[2],ae=L[3],Ce=Math.abs(ae)/(xh/4);Math.abs(1-Ce)<1e-7&&(Ce=1);var Fe=Math.max(Math.ceil(Ce),1);ae/=Fe;for(var Ie=0;Ie<Fe;Ie++)k.push(IU(Y,ae)),Y+=ae;return k.map(function(je){var Ke=y1(je[0],u,l,b,N,D,ne),mt=Ke.x,lt=Ke.y,Ue=y1(je[1],u,l,b,N,D,ne),Ye=Ue.x,It=Ue.y,Ze=y1(je[2],u,l,b,N,D,ne),Ee=Ze.x,tt=Ze.y;return{x1:mt,y1:lt,x2:Ye,y2:It,x:Ee,y:tt}})};const DU=Object.freeze(Object.defineProperty({__proto__:null,default:LU},Symbol.toStringTag,{value:"Module"})),BU=el(DU);var $U=UU,zU=BU;function UU(e){for(var t,r=[],n=0,i=0,a=0,u=0,l=null,s=null,c=0,v=0,x=0,y=e.length;x<y;x++){var g=e[x],k=g[0];switch(k){case"M":a=g[1],u=g[2];break;case"A":var N=zU({px:c,py:v,cx:g[6],cy:g[7],rx:g[1],ry:g[2],xAxisRotation:g[3],largeArcFlag:g[4],sweepFlag:g[5]});if(!N.length)continue;for(var b=0,w;b<N.length;b++)w=N[b],g=["C",w.x1,w.y1,w.x2,w.y2,w.x,w.y],b<N.length-1&&r.push(g);break;case"S":var A=c,M=v;(t=="C"||t=="S")&&(A+=A-n,M+=M-i),g=["C",A,M,g[1],g[2],g[3],g[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,s=v*2-s):(l=c,s=v),g=$A(c,v,l,s,g[1],g[2]);break;case"Q":l=g[1],s=g[2],g=$A(c,v,g[1],g[2],g[3],g[4]);break;case"L":g=n0(c,v,g[1],g[2]);break;case"H":g=n0(c,v,g[1],v);break;case"V":g=n0(c,v,c,g[1]);break;case"Z":g=n0(c,v,a,u);break}t=k,c=g[g.length-2],v=g[g.length-1],g.length>4?(n=g[g.length-4],i=g[g.length-3]):(n=c,i=v),r.push(g)}return r}function n0(e,t,r,n){return["C",e,t,r,n,r,n]}function $A(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 kO=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))},jU=AO,GU=CO,HU=$U,WU=kO,VU=qU;function qU(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!WU(e))throw Error("String is not an SVG path.");e=jU(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=GU(e),e=HU(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 Ou=Math.PI,zA=MO(120),YU=XU;function XU(e){for(var t,r=[],n=0,i=0,a=0,u=0,l=null,s=null,c=0,v=0,x=0,y=e.length;x<y;x++){var g=e[x],k=g[0];switch(k){case"M":a=g[1],u=g[2];break;case"A":g=OO(c,v,g[1],g[2],MO(g[3]),g[4],g[5],g[6],g[7]),g.unshift("C"),g.length>7&&(r.push(g.splice(0,7)),g.unshift("C"));break;case"S":var N=c,b=v;(t=="C"||t=="S")&&(N+=N-n,b+=b-i),g=["C",N,b,g[1],g[2],g[3],g[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,s=v*2-s):(l=c,s=v),g=UA(c,v,l,s,g[1],g[2]);break;case"Q":l=g[1],s=g[2],g=UA(c,v,g[1],g[2],g[3],g[4]);break;case"L":g=i0(c,v,g[1],g[2]);break;case"H":g=i0(c,v,g[1],v);break;case"V":g=i0(c,v,c,g[1]);break;case"Z":g=i0(c,v,a,u);break}t=k,c=g[g.length-2],v=g[g.length-1],g.length>4?(n=g[g.length-4],i=g[g.length-3]):(n=c,i=v),r.push(g)}return r}function i0(e,t,r,n){return["C",e,t,r,n,r,n]}function UA(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 OO(e,t,r,n,i,a,u,l,s,c){if(c)M=c[0],R=c[1],w=c[2],A=c[3];else{var v=x1(e,t,-i);e=v.x,t=v.y,v=x1(l,s,-i),l=v.x,s=v.y;var x=(e-l)/2,y=(t-s)/2,g=x*x/(r*r)+y*y/(n*n);g>1&&(g=Math.sqrt(g),r=g*r,n=g*n);var k=r*r,N=n*n,b=(a==u?-1:1)*Math.sqrt(Math.abs((k*N-k*y*y-N*x*x)/(k*y*y+N*x*x)));b==1/0&&(b=1);var w=b*r*y/n+(e+l)/2,A=b*-n*x/r+(t+s)/2,M=Math.asin(((t-A)/n).toFixed(9)),R=Math.asin(((s-A)/n).toFixed(9));M=e<w?Ou-M:M,R=l<w?Ou-R:R,M<0&&(M=Ou*2+M),R<0&&(R=Ou*2+R),u&&M>R&&(M=M-Ou*2),!u&&R>M&&(R=R-Ou*2)}if(Math.abs(R-M)>zA){var L=R,D=l,ne=s;R=M+zA*(u&&R>M?1:-1),l=w+r*Math.cos(R),s=A+n*Math.sin(R);var Y=OO(l,s,r,n,i,0,u,D,ne,[R,L,w,A])}var ae=Math.tan((R-M)/4),Ce=4/3*r*ae,Fe=4/3*n*ae,Ie=[2*e-(e+Ce*Math.sin(M)),2*t-(t-Fe*Math.cos(M)),l+Ce*Math.sin(R),s-Fe*Math.cos(R),l,s];if(c)return Ie;Y&&(Ie=Ie.concat(Y));for(var je=0;je<Ie.length;){var Ke=x1(Ie[je],Ie[je+1],i);Ie[je++]=Ke.x,Ie[je++]=Ke.y}return Ie}function x1(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function MO(e){return e*(Ou/180)}var QU=CO,ZU=YU,KU={M:"moveTo",C:"bezierCurveTo"},JU=function(e,t){e.beginPath(),ZU(QU(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[KU[n]].apply(e,i)}),e.closePath()},ej=sd,tj=rj,_h=1e20;function rj(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,u,l,s,c,v,x,y,g,k,N;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,u=t.height,s=e,t.stride?v=t.stride:v=Math.floor(e.length/a/u)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(y=e,x=y.getContext("2d"),a=y.width,u=y.height,g=x.getImageData(0,0,a,u),s=g.data,v=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(y=e.canvas,x=e,a=y.width,u=y.height,g=x.getImageData(0,0,a,u),s=g.data,v=4):window.ImageData&&e instanceof window.ImageData&&(g=e,a=e.width,u=e.height,s=g.data,v=4);if(l=Math.max(a,u),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(c=s,s=Array(a*u),k=0,N=c.length;k<N;k++)s[k]=c[k*v+i]/255;else if(v!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*u),w=Array(a*u),A=Array(l),M=Array(l),R=Array(l+1),L=Array(l);for(k=0,N=a*u;k<N;k++){var D=s[k];b[k]=D===1?0:D===0?_h:Math.pow(Math.max(0,.5-D),2),w[k]=D===1?_h:D===0?0:Math.pow(Math.max(0,D-.5),2)}jA(b,a,u,A,M,L,R),jA(w,a,u,A,M,L,R);var ne=window.Float32Array?new Float32Array(a*u):new Array(a*u);for(k=0,N=a*u;k<N;k++)ne[k]=ej(1-((b[k]-w[k])/n+r),0,1);return ne}function jA(e,t,r,n,i,a,u){for(var l=0;l<t;l++){for(var s=0;s<r;s++)n[s]=e[s*t+l];for(GA(n,i,a,u,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(GA(n,i,a,u,t),l=0;l<t;l++)e[s*t+l]=Math.sqrt(i[l])}}function GA(e,t,r,n,i){r[0]=0,n[0]=-_h,n[1]=+_h;for(var a=1,u=0;a<i;a++){for(var l=(e[a]+a*a-(e[r[u]]+r[u]*r[u]))/(2*a-2*r[u]);l<=n[u];)u--,l=(e[a]+a*a-(e[r[u]]+r[u]*r[u]))/(2*a-2*r[u]);u++,r[u]=a,n[u]=l,n[u+1]=+_h}for(a=0,u=0;a<i;a++){for(;n[u+1]<a;)u++;t[a]=(a-r[u])*(a-r[u])+e[r[u]]}}var nj=VU,ij=AO,aj=JU,oj=kO,uj=tj,R2=document.createElement("canvas"),Rn=R2.getContext("2d"),nY=lj;function lj(e,t){if(!oj(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=R2.width=t.w||t.width||200,n=R2.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,u=t.viewbox||t.viewBox||nj(e),l=[r/(u[2]-u[0]),n/(u[3]-u[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(Rn.fillStyle="black",Rn.fillRect(0,0,r,n),Rn.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?Rn.strokeStyle="white":Rn.strokeStyle="black",Rn.lineWidth=Math.abs(a)),Rn.translate(r*.5,n*.5),Rn.scale(s,s),fj()){var c=new Path2D(e);Rn.fill(c),a&&Rn.stroke(c)}else{var v=ij(e);aj(Rn,v),Rn.fill(),a&&Rn.stroke()}Rn.setTransform(1,0,0,1,0,0);var x=uj(Rn,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return x}var a0;function fj(){if(a0!=null)return a0;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return a0=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return a0=r&&r.data&&r.data[3]===255}var sj={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]},cj=Object.prototype.toString,FO=function(e){var t;return cj.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},HA=sj,hj=FO,Au=TO,dj=pj,WA={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function pj(e){var t,r=[],n=1,i;if(typeof e=="string")if(HA[e])r=HA[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),u=a.length,l=u<=4;n=1,l?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],u===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)],u===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],c=s==="rgb",a=s.replace(/a$/,"");i=a;var u=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(g,k){if(/%$/.test(g))return k===u?parseFloat(g)/100:a==="rgb"?parseFloat(g)*255/100:parseFloat(g);if(a[k]==="h"){if(/deg$/.test(g))return parseFloat(g);if(WA[g]!==void 0)return WA[g]}return parseFloat(g)}),s===a&&r.push(1),n=c||r[u]===void 0?1:r[u],r=r.slice(0,u)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(x){return parseFloat(x)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else if(!isNaN(e))i="rgb",r=[e>>>16,(e&65280)>>>8,e&255];else if(hj(e)){var v=Au(e.r,e.red,e.R,null);v!==null?(i="rgb",r=[v,Au(e.g,e.green,e.G),Au(e.b,e.blue,e.B)]):(i="hsl",r=[Au(e.h,e.hue,e.H),Au(e.s,e.saturation,e.S),Au(e.l,e.lightness,e.L,e.b,e.brightness)]),n=Au(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||Lr.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 vj={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,u,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 c=0;c<3;c++)u=t+1/3*-(c-1),u<0?u++:u>1&&u--,6*u<1?s=i+(a-i)*6*u:2*u<1?s=a:3*u<2?s=i+(a-i)*(2/3-u)*6:s=i,l[c]=s*255;return l}},mj=dj,gj=vj,o0=sd,yj=function(t){var r,n=mj(t);return n.space?(r=Array(3),r[0]=o0(n.values[0],0,255),r[1]=o0(n.values[1],0,255),r[2]=o0(n.values[2],0,255),n.space[0]==="h"&&(r=gj.rgb(r)),r.push(o0(n.alpha,0,1)),r):[]},xj=yj,u0=sd,_j=Cw,wm=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=_j(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=xj(t),t[0]/=255,t[1]/=255,t[2]/=255),wj(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]=u0(Math.floor(t[0]*255),0,255),i[1]=u0(Math.floor(t[1]*255),0,255),i[2]=u0(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:u0(Math.floor(t[3]*255),0,255)),i)};function wj(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 Wh={},bj={get exports(){return Wh},set exports(e){Wh=e}},l0=sd;bj.exports=NO;Wh.to=NO;Wh.from=Sj;function NO(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=l0(r,0,255)&255,n=l0(n,0,255)&255,i=l0(i,0,255)&255,a=l0(a,0,255)&255;var u=r*16777216+(n<<16)+(i<<8)+a;return u}function Sj(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 RO=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("")},IO=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i<a;i++){var u=n[i];for(var l in u)if(!(r[l]!==void 0&&!Array.isArray(r[l])&&t[l]===r[l])&&l in r){var s;if(u[l]===!0)s=r[l];else{if(u[l]===!1)continue;if(typeof u[l]=="function"&&(s=u[l](r[l],t,r),s===void 0))continue}t[l]=s}}return t},Ej=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),Ba={},Aj={get exports(){return Ba},set exports(e){Ba=e}};Aj.exports=wh;Ba.float32=Ba.float=wh;Ba.fract32=Ba.fract=Tj;var VA=new Float32Array(1);function Tj(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=wh(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return wh(e-wh(e))}function wh(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(VA[0]=e,VA[0])}function Cj(e,t){return Mj(e)||Nj(e,t)||PO(e,t)||Ij()}function kj(e){return Oj(e)||Fj(e)||PO(e)||Rj()}function Oj(e){if(Array.isArray(e))return I2(e)}function Mj(e){if(Array.isArray(e))return e}function Fj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,u,l;try{for(r=r.call(e);!(i=(u=r.next()).done)&&(n.push(u.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 PO(e,t){if(e){if(typeof e=="string")return I2(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 I2(e,t)}}function I2(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 Rj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
817
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ij(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
818
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Pj=wm,Lj=cd,Dj=Wh,Bj=N2,Uu=tl,f0=RO,$j=Xo,zj=IO,Uj=hd,qA=Ej,s0=Ba,jj=_m,Gj=cn;function cn(e,t){var r=this;if(!(this instanceof cn))return new cn(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=[],u={},l=[],s=[null],c=[null],v=255,x=100;this.tooManyColors=qA,i=e.texture({data:new Uint8Array(v*4),width:v,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),Uu(this,{regl:e,gl:n,groups:l,markerCache:c,markerTextures:s,palette:a,paletteIds:u,paletteTexture:i,maxColors:v,maxSize:x,canvas:n.canvas}),this.update(t);var y={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(b,w){return[r.tooManyColors?0:v,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(b,w){return w.xAttr||{buffer:w.positionBuffer,stride:8,offset:0}},y:function(b,w){return w.yAttr||{buffer:w.positionBuffer,stride:8,offset:4}},xFract:function(b,w){return w.xAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:0}},yFract:function(b,w){return w.yAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:4}},size:function(b,w){return w.size.length?{buffer:w.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(w.size*255/r.maxSize)]}},borderSize:function(b,w){return w.borderSize.length?{buffer:w.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(w.borderSize*255/r.maxSize)]}},colorId:function(b,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(b,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(b,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"},g=Uu({},y);g.frag=f0([`precision highp float;
819
- #define GLSLIFY 1
820
-
821
- uniform float opacity;
822
- uniform sampler2D markerTexture;
823
-
824
- varying vec4 fragColor, fragBorderColor;
825
- varying float fragWidth, fragBorderColorLevel, fragColorLevel;
826
-
827
- float smoothStep(float x, float y) {
828
- return 1.0 / (1.0 + exp(50.0*(x - y)));
829
- }
830
-
831
- void main() {
832
- float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;
833
-
834
- // max-distance alpha
835
- if (dist < 0.003) discard;
836
-
837
- // null-border case
838
- if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {
839
- float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);
840
- gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);
841
- }
842
- else {
843
- float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);
844
- float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);
845
-
846
- vec4 color = fragBorderColor;
847
- color.a *= borderColorAmt;
848
- color = mix(color, fragColor, colorAmt);
849
- color.a *= opacity;
850
-
851
- gl_FragColor = color;
852
- }
853
-
854
- }
855
- `]),g.vert=f0([`precision highp float;
856
- #define GLSLIFY 1
857
-
858
- attribute float x, y, xFract, yFract;
859
- attribute float size, borderSize;
860
- attribute vec4 colorId, borderColorId;
861
- attribute float isActive;
862
-
863
- uniform bool constPointSize;
864
- uniform float pixelRatio;
865
- uniform vec2 scale, scaleFract, translate, translateFract, paletteSize;
866
- uniform sampler2D paletteTexture;
867
-
868
- const float maxSize = 100.;
869
- const float borderLevel = .5;
870
-
871
- varying vec4 fragColor, fragBorderColor;
872
- varying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;
873
-
874
- float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
875
-
876
- bool isDirect = (paletteSize.x < 1.);
877
-
878
- vec4 getColor(vec4 id) {
879
- return isDirect ? id / 255. : texture2D(paletteTexture,
880
- vec2(
881
- (id.x + .5) / paletteSize.x,
882
- (id.y + .5) / paletteSize.y
883
- )
884
- );
885
- }
886
-
887
- void main() {
888
- // ignore inactive points
889
- if (isActive == 0.) return;
890
-
891
- vec2 position = vec2(x, y);
892
- vec2 positionFract = vec2(xFract, yFract);
893
-
894
- vec4 color = getColor(colorId);
895
- vec4 borderColor = getColor(borderColorId);
896
-
897
- float size = size * maxSize / 255.;
898
- float borderSize = borderSize * maxSize / 255.;
899
-
900
- gl_PointSize = 2. * size * pointSizeScale;
901
- fragPointSize = size * pixelRatio;
902
-
903
- vec2 pos = (position + translate) * scale
904
- + (positionFract + translateFract) * scale
905
- + (position + translate) * scaleFract
906
- + (positionFract + translateFract) * scaleFract;
907
-
908
- gl_Position = vec4(pos * 2. - 1., 0., 1.);
909
-
910
- fragColor = color;
911
- fragBorderColor = borderColor;
912
- fragWidth = 1. / gl_PointSize;
913
-
914
- fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);
915
- fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);
916
- }`]),this.drawMarker=e(g);var k=Uu({},y);k.frag=f0([`precision highp float;
917
- #define GLSLIFY 1
918
-
919
- varying vec4 fragColor, fragBorderColor;
920
- varying float fragBorderRadius, fragWidth;
921
-
922
- uniform float opacity;
923
-
924
- float smoothStep(float edge0, float edge1, float x) {
925
- float t;
926
- t = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
927
- return t * t * (3.0 - 2.0 * t);
928
- }
929
-
930
- void main() {
931
- float radius, alpha = 1.0, delta = fragWidth;
932
-
933
- radius = length(2.0 * gl_PointCoord.xy - 1.0);
934
-
935
- if (radius > 1.0 + delta) {
936
- discard;
937
- }
938
-
939
- alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);
940
-
941
- float borderRadius = fragBorderRadius;
942
- float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);
943
- vec4 color = mix(fragColor, fragBorderColor, ratio);
944
- color.a *= alpha * opacity;
945
- gl_FragColor = color;
946
- }
947
- `]),k.vert=f0([`precision highp float;
948
- #define GLSLIFY 1
949
-
950
- attribute float x, y, xFract, yFract;
951
- attribute float size, borderSize;
952
- attribute vec4 colorId, borderColorId;
953
- attribute float isActive;
954
-
955
- uniform bool constPointSize;
956
- uniform float pixelRatio;
957
- uniform vec2 paletteSize, scale, scaleFract, translate, translateFract;
958
- uniform sampler2D paletteTexture;
959
-
960
- const float maxSize = 100.;
961
-
962
- varying vec4 fragColor, fragBorderColor;
963
- varying float fragBorderRadius, fragWidth;
964
-
965
- float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
966
-
967
- bool isDirect = (paletteSize.x < 1.);
968
-
969
- vec4 getColor(vec4 id) {
970
- return isDirect ? id / 255. : texture2D(paletteTexture,
971
- vec2(
972
- (id.x + .5) / paletteSize.x,
973
- (id.y + .5) / paletteSize.y
974
- )
975
- );
976
- }
977
-
978
- void main() {
979
- // ignore inactive points
980
- if (isActive == 0.) return;
981
-
982
- vec2 position = vec2(x, y);
983
- vec2 positionFract = vec2(xFract, yFract);
984
-
985
- vec4 color = getColor(colorId);
986
- vec4 borderColor = getColor(borderColorId);
987
-
988
- float size = size * maxSize / 255.;
989
- float borderSize = borderSize * maxSize / 255.;
990
-
991
- gl_PointSize = (size + borderSize) * pointSizeScale;
992
-
993
- vec2 pos = (position + translate) * scale
994
- + (positionFract + translateFract) * scale
995
- + (position + translate) * scaleFract
996
- + (positionFract + translateFract) * scaleFract;
997
-
998
- gl_Position = vec4(pos * 2. - 1., 0., 1.);
999
-
1000
- fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);
1001
- fragColor = color;
1002
- fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
1003
- fragWidth = 1. / gl_PointSize;
1004
- }
1005
- `]),qA&&(k.frag=k.frag.replace("smoothstep","smoothStep"),g.frag=g.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(k)}cn.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};cn.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};cn.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(u,l){e.drawItem(l)});return this};cn.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,kj(this.getMarkerDrawOptions(a,n,t)));i.length&&this.drawMarker(i)}};cn.prototype.getMarkerDrawOptions=function(e,t,r){var n=t.range,i=t.tree,a=t.viewport,u=t.activation,l=t.selectionBuffer,s=t.count;if(this.regl,!i)return r?[Uu({},t,{markerTexture:this.markerTextures[e],activation:u[e],count:r.length,elements:r,offset:0})]:[Uu({},t,{markerTexture:this.markerTextures[e],activation:u[e],offset:0})];var c=[],v=i.range(n,{lod:!0,px:[(n[2]-n[0])/a.width,(n[3]-n[1])/a.height]});if(r){for(var x=u[e],y=x.data,g=new Uint8Array(s),k=0;k<r.length;k++){var N=r[k];g[N]=y?y[N]:1}l.subdata(g)}for(var b=v.length;b--;){var w=Cj(v[b],2),A=w[0],M=w[1];c.push(Uu({},t,{markerTexture:this.markerTextures[e],activation:r?l:u[e],offset:A,count:M-A}))}return c};cn.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,u=this.regl,l=this.maxSize,s=this.maxColors,c=this.palette;this.groups=i=r.map(function(v,x){var y=i[x];if(v===void 0)return y;v===null?v={positions:null}:typeof v=="function"?v={ondraw:v}:typeof v[0]=="number"&&(v={positions:v}),v=$j(v,{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"}),v.positions===null&&(v.positions=[]),v.tooManyColors!=null&&(e.tooManyColors=v.tooManyColors),y||(i[x]=y={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:u.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:u.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:u.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:u.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:u.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},v=Uu({},cn.defaults,v)),v.positions&&!("marker"in v)&&(v.marker=y.marker,delete y.marker),v.marker&&!("positions"in v)&&(v.positions=y.positions,delete y.positions);var g=0,k=0;if(zj(y,v,[{snap:!0,size:function(Ue,Ye){return Ue==null&&(Ue=cn.defaults.size),g+=Ue&&Ue.length?1:0,Ue},borderSize:function(Ue,Ye){return Ue==null&&(Ue=cn.defaults.borderSize),g+=Ue&&Ue.length?1:0,Ue},opacity:parseFloat,color:function(Ue,Ye){return Ue==null&&(Ue=cn.defaults.color),Ue=e.updateColor(Ue),k++,Ue},borderColor:function(Ue,Ye){return Ue==null&&(Ue=cn.defaults.borderColor),Ue=e.updateColor(Ue),k++,Ue},bounds:function(Ue,Ye,It){return"range"in It||(It.range=null),Ue},positions:function(Ue,Ye,It){var Ze=Ye.snap,Ee=Ye.positionBuffer,tt=Ye.positionFractBuffer,ct=Ye.selectionBuffer;if(Ue.x||Ue.y)return Ue.x.length?Ye.xAttr={buffer:u.buffer(Ue.x),offset:0,stride:4,count:Ue.x.length}:Ye.xAttr={buffer:Ue.x.buffer,offset:Ue.x.offset*4||0,stride:(Ue.x.stride||1)*4,count:Ue.x.count},Ue.y.length?Ye.yAttr={buffer:u.buffer(Ue.y),offset:0,stride:4,count:Ue.y.length}:Ye.yAttr={buffer:Ue.y.buffer,offset:Ue.y.offset*4||0,stride:(Ue.y.stride||1)*4,count:Ue.y.count},Ye.count=Math.max(Ye.xAttr.count,Ye.yAttr.count),Ue;Ue=Uj(Ue,"float64");var rt=Ye.count=Math.floor(Ue.length/2),yt=Ye.bounds=rt?Lj(Ue,2):null;if(!It.range&&!Ye.range&&(delete Ye.range,It.range=yt),!It.marker&&!Ye.marker&&(delete Ye.marker,It.marker=null),Ze&&(Ze===!0||rt>Ze)?Ye.tree=Bj(Ue,{bounds:yt}):Ze&&Ze.length&&(Ye.tree=Ze),Ye.tree){var Tt={primitive:"points",usage:"static",data:Ye.tree,type:"uint32"};Ye.elements?Ye.elements(Tt):Ye.elements=u.elements(Tt)}var Yt=s0.float32(Ue);Ee({data:Yt,usage:"dynamic"});var Xt=s0.fract32(Ue,Yt);return tt({data:Xt,usage:"dynamic"}),ct({data:new Uint8Array(rt),type:"uint8",usage:"stream"}),Ue}},{marker:function(Ue,Ye,It){var Ze=Ye.activation;if(Ze.forEach(function(Xt){return Xt&&Xt.destroy&&Xt.destroy()}),Ze.length=0,!Ue||typeof Ue[0]=="number"){var Ee=e.addMarker(Ue);Ze[Ee]=!0}else{for(var tt=[],ct=0,rt=Math.min(Ue.length,Ye.count);ct<rt;ct++){var yt=e.addMarker(Ue[ct]);tt[yt]||(tt[yt]=new Uint8Array(Ye.count)),tt[yt][ct]=1}for(var Tt=0;Tt<tt.length;Tt++)if(tt[Tt]){var Yt={data:tt[Tt],type:"uint8",usage:"static"};Ze[Tt]?Ze[Tt](Yt):Ze[Tt]=u.buffer(Yt),Ze[Tt].data=tt[Tt]}}return Ue},range:function(Ue,Ye,It){var Ze=Ye.bounds;if(Ze)return Ue||(Ue=Ze),Ye.scale=[1/(Ue[2]-Ue[0]),1/(Ue[3]-Ue[1])],Ye.translate=[-Ue[0],-Ue[1]],Ye.scaleFract=s0.fract(Ye.scale),Ye.translateFract=s0.fract(Ye.translate),Ue},viewport:function(Ue){var Ye=jj(Ue||[a.drawingBufferWidth,a.drawingBufferHeight]);return Ye}}]),g){var N=y,b=N.count,w=N.size,A=N.borderSize,M=N.sizeBuffer,R=new Uint8Array(b*2);if(w.length||A.length)for(var L=0;L<b;L++)R[L*2]=Math.round((w[L]==null?w:w[L])*255/l),R[L*2+1]=Math.round((A[L]==null?A:A[L])*255/l);M({data:R,usage:"dynamic"})}if(k){var D=y,ne=D.count,Y=D.color,ae=D.borderColor,Ce=D.colorBuffer,Fe;if(e.tooManyColors){if(Y.length||ae.length){Fe=new Uint8Array(ne*8);for(var Ie=0;Ie<ne;Ie++){var je=Y[Ie];Fe[Ie*8]=c[je*4],Fe[Ie*8+1]=c[je*4+1],Fe[Ie*8+2]=c[je*4+2],Fe[Ie*8+3]=c[je*4+3];var Ke=ae[Ie];Fe[Ie*8+4]=c[Ke*4],Fe[Ie*8+5]=c[Ke*4+1],Fe[Ie*8+6]=c[Ke*4+2],Fe[Ie*8+7]=c[Ke*4+3]}}}else if(Y.length||ae.length){Fe=new Uint8Array(ne*4+2);for(var mt=0;mt<ne;mt++)Y[mt]!=null&&(Fe[mt*4]=Y[mt]%s,Fe[mt*4+1]=Math.floor(Y[mt]/s)),ae[mt]!=null&&(Fe[mt*4+2]=ae[mt]%s,Fe[mt*4+3]=Math.floor(ae[mt]/s))}Ce({data:Fe||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return y})}};cn.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 u=0,l=e.length;u<l;u++)a[u]=e[u]*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};cn.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 u=0;u<e.length;u+=4)a.push(e.slice(u,u+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 c=e[s];c=Pj(c,"uint8");var v=Dj(c,!1);if(t[v]==null){var x=r.length;t[v]=Math.floor(x/4),r[x]=c[0],r[x+1]=c[1],r[x+2]=c[2],r[x+3]=c[3]}i[s]=t[v]}return!this.tooManyColors&&r.length>n*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};cn.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)}};cn.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 Hj=tl,Wj=function(t,r){var n=new Gj(t,r),i=n.render.bind(n);return Hj(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},iY=Wj,Lv={},Vj={get exports(){return Lv},set exports(e){Lv=e}};Vj.exports=bm;Lv.default=bm;function bm(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=LO(e,0,i,r,!0),u=[];if(!a||a.next===a.prev)return u;var l,s,c,v,x,y,g;if(n&&(a=Zj(e,t,a,r)),e.length>80*r){l=c=e[0],s=v=e[1];for(var k=r;k<i;k+=r)x=e[k],y=e[k+1],x<l&&(l=x),y<s&&(s=y),x>c&&(c=x),y>v&&(v=y);g=Math.max(c-l,v-s),g=g!==0?1/g:0}return Vh(a,u,r,l,s,g),u}function LO(e,t,r,n,i){var a,u;if(i===D2(e,t,r,n)>0)for(a=t;a<r;a+=n)u=YA(a,e[a],e[a+1],u);else for(a=r-n;a>=t;a-=n)u=YA(a,e[a],e[a+1],u);return u&&Sm(u,u.next)&&(Yh(u),u=u.next),u}function jo(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(Sm(r,r.next)||Br(r.prev,r,r.next)===0)){if(Yh(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Vh(e,t,r,n,i,a,u){if(e){!u&&a&&rG(e,n,i,a);for(var l=e,s,c;e.prev!==e.next;){if(s=e.prev,c=e.next,a?Yj(e,n,i,a):qj(e)){t.push(s.i/r),t.push(e.i/r),t.push(c.i/r),Yh(e),e=c.next,l=c.next;continue}if(e=c,e===l){u?u===1?(e=Xj(jo(e),t,r),Vh(e,t,r,n,i,a,2)):u===2&&Qj(e,t,r,n,i,a):Vh(jo(e),t,r,n,i,a,1);break}}}}function qj(e){var t=e.prev,r=e,n=e.next;if(Br(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(_f(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&Br(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Yj(e,t,r,n){var i=e.prev,a=e,u=e.next;if(Br(i,a,u)>=0)return!1;for(var l=i.x<a.x?i.x<u.x?i.x:u.x:a.x<u.x?a.x:u.x,s=i.y<a.y?i.y<u.y?i.y:u.y:a.y<u.y?a.y:u.y,c=i.x>a.x?i.x>u.x?i.x:u.x:a.x>u.x?a.x:u.x,v=i.y>a.y?i.y>u.y?i.y:u.y:a.y>u.y?a.y:u.y,x=P2(l,s,t,r,n),y=P2(c,v,t,r,n),g=e.prevZ,k=e.nextZ;g&&g.z>=x&&k&&k.z<=y;){if(g!==e.prev&&g!==e.next&&_f(i.x,i.y,a.x,a.y,u.x,u.y,g.x,g.y)&&Br(g.prev,g,g.next)>=0||(g=g.prevZ,k!==e.prev&&k!==e.next&&_f(i.x,i.y,a.x,a.y,u.x,u.y,k.x,k.y)&&Br(k.prev,k,k.next)>=0))return!1;k=k.nextZ}for(;g&&g.z>=x;){if(g!==e.prev&&g!==e.next&&_f(i.x,i.y,a.x,a.y,u.x,u.y,g.x,g.y)&&Br(g.prev,g,g.next)>=0)return!1;g=g.prevZ}for(;k&&k.z<=y;){if(k!==e.prev&&k!==e.next&&_f(i.x,i.y,a.x,a.y,u.x,u.y,k.x,k.y)&&Br(k.prev,k,k.next)>=0)return!1;k=k.nextZ}return!0}function Xj(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!Sm(i,a)&&DO(i,n,n.next,a)&&qh(i,a)&&qh(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),Yh(n),Yh(n.next),n=e=a),n=n.next}while(n!==e);return jo(n)}function Qj(e,t,r,n,i,a){var u=e;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&aG(u,l)){var s=BO(u,l);u=jo(u,u.next),s=jo(s,s.next),Vh(u,t,r,n,i,a),Vh(s,t,r,n,i,a);return}l=l.next}u=u.next}while(u!==e)}function Zj(e,t,r,n){var i=[],a,u,l,s,c;for(a=0,u=t.length;a<u;a++)l=t[a]*n,s=a<u-1?t[a+1]*n:e.length,c=LO(e,l,s,n,!1),c===c.next&&(c.steiner=!0),i.push(iG(c));for(i.sort(Kj),a=0;a<i.length;a++)r=Jj(i[a],r),r=jo(r,r.next);return r}function Kj(e,t){return e.x-t.x}function Jj(e,t){var r=eG(e,t);if(!r)return t;var n=BO(r,e),i=jo(r,r.next);return jo(n,n.next),t===r?i:t}function eG(e,t){var r=t,n=e.x,i=e.y,a=-1/0,u;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}u=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!u)return null;if(n===a)return u;var s=u,c=u.x,v=u.y,x=1/0,y;r=u;do n>=r.x&&r.x>=c&&n!==r.x&&_f(i<v?n:a,i,c,v,i<v?a:n,i,r.x,r.y)&&(y=Math.abs(i-r.y)/(n-r.x),qh(r,e)&&(y<x||y===x&&(r.x>u.x||r.x===u.x&&tG(u,r)))&&(u=r,x=y)),r=r.next;while(r!==s);return u}function tG(e,t){return Br(e.prev,e,t.prev)<0&&Br(t.next,e,e.next)<0}function rG(e,t,r,n){var i=e;do i.z===null&&(i.z=P2(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,nG(i)}function nG(e){var t,r,n,i,a,u,l,s,c=1;do{for(r=e,e=null,a=null,u=0;r;){for(u++,n=r,l=0,t=0;t<c&&(l++,n=n.nextZ,!!n);t++);for(s=c;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,c*=2}while(u>1);return e}function P2(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 iG(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 _f(e,t,r,n,i,a,u,l){return(i-u)*(t-l)-(e-u)*(a-l)>=0&&(e-u)*(n-l)-(r-u)*(t-l)>=0&&(r-u)*(a-l)-(i-u)*(n-l)>=0}function aG(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!oG(e,t)&&(qh(e,t)&&qh(t,e)&&uG(e,t)&&(Br(e.prev,e,t.prev)||Br(e,t.prev,t))||Sm(e,t)&&Br(e.prev,e,e.next)>0&&Br(t.prev,t,t.next)>0)}function Br(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function Sm(e,t){return e.x===t.x&&e.y===t.y}function DO(e,t,r,n){var i=h0(Br(e,t,r)),a=h0(Br(e,t,n)),u=h0(Br(r,n,e)),l=h0(Br(r,n,t));return!!(i!==a&&u!==l||i===0&&c0(e,r,t)||a===0&&c0(e,n,t)||u===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 h0(e){return e>0?1:e<0?-1:0}function oG(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&&DO(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function qh(e,t){return Br(e.prev,e,e.next)<0?Br(e,t,e.next)>=0&&Br(e,e.prev,t)>=0:Br(e,t,e.prev)<0||Br(e,e.next,t)<0}function uG(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 BO(e,t){var r=new L2(e.i,e.x,e.y),n=new L2(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 YA(e,t,r,n){var i=new L2(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 Yh(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 L2(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}bm.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,u=Math.abs(D2(e,0,a,r));if(i)for(var l=0,s=t.length;l<s;l++){var c=t[l]*r,v=l<s-1?t[l+1]*r:e.length;u-=Math.abs(D2(e,c,v,r))}var x=0;for(l=0;l<n.length;l+=3){var y=n[l]*r,g=n[l+1]*r,k=n[l+2]*r;x+=Math.abs((e[y]-e[k])*(e[g+1]-e[y+1])-(e[y]-e[g])*(e[k+1]-e[y+1]))}return u===0&&x===0?0:Math.abs((x-u)/u)};function D2(e,t,r,n){for(var i=0,a=t,u=r-n;a<r;a+=n)i+=(e[u]-e[a])*(e[a+1]+e[u+1]),u=a;return i}bm.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 u=0;u<t;u++)r.vertices.push(e[i][a][u]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var lG=cd,fG=sG;function sG(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=lG(e,t));for(var n=0;n<t;n++){var i=r[t+n],a=r[n],u=n,l=e.length;if(i===1/0&&a===-1/0)for(u=n;u<l;u+=t)e[u]=e[u]===i?1:e[u]===a?0:.5;else if(i===1/0)for(u=n;u<l;u+=t)e[u]=e[u]===i?1:0;else if(a===-1/0)for(u=n;u<l;u+=t)e[u]=e[u]===a?0:1;else{var s=i-a;for(u=n;u<l;u+=t)isNaN(e[u])||(e[u]=s===0?.5:(e[u]-a)/s)}}return e}var cG=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")},_1,XA;function $O(){if(XA)return _1;XA=1;var e=Object.create,t=Object.getPrototypeOf,r={};return _1=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},_1}var w1,QA;function hG(){if(QA)return w1;QA=1;var e=Object.create,t;return $O()()||(t=zO()),w1=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,u){return e(a===null?r:a,u)})}(),w1}var b1,ZA;function zO(){if(ZA)return b1;ZA=1;var e=W_,t=Pi,r=Object.prototype.isPrototypeOf,n=Object.defineProperty,i={configurable:!0,enumerable:!1,writable:!0,value:void 0},a;return a=function(u,l){if(t(u),l===null||e(l))return u;throw new TypeError("Prototype must be null or an object")},b1=function(u){var l,s;return u?(u.level===2?u.set?(s=u.set,l=function(c,v){return s.call(a(c,v),v),c}):l=function(c,v){return a(c,v).__proto__=v,c}:l=function c(v,x){var y;return a(v,x),y=r.call(c.nullPolyfill,v),y&&delete c.nullPolyfill.__proto__,x===null&&(x=c.nullPolyfill),v.__proto__=x,y&&n(c.nullPolyfill,"__proto__",i),v},Object.defineProperty(l,"level",{configurable:!1,enumerable:!1,writable:!1,value:u.level})):null}(function(){var u=Object.create(null),l={},s,c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(c){try{s=c.set,s.call(u,l)}catch{}if(Object.getPrototypeOf(u)===l)return{set:s,level:2}}return u.__proto__=l,Object.getPrototypeOf(u)===l?{level:2}:(u={},u.__proto__=l,Object.getPrototypeOf(u)===l?{level:1}:!1)}()),hG(),b1}var S1,KA;function kw(){return KA||(KA=1,S1=$O()()?Object.setPrototypeOf:zO()),S1}var E1,JA;function dG(){if(JA)return E1;JA=1;var e=W_;return E1=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},E1}var A1,e5;function pG(){if(e5)return A1;e5=1;var e=Object.create(null),t=Math.random;return A1=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},A1}var Dv={},vG={get exports(){return Dv},set exports(e){Dv=e}},T1,t5;function mG(){if(t5)return T1;t5=1;var e=Pi;return T1=function(){return e(this).length=0,this},T1}var C1,r5;function gG(){if(r5)return C1;r5=1;var e=is,t=V_,r=Object.prototype.toString;return C1=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}},C1}var k1,n5;function yG(){return n5||(n5=1,k1=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),k1}var O1,i5;function xG(){if(i5)return O1;i5=1;var e=yG(),t=/[\n\r\u2028\u2029]/g;return O1=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`
1006
- `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},O1}var M1,a5;function UO(){if(a5)return M1;a5=1;var e=is,t=V_,r=gG(),n=xG(),i=function(a,u){return a.replace("%v",n(u))};return M1=function(a,u,l){if(!t(l))throw new TypeError(i(u,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=u),new TypeError(i(s,a))},M1}var F1,o5;function _G(){if(o5)return F1;o5=1;var e=UO(),t=is;return F1=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},F1}var N1,u5;function wG(){if(u5)return N1;u5=1;var e=UO(),t=JC;return N1=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},N1}var R1,l5;function bG(){if(l5)return R1;l5=1;var e=sm(),t=om,r=Pi;return R1=function(n){var i=Object(r(n)),a=arguments[1],u=Object(arguments[2]);if(i!==n&&!a)return i;var l={};return a?e(a,function(s){(u.ensure||s in n)&&(l[s]=n[s])}):t(l,n),l},R1}var I1,f5;function SG(){if(f5)return I1;f5=1;var e=is,t=_G(),r=wG(),n=bG(),i=H_,a=Y_(),u=Function.prototype.bind,l=Object.defineProperty,s=Object.prototype.hasOwnProperty,c;return c=function(v,x,y){var g=t(x)&&r(x.value),k;return k=n(x),delete k.writable,delete k.value,k.get=function(){return!y.overwriteDefinition&&s.call(this,v)?g:(x.value=u.call(g,y.resolveContext?y.resolveContext(this):this),l(this,v,x),this[v])},k},I1=function(v){var x=i(arguments[1]);return e(x.resolveContext)&&r(x.resolveContext),a(v,function(y,g){return c(g,y,x)})},I1}var P1,s5;function jO(){if(s5)return P1;s5=1;var e=mG(),t=om,r=na,n=Pi,i=ni,a=SG(),u=ll(),l=Object.defineProperty,s=Object.defineProperties,c;return P1=c=function(v,x){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");s(this,{__list__:i("w",n(v)),__context__:i("w",x),__nextIndex__:i("w",0)}),x&&(r(x.on),x.on("_add",this._onAdd),x.on("_delete",this._onDelete),x.on("_clear",this._onClear))},delete c.prototype.constructor,s(c.prototype,t({_next:i(function(){var v;if(this.__list__){if(this.__redo__&&(v=this.__redo__.shift(),v!==void 0))return v;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:i(function(){return this._createResult(this._next())}),_createResult:i(function(v){return v===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(v)}}),_resolve:i(function(v){return this.__list__[v]}),_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[u.toStringTag]||"Object")+"]"})},a({_onAdd:i(function(v){if(!(v>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){l(this,"__redo__",i("c",[v]));return}this.__redo__.forEach(function(x,y){x>=v&&(this.__redo__[y]=++x)},this),this.__redo__.push(v)}}),_onDelete:i(function(v){var x;v>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(x=this.__redo__.indexOf(v),x!==-1&&this.__redo__.splice(x,1),this.__redo__.forEach(function(y,g){y>v&&(this.__redo__[g]=--y)},this)))}),_onClear:i(function(){this.__redo__&&e.call(this.__redo__),this.__nextIndex__=0})}))),l(c.prototype,u.iterator,i(function(){return this})),P1}var c5;function EG(){if(c5)return Dv;c5=1;var e=kw(),t=ek,r=ni,n=ll(),i=jO(),a=Object.defineProperty,u;return u=vG.exports=function(l,s){if(!(this instanceof u))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(u,i),delete u.prototype.constructor,u.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(u.prototype,n.toStringTag,r("c","Array Iterator")),Dv}var Bv={},AG={get exports(){return Bv},set exports(e){Bv=e}},h5;function TG(){if(h5)return Bv;h5=1;var e=kw(),t=ni,r=ll(),n=jO(),i=Object.defineProperty,a;return a=AG.exports=function(u){if(!(this instanceof a))throw new TypeError("Constructor requires 'new'");u=String(u),n.call(this,u),i(this,"__length__",t("",u.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(u){var l=this.__list__[u],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")),Bv}var L1,d5;function CG(){if(d5)return L1;d5=1;var e=lm(),t=za,r=fm(),n=ll().iterator,i=Array.isArray;return L1=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},L1}var D1,p5;function kG(){if(p5)return D1;p5=1;var e=CG();return D1=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},D1}var B1,v5;function GO(){if(v5)return B1;v5=1;var e=lm(),t=fm(),r=EG(),n=TG(),i=kG(),a=ll().iterator;return B1=function(u){return typeof i(u)[a]=="function"?u[a]():e(u)?new r(u):t(u)?new n(u):new r(u)},B1}var $1,m5;function OG(){if(m5)return $1;m5=1;var e=lm(),t=na,r=fm(),n=GO(),i=Array.isArray,a=Function.prototype.call,u=Array.prototype.some;return $1=function(l,s){var c,v=arguments[2],x,y,g,k,N,b,w;if(i(l)||e(l)?c="array":r(l)?c="string":l=n(l),t(s),y=function(){g=!0},c==="array"){u.call(l,function(A){return a.call(s,v,A,y),g});return}if(c==="string"){for(N=l.length,k=0;k<N&&(b=l[k],k+1<N&&(w=b.charCodeAt(0),w>=55296&&w<=56319&&(b+=l[++k])),a.call(s,v,b,y),!g);++k);return}for(x=l.next();!x.done;){if(a.call(s,v,x.value,y),g)return;x=l.next()}},$1}var z1,g5;function MG(){return g5||(g5=1,z1=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),z1}var U1,y5;function FG(){if(y5)return U1;y5=1;var e=za,t=kw(),r=dG(),n=Pi,i=pG(),a=ni,u=GO(),l=OG(),s=ll().toStringTag,c=MG(),v=Array.isArray,x=Object.defineProperty,y=Object.prototype.hasOwnProperty,g=Object.getPrototypeOf,k;return U1=k=function(){var N=arguments[0],b;if(!(this instanceof k))throw new TypeError("Constructor requires 'new'");return b=c&&t&&WeakMap!==k?t(new WeakMap,g(this)):this,e(N)&&(v(N)||(N=u(N))),x(b,"__weakMapData__",a("c","$weakMap$"+i())),N&&l(N,function(w){n(w),b.set(w[0],w[1])}),b},c&&(t&&t(k,WeakMap),k.prototype=Object.create(WeakMap.prototype,{constructor:a(k)})),Object.defineProperties(k.prototype,{delete:a(function(N){return y.call(r(N),this.__weakMapData__)?(delete N[this.__weakMapData__],!0):!1}),get:a(function(N){if(y.call(r(N),this.__weakMapData__))return N[this.__weakMapData__]}),has:a(function(N){return y.call(r(N),this.__weakMapData__)}),set:a(function(N,b){return x(r(N),this.__weakMapData__,a("c",b)),this}),toString:a(function(){return"[object WeakMap]"})}),x(k.prototype,s,a("c","WeakMap")),U1}var HO=cG()?WeakMap:FG(),NG=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 d0=wm,RG=cd,B2=tl,rf=RO,IG=Xo,PG=hd,x5=Lv,LG=fG,{float32:DG,fract32:j1}=Ba,BG=HO,_5=_m,$G=NG;var aY=_r;function _r(e,t){if(!(this instanceof _r))return new _r(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=_r.shaders.has(e)?_r.shaders.get(e):_r.shaders.set(e,_r.createShaders(e)).get(e),this.update(t)}_r.dashMult=2;_r.maxPatternLength=256;_r.precisionThreshold=3e6;_r.maxPoints=1e4;_r.maxLines=2048;_r.shaders=new BG;_r.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:(u,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:(u,l)=>[l.viewport.x,l.viewport.y,u.viewportWidth,u.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:(u,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(B2({vert:rf("./rect-vert.glsl"),frag:rf("./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:rf("./miter-vert.glsl"),frag:rf("./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:(u,l)=>l.triangles,offset:0,vert:rf("./fill-vert.glsl"),frag:rf("./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:(u,l)=>[l.viewport.x,l.viewport.y,u.viewportWidth,u.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}};_r.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};_r.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};_r.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>_r.precisionThreshold||t.scale[1]*t.viewport.height>_r.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=_r.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};_r.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 u=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=IG(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"}),u||(this.passes[a]=u={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({},_r.defaults,i)),i.thickness!=null&&(u.thickness=parseFloat(i.thickness)),i.opacity!=null&&(u.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(u.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(u.overlay=!!i.overlay,a<_r.maxLines&&(u.depth=2*(_r.maxLines-1-a%_r.maxLines)/_r.maxLines-1)),i.join!=null&&(u.join=i.join),i.hole!=null&&(u.hole=i.hole),i.fill!=null&&(u.fill=i.fill?d0(i.fill,"uint8"):null),i.viewport!=null&&(u.viewport=_5(i.viewport)),u.viewport||(u.viewport=_5([r.drawingBufferWidth,r.drawingBufferHeight])),i.close!=null&&(u.close=i.close),i.positions===null&&(i.positions=[]),i.positions){let c,v;if(i.positions.x&&i.positions.y){let k=i.positions.x,N=i.positions.y;v=u.count=Math.max(k.length,N.length),c=new Float64Array(v*2);for(let b=0;b<v;b++)c[b*2]=k[b],c[b*2+1]=N[b]}else c=PG(i.positions,"float64"),v=u.count=Math.floor(c.length/2);let x=u.bounds=RG(c,2);if(u.fill){let k=[],N={},b=0;for(let w=0,A=0,M=u.count;w<M;w++){let R=c[w*2],L=c[w*2+1];isNaN(R)||isNaN(L)||R==null||L==null?(R=c[b*2],L=c[b*2+1],N[w]=b):b=w,k[A++]=R,k[A++]=L}if(i.splitNull){u.count-1 in N||(N[u.count]=u.count-1);let w=Object.keys(N).map(Number).sort((L,D)=>L-D),A=[],M=0,R=u.hole!=null?u.hole[0]:null;if(R!=null){let L=$G(w,D=>D>=R);w=w.slice(0,L),w.push(R)}for(let L=0;L<w.length;L++){let D=k.slice(M*2,w[L]*2).concat(R?k.slice(R*2):[]),ne=(u.hole||[]).map(ae=>ae-R+(w[L]-M)),Y=x5(D,ne);Y=Y.map(ae=>ae+M+(ae+M<w[L]?0:R-w[L])),A.push(...Y),M=w[L]+1}for(let L=0,D=A.length;L<D;L++)N[A[L]]!=null&&(A[L]=N[A[L]]);u.triangles=A}else{let w=x5(k,u.hole||[]);for(let A=0,M=w.length;A<M;A++)N[w[A]]!=null&&(w[A]=N[w[A]]);u.triangles=w}}let y=new Float64Array(c);LG(y,2,x);let g=new Float64Array(v*2+6);u.close?c[0]===c[v*2-2]&&c[1]===c[v*2-1]?(g[0]=y[v*2-4],g[1]=y[v*2-3]):(g[0]=y[v*2-2],g[1]=y[v*2-1]):(g[0]=y[0],g[1]=y[1]),g.set(y,2),u.close?c[0]===c[v*2-2]&&c[1]===c[v*2-1]?(g[v*2+2]=y[2],g[v*2+3]=y[3],u.count-=1):(g[v*2+2]=y[0],g[v*2+3]=y[1],g[v*2+4]=y[2],g[v*2+5]=y[3]):(g[v*2+2]=y[v*2-2],g[v*2+3]=y[v*2-1],g[v*2+4]=y[v*2-2],g[v*2+5]=y[v*2-1]);var l=DG(g);u.positionBuffer(l);var s=j1(g,l);u.positionFractBuffer(s)}if(i.range?u.range=i.range:u.range||(u.range=u.bounds),(i.range||i.positions)&&u.count){let c=u.bounds,v=c[2]-c[0],x=c[3]-c[1],y=u.range[2]-u.range[0],g=u.range[3]-u.range[1];u.scale=[v/y,x/g],u.translate=[-u.range[0]/y+c[0]/y||0,-u.range[1]/g+c[1]/g||0],u.scaleFract=j1(u.scale),u.translateFract=j1(u.translate)}if(i.dashes){let c=0,v;if(!i.dashes||i.dashes.length<2)c=1,v=new Uint8Array([255,255,255,255,255,255,255,255]);else{c=0;for(let g=0;g<i.dashes.length;++g)c+=i.dashes[g];v=new Uint8Array(c*_r.dashMult);let x=0,y=255;for(let g=0;g<2;g++)for(let k=0;k<i.dashes.length;++k){for(let N=0,b=i.dashes[k]*_r.dashMult*.5;N<b;++N)v[x++]=y;y^=255}}u.dashLength=c,u.dashTexture({channels:1,data:v,width:v.length,height:1,mag:"linear",min:"linear"},0,0)}if(i.color){let c=u.count,v=i.color;v||(v="transparent");let x=new Uint8Array(c*4+4);if(!Array.isArray(v)||typeof v[0]=="number"){let y=d0(v,"uint8");for(let g=0;g<c+1;g++)x.set(y,g*4)}else{for(let y=0;y<c;y++){let g=d0(v[y],"uint8");x.set(g,y*4)}x.set(d0(v[0],"uint8"),c*4)}u.colorBuffer({usage:"dynamic",type:"uint8",data:x})}}}),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};_r.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this};const zG=cd,UG=wm,jG=IO,GG=Xo,w5=tl,b5=hd,{float32:HG,fract32:G1}=Ba;var oY=WG;const S5=[[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 WG(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,u,l,s,c={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},v=[];return u=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:S5}),k(t),n=e({vert:`
1007
- precision highp float;
1008
-
1009
- attribute vec2 position, positionFract;
1010
- attribute vec4 error;
1011
- attribute vec4 color;
1012
-
1013
- attribute vec2 direction, lineOffset, capOffset;
1014
-
1015
- uniform vec4 viewport;
1016
- uniform float lineWidth, capSize;
1017
- uniform vec2 scale, scaleFract, translate, translateFract;
1018
-
1019
- varying vec4 fragColor;
1020
-
1021
- void main() {
1022
- fragColor = color / 255.;
1023
-
1024
- vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;
1025
-
1026
- vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;
1027
-
1028
- vec2 position = position + dxy;
1029
-
1030
- vec2 pos = (position + translate) * scale
1031
- + (positionFract + translateFract) * scale
1032
- + (position + translate) * scaleFract
1033
- + (positionFract + translateFract) * scaleFract;
1034
-
1035
- pos += pixelOffset / viewport.zw;
1036
-
1037
- gl_Position = vec4(pos * 2. - 1., 0, 1);
1038
- }
1039
- `,frag:`
1040
- precision highp float;
1041
-
1042
- varying vec4 fragColor;
1043
-
1044
- uniform float opacity;
1045
-
1046
- void main() {
1047
- gl_FragColor = fragColor;
1048
- gl_FragColor.a *= opacity;
1049
- }
1050
- `,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:(b,w)=>[w.viewport.x,w.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:u,offset:(b,w)=>w.offset*4,divisor:1},position:{buffer:i,offset:(b,w)=>w.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,w)=>w.offset*8,divisor:1},error:{buffer:l,offset:(b,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:S5.length}),w5(x,{update:k,draw:y,destroy:N,regl:e,gl:r,canvas:r.canvas,groups:v}),x;function x(b){b?k(b):b===null&&N(),y()}function y(b){if(typeof b=="number")return g(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),v.forEach((w,A)=>{if(w){if(b&&(b[A]?w.draw=!0:w.draw=!1),!w.draw){w.draw=!0;return}g(A)}})}function g(b){typeof b=="number"&&(b=v[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function k(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let w=0,A=0;if(x.groups=v=b.map((L,D)=>{let ne=v[D];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return ne;return L=GG(L,{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"}),ne||(v[D]=ne={id:D,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=w5({},c,L)),jG(ne,L,[{lineWidth:Y=>+Y*.5,capSize:Y=>+Y*.5,opacity:parseFloat,errors:Y=>(Y=b5(Y),A+=Y.length,Y),positions:(Y,ae)=>(Y=b5(Y,"float64"),ae.count=Math.floor(Y.length/2),ae.bounds=zG(Y,2),ae.offset=w,w+=ae.count,Y)},{color:(Y,ae)=>{let Ce=ae.count;if(Y||(Y="transparent"),!Array.isArray(Y)||typeof Y[0]=="number"){let Ie=Y;Y=Array(Ce);for(let je=0;je<Ce;je++)Y[je]=Ie}if(Y.length<Ce)throw Error("Not enough colors");let Fe=new Uint8Array(Ce*4);for(let Ie=0;Ie<Ce;Ie++){let je=UG(Y[Ie],"uint8");Fe.set(je,Ie*4)}return Fe},range:(Y,ae,Ce)=>{let Fe=ae.bounds;return Y||(Y=Fe),ae.scale=[1/(Y[2]-Y[0]),1/(Y[3]-Y[1])],ae.translate=[-Y[0],-Y[1]],ae.scaleFract=G1(ae.scale),ae.translateFract=G1(ae.translate),Y},viewport:Y=>{let ae;return Array.isArray(Y)?ae={x:Y[0],y:Y[1],width:Y[2]-Y[0],height:Y[3]-Y[1]}:Y?(ae={x:Y.x||Y.left||0,y:Y.y||Y.top||0},Y.right?ae.width=Y.right-ae.x:ae.width=Y.w||Y.width||0,Y.bottom?ae.height=Y.bottom-ae.y:ae.height=Y.h||Y.height||0):ae={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},ae}}]),ne}),w||A){let L=v.reduce((ae,Ce,Fe)=>ae+(Ce?Ce.count:0),0),D=new Float64Array(L*2),ne=new Uint8Array(L*4),Y=new Float32Array(L*4);v.forEach((ae,Ce)=>{if(!ae)return;let{positions:Fe,count:Ie,offset:je,color:Ke,errors:mt}=ae;Ie&&(ne.set(Ke,je*4),Y.set(mt,je*4),D.set(Fe,je*2))});var M=HG(D);i(M);var R=G1(D,M);a(R),u(ne),l(Y)}}function N(){i.destroy(),a.destroy(),u.destroy(),l.destroy(),s.destroy()}}var E5=/[\'\"]/,VG=function(t){return t?(E5.test(t.charAt(0))&&(t=t.substr(1)),E5.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""};const WO=["inherit","initial","unset"],VO=["caption","icon","menu","message-box","small-caption","status-bar"],qO=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],YO=["normal","italic","oblique"],XO=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"];function QO(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 c=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),v=[];function x(y,g,k){var N=r.push(y.slice(s[0].length,-s[1].length))-1;return v.push(N),i+N+i}r.forEach(function(y,g){for(var k,N=0;y!=k;)if(k=y,y=y.replace(c,x),N++>1e4)throw Error("References have circular dependency. Please, check them.");r[g]=y}),v=v.reverse(),r=r.map(function(y){return v.forEach(function(g){y=y.replace(new RegExp("(\\"+i+g+"\\"+i+")","g"),s[0]+"$1"+s[1])}),y})});var u=new RegExp("\\"+i+"([0-9]+)\\"+i);function l(s,c,v){for(var x=[],y,g=0;y=u.exec(s);){if(g++>1e4)throw Error("Circular references in parenthesis");x.push(s.slice(0,y.index)),x.push(l(c[y[1]],c)),s=s.slice(y.index+y[0].length)}return x.push(s),x}return a?r:l(r[0],r)}function ZO(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),u=0;n!=i;){if(u++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,l)}return n}return e.reduce(function s(c,v){return Array.isArray(v)&&(v=v.reduce(s,"")),c+v},"");function l(s,c){if(e[c]==null)throw Error("Reference "+c+"is undefined");return e[c]}}function Ow(e,t){return Array.isArray(e)?ZO(e,t):QO(e,t)}Ow.parse=QO;Ow.stringify=ZO;var qG=Ow,A5=qG,YG=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(x){return x.length===1&&(x=x+x),x}));var i=A5.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],u=a.split(r);if(n.escape){for(var l=[],s=0;s<u.length;s++){var c=u[s],v=u[s+1];c[c.length-1]==="\\"&&c[c.length-2]!=="\\"?(l.push(c+r+v),s++):l.push(c)}u=l}for(var s=0;s<u.length;s++)i[0]=u[s],u[s]=A5.stringify(i,{flat:!0});return u};const XG=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];var QG=XG,KO={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||QG.indexOf(t)!==-1}},ZG=VG,KG=WO,JG=VO,eH=qO,tH=YO,rH=XO,H1=YG,nH=KO.isSize,iH=JO,jc=JO.cache={};function JO(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(jc[e])return jc[e];if(e==="")throw new Error("Cannot parse an empty string.");if(JG.indexOf(e)!==-1)return jc[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=H1(e,/\s+/),n;n=r.shift();){if(KG.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),jc[e]=t;if(tH.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(rH.indexOf(n)!==-1){t.stretch=n;continue}if(eH.indexOf(n)!==-1){t.weight=n;continue}if(nH(n)){var i=H1(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=T5(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=T5(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=H1(r.join(" "),/\s*,\s*/).map(ZG),jc[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function T5(e){var t=parseFloat(e);return t.toString()===e?t:e}var aH=Xo,oH=KO.isSize,uH=dd(WO),lH=dd(VO),fH=dd(qO),sH=dd(YO),cH=dd(XO),hH={normal:1,"small-caps":1},dH={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},W1={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"},eM=function(t){if(t=aH(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&&Gc(t.system,lH),t.system;if(Gc(t.style,sH),Gc(t.variant,hH),Gc(t.weight,fH),Gc(t.stretch,cH),t.size==null&&(t.size=W1.size),typeof t.size=="number"&&(t.size+="px"),!oH)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=W1.family),Array.isArray(t.family)&&(t.family.length||(t.family=[W1.family]),t.family=t.family.map(function(n){return dH[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 Gc(e,t){if(e&&!t[e]&&!uH[e])throw Error("Unknown keyword `"+e+"`");return e}function dd(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t}var pH={parse:iH,stringify:eM},$2={},vH={get exports(){return $2},set exports(e){$2=e}};(function(e,t){(function(r,n){e.exports=n()})(Lr,function(){var r=function(F,H){for(var Z=Object.keys(H),we=0;we<Z.length;++we)F[Z[we]]=H[Z[we]];return F},n=0,i=0,a=5,u=6;function l(F,H){this.id=n++,this.type=F,this.data=H}function s(F){return F.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function c(F){if(F.length===0)return[];var H=F.charAt(0),Z=F.charAt(F.length-1);if(F.length>1&&H===Z&&(H==='"'||H==="'"))return['"'+s(F.substr(1,F.length-2))+'"'];var we=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(F);if(we)return c(F.substr(0,we.index)).concat(c(we[1])).concat(c(F.substr(we.index+we[0].length)));var ke=F.split(".");if(ke.length===1)return['"'+s(F)+'"'];for(var ge=[],xe=0;xe<ke.length;++xe)ge=ge.concat(c(ke[xe]));return ge}function v(F){return"["+c(F).join("][")+"]"}function x(F,H){return new l(F,v(H+""))}function y(F){return typeof F=="function"&&!F._reglType||F instanceof l}function g(F,H){if(typeof F=="function")return new l(i,F);if(typeof F=="number"||typeof F=="boolean")return new l(a,F);if(Array.isArray(F))return new l(u,F.map(function(Z,we){return g(Z)}));if(F instanceof l)return F}var k={DynamicVariable:l,define:x,isDynamic:y,unbox:g,accessor:v},N={next:typeof requestAnimationFrame=="function"?function(F){return requestAnimationFrame(F)}:function(F){return setTimeout(F,16)},cancel:typeof cancelAnimationFrame=="function"?function(F){return cancelAnimationFrame(F)}:clearTimeout},b=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function w(){var F={"":0},H=[""];return{id:function(Z){var we=F[Z];return we||(we=F[Z]=H.length,H.push(Z),we)},str:function(Z){return H[Z]}}}function A(F,H,Z){var we=document.createElement("canvas");r(we.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),F.appendChild(we),F===document.body&&(we.style.position="absolute",r(F.style,{margin:0,padding:0}));function ke(){var He=window.innerWidth,We=window.innerHeight;if(F!==document.body){var Xe=we.getBoundingClientRect();He=Xe.right-Xe.left,We=Xe.bottom-Xe.top}we.width=Z*He,we.height=Z*We}var ge;F!==document.body&&typeof ResizeObserver=="function"?(ge=new ResizeObserver(function(){setTimeout(ke)}),ge.observe(F)):window.addEventListener("resize",ke,!1);function xe(){ge?ge.disconnect():window.removeEventListener("resize",ke),F.removeChild(we)}return ke(),{canvas:we,onDestroy:xe}}function M(F,H){function Z(we){try{return F.getContext(we,H)}catch{return null}}return Z("webgl")||Z("experimental-webgl")||Z("webgl-experimental")}function R(F){return typeof F.nodeName=="string"&&typeof F.appendChild=="function"&&typeof F.getBoundingClientRect=="function"}function L(F){return typeof F.drawArrays=="function"||typeof F.drawElements=="function"}function D(F){return typeof F=="string"?F.split():F}function ne(F){return typeof F=="string"?document.querySelector(F):F}function Y(F){var H=F||{},Z,we,ke,ge,xe={},He=[],We=[],Xe=typeof window>"u"?1:window.devicePixelRatio,ut=!1,Mt={},wt=function(he){},nt=function(){};if(typeof H=="string"?Z=document.querySelector(H):typeof H=="object"&&(R(H)?Z=H:L(H)?(ge=H,ke=ge.canvas):("gl"in H?ge=H.gl:"canvas"in H?ke=ne(H.canvas):"container"in H&&(we=ne(H.container)),"attributes"in H&&(xe=H.attributes),"extensions"in H&&(He=D(H.extensions)),"optionalExtensions"in H&&(We=D(H.optionalExtensions)),"onDone"in H&&(wt=H.onDone),"profile"in H&&(ut=!!H.profile),"pixelRatio"in H&&(Xe=+H.pixelRatio),"cachedCode"in H&&(Mt=H.cachedCode))),Z&&(Z.nodeName.toLowerCase()==="canvas"?ke=Z:we=Z),!ge){if(!ke){var ze=A(we||document.body,wt,Xe);if(!ze)return null;ke=ze.canvas,nt=ze.onDestroy}xe.premultipliedAlpha===void 0&&(xe.premultipliedAlpha=!0),ge=M(ke,xe)}return ge?{gl:ge,canvas:ke,container:we,extensions:He,optionalExtensions:We,pixelRatio:Xe,profile:ut,cachedCode:Mt,onDone:wt,onDestroy:nt}:(nt(),wt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function ae(F,H){var Z={};function we(xe){var He=xe.toLowerCase(),We;try{We=Z[He]=F.getExtension(He)}catch{}return!!We}for(var ke=0;ke<H.extensions.length;++ke){var ge=H.extensions[ke];if(!we(ge))return H.onDestroy(),H.onDone('"'+ge+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return H.optionalExtensions.forEach(we),{extensions:Z,restore:function(){Object.keys(Z).forEach(function(xe){if(Z[xe]&&!we(xe))throw new Error("(regl): error restoring extension "+xe)})}}}function Ce(F,H){for(var Z=Array(F),we=0;we<F;++we)Z[we]=H(we);return Z}var Fe=5120,Ie=5121,je=5122,Ke=5123,mt=5124,lt=5125,Ue=5126;function Ye(F){for(var H=16;H<=1<<28;H*=16)if(F<=H)return H;return 0}function It(F){var H,Z;return H=(F>65535)<<4,F>>>=H,Z=(F>255)<<3,F>>>=Z,H|=Z,Z=(F>15)<<2,F>>>=Z,H|=Z,Z=(F>3)<<1,F>>>=Z,H|=Z,H|F>>1}function Ze(){var F=Ce(8,function(){return[]});function H(ge){var xe=Ye(ge),He=F[It(xe)>>2];return He.length>0?He.pop():new ArrayBuffer(xe)}function Z(ge){F[It(ge.byteLength)>>2].push(ge)}function we(ge,xe){var He=null;switch(ge){case Fe:He=new Int8Array(H(xe),0,xe);break;case Ie:He=new Uint8Array(H(xe),0,xe);break;case je:He=new Int16Array(H(2*xe),0,xe);break;case Ke:He=new Uint16Array(H(2*xe),0,xe);break;case mt:He=new Int32Array(H(4*xe),0,xe);break;case lt:He=new Uint32Array(H(4*xe),0,xe);break;case Ue:He=new Float32Array(H(4*xe),0,xe);break;default:return null}return He.length!==xe?He.subarray(0,xe):He}function ke(ge){Z(ge.buffer)}return{alloc:H,free:Z,allocType:we,freeType:ke}}var Ee=Ze();Ee.zero=Ze();var tt=3408,ct=3410,rt=3411,yt=3412,Tt=3413,Yt=3414,Xt=3415,Qe=33901,Ot=33902,jt=3379,Ae=3386,G=34921,ie=36347,C=36348,S=35661,T=35660,B=34930,se=36349,Ne=34076,De=34024,Qt=7936,fr=7937,rr=7938,Hr=35724,Ar=34047,Li=36063,Zo=34852,aa=3553,oi=34067,md=34069,xi=33984,Ko=6408,dl=5126,pl=5121,vl=36160,Lm=36053,oa=36064,Dm=16384,ml=function(F,H){var Z=1;H.ext_texture_filter_anisotropic&&(Z=F.getParameter(Ar));var we=1,ke=1;H.webgl_draw_buffers&&(we=F.getParameter(Zo),ke=F.getParameter(Li));var ge=!!H.oes_texture_float;if(ge){var xe=F.createTexture();F.bindTexture(aa,xe),F.texImage2D(aa,0,Ko,1,1,0,Ko,dl,null);var He=F.createFramebuffer();if(F.bindFramebuffer(vl,He),F.framebufferTexture2D(vl,oa,aa,xe,0),F.bindTexture(aa,null),F.checkFramebufferStatus(vl)!==Lm)ge=!1;else{F.viewport(0,0,1,1),F.clearColor(1,0,0,1),F.clear(Dm);var We=Ee.allocType(dl,4);F.readPixels(0,0,1,1,Ko,dl,We),F.getError()?ge=!1:(F.deleteFramebuffer(He),F.deleteTexture(xe),ge=We[0]===1),Ee.freeType(We)}}var Xe=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),ut=!0;if(!Xe){var Mt=F.createTexture(),wt=Ee.allocType(pl,36);F.activeTexture(xi),F.bindTexture(oi,Mt),F.texImage2D(md,0,Ko,3,3,0,Ko,pl,wt),Ee.freeType(wt),F.bindTexture(oi,null),F.deleteTexture(Mt),ut=!F.getError()}return{colorBits:[F.getParameter(ct),F.getParameter(rt),F.getParameter(yt),F.getParameter(Tt)],depthBits:F.getParameter(Yt),stencilBits:F.getParameter(Xt),subpixelBits:F.getParameter(tt),extensions:Object.keys(H).filter(function(nt){return!!H[nt]}),maxAnisotropic:Z,maxDrawbuffers:we,maxColorAttachments:ke,pointSizeDims:F.getParameter(Qe),lineWidthDims:F.getParameter(Ot),maxViewportDims:F.getParameter(Ae),maxCombinedTextureUnits:F.getParameter(S),maxCubeMapSize:F.getParameter(Ne),maxRenderbufferSize:F.getParameter(De),maxTextureUnits:F.getParameter(B),maxTextureSize:F.getParameter(jt),maxAttributes:F.getParameter(G),maxVertexUniforms:F.getParameter(ie),maxVertexTextureUnits:F.getParameter(T),maxVaryingVectors:F.getParameter(C),maxFragmentUniforms:F.getParameter(se),glsl:F.getParameter(Hr),renderer:F.getParameter(fr),vendor:F.getParameter(Qt),version:F.getParameter(rr),readFloat:ge,npotTextureCube:ut}},Qr=function(F){return F instanceof Uint8Array||F instanceof Uint16Array||F instanceof Uint32Array||F instanceof Int8Array||F instanceof Int16Array||F instanceof Int32Array||F instanceof Float32Array||F instanceof Float64Array||F instanceof Uint8ClampedArray};function qn(F){return!!F&&typeof F=="object"&&Array.isArray(F.shape)&&Array.isArray(F.stride)&&typeof F.offset=="number"&&F.shape.length===F.stride.length&&(Array.isArray(F.data)||Qr(F.data))}var Mn=function(F){return Object.keys(F).map(function(H){return F[H]})},nr={shape:xd,flatten:ui};function gd(F,H,Z){for(var we=0;we<H;++we)Z[we]=F[we]}function _i(F,H,Z,we){for(var ke=0,ge=0;ge<H;++ge)for(var xe=F[ge],He=0;He<Z;++He)we[ke++]=xe[He]}function Ha(F,H,Z,we,ke,ge){for(var xe=ge,He=0;He<H;++He)for(var We=F[He],Xe=0;Xe<Z;++Xe)for(var ut=We[Xe],Mt=0;Mt<we;++Mt)ke[xe++]=ut[Mt]}function yd(F,H,Z,we,ke){for(var ge=1,xe=Z+1;xe<H.length;++xe)ge*=H[xe];var He=H[Z];if(H.length-Z===4){var We=H[Z+1],Xe=H[Z+2],ut=H[Z+3];for(xe=0;xe<He;++xe)Ha(F[xe],We,Xe,ut,we,ke),ke+=ge}else for(xe=0;xe<He;++xe)yd(F[xe],H,Z+1,we,ke),ke+=ge}function ui(F,H,Z,we){var ke=1;if(H.length)for(var ge=0;ge<H.length;++ge)ke*=H[ge];else ke=0;var xe=we||Ee.allocType(Z,ke);switch(H.length){case 0:break;case 1:gd(F,H[0],xe);break;case 2:_i(F,H[0],H[1],xe);break;case 3:Ha(F,H[0],H[1],H[2],xe,0);break;default:yd(F,H,0,xe,0)}return xe}function xd(F){for(var H=[],Z=F;Z.length;Z=Z[0])H.push(Z.length);return H}var Jo={"[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},Bm=5120,_d=5122,$m=5124,wd=5121,zm=5123,eu=5125,fs=5126,bd=5126,tu={int8:Bm,int16:_d,int32:$m,uint8:wd,uint16:zm,uint32:eu,float:fs,float32:bd},gl=35048,ss=35040,Di={dynamic:gl,stream:ss,static:35044},Ln=nr.flatten,yl=nr.shape,xl=35044,Yn=35040,ru=5121,nu=5126,Yr=[];Yr[5120]=1,Yr[5122]=2,Yr[5124]=4,Yr[5121]=1,Yr[5123]=2,Yr[5125]=4,Yr[5126]=4;function ua(F){return Jo[Object.prototype.toString.call(F)]|0}function cs(F,H){for(var Z=0;Z<H.length;++Z)F[Z]=H[Z]}function hs(F,H,Z,we,ke,ge,xe){for(var He=0,We=0;We<Z;++We)for(var Xe=0;Xe<we;++Xe)F[He++]=H[ke*We+ge*Xe+xe]}function Sd(F,H,Z,we){var ke=0,ge={};function xe(he){this.id=ke++,this.buffer=F.createBuffer(),this.type=he,this.usage=xl,this.byteLength=0,this.dimension=1,this.dtype=ru,this.persistentData=null,Z.profile&&(this.stats={size:0})}xe.prototype.bind=function(){F.bindBuffer(this.type,this.buffer)},xe.prototype.destroy=function(){wt(this)};var He=[];function We(he,Se){var Ge=He.pop();return Ge||(Ge=new xe(he)),Ge.bind(),Mt(Ge,Se,Yn,0,1,!1),Ge}function Xe(he){He.push(he)}function ut(he,Se,Ge){he.byteLength=Se.byteLength,F.bufferData(he.type,Se,Ge)}function Mt(he,Se,Ge,Ve,Re,ht){var at;if(he.usage=Ge,Array.isArray(Se)){if(he.dtype=Ve||nu,Se.length>0){var Ft;if(Array.isArray(Se[0])){at=yl(Se);for(var Pe=1,Oe=1;Oe<at.length;++Oe)Pe*=at[Oe];he.dimension=Pe,Ft=Ln(Se,at,he.dtype),ut(he,Ft,Ge),ht?he.persistentData=Ft:Ee.freeType(Ft)}else if(typeof Se[0]=="number"){he.dimension=Re;var pt=Ee.allocType(he.dtype,Se.length);cs(pt,Se),ut(he,pt,Ge),ht?he.persistentData=pt:Ee.freeType(pt)}else Qr(Se[0])&&(he.dimension=Se[0].length,he.dtype=Ve||ua(Se[0])||nu,Ft=Ln(Se,[Se.length,Se[0].length],he.dtype),ut(he,Ft,Ge),ht?he.persistentData=Ft:Ee.freeType(Ft))}}else if(Qr(Se))he.dtype=Ve||ua(Se),he.dimension=Re,ut(he,Se,Ge),ht&&(he.persistentData=new Uint8Array(new Uint8Array(Se.buffer)));else if(qn(Se)){at=Se.shape;var be=Se.stride,ft=Se.offset,qe=0,Nt=0,Jt=0,gt=0;at.length===1?(qe=at[0],Nt=1,Jt=be[0],gt=0):at.length===2&&(qe=at[0],Nt=at[1],Jt=be[0],gt=be[1]),he.dtype=Ve||ua(Se.data)||nu,he.dimension=Nt;var $t=Ee.allocType(he.dtype,qe*Nt);hs($t,Se.data,qe,Nt,Jt,gt,ft),ut(he,$t,Ge),ht?he.persistentData=$t:Ee.freeType($t)}else Se instanceof ArrayBuffer&&(he.dtype=ru,he.dimension=Re,ut(he,Se,Ge),ht&&(he.persistentData=new Uint8Array(new Uint8Array(Se))))}function wt(he){H.bufferCount--,we(he);var Se=he.buffer;F.deleteBuffer(Se),he.buffer=null,delete ge[he.id]}function nt(he,Se,Ge,Ve){H.bufferCount++;var Re=new xe(Se);ge[Re.id]=Re;function ht(Pe){var Oe=xl,pt=null,be=0,ft=0,qe=1;return Array.isArray(Pe)||Qr(Pe)||qn(Pe)||Pe instanceof ArrayBuffer?pt=Pe:typeof Pe=="number"?be=Pe|0:Pe&&("data"in Pe&&(pt=Pe.data),"usage"in Pe&&(Oe=Di[Pe.usage]),"type"in Pe&&(ft=tu[Pe.type]),"dimension"in Pe&&(qe=Pe.dimension|0),"length"in Pe&&(be=Pe.length|0)),Re.bind(),pt?Mt(Re,pt,Oe,ft,qe,Ve):(be&&F.bufferData(Re.type,be,Oe),Re.dtype=ft||ru,Re.usage=Oe,Re.dimension=qe,Re.byteLength=be),Z.profile&&(Re.stats.size=Re.byteLength*Yr[Re.dtype]),ht}function at(Pe,Oe){F.bufferSubData(Re.type,Oe,Pe)}function Ft(Pe,Oe){var pt=(Oe||0)|0,be;if(Re.bind(),Qr(Pe)||Pe instanceof ArrayBuffer)at(Pe,pt);else if(Array.isArray(Pe)){if(Pe.length>0){if(typeof Pe[0]=="number"){var ft=Ee.allocType(Re.dtype,Pe.length);cs(ft,Pe),at(ft,pt),Ee.freeType(ft)}else if(Array.isArray(Pe[0])||Qr(Pe[0])){be=yl(Pe);var qe=Ln(Pe,be,Re.dtype);at(qe,pt),Ee.freeType(qe)}}}else if(qn(Pe)){be=Pe.shape;var Nt=Pe.stride,Jt=0,gt=0,$t=0,ot=0;be.length===1?(Jt=be[0],gt=1,$t=Nt[0],ot=0):be.length===2&&(Jt=be[0],gt=be[1],$t=Nt[0],ot=Nt[1]);var er=Array.isArray(Pe.data)?Re.dtype:ua(Pe.data),or=Ee.allocType(er,Jt*gt);hs(or,Pe.data,Jt,gt,$t,ot,Pe.offset),at(or,pt),Ee.freeType(or)}return ht}return Ge||ht(he),ht._reglType="buffer",ht._buffer=Re,ht.subdata=Ft,Z.profile&&(ht.stats=Re.stats),ht.destroy=function(){wt(Re)},ht}function ze(){Mn(ge).forEach(function(he){he.buffer=F.createBuffer(),F.bindBuffer(he.type,he.buffer),F.bufferData(he.type,he.persistentData||he.byteLength,he.usage)})}return Z.profile&&(H.getTotalBufferSize=function(){var he=0;return Object.keys(ge).forEach(function(Se){he+=ge[Se].stats.size}),he}),{create:nt,createStream:We,destroyStream:Xe,clear:function(){Mn(ge).forEach(wt),He.forEach(wt)},getBuffer:function(he){return he&&he._buffer instanceof xe?he._buffer:null},restore:ze,_initBuffer:Mt}}var ds=0,Ed=0,Ad=1,ps=1,vs=4,ms=4,Zr={points:ds,point:Ed,lines:Ad,line:ps,triangles:vs,triangle:ms,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Td=0,_l=1,Bi=4,Wa=5120,la=5121,gs=5122,fa=5123,wl=5124,$i=5125,Va=34963,vr=35040,ys=35044;function bl(F,H,Z,we){var ke={},ge=0,xe={uint8:la,uint16:fa};H.oes_element_index_uint&&(xe.uint32=$i);function He(ze){this.id=ge++,ke[this.id]=this,this.buffer=ze,this.primType=Bi,this.vertCount=0,this.type=0}He.prototype.bind=function(){this.buffer.bind()};var We=[];function Xe(ze){var he=We.pop();return he||(he=new He(Z.create(null,Va,!0,!1)._buffer)),Mt(he,ze,vr,-1,-1,0,0),he}function ut(ze){We.push(ze)}function Mt(ze,he,Se,Ge,Ve,Re,ht){ze.buffer.bind();var at;if(he){var Ft=ht;!ht&&(!Qr(he)||qn(he)&&!Qr(he.data))&&(Ft=H.oes_element_index_uint?$i:fa),Z._initBuffer(ze.buffer,he,Se,Ft,3)}else F.bufferData(Va,Re,Se),ze.buffer.dtype=at||la,ze.buffer.usage=Se,ze.buffer.dimension=3,ze.buffer.byteLength=Re;if(at=ht,!ht){switch(ze.buffer.dtype){case la:case Wa:at=la;break;case fa:case gs:at=fa;break;case $i:case wl:at=$i;break}ze.buffer.dtype=at}ze.type=at;var Pe=Ve;Pe<0&&(Pe=ze.buffer.byteLength,at===fa?Pe>>=1:at===$i&&(Pe>>=2)),ze.vertCount=Pe;var Oe=Ge;if(Ge<0){Oe=Bi;var pt=ze.buffer.dimension;pt===1&&(Oe=Td),pt===2&&(Oe=_l),pt===3&&(Oe=Bi)}ze.primType=Oe}function wt(ze){we.elementsCount--,delete ke[ze.id],ze.buffer.destroy(),ze.buffer=null}function nt(ze,he){var Se=Z.create(null,Va,!0),Ge=new He(Se._buffer);we.elementsCount++;function Ve(Re){if(!Re)Se(),Ge.primType=Bi,Ge.vertCount=0,Ge.type=la;else if(typeof Re=="number")Se(Re),Ge.primType=Bi,Ge.vertCount=Re|0,Ge.type=la;else{var ht=null,at=ys,Ft=-1,Pe=-1,Oe=0,pt=0;Array.isArray(Re)||Qr(Re)||qn(Re)?ht=Re:("data"in Re&&(ht=Re.data),"usage"in Re&&(at=Di[Re.usage]),"primitive"in Re&&(Ft=Zr[Re.primitive]),"count"in Re&&(Pe=Re.count|0),"type"in Re&&(pt=xe[Re.type]),"length"in Re?Oe=Re.length|0:(Oe=Pe,pt===fa||pt===gs?Oe*=2:(pt===$i||pt===wl)&&(Oe*=4))),Mt(Ge,ht,at,Ft,Pe,Oe,pt)}return Ve}return Ve(ze),Ve._reglType="elements",Ve._elements=Ge,Ve.subdata=function(Re,ht){return Se.subdata(Re,ht),Ve},Ve.destroy=function(){wt(Ge)},Ve}return{create:nt,createStream:Xe,destroyStream:ut,getElements:function(ze){return typeof ze=="function"&&ze._elements instanceof He?ze._elements:null},clear:function(){Mn(ke).forEach(wt)}}}var Cd=new Float32Array(1),Um=new Uint32Array(Cd.buffer),Sl=5123;function iu(F){for(var H=Ee.allocType(Sl,F.length),Z=0;Z<F.length;++Z)if(isNaN(F[Z]))H[Z]=65535;else if(F[Z]===1/0)H[Z]=31744;else if(F[Z]===-1/0)H[Z]=64512;else{Cd[0]=F[Z];var we=Um[0],ke=we>>>31<<15,ge=(we<<1>>>24)-127,xe=we>>13&(1<<10)-1;if(ge<-24)H[Z]=ke;else if(ge<-14){var He=-14-ge;H[Z]=ke+(xe+(1<<10)>>He)}else ge>15?H[Z]=ke+31744:H[Z]=ke+(ge+15<<10)+xe}return H}function Xn(F){return Array.isArray(F)||Qr(F)}var El=34467,Qn=3553,qa=34067,Ya=34069,zi=6408,Al=6406,wi=6407,bi=6409,au=6410,kd=32854,Xa=32855,Tl=36194,xs=32819,Od=32820,Qa=33635,sa=34042,Ui=6402,ou=34041,uu=35904,ca=35906,ha=36193,_s=33776,Cl=33777,lu=33778,ws=33779,Md=35986,bs=35987,Fd=34798,Ss=35840,Nd=35841,Es=35842,Rd=35843,da=36196,Zn=5121,As=5123,Ts=5125,fu=5126,Id=10242,su=10243,jm=10497,Za=33071,kl=33648,Cs=10240,Ol=10241,pa=9728,cu=9729,Ml=9984,Fl=9985,Pd=9986,Ka=9987,Gm=33170,Nl=4352,Hm=4353,Ld=4354,hu=34046,Wm=3317,ks=37440,Dd=37441,Si=37443,Os=37444,va=33984,Ms=[Ml,Pd,Fl,Ka],li=[0,bi,au,wi,zi],bn={};bn[bi]=bn[Al]=bn[Ui]=1,bn[ou]=bn[au]=2,bn[wi]=bn[uu]=3,bn[zi]=bn[ca]=4;function ma(F){return"[object "+F+"]"}var Bd=ma("HTMLCanvasElement"),$d=ma("OffscreenCanvas"),zd=ma("CanvasRenderingContext2D"),Fs=ma("ImageBitmap"),Ns=ma("HTMLImageElement"),Ud=ma("HTMLVideoElement"),Vm=Object.keys(Jo).concat([Bd,$d,zd,Fs,Ns,Ud]),Ja=[];Ja[Zn]=1,Ja[fu]=4,Ja[ha]=2,Ja[As]=2,Ja[Ts]=4;var Xr=[];Xr[kd]=2,Xr[Xa]=2,Xr[Tl]=2,Xr[ou]=4,Xr[_s]=.5,Xr[Cl]=.5,Xr[lu]=1,Xr[ws]=1,Xr[Md]=.5,Xr[bs]=1,Xr[Fd]=1,Xr[Ss]=.5,Xr[Nd]=.25,Xr[Es]=.5,Xr[Rd]=.25,Xr[da]=.5;function jd(F){return Array.isArray(F)&&(F.length===0||typeof F[0]=="number")}function Gd(F){if(!Array.isArray(F))return!1;var H=F.length;return!(H===0||!Xn(F[0]))}function ga(F){return Object.prototype.toString.call(F)}function Hd(F){return ga(F)===Bd}function Wd(F){return ga(F)===$d}function qm(F){return ga(F)===zd}function Ym(F){return ga(F)===Fs}function Xm(F){return ga(F)===Ns}function Qm(F){return ga(F)===Ud}function Rl(F){if(!F)return!1;var H=ga(F);return Vm.indexOf(H)>=0?!0:jd(F)||Gd(F)||qn(F)}function Rs(F){return Jo[Object.prototype.toString.call(F)]|0}function Vd(F,H){var Z=H.length;switch(F.type){case Zn:case As:case Ts:case fu:var we=Ee.allocType(F.type,Z);we.set(H),F.data=we;break;case ha:F.data=iu(H);break}}function Is(F,H){return Ee.allocType(F.type===ha?fu:F.type,H)}function qd(F,H){F.type===ha?(F.data=iu(H),Ee.freeType(H)):F.data=H}function Zm(F,H,Z,we,ke,ge){for(var xe=F.width,He=F.height,We=F.channels,Xe=xe*He*We,ut=Is(F,Xe),Mt=0,wt=0;wt<He;++wt)for(var nt=0;nt<xe;++nt)for(var ze=0;ze<We;++ze)ut[Mt++]=H[Z*nt+we*wt+ke*ze+ge];qd(F,ut)}function Ei(F,H,Z,we,ke,ge){var xe;if(typeof Xr[F]<"u"?xe=Xr[F]:xe=bn[F]*Ja[H],ge&&(xe*=6),ke){for(var He=0,We=Z;We>=1;)He+=xe*We*We,We/=2;return He}else return xe*Z*we}function Km(F,H,Z,we,ke,ge,xe){var He={"don't care":Nl,"dont care":Nl,nice:Ld,fast:Hm},We={repeat:jm,clamp:Za,mirror:kl},Xe={nearest:pa,linear:cu},ut=r({mipmap:Ka,"nearest mipmap nearest":Ml,"linear mipmap nearest":Fl,"nearest mipmap linear":Pd,"linear mipmap linear":Ka},Xe),Mt={none:0,browser:Os},wt={uint8:Zn,rgba4:xs,rgb565:Qa,"rgb5 a1":Od},nt={alpha:Al,luminance:bi,"luminance alpha":au,rgb:wi,rgba:zi,rgba4:kd,"rgb5 a1":Xa,rgb565:Tl},ze={};H.ext_srgb&&(nt.srgb=uu,nt.srgba=ca),H.oes_texture_float&&(wt.float32=wt.float=fu),H.oes_texture_half_float&&(wt.float16=wt["half float"]=ha),H.webgl_depth_texture&&(r(nt,{depth:Ui,"depth stencil":ou}),r(wt,{uint16:As,uint32:Ts,"depth stencil":sa})),H.webgl_compressed_texture_s3tc&&r(ze,{"rgb s3tc dxt1":_s,"rgba s3tc dxt1":Cl,"rgba s3tc dxt3":lu,"rgba s3tc dxt5":ws}),H.webgl_compressed_texture_atc&&r(ze,{"rgb atc":Md,"rgba atc explicit alpha":bs,"rgba atc interpolated alpha":Fd}),H.webgl_compressed_texture_pvrtc&&r(ze,{"rgb pvrtc 4bppv1":Ss,"rgb pvrtc 2bppv1":Nd,"rgba pvrtc 4bppv1":Es,"rgba pvrtc 2bppv1":Rd}),H.webgl_compressed_texture_etc1&&(ze["rgb etc1"]=da);var he=Array.prototype.slice.call(F.getParameter(El));Object.keys(ze).forEach(function(V){var ye=ze[V];he.indexOf(ye)>=0&&(nt[V]=ye)});var Se=Object.keys(nt);Z.textureFormats=Se;var Ge=[];Object.keys(nt).forEach(function(V){var ye=nt[V];Ge[ye]=V});var Ve=[];Object.keys(wt).forEach(function(V){var ye=wt[V];Ve[ye]=V});var Re=[];Object.keys(Xe).forEach(function(V){var ye=Xe[V];Re[ye]=V});var ht=[];Object.keys(ut).forEach(function(V){var ye=ut[V];ht[ye]=V});var at=[];Object.keys(We).forEach(function(V){var ye=We[V];at[ye]=V});var Ft=Se.reduce(function(V,ye){var me=nt[ye];return me===bi||me===Al||me===bi||me===au||me===Ui||me===ou||H.ext_srgb&&(me===uu||me===ca)?V[me]=me:me===Xa||ye.indexOf("rgba")>=0?V[me]=zi:V[me]=wi,V},{});function Pe(){this.internalformat=zi,this.format=zi,this.type=Zn,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Os,this.width=0,this.height=0,this.channels=0}function Oe(V,ye){V.internalformat=ye.internalformat,V.format=ye.format,V.type=ye.type,V.compressed=ye.compressed,V.premultiplyAlpha=ye.premultiplyAlpha,V.flipY=ye.flipY,V.unpackAlignment=ye.unpackAlignment,V.colorSpace=ye.colorSpace,V.width=ye.width,V.height=ye.height,V.channels=ye.channels}function pt(V,ye){if(!(typeof ye!="object"||!ye)){if("premultiplyAlpha"in ye&&(V.premultiplyAlpha=ye.premultiplyAlpha),"flipY"in ye&&(V.flipY=ye.flipY),"alignment"in ye&&(V.unpackAlignment=ye.alignment),"colorSpace"in ye&&(V.colorSpace=Mt[ye.colorSpace]),"type"in ye){var me=ye.type;V.type=wt[me]}var St=V.width,tr=V.height,Cr=V.channels,Et=!1;"shape"in ye?(St=ye.shape[0],tr=ye.shape[1],ye.shape.length===3&&(Cr=ye.shape[2],Et=!0)):("radius"in ye&&(St=tr=ye.radius),"width"in ye&&(St=ye.width),"height"in ye&&(tr=ye.height),"channels"in ye&&(Cr=ye.channels,Et=!0)),V.width=St|0,V.height=tr|0,V.channels=Cr|0;var U=!1;if("format"in ye){var W=ye.format,J=V.internalformat=nt[W];V.format=Ft[J],W in wt&&("type"in ye||(V.type=wt[W])),W in ze&&(V.compressed=!0),U=!0}!Et&&U?V.channels=bn[V.format]:Et&&!U&&V.channels!==li[V.format]&&(V.format=V.internalformat=li[V.channels])}}function be(V){F.pixelStorei(ks,V.flipY),F.pixelStorei(Dd,V.premultiplyAlpha),F.pixelStorei(Si,V.colorSpace),F.pixelStorei(Wm,V.unpackAlignment)}function ft(){Pe.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function qe(V,ye){var me=null;if(Rl(ye)?me=ye:ye&&(pt(V,ye),"x"in ye&&(V.xOffset=ye.x|0),"y"in ye&&(V.yOffset=ye.y|0),Rl(ye.data)&&(me=ye.data)),ye.copy){var St=ke.viewportWidth,tr=ke.viewportHeight;V.width=V.width||St-V.xOffset,V.height=V.height||tr-V.yOffset,V.needsCopy=!0}else if(!me)V.width=V.width||1,V.height=V.height||1,V.channels=V.channels||4;else if(Qr(me))V.channels=V.channels||4,V.data=me,!("type"in ye)&&V.type===Zn&&(V.type=Rs(me));else if(jd(me))V.channels=V.channels||4,Vd(V,me),V.alignment=1,V.needsFree=!0;else if(qn(me)){var Cr=me.data;!Array.isArray(Cr)&&V.type===Zn&&(V.type=Rs(Cr));var Et=me.shape,U=me.stride,W,J,_e,pe,de,ce;Et.length===3?(_e=Et[2],ce=U[2]):(_e=1,ce=1),W=Et[0],J=Et[1],pe=U[0],de=U[1],V.alignment=1,V.width=W,V.height=J,V.channels=_e,V.format=V.internalformat=li[_e],V.needsFree=!0,Zm(V,Cr,pe,de,ce,me.offset)}else if(Hd(me)||Wd(me)||qm(me))Hd(me)||Wd(me)?V.element=me:V.element=me.canvas,V.width=V.element.width,V.height=V.element.height,V.channels=4;else if(Ym(me))V.element=me,V.width=me.width,V.height=me.height,V.channels=4;else if(Xm(me))V.element=me,V.width=me.naturalWidth,V.height=me.naturalHeight,V.channels=4;else if(Qm(me))V.element=me,V.width=me.videoWidth,V.height=me.videoHeight,V.channels=4;else if(Gd(me)){var fe=V.width||me[0].length,Q=V.height||me.length,te=V.channels;Xn(me[0][0])?te=te||me[0][0].length:te=te||1;for(var X=nr.shape(me),ve=1,Te=0;Te<X.length;++Te)ve*=X[Te];var Le=Is(V,ve);nr.flatten(me,X,"",Le),qd(V,Le),V.alignment=1,V.width=fe,V.height=Q,V.channels=te,V.format=V.internalformat=li[te],V.needsFree=!0}V.type===fu||V.type}function Nt(V,ye,me){var St=V.element,tr=V.data,Cr=V.internalformat,Et=V.format,U=V.type,W=V.width,J=V.height;be(V),St?F.texImage2D(ye,me,Et,Et,U,St):V.compressed?F.compressedTexImage2D(ye,me,Cr,W,J,0,tr):V.needsCopy?(we(),F.copyTexImage2D(ye,me,Et,V.xOffset,V.yOffset,W,J,0)):F.texImage2D(ye,me,Et,W,J,0,Et,U,tr||null)}function Jt(V,ye,me,St,tr){var Cr=V.element,Et=V.data,U=V.internalformat,W=V.format,J=V.type,_e=V.width,pe=V.height;be(V),Cr?F.texSubImage2D(ye,tr,me,St,W,J,Cr):V.compressed?F.compressedTexSubImage2D(ye,tr,me,St,U,_e,pe,Et):V.needsCopy?(we(),F.copyTexSubImage2D(ye,tr,me,St,V.xOffset,V.yOffset,_e,pe)):F.texSubImage2D(ye,tr,me,St,_e,pe,W,J,Et)}var gt=[];function $t(){return gt.pop()||new ft}function ot(V){V.needsFree&&Ee.freeType(V.data),ft.call(V),gt.push(V)}function er(){Pe.call(this),this.genMipmaps=!1,this.mipmapHint=Nl,this.mipmask=0,this.images=Array(16)}function or(V,ye,me){var St=V.images[0]=$t();V.mipmask=1,St.width=V.width=ye,St.height=V.height=me,St.channels=V.channels=4}function cr(V,ye){var me=null;if(Rl(ye))me=V.images[0]=$t(),Oe(me,V),qe(me,ye),V.mipmask=1;else if(pt(V,ye),Array.isArray(ye.mipmap))for(var St=ye.mipmap,tr=0;tr<St.length;++tr)me=V.images[tr]=$t(),Oe(me,V),me.width>>=tr,me.height>>=tr,qe(me,St[tr]),V.mipmask|=1<<tr;else me=V.images[0]=$t(),Oe(me,V),qe(me,ye),V.mipmask=1;Oe(V,V.images[0]),V.compressed&&(V.internalformat===_s||V.internalformat===Cl||V.internalformat===lu||V.internalformat)}function en(V,ye){for(var me=V.images,St=0;St<me.length;++St){if(!me[St])return;Nt(me[St],ye,St)}}var ur=[];function Bn(){var V=ur.pop()||new er;Pe.call(V),V.mipmask=0;for(var ye=0;ye<16;++ye)V.images[ye]=null;return V}function br(V){for(var ye=V.images,me=0;me<ye.length;++me)ye[me]&&ot(ye[me]),ye[me]=null;ur.push(V)}function gn(){this.minFilter=pa,this.magFilter=pa,this.wrapS=Za,this.wrapT=Za,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=Nl}function $n(V,ye){if("min"in ye){var me=ye.min;V.minFilter=ut[me],Ms.indexOf(V.minFilter)>=0&&!("faces"in ye)&&(V.genMipmaps=!0)}if("mag"in ye){var St=ye.mag;V.magFilter=Xe[St]}var tr=V.wrapS,Cr=V.wrapT;if("wrap"in ye){var Et=ye.wrap;typeof Et=="string"?tr=Cr=We[Et]:Array.isArray(Et)&&(tr=We[Et[0]],Cr=We[Et[1]])}else{if("wrapS"in ye){var U=ye.wrapS;tr=We[U]}if("wrapT"in ye){var W=ye.wrapT;Cr=We[W]}}if(V.wrapS=tr,V.wrapT=Cr,"anisotropic"in ye&&(ye.anisotropic,V.anisotropic=ye.anisotropic),"mipmap"in ye){var J=!1;switch(typeof ye.mipmap){case"string":V.mipmapHint=He[ye.mipmap],V.genMipmaps=!0,J=!0;break;case"boolean":J=V.genMipmaps=ye.mipmap;break;case"object":V.genMipmaps=!1,J=!0;break}J&&!("min"in ye)&&(V.minFilter=Ml)}}function En(V,ye){F.texParameteri(ye,Ol,V.minFilter),F.texParameteri(ye,Cs,V.magFilter),F.texParameteri(ye,Id,V.wrapS),F.texParameteri(ye,su,V.wrapT),H.ext_texture_filter_anisotropic&&F.texParameteri(ye,hu,V.anisotropic),V.genMipmaps&&(F.hint(Gm,V.mipmapHint),F.generateMipmap(ye))}var ki=0,tn={},rn=Z.maxTextureUnits,qt=Array(rn).map(function(){return null});function ti(V){Pe.call(this),this.mipmask=0,this.internalformat=zi,this.id=ki++,this.refCount=1,this.target=V,this.texture=F.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new gn,xe.profile&&(this.stats={size:0})}function xr(V){F.activeTexture(va),F.bindTexture(V.target,V.texture)}function nn(){var V=qt[0];V?F.bindTexture(V.target,V.texture):F.bindTexture(Qn,null)}function Fn(V){var ye=V.texture,me=V.unit,St=V.target;me>=0&&(F.activeTexture(va+me),F.bindTexture(St,null),qt[me]=null),F.deleteTexture(ye),V.texture=null,V.params=null,V.pixels=null,V.refCount=0,delete tn[V.id],ge.textureCount--}r(ti.prototype,{bind:function(){var V=this;V.bindCount+=1;var ye=V.unit;if(ye<0){for(var me=0;me<rn;++me){var St=qt[me];if(St){if(St.bindCount>0)continue;St.unit=-1}qt[me]=V,ye=me;break}xe.profile&&ge.maxTextureUnits<ye+1&&(ge.maxTextureUnits=ye+1),V.unit=ye,F.activeTexture(va+ye),F.bindTexture(V.target,V.texture)}return ye},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&Fn(this)}});function Nn(V,ye){var me=new ti(Qn);tn[me.id]=me,ge.textureCount++;function St(Et,U){var W=me.texInfo;gn.call(W);var J=Bn();return typeof Et=="number"?typeof U=="number"?or(J,Et|0,U|0):or(J,Et|0,Et|0):Et?($n(W,Et),cr(J,Et)):or(J,1,1),W.genMipmaps&&(J.mipmask=(J.width<<1)-1),me.mipmask=J.mipmask,Oe(me,J),me.internalformat=J.internalformat,St.width=J.width,St.height=J.height,xr(me),en(J,Qn),En(W,Qn),nn(),br(J),xe.profile&&(me.stats.size=Ei(me.internalformat,me.type,J.width,J.height,W.genMipmaps,!1)),St.format=Ge[me.internalformat],St.type=Ve[me.type],St.mag=Re[W.magFilter],St.min=ht[W.minFilter],St.wrapS=at[W.wrapS],St.wrapT=at[W.wrapT],St}function tr(Et,U,W,J){var _e=U|0,pe=W|0,de=J|0,ce=$t();return Oe(ce,me),ce.width=0,ce.height=0,qe(ce,Et),ce.width=ce.width||(me.width>>de)-_e,ce.height=ce.height||(me.height>>de)-pe,xr(me),Jt(ce,Qn,_e,pe,de),nn(),ot(ce),St}function Cr(Et,U){var W=Et|0,J=U|0||W;if(W===me.width&&J===me.height)return St;St.width=me.width=W,St.height=me.height=J,xr(me);for(var _e=0;me.mipmask>>_e;++_e){var pe=W>>_e,de=J>>_e;if(!pe||!de)break;F.texImage2D(Qn,_e,me.format,pe,de,0,me.format,me.type,null)}return nn(),xe.profile&&(me.stats.size=Ei(me.internalformat,me.type,W,J,!1,!1)),St}return St(V,ye),St.subimage=tr,St.resize=Cr,St._reglType="texture2d",St._texture=me,xe.profile&&(St.stats=me.stats),St.destroy=function(){me.decRef()},St}function Zt(V,ye,me,St,tr,Cr){var Et=new ti(qa);tn[Et.id]=Et,ge.cubeCount++;var U=new Array(6);function W(pe,de,ce,fe,Q,te){var X,ve=Et.texInfo;for(gn.call(ve),X=0;X<6;++X)U[X]=Bn();if(typeof pe=="number"||!pe){var Te=pe|0||1;for(X=0;X<6;++X)or(U[X],Te,Te)}else if(typeof pe=="object")if(de)cr(U[0],pe),cr(U[1],de),cr(U[2],ce),cr(U[3],fe),cr(U[4],Q),cr(U[5],te);else if($n(ve,pe),pt(Et,pe),"faces"in pe){var Le=pe.faces;for(X=0;X<6;++X)Oe(U[X],Et),cr(U[X],Le[X])}else for(X=0;X<6;++X)cr(U[X],pe);for(Oe(Et,U[0]),ve.genMipmaps?Et.mipmask=(U[0].width<<1)-1:Et.mipmask=U[0].mipmask,Et.internalformat=U[0].internalformat,W.width=U[0].width,W.height=U[0].height,xr(Et),X=0;X<6;++X)en(U[X],Ya+X);for(En(ve,qa),nn(),xe.profile&&(Et.stats.size=Ei(Et.internalformat,Et.type,W.width,W.height,ve.genMipmaps,!0)),W.format=Ge[Et.internalformat],W.type=Ve[Et.type],W.mag=Re[ve.magFilter],W.min=ht[ve.minFilter],W.wrapS=at[ve.wrapS],W.wrapT=at[ve.wrapT],X=0;X<6;++X)br(U[X]);return W}function J(pe,de,ce,fe,Q){var te=ce|0,X=fe|0,ve=Q|0,Te=$t();return Oe(Te,Et),Te.width=0,Te.height=0,qe(Te,de),Te.width=Te.width||(Et.width>>ve)-te,Te.height=Te.height||(Et.height>>ve)-X,xr(Et),Jt(Te,Ya+pe,te,X,ve),nn(),ot(Te),W}function _e(pe){var de=pe|0;if(de!==Et.width){W.width=Et.width=de,W.height=Et.height=de,xr(Et);for(var ce=0;ce<6;++ce)for(var fe=0;Et.mipmask>>fe;++fe)F.texImage2D(Ya+ce,fe,Et.format,de>>fe,de>>fe,0,Et.format,Et.type,null);return nn(),xe.profile&&(Et.stats.size=Ei(Et.internalformat,Et.type,W.width,W.height,!1,!0)),W}}return W(V,ye,me,St,tr,Cr),W.subimage=J,W.resize=_e,W._reglType="textureCube",W._texture=Et,xe.profile&&(W.stats=Et.stats),W.destroy=function(){Et.decRef()},W}function sr(){for(var V=0;V<rn;++V)F.activeTexture(va+V),F.bindTexture(Qn,null),qt[V]=null;Mn(tn).forEach(Fn),ge.cubeCount=0,ge.textureCount=0}xe.profile&&(ge.getTotalTextureSize=function(){var V=0;return Object.keys(tn).forEach(function(ye){V+=tn[ye].stats.size}),V});function Er(){for(var V=0;V<rn;++V){var ye=qt[V];ye&&(ye.bindCount=0,ye.unit=-1,qt[V]=null)}Mn(tn).forEach(function(me){me.texture=F.createTexture(),F.bindTexture(me.target,me.texture);for(var St=0;St<32;++St)if(me.mipmask&1<<St)if(me.target===Qn)F.texImage2D(Qn,St,me.internalformat,me.width>>St,me.height>>St,0,me.internalformat,me.type,null);else for(var tr=0;tr<6;++tr)F.texImage2D(Ya+tr,St,me.internalformat,me.width>>St,me.height>>St,0,me.internalformat,me.type,null);En(me.texInfo,me.target)})}function an(){for(var V=0;V<rn;++V){var ye=qt[V];ye&&(ye.bindCount=0,ye.unit=-1,qt[V]=null),F.activeTexture(va+V),F.bindTexture(Qn,null),F.bindTexture(qa,null)}}return{create2D:Nn,createCube:Zt,clear:sr,getTexture:function(V){return null},restore:Er,refresh:an}}var ji=36161,Il=32854,Yd=32855,Ps=36194,Xd=33189,Qd=36168,Zd=34041,Ls=35907,Kd=34836,Jd=34842,ep=34843,Kn=[];Kn[Il]=2,Kn[Yd]=2,Kn[Ps]=2,Kn[Xd]=2,Kn[Qd]=1,Kn[Zd]=4,Kn[Ls]=4,Kn[Kd]=16,Kn[Jd]=8,Kn[ep]=6;function tp(F,H,Z){return Kn[F]*H*Z}var rp=function(F,H,Z,we,ke){var ge={rgba4:Il,rgb565:Ps,"rgb5 a1":Yd,depth:Xd,stencil:Qd,"depth stencil":Zd};H.ext_srgb&&(ge.srgba=Ls),H.ext_color_buffer_half_float&&(ge.rgba16f=Jd,ge.rgb16f=ep),H.webgl_color_buffer_float&&(ge.rgba32f=Kd);var xe=[];Object.keys(ge).forEach(function(nt){var ze=ge[nt];xe[ze]=nt});var He=0,We={};function Xe(nt){this.id=He++,this.refCount=1,this.renderbuffer=nt,this.format=Il,this.width=0,this.height=0,ke.profile&&(this.stats={size:0})}Xe.prototype.decRef=function(){--this.refCount<=0&&ut(this)};function ut(nt){var ze=nt.renderbuffer;F.bindRenderbuffer(ji,null),F.deleteRenderbuffer(ze),nt.renderbuffer=null,nt.refCount=0,delete We[nt.id],we.renderbufferCount--}function Mt(nt,ze){var he=new Xe(F.createRenderbuffer());We[he.id]=he,we.renderbufferCount++;function Se(Ve,Re){var ht=0,at=0,Ft=Il;if(typeof Ve=="object"&&Ve){var Pe=Ve;if("shape"in Pe){var Oe=Pe.shape;ht=Oe[0]|0,at=Oe[1]|0}else"radius"in Pe&&(ht=at=Pe.radius|0),"width"in Pe&&(ht=Pe.width|0),"height"in Pe&&(at=Pe.height|0);"format"in Pe&&(Ft=ge[Pe.format])}else typeof Ve=="number"?(ht=Ve|0,typeof Re=="number"?at=Re|0:at=ht):Ve||(ht=at=1);if(!(ht===he.width&&at===he.height&&Ft===he.format))return Se.width=he.width=ht,Se.height=he.height=at,he.format=Ft,F.bindRenderbuffer(ji,he.renderbuffer),F.renderbufferStorage(ji,Ft,ht,at),ke.profile&&(he.stats.size=tp(he.format,he.width,he.height)),Se.format=xe[he.format],Se}function Ge(Ve,Re){var ht=Ve|0,at=Re|0||ht;return ht===he.width&&at===he.height||(Se.width=he.width=ht,Se.height=he.height=at,F.bindRenderbuffer(ji,he.renderbuffer),F.renderbufferStorage(ji,he.format,ht,at),ke.profile&&(he.stats.size=tp(he.format,he.width,he.height))),Se}return Se(nt,ze),Se.resize=Ge,Se._reglType="renderbuffer",Se._renderbuffer=he,ke.profile&&(Se.stats=he.stats),Se.destroy=function(){he.decRef()},Se}ke.profile&&(we.getTotalRenderbufferSize=function(){var nt=0;return Object.keys(We).forEach(function(ze){nt+=We[ze].stats.size}),nt});function wt(){Mn(We).forEach(function(nt){nt.renderbuffer=F.createRenderbuffer(),F.bindRenderbuffer(ji,nt.renderbuffer),F.renderbufferStorage(ji,nt.format,nt.width,nt.height)}),F.bindRenderbuffer(ji,null)}return{create:Mt,clear:function(){Mn(We).forEach(ut)},restore:wt}},Ai=36160,Ds=36161,eo=3553,to=34069,ro=36064,Jn=36096,np=36128,ip=33306,Jm=36053,eg=36193,ap=5121,tg=5126,rg=6407,ng=6408,Bs=[];Bs[ng]=4,Bs[rg]=3;var Pl=[];Pl[ap]=1,Pl[tg]=4,Pl[eg]=2;function $s(F,H,Z,we,ke,ge){var xe={cur:null,next:null,dirty:!1,setFBO:null},He=["rgba"],We=["rgba4","rgb565","rgb5 a1"];H.ext_srgb&&We.push("srgba"),H.ext_color_buffer_half_float&&We.push("rgba16f","rgb16f"),H.webgl_color_buffer_float&&We.push("rgba32f"),H.oes_texture_half_float,H.oes_texture_float;function Xe(be,ft,qe){this.target=be,this.texture=ft,this.renderbuffer=qe;var Nt=0,Jt=0;ft?(Nt=ft.width,Jt=ft.height):qe&&(Nt=qe.width,Jt=qe.height),this.width=Nt,this.height=Jt}function ut(be){be&&(be.texture&&be.texture._texture.decRef(),be.renderbuffer&&be.renderbuffer._renderbuffer.decRef())}function Mt(be,ft,qe){if(be)if(be.texture){var Nt=be.texture._texture;Math.max(1,Nt.width),Math.max(1,Nt.height),Nt.refCount+=1}else{var Jt=be.renderbuffer._renderbuffer;Jt.refCount+=1}}function wt(be,ft){ft&&(ft.texture?F.framebufferTexture2D(Ai,be,ft.target,ft.texture._texture.texture,0):F.framebufferRenderbuffer(Ai,be,Ds,ft.renderbuffer._renderbuffer.renderbuffer))}function nt(be){var ft=eo,qe=null,Nt=null,Jt=be;typeof be=="object"&&(Jt=be.data,"target"in be&&(ft=be.target|0));var gt=Jt._reglType;return gt==="texture2d"||gt==="textureCube"?qe=Jt:gt==="renderbuffer"&&(Nt=Jt,ft=Ds),new Xe(ft,qe,Nt)}function ze(be,ft,qe,Nt,Jt){if(qe){var gt=we.create2D({width:be,height:ft,format:Nt,type:Jt});return gt._texture.refCount=0,new Xe(eo,gt,null)}else{var $t=ke.create({width:be,height:ft,format:Nt});return $t._renderbuffer.refCount=0,new Xe(Ds,null,$t)}}function he(be){return be&&(be.texture||be.renderbuffer)}function Se(be,ft,qe){be&&(be.texture?be.texture.resize(ft,qe):be.renderbuffer&&be.renderbuffer.resize(ft,qe),be.width=ft,be.height=qe)}var Ge=0,Ve={};function Re(){this.id=Ge++,Ve[this.id]=this,this.framebuffer=F.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function ht(be){be.colorAttachments.forEach(ut),ut(be.depthAttachment),ut(be.stencilAttachment),ut(be.depthStencilAttachment)}function at(be){var ft=be.framebuffer;F.deleteFramebuffer(ft),be.framebuffer=null,ge.framebufferCount--,delete Ve[be.id]}function Ft(be){var ft;F.bindFramebuffer(Ai,be.framebuffer);var qe=be.colorAttachments;for(ft=0;ft<qe.length;++ft)wt(ro+ft,qe[ft]);for(ft=qe.length;ft<Z.maxColorAttachments;++ft)F.framebufferTexture2D(Ai,ro+ft,eo,null,0);F.framebufferTexture2D(Ai,ip,eo,null,0),F.framebufferTexture2D(Ai,Jn,eo,null,0),F.framebufferTexture2D(Ai,np,eo,null,0),wt(Jn,be.depthAttachment),wt(np,be.stencilAttachment),wt(ip,be.depthStencilAttachment);var Nt=F.checkFramebufferStatus(Ai);F.isContextLost(),F.bindFramebuffer(Ai,xe.next?xe.next.framebuffer:null),xe.cur=xe.next,F.getError()}function Pe(be,ft){var qe=new Re;ge.framebufferCount++;function Nt(gt,$t){var ot,er=0,or=0,cr=!0,en=!0,ur=null,Bn=!0,br="rgba",gn="uint8",$n=1,En=null,ki=null,tn=null,rn=!1;if(typeof gt=="number")er=gt|0,or=$t|0||er;else if(!gt)er=or=1;else{var qt=gt;if("shape"in qt){var ti=qt.shape;er=ti[0],or=ti[1]}else"radius"in qt&&(er=or=qt.radius),"width"in qt&&(er=qt.width),"height"in qt&&(or=qt.height);("color"in qt||"colors"in qt)&&(ur=qt.color||qt.colors),ur||("colorCount"in qt&&($n=qt.colorCount|0),"colorTexture"in qt&&(Bn=!!qt.colorTexture,br="rgba4"),"colorType"in qt&&(gn=qt.colorType,Bn||(gn==="half float"||gn==="float16"?br="rgba16f":(gn==="float"||gn==="float32")&&(br="rgba32f"))),"colorFormat"in qt&&(br=qt.colorFormat,He.indexOf(br)>=0?Bn=!0:We.indexOf(br)>=0&&(Bn=!1))),("depthTexture"in qt||"depthStencilTexture"in qt)&&(rn=!!(qt.depthTexture||qt.depthStencilTexture)),"depth"in qt&&(typeof qt.depth=="boolean"?cr=qt.depth:(En=qt.depth,en=!1)),"stencil"in qt&&(typeof qt.stencil=="boolean"?en=qt.stencil:(ki=qt.stencil,cr=!1)),"depthStencil"in qt&&(typeof qt.depthStencil=="boolean"?cr=en=qt.depthStencil:(tn=qt.depthStencil,cr=!1,en=!1))}var xr=null,nn=null,Fn=null,Nn=null;if(Array.isArray(ur))xr=ur.map(nt);else if(ur)xr=[nt(ur)];else for(xr=new Array($n),ot=0;ot<$n;++ot)xr[ot]=ze(er,or,Bn,br,gn);for(er=er||xr[0].width,or=or||xr[0].height,En?nn=nt(En):cr&&!en&&(nn=ze(er,or,rn,"depth","uint32")),ki?Fn=nt(ki):en&&!cr&&(Fn=ze(er,or,!1,"stencil","uint8")),tn?Nn=nt(tn):!En&&!ki&&en&&cr&&(Nn=ze(er,or,rn,"depth stencil","depth stencil")),ot=0;ot<xr.length;++ot)Mt(xr[ot]),xr[ot]&&xr[ot].texture&&Bs[xr[ot].texture._texture.format]*Pl[xr[ot].texture._texture.type];return Mt(nn),Mt(Fn),Mt(Nn),ht(qe),qe.width=er,qe.height=or,qe.colorAttachments=xr,qe.depthAttachment=nn,qe.stencilAttachment=Fn,qe.depthStencilAttachment=Nn,Nt.color=xr.map(he),Nt.depth=he(nn),Nt.stencil=he(Fn),Nt.depthStencil=he(Nn),Nt.width=qe.width,Nt.height=qe.height,Ft(qe),Nt}function Jt(gt,$t){var ot=Math.max(gt|0,1),er=Math.max($t|0||ot,1);if(ot===qe.width&&er===qe.height)return Nt;for(var or=qe.colorAttachments,cr=0;cr<or.length;++cr)Se(or[cr],ot,er);return Se(qe.depthAttachment,ot,er),Se(qe.stencilAttachment,ot,er),Se(qe.depthStencilAttachment,ot,er),qe.width=Nt.width=ot,qe.height=Nt.height=er,Ft(qe),Nt}return Nt(be,ft),r(Nt,{resize:Jt,_reglType:"framebuffer",_framebuffer:qe,destroy:function(){at(qe),ht(qe)},use:function(gt){xe.setFBO({framebuffer:Nt},gt)}})}function Oe(be){var ft=Array(6);function qe(Jt){var gt,$t={color:null},ot=0,er=null,or="rgba",cr="uint8",en=1;if(typeof Jt=="number")ot=Jt|0;else if(!Jt)ot=1;else{var ur=Jt;if("shape"in ur){var Bn=ur.shape;ot=Bn[0]}else"radius"in ur&&(ot=ur.radius|0),"width"in ur?ot=ur.width|0:"height"in ur&&(ot=ur.height|0);("color"in ur||"colors"in ur)&&(er=ur.color||ur.colors),er||("colorCount"in ur&&(en=ur.colorCount|0),"colorType"in ur&&(cr=ur.colorType),"colorFormat"in ur&&(or=ur.colorFormat)),"depth"in ur&&($t.depth=ur.depth),"stencil"in ur&&($t.stencil=ur.stencil),"depthStencil"in ur&&($t.depthStencil=ur.depthStencil)}var br;if(er)if(Array.isArray(er))for(br=[],gt=0;gt<er.length;++gt)br[gt]=er[gt];else br=[er];else{br=Array(en);var gn={radius:ot,format:or,type:cr};for(gt=0;gt<en;++gt)br[gt]=we.createCube(gn)}for($t.color=Array(br.length),gt=0;gt<br.length;++gt){var $n=br[gt];ot=ot||$n.width,$t.color[gt]={target:to,data:br[gt]}}for(gt=0;gt<6;++gt){for(var En=0;En<br.length;++En)$t.color[En].target=to+gt;gt>0&&($t.depth=ft[0].depth,$t.stencil=ft[0].stencil,$t.depthStencil=ft[0].depthStencil),ft[gt]?ft[gt]($t):ft[gt]=Pe($t)}return r(qe,{width:ot,height:ot,color:br})}function Nt(Jt){var gt,$t=Jt|0;if($t===qe.width)return qe;var ot=qe.color;for(gt=0;gt<ot.length;++gt)ot[gt].resize($t);for(gt=0;gt<6;++gt)ft[gt].resize($t);return qe.width=qe.height=$t,qe}return qe(be),r(qe,{faces:ft,resize:Nt,_reglType:"framebufferCube",destroy:function(){ft.forEach(function(Jt){Jt.destroy()})}})}function pt(){xe.cur=null,xe.next=null,xe.dirty=!0,Mn(Ve).forEach(function(be){be.framebuffer=F.createFramebuffer(),Ft(be)})}return r(xe,{getFramebuffer:function(be){if(typeof be=="function"&&be._reglType==="framebuffer"){var ft=be._framebuffer;if(ft instanceof Re)return ft}return null},create:Pe,createCube:Oe,clear:function(){Mn(Ve).forEach(at)},restore:pt})}var zs=5126,op=34962,Ll=34963;function Us(){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=zs,this.offset=0,this.stride=0,this.divisor=0}function ig(F,H,Z,we,ke,ge,xe){for(var He=Z.maxAttributes,We=new Array(He),Xe=0;Xe<He;++Xe)We[Xe]=new Us;var ut=0,Mt={},wt={Record:Us,scope:{},state:We,currentVAO:null,targetVAO:null,restore:ze()?at:function(){},createVAO:Ft,getVAO:Se,destroyBuffer:nt,setVAO:ze()?Ge:Ve,clear:ze()?Re:function(){}};function nt(Pe){for(var Oe=0;Oe<We.length;++Oe){var pt=We[Oe];pt.buffer===Pe&&(F.disableVertexAttribArray(Oe),pt.buffer=null)}}function ze(){return H.oes_vertex_array_object}function he(){return H.angle_instanced_arrays}function Se(Pe){return typeof Pe=="function"&&Pe._vao?Pe._vao:null}function Ge(Pe){if(Pe!==wt.currentVAO){var Oe=ze();Pe?Oe.bindVertexArrayOES(Pe.vao):Oe.bindVertexArrayOES(null),wt.currentVAO=Pe}}function Ve(Pe){if(Pe!==wt.currentVAO){if(Pe)Pe.bindAttrs();else{for(var Oe=he(),pt=0;pt<We.length;++pt){var be=We[pt];be.buffer?(F.enableVertexAttribArray(pt),be.buffer.bind(),F.vertexAttribPointer(pt,be.size,be.type,be.normalized,be.stride,be.offfset),Oe&&be.divisor&&Oe.vertexAttribDivisorANGLE(pt,be.divisor)):(F.disableVertexAttribArray(pt),F.vertexAttrib4f(pt,be.x,be.y,be.z,be.w))}xe.elements?F.bindBuffer(Ll,xe.elements.buffer.buffer):F.bindBuffer(Ll,null)}wt.currentVAO=Pe}}function Re(){Mn(Mt).forEach(function(Pe){Pe.destroy()})}function ht(){this.id=++ut,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var Pe=ze();Pe?this.vao=Pe.createVertexArrayOES():this.vao=null,Mt[this.id]=this,this.buffers=[]}ht.prototype.bindAttrs=function(){for(var Pe=he(),Oe=this.attributes,pt=0;pt<Oe.length;++pt){var be=Oe[pt];be.buffer?(F.enableVertexAttribArray(pt),F.bindBuffer(op,be.buffer.buffer),F.vertexAttribPointer(pt,be.size,be.type,be.normalized,be.stride,be.offset),Pe&&be.divisor&&Pe.vertexAttribDivisorANGLE(pt,be.divisor)):(F.disableVertexAttribArray(pt),F.vertexAttrib4f(pt,be.x,be.y,be.z,be.w))}for(var ft=Oe.length;ft<He;++ft)F.disableVertexAttribArray(ft);var qe=ge.getElements(this.elements);qe?F.bindBuffer(Ll,qe.buffer.buffer):F.bindBuffer(Ll,null)},ht.prototype.refresh=function(){var Pe=ze();Pe&&(Pe.bindVertexArrayOES(this.vao),this.bindAttrs(),wt.currentVAO=null,Pe.bindVertexArrayOES(null))},ht.prototype.destroy=function(){if(this.vao){var Pe=ze();this===wt.currentVAO&&(wt.currentVAO=null,Pe.bindVertexArrayOES(null)),Pe.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),Mt[this.id]&&(delete Mt[this.id],we.vaoCount-=1)};function at(){var Pe=ze();Pe&&Mn(Mt).forEach(function(Oe){Oe.refresh()})}function Ft(Pe){var Oe=new ht;we.vaoCount+=1;function pt(be){var ft;if(Array.isArray(be))ft=be,Oe.elements&&Oe.ownsElements&&Oe.elements.destroy(),Oe.elements=null,Oe.ownsElements=!1,Oe.offset=0,Oe.count=0,Oe.instances=-1,Oe.primitive=4;else{if(be.elements){var qe=be.elements;Oe.ownsElements?typeof qe=="function"&&qe._reglType==="elements"?(Oe.elements.destroy(),Oe.ownsElements=!1):(Oe.elements(qe),Oe.ownsElements=!1):ge.getElements(be.elements)?(Oe.elements=be.elements,Oe.ownsElements=!1):(Oe.elements=ge.create(be.elements),Oe.ownsElements=!0)}else Oe.elements=null,Oe.ownsElements=!1;ft=be.attributes,Oe.offset=0,Oe.count=-1,Oe.instances=-1,Oe.primitive=4,Oe.elements&&(Oe.count=Oe.elements._elements.vertCount,Oe.primitive=Oe.elements._elements.primType),"offset"in be&&(Oe.offset=be.offset|0),"count"in be&&(Oe.count=be.count|0),"instances"in be&&(Oe.instances=be.instances|0),"primitive"in be&&(Oe.primitive=Zr[be.primitive])}var Nt={},Jt=Oe.attributes;Jt.length=ft.length;for(var gt=0;gt<ft.length;++gt){var $t=ft[gt],ot=Jt[gt]=new Us,er=$t.data||$t;if(Array.isArray(er)||Qr(er)||qn(er)){var or;Oe.buffers[gt]&&(or=Oe.buffers[gt],Qr(er)&&or._buffer.byteLength>=er.byteLength?or.subdata(er):(or.destroy(),Oe.buffers[gt]=null)),Oe.buffers[gt]||(or=Oe.buffers[gt]=ke.create($t,op,!1,!0)),ot.buffer=ke.getBuffer(or),ot.size=ot.buffer.dimension|0,ot.normalized=!1,ot.type=ot.buffer.dtype,ot.offset=0,ot.stride=0,ot.divisor=0,ot.state=1,Nt[gt]=1}else ke.getBuffer($t)?(ot.buffer=ke.getBuffer($t),ot.size=ot.buffer.dimension|0,ot.normalized=!1,ot.type=ot.buffer.dtype,ot.offset=0,ot.stride=0,ot.divisor=0,ot.state=1):ke.getBuffer($t.buffer)?(ot.buffer=ke.getBuffer($t.buffer),ot.size=(+$t.size||ot.buffer.dimension)|0,ot.normalized=!!$t.normalized||!1,"type"in $t?ot.type=tu[$t.type]:ot.type=ot.buffer.dtype,ot.offset=($t.offset||0)|0,ot.stride=($t.stride||0)|0,ot.divisor=($t.divisor||0)|0,ot.state=1):"x"in $t&&(ot.x=+$t.x||0,ot.y=+$t.y||0,ot.z=+$t.z||0,ot.w=+$t.w||0,ot.state=2)}for(var cr=0;cr<Oe.buffers.length;++cr)!Nt[cr]&&Oe.buffers[cr]&&(Oe.buffers[cr].destroy(),Oe.buffers[cr]=null);return Oe.refresh(),pt}return pt.destroy=function(){for(var be=0;be<Oe.buffers.length;++be)Oe.buffers[be]&&Oe.buffers[be].destroy();Oe.buffers.length=0,Oe.ownsElements&&(Oe.elements.destroy(),Oe.elements=null,Oe.ownsElements=!1),Oe.destroy()},pt._vao=Oe,pt._reglType="vao",pt(Pe)}return wt}var js=35632,ag=35633,og=35718,Gs=35721;function up(F,H,Z,we){var ke={},ge={};function xe(he,Se,Ge,Ve){this.name=he,this.id=Se,this.location=Ge,this.info=Ve}function He(he,Se){for(var Ge=0;Ge<he.length;++Ge)if(he[Ge].id===Se.id){he[Ge].location=Se.location;return}he.push(Se)}function We(he,Se,Ge){var Ve=he===js?ke:ge,Re=Ve[Se];if(!Re){var ht=H.str(Se);Re=F.createShader(he),F.shaderSource(Re,ht),F.compileShader(Re),Ve[Se]=Re}return Re}var Xe={},ut=[],Mt=0;function wt(he,Se){this.id=Mt++,this.fragId=he,this.vertId=Se,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,we.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function nt(he,Se,Ge){var Ve,Re,ht=We(js,he.fragId),at=We(ag,he.vertId),Ft=he.program=F.createProgram();if(F.attachShader(Ft,ht),F.attachShader(Ft,at),Ge)for(Ve=0;Ve<Ge.length;++Ve){var Pe=Ge[Ve];F.bindAttribLocation(Ft,Pe[0],Pe[1])}F.linkProgram(Ft);var Oe=F.getProgramParameter(Ft,og);we.profile&&(he.stats.uniformsCount=Oe);var pt=he.uniforms;for(Ve=0;Ve<Oe;++Ve)if(Re=F.getActiveUniform(Ft,Ve),Re)if(Re.size>1)for(var be=0;be<Re.size;++be){var ft=Re.name.replace("[0]","["+be+"]");He(pt,new xe(ft,H.id(ft),F.getUniformLocation(Ft,ft),Re))}else He(pt,new xe(Re.name,H.id(Re.name),F.getUniformLocation(Ft,Re.name),Re));var qe=F.getProgramParameter(Ft,Gs);we.profile&&(he.stats.attributesCount=qe);var Nt=he.attributes;for(Ve=0;Ve<qe;++Ve)Re=F.getActiveAttrib(Ft,Ve),Re&&He(Nt,new xe(Re.name,H.id(Re.name),F.getAttribLocation(Ft,Re.name),Re))}we.profile&&(Z.getMaxUniformsCount=function(){var he=0;return ut.forEach(function(Se){Se.stats.uniformsCount>he&&(he=Se.stats.uniformsCount)}),he},Z.getMaxAttributesCount=function(){var he=0;return ut.forEach(function(Se){Se.stats.attributesCount>he&&(he=Se.stats.attributesCount)}),he});function ze(){ke={},ge={};for(var he=0;he<ut.length;++he)nt(ut[he],null,ut[he].attributes.map(function(Se){return[Se.location,Se.name]}))}return{clear:function(){var he=F.deleteShader.bind(F);Mn(ke).forEach(he),ke={},Mn(ge).forEach(he),ge={},ut.forEach(function(Se){F.deleteProgram(Se.program)}),ut.length=0,Xe={},Z.shaderCount=0},program:function(he,Se,Ge,Ve){var Re=Xe[Se];Re||(Re=Xe[Se]={});var ht=Re[he];if(ht&&(ht.refCount++,!Ve))return ht;var at=new wt(Se,he);return Z.shaderCount++,nt(at,Ge,Ve),ht||(Re[he]=at),ut.push(at),r(at,{destroy:function(){if(at.refCount--,at.refCount<=0){F.deleteProgram(at.program);var Ft=ut.indexOf(at);ut.splice(Ft,1),Z.shaderCount--}Re[at.vertId].refCount<=0&&(F.deleteShader(ge[at.vertId]),delete ge[at.vertId],delete Xe[at.fragId][at.vertId]),Object.keys(Xe[at.fragId]).length||(F.deleteShader(ke[at.fragId]),delete ke[at.fragId],delete Xe[at.fragId])}})},restore:ze,shader:We,frag:-1,vert:-1}}var lp=6408,Hs=5121,ug=3333,lg=5126;function fp(F,H,Z,we,ke,ge,xe){function He(ut){var Mt;H.next===null?Mt=Hs:Mt=H.next.colorAttachments[0].texture._texture.type;var wt=0,nt=0,ze=we.framebufferWidth,he=we.framebufferHeight,Se=null;Qr(ut)?Se=ut:ut&&(wt=ut.x|0,nt=ut.y|0,ze=(ut.width||we.framebufferWidth-wt)|0,he=(ut.height||we.framebufferHeight-nt)|0,Se=ut.data||null),Z();var Ge=ze*he*4;return Se||(Mt===Hs?Se=new Uint8Array(Ge):Mt===lg&&(Se=Se||new Float32Array(Ge))),F.pixelStorei(ug,4),F.readPixels(wt,nt,ze,he,lp,Mt,Se),Se}function We(ut){var Mt;return H.setFBO({framebuffer:ut.framebuffer},function(){Mt=He(ut)}),Mt}function Xe(ut){return!ut||!("framebuffer"in ut)?He(ut):We(ut)}return Xe}function sp(F){return Ws(cp(Vs(F)))}function cp(F){return sg(hg(fg(F),F.length*8))}function Ws(F){for(var H="0123456789abcdef",Z="",we,ke=0;ke<F.length;ke++)we=F.charCodeAt(ke),Z+=H.charAt(we>>>4&15)+H.charAt(we&15);return Z}function Vs(F){for(var H="",Z=-1,we,ke;++Z<F.length;)we=F.charCodeAt(Z),ke=Z+1<F.length?F.charCodeAt(Z+1):0,55296<=we&&we<=56319&&56320<=ke&&ke<=57343&&(we=65536+((we&1023)<<10)+(ke&1023),Z++),we<=127?H+=String.fromCharCode(we):we<=2047?H+=String.fromCharCode(192|we>>>6&31,128|we&63):we<=65535?H+=String.fromCharCode(224|we>>>12&15,128|we>>>6&63,128|we&63):we<=2097151&&(H+=String.fromCharCode(240|we>>>18&7,128|we>>>12&63,128|we>>>6&63,128|we&63));return H}function fg(F){for(var H=Array(F.length>>2),Z=0;Z<H.length;Z++)H[Z]=0;for(var Z=0;Z<F.length*8;Z+=8)H[Z>>5]|=(F.charCodeAt(Z/8)&255)<<24-Z%32;return H}function sg(F){for(var H="",Z=0;Z<F.length*32;Z+=8)H+=String.fromCharCode(F[Z>>5]>>>24-Z%32&255);return H}function fi(F,H){return F>>>H|F<<32-H}function hp(F,H){return F>>>H}function cg(F,H,Z){return F&H^~F&Z}function dp(F,H,Z){return F&H^F&Z^H&Z}function pp(F){return fi(F,2)^fi(F,13)^fi(F,22)}function qs(F){return fi(F,6)^fi(F,11)^fi(F,25)}function vp(F){return fi(F,7)^fi(F,18)^hp(F,3)}function Dl(F){return fi(F,17)^fi(F,19)^hp(F,10)}var Bl=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 hg(F,H){var Z=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),we=new Array(64),ke,ge,xe,He,We,Xe,ut,Mt,wt,nt,ze,he;for(F[H>>5]|=128<<24-H%32,F[(H+64>>9<<4)+15]=H,wt=0;wt<F.length;wt+=16){for(ke=Z[0],ge=Z[1],xe=Z[2],He=Z[3],We=Z[4],Xe=Z[5],ut=Z[6],Mt=Z[7],nt=0;nt<64;nt++)nt<16?we[nt]=F[nt+wt]:we[nt]=zr(zr(zr(Dl(we[nt-2]),we[nt-7]),vp(we[nt-15])),we[nt-16]),ze=zr(zr(zr(zr(Mt,qs(We)),cg(We,Xe,ut)),Bl[nt]),we[nt]),he=zr(pp(ke),dp(ke,ge,xe)),Mt=ut,ut=Xe,Xe=We,We=zr(He,ze),He=xe,xe=ge,ge=ke,ke=zr(ze,he);Z[0]=zr(ke,Z[0]),Z[1]=zr(ge,Z[1]),Z[2]=zr(xe,Z[2]),Z[3]=zr(He,Z[3]),Z[4]=zr(We,Z[4]),Z[5]=zr(Xe,Z[5]),Z[6]=zr(ut,Z[6]),Z[7]=zr(Mt,Z[7])}return Z}function zr(F,H){var Z=(F&65535)+(H&65535),we=(F>>16)+(H>>16)+(Z>>16);return we<<16|Z&65535}function ya(F){return Array.prototype.slice.call(F)}function no(F){return ya(F).join("")}function dg(F){var H=F&&F.cache,Z=0,we=[],ke=[],ge=[];function xe(ze,he){var Se=he&&he.stable;if(!Se){for(var Ge=0;Ge<ke.length;++Ge)if(ke[Ge]===ze&&!ge[Ge])return we[Ge]}var Ve="g"+Z++;return we.push(Ve),ke.push(ze),ge.push(Se),Ve}function He(){var ze=[];function he(){ze.push.apply(ze,ya(arguments))}var Se=[];function Ge(){var Ve="v"+Z++;return Se.push(Ve),arguments.length>0&&(ze.push(Ve,"="),ze.push.apply(ze,ya(arguments)),ze.push(";")),Ve}return r(he,{def:Ge,toString:function(){return no([Se.length>0?"var "+Se.join(",")+";":"",no(ze)])}})}function We(){var ze=He(),he=He(),Se=ze.toString,Ge=he.toString;function Ve(Re,ht){he(Re,ht,"=",ze.def(Re,ht),";")}return r(function(){ze.apply(ze,ya(arguments))},{def:ze.def,entry:ze,exit:he,save:Ve,set:function(Re,ht,at){Ve(Re,ht),ze(Re,ht,"=",at,";")},toString:function(){return Se()+Ge()}})}function Xe(){var ze=no(arguments),he=We(),Se=We(),Ge=he.toString,Ve=Se.toString;return r(he,{then:function(){return he.apply(he,ya(arguments)),this},else:function(){return Se.apply(Se,ya(arguments)),this},toString:function(){var Re=Ve();return Re&&(Re="else{"+Re+"}"),no(["if(",ze,"){",Ge(),"}",Re])}})}var ut=He(),Mt={};function wt(ze,he){var Se=[];function Ge(){var Ft="a"+Se.length;return Se.push(Ft),Ft}he=he||0;for(var Ve=0;Ve<he;++Ve)Ge();var Re=We(),ht=Re.toString,at=Mt[ze]=r(Re,{arg:Ge,toString:function(){return no(["function(",Se.join(),"){",ht(),"}"])}});return at}function nt(){var ze=['"use strict";',ut,"return {"];Object.keys(Mt).forEach(function(Ve){ze.push('"',Ve,'":',Mt[Ve].toString(),",")}),ze.push("}");var he=no(ze).replace(/;/g,`;
1051
- `).replace(/}/g,`}
1052
- `).replace(/{/g,`{
1053
- `),Se;if(H&&(Se=sp(he),H[Se]))return H[Se].apply(null,ke);var Ge=Function.apply(null,we.concat(he));return H&&(H[Se]=Ge),Ge.apply(null,ke)}return{global:ut,link:xe,block:He,proc:wt,scope:We,cond:Xe,compile:nt}}var xa="xyzw".split(""),Ys=5121,_a=1,du=2,pu=0,$l=1,Xs=2,zl=3,wa=4,Qs=5,mp=6,gp="dither",yp="blend.enable",xp="blend.color",Ul="blend.equation",jl="blend.func",Zs="depth.enable",Ks="depth.func",_p="depth.range",vu="depth.mask",Js="colorMask",wp="cull.enable",ec="cull.face",Gl="frontFace",tc="lineWidth",mu="polygonOffset.enable",io="polygonOffset.offset",rc="sample.alpha",nc="sample.enable",gu="sample.coverage",Dn="stencil.enable",ic="stencil.mask",ac="stencil.func",yu="stencil.opFront",ba="stencil.opBack",bp="scissor.enable",Hl="scissor.box",Ti="viewport",Sa="profile",Gi="framebuffer",xu="vert",Wl="frag",ao="elements",oo="primitive",Kr="count",Vl="offset",ql="instances",ei="vao",_u="Width",wu="Height",uo=Gi+_u,lo=Gi+wu,pg=Ti+_u,Sp=Ti+wu,oc="drawingBuffer",uc=oc+_u,lc=oc+wu,vg=[jl,Ul,ac,yu,ba,gu,Ti,Hl,io],Ea=34962,fc=34963,mg=2884,gg=3042,Ep=3024,Ap=2960,Yl=2929,Tp=3089,Xl=32823,Cp=32926,bu=32928,Ir=5126,Ql=35664,Ci=35665,fo=35666,Zl=5124,sc=35667,Su=35668,so=35669,cc=35670,hc=35671,dc=35672,pc=35673,vc=35674,Eu=35675,mc=35676,gc=35678,o=35680,f=4,h=1028,d=1029,p=2304,m=2305,E=32775,_=32776,O=519,I=7680,P=0,$=1,z=32774,re=513,oe=36160,j=36064,q={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},K={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:p,ccw:m};function ee(F){return Array.isArray(F)||Qr(F)||qn(F)}function Me(F){return F.sort(function(H,Z){return H===Ti?-1:Z===Ti?1:H<Z?-1:1})}function Be(F,H,Z,we){this.thisDep=F,this.contextDep=H,this.propDep=Z,this.append=we}function Je(F){return F&&!(F.thisDep||F.contextDep||F.propDep)}function $e(F){return new Be(!1,!1,!1,F)}function it(F,H){var Z=F.type;if(Z===pu){var we=F.data.length;return new Be(!0,we>=1,we>=2,H)}else if(Z===wa){var ke=F.data;return new Be(ke.thisDep,ke.contextDep,ke.propDep,H)}else{if(Z===Qs)return new Be(!1,!1,!1,H);if(Z===mp){for(var ge=!1,xe=!1,He=!1,We=0;We<F.data.length;++We){var Xe=F.data[We];if(Xe.type===$l)He=!0;else if(Xe.type===Xs)xe=!0;else if(Xe.type===zl)ge=!0;else if(Xe.type===pu){ge=!0;var ut=Xe.data;ut>=1&&(xe=!0),ut>=2&&(He=!0)}else Xe.type===wa&&(ge=ge||Xe.data.thisDep,xe=xe||Xe.data.contextDep,He=He||Xe.data.propDep)}return new Be(ge,xe,He,H)}else return new Be(Z===zl,Z===Xs,Z===$l,H)}}var dt=new Be(!1,!1,!1,function(){});function Gt(F,H,Z,we,ke,ge,xe,He,We,Xe,ut,Mt,wt,nt,ze,he){var Se=Xe.Record,Ge={add:32774,subtract:32778,"reverse subtract":32779};Z.ext_blend_minmax&&(Ge.min=E,Ge.max=_);var Ve=Z.angle_instanced_arrays,Re=Z.webgl_draw_buffers,ht=Z.oes_vertex_array_object,at={dirty:!0,profile:he.profile},Ft={},Pe=[],Oe={},pt={};function be(U){return U.replace(".","_")}function ft(U,W,J){var _e=be(U);Pe.push(U),Ft[_e]=at[_e]=!!J,Oe[_e]=W}function qe(U,W,J){var _e=be(U);Pe.push(U),Array.isArray(J)?(at[_e]=J.slice(),Ft[_e]=J.slice()):at[_e]=Ft[_e]=J,pt[_e]=W}function Nt(U){return!!isNaN(U)}ft(gp,Ep),ft(yp,gg),qe(xp,"blendColor",[0,0,0,0]),qe(Ul,"blendEquationSeparate",[z,z]),qe(jl,"blendFuncSeparate",[$,P,$,P]),ft(Zs,Yl,!0),qe(Ks,"depthFunc",re),qe(_p,"depthRange",[0,1]),qe(vu,"depthMask",!0),qe(Js,Js,[!0,!0,!0,!0]),ft(wp,mg),qe(ec,"cullFace",d),qe(Gl,Gl,m),qe(tc,tc,1),ft(mu,Xl),qe(io,"polygonOffset",[0,0]),ft(rc,Cp),ft(nc,bu),qe(gu,"sampleCoverage",[1,!1]),ft(Dn,Ap),qe(ic,"stencilMask",-1),qe(ac,"stencilFunc",[O,0,-1]),qe(yu,"stencilOpSeparate",[h,I,I,I]),qe(ba,"stencilOpSeparate",[d,I,I,I]),ft(bp,Tp),qe(Hl,"scissor",[0,0,F.drawingBufferWidth,F.drawingBufferHeight]),qe(Ti,Ti,[0,0,F.drawingBufferWidth,F.drawingBufferHeight]);var Jt={gl:F,context:wt,strings:H,next:Ft,current:at,draw:Mt,elements:ge,buffer:ke,shader:ut,attributes:Xe.state,vao:Xe,uniforms:We,framebuffer:He,extensions:Z,timer:nt,isBufferArgs:ee},gt={primTypes:Zr,compareFuncs:K,blendFuncs:q,blendEquations:Ge,stencilOps:ue,glTypes:tu,orientationType:le};Re&&(gt.backBuffer=[d],gt.drawBuffer=Ce(we.maxDrawbuffers,function(U){return U===0?[0]:Ce(U,function(W){return j+W})}));var $t=0;function ot(){var U=dg({cache:ze}),W=U.link,J=U.global;U.id=$t++,U.batchId="0";var _e=W(Jt),pe=U.shared={props:"a0"};Object.keys(Jt).forEach(function(te){pe[te]=J.def(_e,".",te)});var de=U.next={},ce=U.current={};Object.keys(pt).forEach(function(te){Array.isArray(at[te])&&(de[te]=J.def(pe.next,".",te),ce[te]=J.def(pe.current,".",te))});var fe=U.constants={};Object.keys(gt).forEach(function(te){fe[te]=J.def(JSON.stringify(gt[te]))}),U.invoke=function(te,X){switch(X.type){case pu:var ve=["this",pe.context,pe.props,U.batchId];return te.def(W(X.data),".call(",ve.slice(0,Math.max(X.data.length+1,4)),")");case $l:return te.def(pe.props,X.data);case Xs:return te.def(pe.context,X.data);case zl:return te.def("this",X.data);case wa:return X.data.append(U,te),X.data.ref;case Qs:return X.data.toString();case mp:return X.data.map(function(Te){return U.invoke(te,Te)})}},U.attribCache={};var Q={};return U.scopeAttrib=function(te){var X=H.id(te);if(X in Q)return Q[X];var ve=Xe.scope[X];ve||(ve=Xe.scope[X]=new Se);var Te=Q[X]=W(ve);return Te},U}function er(U){var W=U.static,J=U.dynamic,_e;if(Sa in W){var pe=!!W[Sa];_e=$e(function(ce,fe){return pe}),_e.enable=pe}else if(Sa in J){var de=J[Sa];_e=it(de,function(ce,fe){return ce.invoke(fe,de)})}return _e}function or(U,W){var J=U.static,_e=U.dynamic;if(Gi in J){var pe=J[Gi];return pe?(pe=He.getFramebuffer(pe),$e(function(ce,fe){var Q=ce.link(pe),te=ce.shared;fe.set(te.framebuffer,".next",Q);var X=te.context;return fe.set(X,"."+uo,Q+".width"),fe.set(X,"."+lo,Q+".height"),Q})):$e(function(ce,fe){var Q=ce.shared;fe.set(Q.framebuffer,".next","null");var te=Q.context;return fe.set(te,"."+uo,te+"."+uc),fe.set(te,"."+lo,te+"."+lc),"null"})}else if(Gi in _e){var de=_e[Gi];return it(de,function(ce,fe){var Q=ce.invoke(fe,de),te=ce.shared,X=te.framebuffer,ve=fe.def(X,".getFramebuffer(",Q,")");fe.set(X,".next",ve);var Te=te.context;return fe.set(Te,"."+uo,ve+"?"+ve+".width:"+Te+"."+uc),fe.set(Te,"."+lo,ve+"?"+ve+".height:"+Te+"."+lc),ve})}else return null}function cr(U,W,J){var _e=U.static,pe=U.dynamic;function de(Q){if(Q in _e){var te=_e[Q],X=!0,ve=te.x|0,Te=te.y|0,Le,Lt;return"width"in te?Le=te.width|0:X=!1,"height"in te?Lt=te.height|0:X=!1,new Be(!X&&W&&W.thisDep,!X&&W&&W.contextDep,!X&&W&&W.propDep,function(Rt,bt){var Dt=Rt.shared.context,_t=Le;"width"in te||(_t=bt.def(Dt,".",uo,"-",ve));var At=Lt;return"height"in te||(At=bt.def(Dt,".",lo,"-",Te)),[ve,Te,_t,At]})}else if(Q in pe){var kt=pe[Q],vt=it(kt,function(Rt,bt){var Dt=Rt.invoke(bt,kt),_t=Rt.shared.context,At=bt.def(Dt,".x|0"),Ct=bt.def(Dt,".y|0"),Wt=bt.def('"width" in ',Dt,"?",Dt,".width|0:","(",_t,".",uo,"-",At,")"),kr=bt.def('"height" in ',Dt,"?",Dt,".height|0:","(",_t,".",lo,"-",Ct,")");return[At,Ct,Wt,kr]});return W&&(vt.thisDep=vt.thisDep||W.thisDep,vt.contextDep=vt.contextDep||W.contextDep,vt.propDep=vt.propDep||W.propDep),vt}else return W?new Be(W.thisDep,W.contextDep,W.propDep,function(Rt,bt){var Dt=Rt.shared.context;return[0,0,bt.def(Dt,".",uo),bt.def(Dt,".",lo)]}):null}var ce=de(Ti);if(ce){var fe=ce;ce=new Be(ce.thisDep,ce.contextDep,ce.propDep,function(Q,te){var X=fe.append(Q,te),ve=Q.shared.context;return te.set(ve,"."+pg,X[2]),te.set(ve,"."+Sp,X[3]),X})}return{viewport:ce,scissor_box:de(Hl)}}function en(U,W){var J=U.static,_e=typeof J[Wl]=="string"&&typeof J[xu]=="string";if(_e){if(Object.keys(W.dynamic).length>0)return null;var pe=W.static,de=Object.keys(pe);if(de.length>0&&typeof pe[de[0]]=="number"){for(var ce=[],fe=0;fe<de.length;++fe)ce.push([pe[de[fe]]|0,de[fe]]);return ce}}return null}function ur(U,W,J){var _e=U.static,pe=U.dynamic;function de(X){if(X in _e){var ve=H.id(_e[X]),Te=$e(function(){return ve});return Te.id=ve,Te}else if(X in pe){var Le=pe[X];return it(Le,function(Lt,kt){var vt=Lt.invoke(kt,Le),Rt=kt.def(Lt.shared.strings,".id(",vt,")");return Rt})}return null}var ce=de(Wl),fe=de(xu),Q=null,te;return Je(ce)&&Je(fe)?(Q=ut.program(fe.id,ce.id,null,J),te=$e(function(X,ve){return X.link(Q)})):te=new Be(ce&&ce.thisDep||fe&&fe.thisDep,ce&&ce.contextDep||fe&&fe.contextDep,ce&&ce.propDep||fe&&fe.propDep,function(X,ve){var Te=X.shared.shader,Le;ce?Le=ce.append(X,ve):Le=ve.def(Te,".",Wl);var Lt;fe?Lt=fe.append(X,ve):Lt=ve.def(Te,".",xu);var kt=Te+".program("+Lt+","+Le;return ve.def(kt+")")}),{frag:ce,vert:fe,progVar:te,program:Q}}function Bn(U,W){var J=U.static,_e=U.dynamic,pe={},de=!1;function ce(){if(ei in J){var bt=J[ei];return bt!==null&&Xe.getVAO(bt)===null&&(bt=Xe.createVAO(bt)),de=!0,pe.vao=bt,$e(function(_t){var At=Xe.getVAO(bt);return At?_t.link(At):"null"})}else if(ei in _e){de=!0;var Dt=_e[ei];return it(Dt,function(_t,At){var Ct=_t.invoke(At,Dt);return At.def(_t.shared.vao+".getVAO("+Ct+")")})}return null}var fe=ce(),Q=!1;function te(){if(ao in J){var bt=J[ao];if(pe.elements=bt,ee(bt)){var Dt=pe.elements=ge.create(bt,!0);bt=ge.getElements(Dt),Q=!0}else bt&&(bt=ge.getElements(bt),Q=!0);var _t=$e(function(Ct,Wt){if(bt){var kr=Ct.link(bt);return Ct.ELEMENTS=kr,kr}return Ct.ELEMENTS=null,null});return _t.value=bt,_t}else if(ao in _e){Q=!0;var At=_e[ao];return it(At,function(Ct,Wt){var kr=Ct.shared,zn=kr.isBufferArgs,Aa=kr.elements,co=Ct.invoke(Wt,At),ho=Wt.def("null"),si=Wt.def(zn,"(",co,")"),yc=Ct.cond(si).then(ho,"=",Aa,".createStream(",co,");").else(ho,"=",Aa,".getElements(",co,");");return Wt.entry(yc),Wt.exit(Ct.cond(si).then(Aa,".destroyStream(",ho,");")),Ct.ELEMENTS=ho,ho})}else if(de)return new Be(fe.thisDep,fe.contextDep,fe.propDep,function(Ct,Wt){return Wt.def(Ct.shared.vao+".currentVAO?"+Ct.shared.elements+".getElements("+Ct.shared.vao+".currentVAO.elements):null")});return null}var X=te();function ve(){if(oo in J){var bt=J[oo];return pe.primitive=bt,$e(function(_t,At){return Zr[bt]})}else if(oo in _e){var Dt=_e[oo];return it(Dt,function(_t,At){var Ct=_t.constants.primTypes,Wt=_t.invoke(At,Dt);return At.def(Ct,"[",Wt,"]")})}else{if(Q)return Je(X)?X.value?$e(function(_t,At){return At.def(_t.ELEMENTS,".primType")}):$e(function(){return f}):new Be(X.thisDep,X.contextDep,X.propDep,function(_t,At){var Ct=_t.ELEMENTS;return At.def(Ct,"?",Ct,".primType:",f)});if(de)return new Be(fe.thisDep,fe.contextDep,fe.propDep,function(_t,At){return At.def(_t.shared.vao+".currentVAO?"+_t.shared.vao+".currentVAO.primitive:"+f)})}return null}function Te(bt,Dt){if(bt in J){var _t=J[bt]|0;return Dt?pe.offset=_t:pe.instances=_t,$e(function(Ct,Wt){return Dt&&(Ct.OFFSET=_t),_t})}else if(bt in _e){var At=_e[bt];return it(At,function(Ct,Wt){var kr=Ct.invoke(Wt,At);return Dt&&(Ct.OFFSET=kr),kr})}else if(Dt){if(Q)return $e(function(Ct,Wt){return Ct.OFFSET=0,0});if(de)return new Be(fe.thisDep,fe.contextDep,fe.propDep,function(Ct,Wt){return Wt.def(Ct.shared.vao+".currentVAO?"+Ct.shared.vao+".currentVAO.offset:0")})}else if(de)return new Be(fe.thisDep,fe.contextDep,fe.propDep,function(Ct,Wt){return Wt.def(Ct.shared.vao+".currentVAO?"+Ct.shared.vao+".currentVAO.instances:-1")});return null}var Le=Te(Vl,!0);function Lt(){if(Kr in J){var bt=J[Kr]|0;return pe.count=bt,$e(function(){return bt})}else if(Kr in _e){var Dt=_e[Kr];return it(Dt,function(Wt,kr){var zn=Wt.invoke(kr,Dt);return zn})}else if(Q)if(Je(X)){if(X)return Le?new Be(Le.thisDep,Le.contextDep,Le.propDep,function(Wt,kr){var zn=kr.def(Wt.ELEMENTS,".vertCount-",Wt.OFFSET);return zn}):$e(function(Wt,kr){return kr.def(Wt.ELEMENTS,".vertCount")});var _t=$e(function(){return-1});return _t}else{var At=new Be(X.thisDep||Le.thisDep,X.contextDep||Le.contextDep,X.propDep||Le.propDep,function(Wt,kr){var zn=Wt.ELEMENTS;return Wt.OFFSET?kr.def(zn,"?",zn,".vertCount-",Wt.OFFSET,":-1"):kr.def(zn,"?",zn,".vertCount:-1")});return At}else if(de){var Ct=new Be(fe.thisDep,fe.contextDep,fe.propDep,function(Wt,kr){return kr.def(Wt.shared.vao,".currentVAO?",Wt.shared.vao,".currentVAO.count:-1")});return Ct}return null}var kt=ve(),vt=Lt(),Rt=Te(ql,!1);return{elements:X,primitive:kt,count:vt,instances:Rt,offset:Le,vao:fe,vaoActive:de,elementsActive:Q,static:pe}}function br(U,W){var J=U.static,_e=U.dynamic,pe={};return Pe.forEach(function(de){var ce=be(de);function fe(Q,te){if(de in J){var X=Q(J[de]);pe[ce]=$e(function(){return X})}else if(de in _e){var ve=_e[de];pe[ce]=it(ve,function(Te,Le){return te(Te,Le,Te.invoke(Le,ve))})}}switch(de){case wp:case yp:case gp:case Dn:case Zs:case bp:case mu:case rc:case nc:case vu:return fe(function(Q){return Q},function(Q,te,X){return X});case Ks:return fe(function(Q){return K[Q]},function(Q,te,X){var ve=Q.constants.compareFuncs;return te.def(ve,"[",X,"]")});case _p:return fe(function(Q){return Q},function(Q,te,X){var ve=te.def("+",X,"[0]"),Te=te.def("+",X,"[1]");return[ve,Te]});case jl:return fe(function(Q){var te="srcRGB"in Q?Q.srcRGB:Q.src,X="srcAlpha"in Q?Q.srcAlpha:Q.src,ve="dstRGB"in Q?Q.dstRGB:Q.dst,Te="dstAlpha"in Q?Q.dstAlpha:Q.dst;return[q[te],q[ve],q[X],q[Te]]},function(Q,te,X){var ve=Q.constants.blendFuncs;function Te(Dt,_t){var At=te.def('"',Dt,_t,'" in ',X,"?",X,".",Dt,_t,":",X,".",Dt);return At}var Le=Te("src","RGB"),Lt=Te("dst","RGB"),kt=te.def(ve,"[",Le,"]"),vt=te.def(ve,"[",Te("src","Alpha"),"]"),Rt=te.def(ve,"[",Lt,"]"),bt=te.def(ve,"[",Te("dst","Alpha"),"]");return[kt,Rt,vt,bt]});case Ul:return fe(function(Q){if(typeof Q=="string")return[Ge[Q],Ge[Q]];if(typeof Q=="object")return[Ge[Q.rgb],Ge[Q.alpha]]},function(Q,te,X){var ve=Q.constants.blendEquations,Te=te.def(),Le=te.def(),Lt=Q.cond("typeof ",X,'==="string"');return Lt.then(Te,"=",Le,"=",ve,"[",X,"];"),Lt.else(Te,"=",ve,"[",X,".rgb];",Le,"=",ve,"[",X,".alpha];"),te(Lt),[Te,Le]});case xp:return fe(function(Q){return Ce(4,function(te){return+Q[te]})},function(Q,te,X){return Ce(4,function(ve){return te.def("+",X,"[",ve,"]")})});case ic:return fe(function(Q){return Q|0},function(Q,te,X){return te.def(X,"|0")});case ac:return fe(function(Q){var te=Q.cmp||"keep",X=Q.ref||0,ve="mask"in Q?Q.mask:-1;return[K[te],X,ve]},function(Q,te,X){var ve=Q.constants.compareFuncs,Te=te.def('"cmp" in ',X,"?",ve,"[",X,".cmp]",":",I),Le=te.def(X,".ref|0"),Lt=te.def('"mask" in ',X,"?",X,".mask|0:-1");return[Te,Le,Lt]});case yu:case ba:return fe(function(Q){var te=Q.fail||"keep",X=Q.zfail||"keep",ve=Q.zpass||"keep";return[de===ba?d:h,ue[te],ue[X],ue[ve]]},function(Q,te,X){var ve=Q.constants.stencilOps;function Te(Le){return te.def('"',Le,'" in ',X,"?",ve,"[",X,".",Le,"]:",I)}return[de===ba?d:h,Te("fail"),Te("zfail"),Te("zpass")]});case io:return fe(function(Q){var te=Q.factor|0,X=Q.units|0;return[te,X]},function(Q,te,X){var ve=te.def(X,".factor|0"),Te=te.def(X,".units|0");return[ve,Te]});case ec:return fe(function(Q){var te=0;return Q==="front"?te=h:Q==="back"&&(te=d),te},function(Q,te,X){return te.def(X,'==="front"?',h,":",d)});case tc:return fe(function(Q){return Q},function(Q,te,X){return X});case Gl:return fe(function(Q){return le[Q]},function(Q,te,X){return te.def(X+'==="cw"?'+p+":"+m)});case Js:return fe(function(Q){return Q.map(function(te){return!!te})},function(Q,te,X){return Ce(4,function(ve){return"!!"+X+"["+ve+"]"})});case gu:return fe(function(Q){var te="value"in Q?Q.value:1,X=!!Q.invert;return[te,X]},function(Q,te,X){var ve=te.def('"value" in ',X,"?+",X,".value:1"),Te=te.def("!!",X,".invert");return[ve,Te]})}}),pe}function gn(U,W){var J=U.static,_e=U.dynamic,pe={};return Object.keys(J).forEach(function(de){var ce=J[de],fe;if(typeof ce=="number"||typeof ce=="boolean")fe=$e(function(){return ce});else if(typeof ce=="function"){var Q=ce._reglType;Q==="texture2d"||Q==="textureCube"?fe=$e(function(te){return te.link(ce)}):(Q==="framebuffer"||Q==="framebufferCube")&&(fe=$e(function(te){return te.link(ce.color[0])}))}else Xn(ce)&&(fe=$e(function(te){var X=te.global.def("[",Ce(ce.length,function(ve){return ce[ve]}),"]");return X}));fe.value=ce,pe[de]=fe}),Object.keys(_e).forEach(function(de){var ce=_e[de];pe[de]=it(ce,function(fe,Q){return fe.invoke(Q,ce)})}),pe}function $n(U,W){var J=U.static,_e=U.dynamic,pe={};return Object.keys(J).forEach(function(de){var ce=J[de],fe=H.id(de),Q=new Se;if(ee(ce))Q.state=_a,Q.buffer=ke.getBuffer(ke.create(ce,Ea,!1,!0)),Q.type=0;else{var te=ke.getBuffer(ce);if(te)Q.state=_a,Q.buffer=te,Q.type=0;else if("constant"in ce){var X=ce.constant;Q.buffer="null",Q.state=du,typeof X=="number"?Q.x=X:xa.forEach(function(Rt,bt){bt<X.length&&(Q[Rt]=X[bt])})}else{ee(ce.buffer)?te=ke.getBuffer(ke.create(ce.buffer,Ea,!1,!0)):te=ke.getBuffer(ce.buffer);var ve=ce.offset|0,Te=ce.stride|0,Le=ce.size|0,Lt=!!ce.normalized,kt=0;"type"in ce&&(kt=tu[ce.type]);var vt=ce.divisor|0;Q.buffer=te,Q.state=_a,Q.size=Le,Q.normalized=Lt,Q.type=kt||te.dtype,Q.offset=ve,Q.stride=Te,Q.divisor=vt}}pe[de]=$e(function(Rt,bt){var Dt=Rt.attribCache;if(fe in Dt)return Dt[fe];var _t={isStream:!1};return Object.keys(Q).forEach(function(At){_t[At]=Q[At]}),Q.buffer&&(_t.buffer=Rt.link(Q.buffer),_t.type=_t.type||_t.buffer+".dtype"),Dt[fe]=_t,_t})}),Object.keys(_e).forEach(function(de){var ce=_e[de];function fe(Q,te){var X=Q.invoke(te,ce),ve=Q.shared,Te=Q.constants,Le=ve.isBufferArgs,Lt=ve.buffer,kt={isStream:te.def(!1)},vt=new Se;vt.state=_a,Object.keys(vt).forEach(function(_t){kt[_t]=te.def(""+vt[_t])});var Rt=kt.buffer,bt=kt.type;te("if(",Le,"(",X,")){",kt.isStream,"=true;",Rt,"=",Lt,".createStream(",Ea,",",X,");",bt,"=",Rt,".dtype;","}else{",Rt,"=",Lt,".getBuffer(",X,");","if(",Rt,"){",bt,"=",Rt,".dtype;",'}else if("constant" in ',X,"){",kt.state,"=",du,";","if(typeof "+X+'.constant === "number"){',kt[xa[0]],"=",X,".constant;",xa.slice(1).map(function(_t){return kt[_t]}).join("="),"=0;","}else{",xa.map(function(_t,At){return kt[_t]+"="+X+".constant.length>"+At+"?"+X+".constant["+At+"]:0;"}).join(""),"}}else{","if(",Le,"(",X,".buffer)){",Rt,"=",Lt,".createStream(",Ea,",",X,".buffer);","}else{",Rt,"=",Lt,".getBuffer(",X,".buffer);","}",bt,'="type" in ',X,"?",Te.glTypes,"[",X,".type]:",Rt,".dtype;",kt.normalized,"=!!",X,".normalized;");function Dt(_t){te(kt[_t],"=",X,".",_t,"|0;")}return Dt("size"),Dt("offset"),Dt("stride"),Dt("divisor"),te("}}"),te.exit("if(",kt.isStream,"){",Lt,".destroyStream(",Rt,");","}"),kt}pe[de]=it(ce,fe)}),pe}function En(U){var W=U.static,J=U.dynamic,_e={};return Object.keys(W).forEach(function(pe){var de=W[pe];_e[pe]=$e(function(ce,fe){return typeof de=="number"||typeof de=="boolean"?""+de:ce.link(de)})}),Object.keys(J).forEach(function(pe){var de=J[pe];_e[pe]=it(de,function(ce,fe){return ce.invoke(fe,de)})}),_e}function ki(U,W,J,_e,pe){U.static,U.dynamic;var de=en(U,W),ce=or(U),fe=cr(U,ce),Q=Bn(U),te=br(U),X=ur(U,pe,de);function ve(Rt){var bt=fe[Rt];bt&&(te[Rt]=bt)}ve(Ti),ve(be(Hl));var Te=Object.keys(te).length>0,Le={framebuffer:ce,draw:Q,shader:X,state:te,dirty:Te,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Le.profile=er(U),Le.uniforms=gn(J),Le.drawVAO=Le.scopeVAO=Q.vao,!Le.drawVAO&&X.program&&!de&&Z.angle_instanced_arrays&&Q.static.elements){var Lt=!0,kt=X.program.attributes.map(function(Rt){var bt=W.static[Rt];return Lt=Lt&&!!bt,bt});if(Lt&&kt.length>0){var vt=Xe.getVAO(Xe.createVAO({attributes:kt,elements:Q.static.elements}));Le.drawVAO=new Be(null,null,null,function(Rt,bt){return Rt.link(vt)}),Le.useVAO=!0}}return de?Le.useVAO=!0:Le.attributes=$n(W),Le.context=En(_e),Le}function tn(U,W,J){var _e=U.shared,pe=_e.context,de=U.scope();Object.keys(J).forEach(function(ce){W.save(pe,"."+ce);var fe=J[ce],Q=fe.append(U,W);Array.isArray(Q)?de(pe,".",ce,"=[",Q.join(),"];"):de(pe,".",ce,"=",Q,";")}),W(de)}function rn(U,W,J,_e){var pe=U.shared,de=pe.gl,ce=pe.framebuffer,fe;Re&&(fe=W.def(pe.extensions,".webgl_draw_buffers"));var Q=U.constants,te=Q.drawBuffer,X=Q.backBuffer,ve;J?ve=J.append(U,W):ve=W.def(ce,".next"),_e||W("if(",ve,"!==",ce,".cur){"),W("if(",ve,"){",de,".bindFramebuffer(",oe,",",ve,".framebuffer);"),Re&&W(fe,".drawBuffersWEBGL(",te,"[",ve,".colorAttachments.length]);"),W("}else{",de,".bindFramebuffer(",oe,",null);"),Re&&W(fe,".drawBuffersWEBGL(",X,");"),W("}",ce,".cur=",ve,";"),_e||W("}")}function qt(U,W,J){var _e=U.shared,pe=_e.gl,de=U.current,ce=U.next,fe=_e.current,Q=_e.next,te=U.cond(fe,".dirty");Pe.forEach(function(X){var ve=be(X);if(!(ve in J.state)){var Te,Le;if(ve in ce){Te=ce[ve],Le=de[ve];var Lt=Ce(at[ve].length,function(vt){return te.def(Te,"[",vt,"]")});te(U.cond(Lt.map(function(vt,Rt){return vt+"!=="+Le+"["+Rt+"]"}).join("||")).then(pe,".",pt[ve],"(",Lt,");",Lt.map(function(vt,Rt){return Le+"["+Rt+"]="+vt}).join(";"),";"))}else{Te=te.def(Q,".",ve);var kt=U.cond(Te,"!==",fe,".",ve);te(kt),ve in Oe?kt(U.cond(Te).then(pe,".enable(",Oe[ve],");").else(pe,".disable(",Oe[ve],");"),fe,".",ve,"=",Te,";"):kt(pe,".",pt[ve],"(",Te,");",fe,".",ve,"=",Te,";")}}}),Object.keys(J.state).length===0&&te(fe,".dirty=false;"),W(te)}function ti(U,W,J,_e){var pe=U.shared,de=U.current,ce=pe.current,fe=pe.gl,Q;Me(Object.keys(J)).forEach(function(te){var X=J[te];if(!(_e&&!_e(X))){var ve=X.append(U,W);if(Oe[te]){var Te=Oe[te];Je(X)?(Q=U.link(ve,{stable:!0}),W(U.cond(Q).then(fe,".enable(",Te,");").else(fe,".disable(",Te,");")),W(ce,".",te,"=",Q,";")):(W(U.cond(ve).then(fe,".enable(",Te,");").else(fe,".disable(",Te,");")),W(ce,".",te,"=",ve,";"))}else if(Xn(ve)){var Le=de[te];W(fe,".",pt[te],"(",ve,");",ve.map(function(Lt,kt){return Le+"["+kt+"]="+Lt}).join(";"),";")}else Je(X)?(Q=U.link(ve,{stable:!0}),W(fe,".",pt[te],"(",Q,");",ce,".",te,"=",Q,";")):W(fe,".",pt[te],"(",ve,");",ce,".",te,"=",ve,";")}})}function xr(U,W){Ve&&(U.instancing=W.def(U.shared.extensions,".angle_instanced_arrays"))}function nn(U,W,J,_e,pe){var de=U.shared,ce=U.stats,fe=de.current,Q=de.timer,te=J.profile;function X(){return typeof performance>"u"?"Date.now()":"performance.now()"}var ve,Te;function Le(Dt){ve=W.def(),Dt(ve,"=",X(),";"),typeof pe=="string"?Dt(ce,".count+=",pe,";"):Dt(ce,".count++;"),nt&&(_e?(Te=W.def(),Dt(Te,"=",Q,".getNumPendingQueries();")):Dt(Q,".beginQuery(",ce,");"))}function Lt(Dt){Dt(ce,".cpuTime+=",X(),"-",ve,";"),nt&&(_e?Dt(Q,".pushScopeStats(",Te,",",Q,".getNumPendingQueries(),",ce,");"):Dt(Q,".endQuery();"))}function kt(Dt){var _t=W.def(fe,".profile");W(fe,".profile=",Dt,";"),W.exit(fe,".profile=",_t,";")}var vt;if(te){if(Je(te)){te.enable?(Le(W),Lt(W.exit),kt("true")):kt("false");return}vt=te.append(U,W),kt(vt)}else vt=W.def(fe,".profile");var Rt=U.block();Le(Rt),W("if(",vt,"){",Rt,"}");var bt=U.block();Lt(bt),W.exit("if(",vt,"){",bt,"}")}function Fn(U,W,J,_e,pe){var de=U.shared;function ce(Q){switch(Q){case Ql:case sc:case hc:return 2;case Ci:case Su:case dc:return 3;case fo:case so:case pc:return 4;default:return 1}}function fe(Q,te,X){var ve=de.gl,Te=W.def(Q,".location"),Le=W.def(de.attributes,"[",Te,"]"),Lt=X.state,kt=X.buffer,vt=[X.x,X.y,X.z,X.w],Rt=["buffer","normalized","offset","stride"];function bt(){W("if(!",Le,".buffer){",ve,".enableVertexAttribArray(",Te,");}");var _t=X.type,At;if(X.size?At=W.def(X.size,"||",te):At=te,W("if(",Le,".type!==",_t,"||",Le,".size!==",At,"||",Rt.map(function(Wt){return Le+"."+Wt+"!=="+X[Wt]}).join("||"),"){",ve,".bindBuffer(",Ea,",",kt,".buffer);",ve,".vertexAttribPointer(",[Te,At,_t,X.normalized,X.stride,X.offset],");",Le,".type=",_t,";",Le,".size=",At,";",Rt.map(function(Wt){return Le+"."+Wt+"="+X[Wt]+";"}).join(""),"}"),Ve){var Ct=X.divisor;W("if(",Le,".divisor!==",Ct,"){",U.instancing,".vertexAttribDivisorANGLE(",[Te,Ct],");",Le,".divisor=",Ct,";}")}}function Dt(){W("if(",Le,".buffer){",ve,".disableVertexAttribArray(",Te,");",Le,".buffer=null;","}if(",xa.map(function(_t,At){return Le+"."+_t+"!=="+vt[At]}).join("||"),"){",ve,".vertexAttrib4f(",Te,",",vt,");",xa.map(function(_t,At){return Le+"."+_t+"="+vt[At]+";"}).join(""),"}")}Lt===_a?bt():Lt===du?Dt():(W("if(",Lt,"===",_a,"){"),bt(),W("}else{"),Dt(),W("}"))}_e.forEach(function(Q){var te=Q.name,X=J.attributes[te],ve;if(X){if(!pe(X))return;ve=X.append(U,W)}else{if(!pe(dt))return;var Te=U.scopeAttrib(te);ve={},Object.keys(new Se).forEach(function(Le){ve[Le]=W.def(Te,".",Le)})}fe(U.link(Q),ce(Q.info.type),ve)})}function Nn(U,W,J,_e,pe,de){for(var ce=U.shared,fe=ce.gl,Q,te=0;te<_e.length;++te){var X=_e[te],ve=X.name,Te=X.info.type,Le=J.uniforms[ve],Lt=U.link(X),kt=Lt+".location",vt;if(Le){if(!pe(Le))continue;if(Je(Le)){var Rt=Le.value;if(Te===gc||Te===o){var bt=U.link(Rt._texture||Rt.color[0]._texture);W(fe,".uniform1i(",kt,",",bt+".bind());"),W.exit(bt,".unbind();")}else if(Te===vc||Te===Eu||Te===mc){var Dt=U.global.def("new Float32Array(["+Array.prototype.slice.call(Rt)+"])"),_t=2;Te===Eu?_t=3:Te===mc&&(_t=4),W(fe,".uniformMatrix",_t,"fv(",kt,",false,",Dt,");")}else{switch(Te){case Ir:Q="1f";break;case Ql:Q="2f";break;case Ci:Q="3f";break;case fo:Q="4f";break;case cc:Q="1i";break;case Zl:Q="1i";break;case hc:Q="2i";break;case sc:Q="2i";break;case dc:Q="3i";break;case Su:Q="3i";break;case pc:Q="4i";break;case so:Q="4i";break}W(fe,".uniform",Q,"(",kt,",",Xn(Rt)?Array.prototype.slice.call(Rt):Rt,");")}continue}else vt=Le.append(U,W)}else{if(!pe(dt))continue;vt=W.def(ce.uniforms,"[",H.id(ve),"]")}Te===gc?W("if(",vt,"&&",vt,'._reglType==="framebuffer"){',vt,"=",vt,".color[0];","}"):Te===o&&W("if(",vt,"&&",vt,'._reglType==="framebufferCube"){',vt,"=",vt,".color[0];","}");var At=1;switch(Te){case gc:case o:var Ct=W.def(vt,"._texture");W(fe,".uniform1i(",kt,",",Ct,".bind());"),W.exit(Ct,".unbind();");continue;case Zl:case cc:Q="1i";break;case sc:case hc:Q="2i",At=2;break;case Su:case dc:Q="3i",At=3;break;case so:case pc:Q="4i",At=4;break;case Ir:Q="1f";break;case Ql:Q="2f",At=2;break;case Ci:Q="3f",At=3;break;case fo:Q="4f",At=4;break;case vc:Q="Matrix2fv";break;case Eu:Q="Matrix3fv";break;case mc:Q="Matrix4fv";break}if(Q.charAt(0)==="M"){W(fe,".uniform",Q,"(",kt,",");var Wt=Math.pow(Te-vc+2,2),kr=U.global.def("new Float32Array(",Wt,")");Array.isArray(vt)?W("false,(",Ce(Wt,function(si){return kr+"["+si+"]="+vt[si]}),",",kr,")"):W("false,(Array.isArray(",vt,")||",vt," instanceof Float32Array)?",vt,":(",Ce(Wt,function(si){return kr+"["+si+"]="+vt+"["+si+"]"}),",",kr,")"),W(");")}else if(At>1){for(var zn=[],Aa=[],co=0;co<At;++co)Array.isArray(vt)?Aa.push(vt[co]):Aa.push(W.def(vt+"["+co+"]")),de&&zn.push(W.def());de&&W("if(!",U.batchId,"||",zn.map(function(si,yc){return si+"!=="+Aa[yc]}).join("||"),"){",zn.map(function(si,yc){return si+"="+Aa[yc]+";"}).join("")),W(fe,".uniform",Q,"(",kt,",",Aa.join(","),");"),de&&W("}")}else{if(de){var ho=W.def();W("if(!",U.batchId,"||",ho,"!==",vt,"){",ho,"=",vt,";")}W(fe,".uniform",Q,"(",kt,",",vt,");"),de&&W("}")}}}function Zt(U,W,J,_e){var pe=U.shared,de=pe.gl,ce=pe.draw,fe=_e.draw;function Q(){var At=fe.elements,Ct,Wt=W;return At?((At.contextDep&&_e.contextDynamic||At.propDep)&&(Wt=J),Ct=At.append(U,Wt),fe.elementsActive&&Wt("if("+Ct+")"+de+".bindBuffer("+fc+","+Ct+".buffer.buffer);")):(Ct=Wt.def(),Wt(Ct,"=",ce,".",ao,";","if(",Ct,"){",de,".bindBuffer(",fc,",",Ct,".buffer.buffer);}","else if(",pe.vao,".currentVAO){",Ct,"=",U.shared.elements+".getElements("+pe.vao,".currentVAO.elements);",ht?"":"if("+Ct+")"+de+".bindBuffer("+fc+","+Ct+".buffer.buffer);","}")),Ct}function te(){var At=fe.count,Ct,Wt=W;return At?((At.contextDep&&_e.contextDynamic||At.propDep)&&(Wt=J),Ct=At.append(U,Wt)):Ct=Wt.def(ce,".",Kr),Ct}var X=Q();function ve(At){var Ct=fe[At];return Ct?Ct.contextDep&&_e.contextDynamic||Ct.propDep?Ct.append(U,J):Ct.append(U,W):W.def(ce,".",At)}var Te=ve(oo),Le=ve(Vl),Lt=te();if(typeof Lt=="number"){if(Lt===0)return}else J("if(",Lt,"){"),J.exit("}");var kt,vt;Ve&&(kt=ve(ql),vt=U.instancing);var Rt=X+".type",bt=fe.elements&&Je(fe.elements)&&!fe.vaoActive;function Dt(){function At(){J(vt,".drawElementsInstancedANGLE(",[Te,Lt,Rt,Le+"<<(("+Rt+"-"+Ys+")>>1)",kt],");")}function Ct(){J(vt,".drawArraysInstancedANGLE(",[Te,Le,Lt,kt],");")}X&&X!=="null"?bt?At():(J("if(",X,"){"),At(),J("}else{"),Ct(),J("}")):Ct()}function _t(){function At(){J(de+".drawElements("+[Te,Lt,Rt,Le+"<<(("+Rt+"-"+Ys+")>>1)"]+");")}function Ct(){J(de+".drawArrays("+[Te,Le,Lt]+");")}X&&X!=="null"?bt?At():(J("if(",X,"){"),At(),J("}else{"),Ct(),J("}")):Ct()}Ve&&(typeof kt!="number"||kt>=0)?typeof kt=="string"?(J("if(",kt,">0){"),Dt(),J("}else if(",kt,"<0){"),_t(),J("}")):Dt():_t()}function sr(U,W,J,_e,pe){var de=ot(),ce=de.proc("body",pe);return Ve&&(de.instancing=ce.def(de.shared.extensions,".angle_instanced_arrays")),U(de,ce,J,_e),de.compile().body}function Er(U,W,J,_e){xr(U,W),J.useVAO?J.drawVAO?W(U.shared.vao,".setVAO(",J.drawVAO.append(U,W),");"):W(U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"):(W(U.shared.vao,".setVAO(null);"),Fn(U,W,J,_e.attributes,function(){return!0})),Nn(U,W,J,_e.uniforms,function(){return!0},!1),Zt(U,W,W,J)}function an(U,W){var J=U.proc("draw",1);xr(U,J),tn(U,J,W.context),rn(U,J,W.framebuffer),qt(U,J,W),ti(U,J,W.state),nn(U,J,W,!1,!0);var _e=W.shader.progVar.append(U,J);if(J(U.shared.gl,".useProgram(",_e,".program);"),W.shader.program)Er(U,J,W,W.shader.program);else{J(U.shared.vao,".setVAO(null);");var pe=U.global.def("{}"),de=J.def(_e,".id"),ce=J.def(pe,"[",de,"]");J(U.cond(ce).then(ce,".call(this,a0);").else(ce,"=",pe,"[",de,"]=",U.link(function(fe){return sr(Er,U,W,fe,1)}),"(",_e,");",ce,".call(this,a0);"))}Object.keys(W.state).length>0&&J(U.shared.current,".dirty=true;"),U.shared.vao&&J(U.shared.vao,".setVAO(null);")}function V(U,W,J,_e){U.batchId="a1",xr(U,W);function pe(){return!0}Fn(U,W,J,_e.attributes,pe),Nn(U,W,J,_e.uniforms,pe,!1),Zt(U,W,W,J)}function ye(U,W,J,_e){xr(U,W);var pe=J.contextDep,de=W.def(),ce="a0",fe="a1",Q=W.def();U.shared.props=Q,U.batchId=de;var te=U.scope(),X=U.scope();W(te.entry,"for(",de,"=0;",de,"<",fe,";++",de,"){",Q,"=",ce,"[",de,"];",X,"}",te.exit);function ve(Rt){return Rt.contextDep&&pe||Rt.propDep}function Te(Rt){return!ve(Rt)}if(J.needsContext&&tn(U,X,J.context),J.needsFramebuffer&&rn(U,X,J.framebuffer),ti(U,X,J.state,ve),J.profile&&ve(J.profile)&&nn(U,X,J,!1,!0),_e)J.useVAO?J.drawVAO?ve(J.drawVAO)?X(U.shared.vao,".setVAO(",J.drawVAO.append(U,X),");"):te(U.shared.vao,".setVAO(",J.drawVAO.append(U,te),");"):te(U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"):(te(U.shared.vao,".setVAO(null);"),Fn(U,te,J,_e.attributes,Te),Fn(U,X,J,_e.attributes,ve)),Nn(U,te,J,_e.uniforms,Te,!1),Nn(U,X,J,_e.uniforms,ve,!0),Zt(U,te,X,J);else{var Le=U.global.def("{}"),Lt=J.shader.progVar.append(U,X),kt=X.def(Lt,".id"),vt=X.def(Le,"[",kt,"]");X(U.shared.gl,".useProgram(",Lt,".program);","if(!",vt,"){",vt,"=",Le,"[",kt,"]=",U.link(function(Rt){return sr(V,U,J,Rt,2)}),"(",Lt,");}",vt,".call(this,a0[",de,"],",de,");")}}function me(U,W){var J=U.proc("batch",2);U.batchId="0",xr(U,J);var _e=!1,pe=!0;Object.keys(W.context).forEach(function(Le){_e=_e||W.context[Le].propDep}),_e||(tn(U,J,W.context),pe=!1);var de=W.framebuffer,ce=!1;de?(de.propDep?_e=ce=!0:de.contextDep&&_e&&(ce=!0),ce||rn(U,J,de)):rn(U,J,null),W.state.viewport&&W.state.viewport.propDep&&(_e=!0);function fe(Le){return Le.contextDep&&_e||Le.propDep}qt(U,J,W),ti(U,J,W.state,function(Le){return!fe(Le)}),(!W.profile||!fe(W.profile))&&nn(U,J,W,!1,"a1"),W.contextDep=_e,W.needsContext=pe,W.needsFramebuffer=ce;var Q=W.shader.progVar;if(Q.contextDep&&_e||Q.propDep)ye(U,J,W,null);else{var te=Q.append(U,J);if(J(U.shared.gl,".useProgram(",te,".program);"),W.shader.program)ye(U,J,W,W.shader.program);else{J(U.shared.vao,".setVAO(null);");var X=U.global.def("{}"),ve=J.def(te,".id"),Te=J.def(X,"[",ve,"]");J(U.cond(Te).then(Te,".call(this,a0,a1);").else(Te,"=",X,"[",ve,"]=",U.link(function(Le){return sr(ye,U,W,Le,2)}),"(",te,");",Te,".call(this,a0,a1);"))}}Object.keys(W.state).length>0&&J(U.shared.current,".dirty=true;"),U.shared.vao&&J(U.shared.vao,".setVAO(null);")}function St(U,W){var J=U.proc("scope",3);U.batchId="a2";var _e=U.shared,pe=_e.current;if(tn(U,J,W.context),W.framebuffer&&W.framebuffer.append(U,J),Me(Object.keys(W.state)).forEach(function(fe){var Q=W.state[fe],te=Q.append(U,J);Xn(te)?te.forEach(function(X,ve){Nt(X)?J.set(U.next[fe],"["+ve+"]",X):J.set(U.next[fe],"["+ve+"]",U.link(X,{stable:!0}))}):Je(Q)?J.set(_e.next,"."+fe,U.link(te,{stable:!0})):J.set(_e.next,"."+fe,te)}),nn(U,J,W,!0,!0),[ao,Vl,Kr,ql,oo].forEach(function(fe){var Q=W.draw[fe];if(Q){var te=Q.append(U,J);Nt(te)?J.set(_e.draw,"."+fe,te):J.set(_e.draw,"."+fe,U.link(te),{stable:!0})}}),Object.keys(W.uniforms).forEach(function(fe){var Q=W.uniforms[fe].append(U,J);Array.isArray(Q)&&(Q="["+Q.map(function(te){return Nt(te)?te:U.link(te,{stable:!0})})+"]"),J.set(_e.uniforms,"["+U.link(H.id(fe),{stable:!0})+"]",Q)}),Object.keys(W.attributes).forEach(function(fe){var Q=W.attributes[fe].append(U,J),te=U.scopeAttrib(fe);Object.keys(new Se).forEach(function(X){J.set(te,"."+X,Q[X])})}),W.scopeVAO){var de=W.scopeVAO.append(U,J);Nt(de)?J.set(_e.vao,".targetVAO",de):J.set(_e.vao,".targetVAO",U.link(de,{stable:!0}))}function ce(fe){var Q=W.shader[fe];if(Q){var te=Q.append(U,J);Nt(te)?J.set(_e.shader,"."+fe,te):J.set(_e.shader,"."+fe,U.link(te,{stable:!0}))}}ce(xu),ce(Wl),Object.keys(W.state).length>0&&(J(pe,".dirty=true;"),J.exit(pe,".dirty=true;")),J("a1(",U.shared.context,",a0,",U.batchId,");")}function tr(U){if(!(typeof U!="object"||Xn(U))){for(var W=Object.keys(U),J=0;J<W.length;++J)if(k.isDynamic(U[W[J]]))return!0;return!1}}function Cr(U,W,J){var _e=W.static[J];if(!_e||!tr(_e))return;var pe=U.global,de=Object.keys(_e),ce=!1,fe=!1,Q=!1,te=U.global.def("{}");de.forEach(function(ve){var Te=_e[ve];if(k.isDynamic(Te)){typeof Te=="function"&&(Te=_e[ve]=k.unbox(Te));var Le=it(Te,null);ce=ce||Le.thisDep,Q=Q||Le.propDep,fe=fe||Le.contextDep}else{switch(pe(te,".",ve,"="),typeof Te){case"number":pe(Te);break;case"string":pe('"',Te,'"');break;case"object":Array.isArray(Te)&&pe("[",Te.join(),"]");break;default:pe(U.link(Te));break}pe(";")}});function X(ve,Te){de.forEach(function(Le){var Lt=_e[Le];if(k.isDynamic(Lt)){var kt=ve.invoke(Te,Lt);Te(te,".",Le,"=",kt,";")}})}W.dynamic[J]=new k.DynamicVariable(wa,{thisDep:ce,contextDep:fe,propDep:Q,ref:te,append:X}),delete W.static[J]}function Et(U,W,J,_e,pe){var de=ot();de.stats=de.link(pe),Object.keys(W.static).forEach(function(fe){Cr(de,W,fe)}),vg.forEach(function(fe){Cr(de,U,fe)});var ce=ki(U,W,J,_e,de);return ce.shader.program&&(ce.shader.program.attributes.sort(function(fe,Q){return fe.name<Q.name?-1:1}),ce.shader.program.uniforms.sort(function(fe,Q){return fe.name<Q.name?-1:1})),an(de,ce),St(de,ce),me(de,ce),r(de.compile(),{destroy:function(){ce.shader.program.destroy()}})}return{next:Ft,current:at,procs:function(){var U=ot(),W=U.proc("poll"),J=U.proc("refresh"),_e=U.block();W(_e),J(_e);var pe=U.shared,de=pe.gl,ce=pe.next,fe=pe.current;_e(fe,".dirty=false;"),rn(U,W),rn(U,J,null,!0);var Q;Ve&&(Q=U.link(Ve)),Z.oes_vertex_array_object&&J(U.link(Z.oes_vertex_array_object),".bindVertexArrayOES(null);");var te=J.def(pe.attributes),X=J.def(0),ve=U.cond(X,".buffer");ve.then(de,".enableVertexAttribArray(i);",de,".bindBuffer(",Ea,",",X,".buffer.buffer);",de,".vertexAttribPointer(i,",X,".size,",X,".type,",X,".normalized,",X,".stride,",X,".offset);").else(de,".disableVertexAttribArray(i);",de,".vertexAttrib4f(i,",X,".x,",X,".y,",X,".z,",X,".w);",X,".buffer=null;");var Te=U.link(we.maxAttributes,{stable:!0});return J("for(var i=0;i<",Te,";++i){",X,"=",te,"[i];",ve,"}"),Ve&&J("for(var i=0;i<",Te,";++i){",Q,".vertexAttribDivisorANGLE(i,",te,"[i].divisor);","}"),J(U.shared.vao,".currentVAO=null;",U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"),Object.keys(Oe).forEach(function(Le){var Lt=Oe[Le],kt=_e.def(ce,".",Le),vt=U.block();vt("if(",kt,"){",de,".enable(",Lt,")}else{",de,".disable(",Lt,")}",fe,".",Le,"=",kt,";"),J(vt),W("if(",kt,"!==",fe,".",Le,"){",vt,"}")}),Object.keys(pt).forEach(function(Le){var Lt=pt[Le],kt=at[Le],vt,Rt,bt=U.block();if(bt(de,".",Lt,"("),Xn(kt)){var Dt=kt.length;vt=U.global.def(ce,".",Le),Rt=U.global.def(fe,".",Le),bt(Ce(Dt,function(_t){return vt+"["+_t+"]"}),");",Ce(Dt,function(_t){return Rt+"["+_t+"]="+vt+"["+_t+"];"}).join("")),W("if(",Ce(Dt,function(_t){return vt+"["+_t+"]!=="+Rt+"["+_t+"]"}).join("||"),"){",bt,"}")}else vt=_e.def(ce,".",Le),Rt=_e.def(fe,".",Le),bt(vt,");",fe,".",Le,"=",vt,";"),W("if(",vt,"!==",Rt,"){",bt,"}");J(bt)}),U.compile()}(),compile:Et}}function xt(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var zt=34918,ir=34919,Tr=35007,hr=function(F,H){if(!H.ext_disjoint_timer_query)return null;var Z=[];function we(){return Z.pop()||H.ext_disjoint_timer_query.createQueryEXT()}function ke(Ge){Z.push(Ge)}var ge=[];function xe(Ge){var Ve=we();H.ext_disjoint_timer_query.beginQueryEXT(Tr,Ve),ge.push(Ve),nt(ge.length-1,ge.length,Ge)}function He(){H.ext_disjoint_timer_query.endQueryEXT(Tr)}function We(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var Xe=[];function ut(){return Xe.pop()||new We}function Mt(Ge){Xe.push(Ge)}var wt=[];function nt(Ge,Ve,Re){var ht=ut();ht.startQueryIndex=Ge,ht.endQueryIndex=Ve,ht.sum=0,ht.stats=Re,wt.push(ht)}var ze=[],he=[];function Se(){var Ge,Ve,Re=ge.length;if(Re!==0){he.length=Math.max(he.length,Re+1),ze.length=Math.max(ze.length,Re+1),ze[0]=0,he[0]=0;var ht=0;for(Ge=0,Ve=0;Ve<ge.length;++Ve){var at=ge[Ve];H.ext_disjoint_timer_query.getQueryObjectEXT(at,ir)?(ht+=H.ext_disjoint_timer_query.getQueryObjectEXT(at,zt),ke(at)):ge[Ge++]=at,ze[Ve+1]=ht,he[Ve+1]=Ge}for(ge.length=Ge,Ge=0,Ve=0;Ve<wt.length;++Ve){var Ft=wt[Ve],Pe=Ft.startQueryIndex,Oe=Ft.endQueryIndex;Ft.sum+=ze[Oe]-ze[Pe];var pt=he[Pe],be=he[Oe];be===pt?(Ft.stats.gpuTime+=Ft.sum/1e6,Mt(Ft)):(Ft.startQueryIndex=pt,Ft.endQueryIndex=be,wt[Ge++]=Ft)}wt.length=Ge}}return{beginQuery:xe,endQuery:He,pushScopeStats:nt,update:Se,getNumPendingQueries:function(){return ge.length},clear:function(){Z.push.apply(Z,ge);for(var Ge=0;Ge<Z.length;Ge++)H.ext_disjoint_timer_query.deleteQueryEXT(Z[Ge]);ge.length=0,Z.length=0},restore:function(){ge.length=0,Z.length=0}}},et=16384,Ht=256,Vt=1024,ar=34962,wr="webglcontextlost",Pr="webglcontextrestored",Wr=1,fn=2,mn=3;function Jr(F,H){for(var Z=0;Z<F.length;++Z)if(F[Z]===H)return Z;return-1}function Sn(F){var H=Y(F);if(!H)return null;var Z=H.gl,we=Z.getContextAttributes();Z.isContextLost();var ke=ae(Z,H);if(!ke)return null;var ge=w(),xe=xt(),He=H.cachedCode||{},We=ke.extensions,Xe=hr(Z,We),ut=b(),Mt=Z.drawingBufferWidth,wt=Z.drawingBufferHeight,nt={tick:0,time:0,viewportWidth:Mt,viewportHeight:wt,framebufferWidth:Mt,framebufferHeight:wt,drawingBufferWidth:Mt,drawingBufferHeight:wt,pixelRatio:H.pixelRatio},ze={},he={elements:null,primitive:4,count:-1,offset:0,instances:-1},Se=ml(Z,We),Ge=Sd(Z,xe,H,ht),Ve=bl(Z,We,Ge,xe),Re=ig(Z,We,Se,xe,Ge,Ve,he);function ht(Zt){return Re.destroyBuffer(Zt)}var at=up(Z,ge,xe,H),Ft=Km(Z,We,Se,function(){pt.procs.poll()},nt,xe,H),Pe=rp(Z,We,Se,xe,H),Oe=$s(Z,We,Se,Ft,Pe,xe),pt=Gt(Z,ge,We,Se,Ge,Ve,Ft,Oe,ze,Re,at,he,nt,Xe,He,H),be=fp(Z,Oe,pt.procs.poll,nt),ft=pt.next,qe=Z.canvas,Nt=[],Jt=[],gt=[],$t=[H.onDestroy],ot=null;function er(){if(Nt.length===0){Xe&&Xe.update(),ot=null;return}ot=N.next(er),rn();for(var Zt=Nt.length-1;Zt>=0;--Zt){var sr=Nt[Zt];sr&&sr(nt,null,0)}Z.flush(),Xe&&Xe.update()}function or(){!ot&&Nt.length>0&&(ot=N.next(er))}function cr(){ot&&(N.cancel(er),ot=null)}function en(Zt){Zt.preventDefault(),cr(),Jt.forEach(function(sr){sr()})}function ur(Zt){Z.getError(),ke.restore(),at.restore(),Ge.restore(),Ft.restore(),Pe.restore(),Oe.restore(),Re.restore(),Xe&&Xe.restore(),pt.procs.refresh(),or(),gt.forEach(function(sr){sr()})}qe&&(qe.addEventListener(wr,en,!1),qe.addEventListener(Pr,ur,!1));function Bn(){Nt.length=0,cr(),qe&&(qe.removeEventListener(wr,en),qe.removeEventListener(Pr,ur)),at.clear(),Oe.clear(),Pe.clear(),Re.clear(),Ft.clear(),Ve.clear(),Ge.clear(),Xe&&Xe.clear(),$t.forEach(function(Zt){Zt()})}function br(Zt){function sr(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(fe){if(fe in de){var Q=de[fe];delete de[fe],Object.keys(Q).forEach(function(te){de[fe+"."+te]=Q[te]})}}return ce("blend"),ce("depth"),ce("cull"),ce("stencil"),ce("polygonOffset"),ce("scissor"),ce("sample"),"vao"in pe&&(de.vao=pe.vao),de}function Er(pe,de){var ce={},fe={};return Object.keys(pe).forEach(function(Q){var te=pe[Q];if(k.isDynamic(te)){fe[Q]=k.unbox(te,Q);return}else if(de&&Array.isArray(te)){for(var X=0;X<te.length;++X)if(k.isDynamic(te[X])){fe[Q]=k.unbox(te,Q);return}}ce[Q]=te}),{dynamic:fe,static:ce}}var an=Er(Zt.context||{},!0),V=Er(Zt.uniforms||{},!0),ye=Er(Zt.attributes||{},!1),me=Er(sr(Zt),!1),St={gpuTime:0,cpuTime:0,count:0},tr=pt.compile(me,ye,V,an,St),Cr=tr.draw,Et=tr.batch,U=tr.scope,W=[];function J(pe){for(;W.length<pe;)W.push(null);return W}function _e(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 Et.call(this,J(pe|0),pe|0)}else if(Array.isArray(pe)){if(pe.length)return Et.call(this,pe,pe.length)}else return Cr.call(this,pe)}return r(_e,{stats:St,destroy:function(){tr.destroy()}})}var gn=Oe.setFBO=br({framebuffer:k.define.call(null,Wr,"framebuffer")});function $n(Zt,sr){var Er=0;pt.procs.poll();var an=sr.color;an&&(Z.clearColor(+an[0]||0,+an[1]||0,+an[2]||0,+an[3]||0),Er|=et),"depth"in sr&&(Z.clearDepth(+sr.depth),Er|=Ht),"stencil"in sr&&(Z.clearStencil(sr.stencil|0),Er|=Vt),Z.clear(Er)}function En(Zt){if("framebuffer"in Zt)if(Zt.framebuffer&&Zt.framebuffer_reglType==="framebufferCube")for(var sr=0;sr<6;++sr)gn(r({framebuffer:Zt.framebuffer.faces[sr]},Zt),$n);else gn(Zt,$n);else $n(null,Zt)}function ki(Zt){Nt.push(Zt);function sr(){var Er=Jr(Nt,Zt);function an(){var V=Jr(Nt,an);Nt[V]=Nt[Nt.length-1],Nt.length-=1,Nt.length<=0&&cr()}Nt[Er]=an}return or(),{cancel:sr}}function tn(){var Zt=ft.viewport,sr=ft.scissor_box;Zt[0]=Zt[1]=sr[0]=sr[1]=0,nt.viewportWidth=nt.framebufferWidth=nt.drawingBufferWidth=Zt[2]=sr[2]=Z.drawingBufferWidth,nt.viewportHeight=nt.framebufferHeight=nt.drawingBufferHeight=Zt[3]=sr[3]=Z.drawingBufferHeight}function rn(){nt.tick+=1,nt.time=ti(),tn(),pt.procs.poll()}function qt(){Ft.refresh(),tn(),pt.procs.refresh(),Xe&&Xe.update()}function ti(){return(b()-ut)/1e3}qt();function xr(Zt,sr){var Er;switch(Zt){case"frame":return ki(sr);case"lost":Er=Jt;break;case"restore":Er=gt;break;case"destroy":Er=$t;break}return Er.push(sr),{cancel:function(){for(var an=0;an<Er.length;++an)if(Er[an]===sr){Er[an]=Er[Er.length-1],Er.pop();return}}}}function nn(){return He}function Fn(Zt){Object.entries(Zt).forEach(function(sr){He[sr[0]]=sr[1]})}var Nn=r(br,{clear:En,prop:k.define.bind(null,Wr),context:k.define.bind(null,fn),this:k.define.bind(null,mn),draw:br({}),buffer:function(Zt){return Ge.create(Zt,ar,!1,!1)},elements:function(Zt){return Ve.create(Zt,!1)},texture:Ft.create2D,cube:Ft.createCube,renderbuffer:Pe.create,framebuffer:Oe.create,framebufferCube:Oe.createCube,vao:Re.createVAO,attributes:we,frame:ki,on:xr,limits:Se,hasExtension:function(Zt){return Se.extensions.indexOf(Zt.toLowerCase())>=0},read:be,destroy:Bn,_gl:Z,_refresh:qt,poll:function(){rn(),Xe&&Xe.update()},now:ti,stats:xe,getCachedCode:nn,preloadCachedCode:Fn});return H.onDone(null,Nn),Nn}return Sn})})(vH);var mH=Xo,gH=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},k5(t)?t={container:t}:yH(t)?t={container:t}:xH(t)?t={gl:t}:t=mH(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=Lr.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}k5(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=O5(),t.container.appendChild(t.canvas),C5(t))}else if(!t.canvas)if(typeof document<"u")t.container=document.body||document.documentElement,t.canvas=O5(),t.container.appendChild(t.canvas),C5(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 C5(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*Lr.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*Lr.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 k5(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function yH(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function xH(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function O5(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}var _H=eM,wH=[32,126],bH=SH;function SH(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||wH;if(n&&typeof n!="string"&&(n=_H(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var u=[],l=a[0],s=0;l<=a[1];l++)u[s++]=String.fromCharCode(l);a=u}t=t.slice(),r.width=t[0],r.height=t[1];var c=r.getContext("2d");c.fillStyle="#000",c.fillRect(0,0,r.width,r.height),c.font=n,c.textAlign="center",c.textBaseline="middle",c.fillStyle="#fff";for(var v=i[0]/2,x=i[1]/2,l=0;l<a.length;l++)c.fillText(a[l],v,x),(v+=i[0])>t[0]-i[0]/2&&(v=i[0]/2,x+=i[1]);return r}var dr={},$r={},Mw=32;$r.INT_BITS=Mw;$r.INT_MAX=2147483647;$r.INT_MIN=-1<<Mw-1;$r.sign=function(e){return(e>0)-(e<0)};$r.abs=function(e){var t=e>>Mw-1;return(e^t)-t};$r.min=function(e,t){return t^(e^t)&-(e<t)};$r.max=function(e,t){return e^(e^t)&-(e<t)};$r.isPow2=function(e){return!(e&e-1)&&!!e};$r.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};$r.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};$r.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function tM(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}$r.countTrailingZeros=tM;$r.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};$r.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};$r.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Kc=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}})(Kc);$r.reverse=function(e){return Kc[e&255]<<24|Kc[e>>>8&255]<<16|Kc[e>>>16&255]<<8|Kc[e>>>24&255]};$r.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};$r.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};$r.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};$r.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};$r.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>tM(e)+1};function rM(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]=rM(e,t,r+1);return i}function EH(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function AH(e,t){switch(typeof t>"u"&&(t=0),typeof e){case"number":if(e>0)return EH(e|0,t);break;case"object":if(typeof e.length=="number")return rM(e,t,0);break}return[]}var TH=AH,nM={},Em={};Em.byteLength=OH;Em.toByteArray=FH;Em.fromByteArray=IH;var qi=[],hi=[],CH=typeof Uint8Array<"u"?Uint8Array:Array,V1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var nf=0,kH=V1.length;nf<kH;++nf)qi[nf]=V1[nf],hi[V1.charCodeAt(nf)]=nf;hi["-".charCodeAt(0)]=62;hi["_".charCodeAt(0)]=63;function iM(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 OH(e){var t=iM(e),r=t[0],n=t[1];return(r+n)*3/4-n}function MH(e,t,r){return(t+r)*3/4-r}function FH(e){var t,r=iM(e),n=r[0],i=r[1],a=new CH(MH(e,n,i)),u=0,l=i>0?n-4:n,s;for(s=0;s<l;s+=4)t=hi[e.charCodeAt(s)]<<18|hi[e.charCodeAt(s+1)]<<12|hi[e.charCodeAt(s+2)]<<6|hi[e.charCodeAt(s+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=t&255;return i===2&&(t=hi[e.charCodeAt(s)]<<2|hi[e.charCodeAt(s+1)]>>4,a[u++]=t&255),i===1&&(t=hi[e.charCodeAt(s)]<<10|hi[e.charCodeAt(s+1)]<<4|hi[e.charCodeAt(s+2)]>>2,a[u++]=t>>8&255,a[u++]=t&255),a}function NH(e){return qi[e>>18&63]+qi[e>>12&63]+qi[e>>6&63]+qi[e&63]}function RH(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(NH(n));return i.join("")}function IH(e){for(var t,r=e.length,n=r%3,i=[],a=16383,u=0,l=r-n;u<l;u+=a)i.push(RH(e,u,u+a>l?l:u+a));return n===1?(t=e[r-1],i.push(qi[t>>2]+qi[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(qi[t>>10]+qi[t>>4&63]+qi[t<<2&63]+"=")),i.join("")}var Fw={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Fw.read=function(e,t,r,n,i){var a,u,l=i*8-n-1,s=(1<<l)-1,c=s>>1,v=-7,x=r?i-1:0,y=r?-1:1,g=e[t+x];for(x+=y,a=g&(1<<-v)-1,g>>=-v,v+=l;v>0;a=a*256+e[t+x],x+=y,v-=8);for(u=a&(1<<-v)-1,a>>=-v,v+=n;v>0;u=u*256+e[t+x],x+=y,v-=8);if(a===0)a=1-c;else{if(a===s)return u?NaN:(g?-1:1)*(1/0);u=u+Math.pow(2,n),a=a-c}return(g?-1:1)*u*Math.pow(2,a-n)};Fw.write=function(e,t,r,n,i,a){var u,l,s,c=a*8-i-1,v=(1<<c)-1,x=v>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:a-1,k=n?1:-1,N=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,u=v):(u=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-u))<1&&(u--,s*=2),u+x>=1?t+=y/s:t+=y*Math.pow(2,1-x),t*s>=2&&(u++,s/=2),u+x>=v?(l=0,u=v):u+x>=1?(l=(t*s-1)*Math.pow(2,i),u=u+x):(l=t*Math.pow(2,x-1)*Math.pow(2,i),u=0));i>=8;e[r+g]=l&255,g+=k,l/=256,i-=8);for(u=u<<i|l,c+=i;c>0;e[r+g]=u&255,g+=k,u/=256,c-=8);e[r+g-k]|=N*128};/*!
1054
- * The buffer module from node.js, for the browser.
1055
- *
1056
- * @author Feross Aboukhadijeh <https://feross.org>
1057
- * @license MIT
1058
- */(function(e){var t=Em,r=Fw;e.Buffer=u,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;var n=2147483647;e.kMaxLength=n,u.TYPED_ARRAY_SUPPORT=i(),!u.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 C=new Uint8Array(1);return C.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},C.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function a(C){if(C>n)throw new RangeError('The value "'+C+'" is invalid for option "size"');var S=new Uint8Array(C);return S.__proto__=u.prototype,S}function u(C,S,T){if(typeof C=="number"){if(typeof S=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(C)}return l(C,S,T)}typeof Symbol<"u"&&Symbol.species!=null&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),u.poolSize=8192;function l(C,S,T){if(typeof C=="string")return x(C,S);if(ArrayBuffer.isView(C))return y(C);if(C==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(G(C,ArrayBuffer)||C&&G(C.buffer,ArrayBuffer))return g(C,S,T);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var B=C.valueOf&&C.valueOf();if(B!=null&&B!==C)return u.from(B,S,T);var se=k(C);if(se)return se;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof C[Symbol.toPrimitive]=="function")return u.from(C[Symbol.toPrimitive]("string"),S,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}u.from=function(C,S,T){return l(C,S,T)},u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array;function s(C){if(typeof C!="number")throw new TypeError('"size" argument must be of type number');if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function c(C,S,T){return s(C),C<=0?a(C):S!==void 0?typeof T=="string"?a(C).fill(S,T):a(C).fill(S):a(C)}u.alloc=function(C,S,T){return c(C,S,T)};function v(C){return s(C),a(C<0?0:N(C)|0)}u.allocUnsafe=function(C){return v(C)},u.allocUnsafeSlow=function(C){return v(C)};function x(C,S){if((typeof S!="string"||S==="")&&(S="utf8"),!u.isEncoding(S))throw new TypeError("Unknown encoding: "+S);var T=w(C,S)|0,B=a(T),se=B.write(C,S);return se!==T&&(B=B.slice(0,se)),B}function y(C){for(var S=C.length<0?0:N(C.length)|0,T=a(S),B=0;B<S;B+=1)T[B]=C[B]&255;return T}function g(C,S,T){if(S<0||C.byteLength<S)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<S+(T||0))throw new RangeError('"length" is outside of buffer bounds');var B;return S===void 0&&T===void 0?B=new Uint8Array(C):T===void 0?B=new Uint8Array(C,S):B=new Uint8Array(C,S,T),B.__proto__=u.prototype,B}function k(C){if(u.isBuffer(C)){var S=N(C.length)|0,T=a(S);return T.length===0||C.copy(T,0,0,S),T}if(C.length!==void 0)return typeof C.length!="number"||ie(C.length)?a(0):y(C);if(C.type==="Buffer"&&Array.isArray(C.data))return y(C.data)}function N(C){if(C>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return C|0}function b(C){return+C!=C&&(C=0),u.alloc(+C)}u.isBuffer=function(S){return S!=null&&S._isBuffer===!0&&S!==u.prototype},u.compare=function(S,T){if(G(S,Uint8Array)&&(S=u.from(S,S.offset,S.byteLength)),G(T,Uint8Array)&&(T=u.from(T,T.offset,T.byteLength)),!u.isBuffer(S)||!u.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(S===T)return 0;for(var B=S.length,se=T.length,Ne=0,De=Math.min(B,se);Ne<De;++Ne)if(S[Ne]!==T[Ne]){B=S[Ne],se=T[Ne];break}return B<se?-1:se<B?1:0},u.isEncoding=function(S){switch(String(S).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}},u.concat=function(S,T){if(!Array.isArray(S))throw new TypeError('"list" argument must be an Array of Buffers');if(S.length===0)return u.alloc(0);var B;if(T===void 0)for(T=0,B=0;B<S.length;++B)T+=S[B].length;var se=u.allocUnsafe(T),Ne=0;for(B=0;B<S.length;++B){var De=S[B];if(G(De,Uint8Array)&&(De=u.from(De)),!u.isBuffer(De))throw new TypeError('"list" argument must be an Array of Buffers');De.copy(se,Ne),Ne+=De.length}return se};function w(C,S){if(u.isBuffer(C))return C.length;if(ArrayBuffer.isView(C)||G(C,ArrayBuffer))return C.byteLength;if(typeof C!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);var T=C.length,B=arguments.length>2&&arguments[2]===!0;if(!B&&T===0)return 0;for(var se=!1;;)switch(S){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return Xt(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T*2;case"hex":return T>>>1;case"base64":return jt(C).length;default:if(se)return B?-1:Xt(C).length;S=(""+S).toLowerCase(),se=!0}}u.byteLength=w;function A(C,S,T){var B=!1;if((S===void 0||S<0)&&(S=0),S>this.length||((T===void 0||T>this.length)&&(T=this.length),T<=0)||(T>>>=0,S>>>=0,T<=S))return"";for(C||(C="utf8");;)switch(C){case"hex":return Ye(this,S,T);case"utf8":case"utf-8":return je(this,S,T);case"ascii":return lt(this,S,T);case"latin1":case"binary":return Ue(this,S,T);case"base64":return Ie(this,S,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It(this,S,T);default:if(B)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),B=!0}}u.prototype._isBuffer=!0;function M(C,S,T){var B=C[S];C[S]=C[T],C[T]=B}u.prototype.swap16=function(){var S=this.length;if(S%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var T=0;T<S;T+=2)M(this,T,T+1);return this},u.prototype.swap32=function(){var S=this.length;if(S%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var T=0;T<S;T+=4)M(this,T,T+3),M(this,T+1,T+2);return this},u.prototype.swap64=function(){var S=this.length;if(S%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var T=0;T<S;T+=8)M(this,T,T+7),M(this,T+1,T+6),M(this,T+2,T+5),M(this,T+3,T+4);return this},u.prototype.toString=function(){var S=this.length;return S===0?"":arguments.length===0?je(this,0,S):A.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(S){if(!u.isBuffer(S))throw new TypeError("Argument must be a Buffer");return this===S?!0:u.compare(this,S)===0},u.prototype.inspect=function(){var S="",T=e.INSPECT_MAX_BYTES;return S=this.toString("hex",0,T).replace(/(.{2})/g,"$1 ").trim(),this.length>T&&(S+=" ... "),"<Buffer "+S+">"},u.prototype.compare=function(S,T,B,se,Ne){if(G(S,Uint8Array)&&(S=u.from(S,S.offset,S.byteLength)),!u.isBuffer(S))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof S);if(T===void 0&&(T=0),B===void 0&&(B=S?S.length:0),se===void 0&&(se=0),Ne===void 0&&(Ne=this.length),T<0||B>S.length||se<0||Ne>this.length)throw new RangeError("out of range index");if(se>=Ne&&T>=B)return 0;if(se>=Ne)return-1;if(T>=B)return 1;if(T>>>=0,B>>>=0,se>>>=0,Ne>>>=0,this===S)return 0;for(var De=Ne-se,Qt=B-T,fr=Math.min(De,Qt),rr=this.slice(se,Ne),Hr=S.slice(T,B),Ar=0;Ar<fr;++Ar)if(rr[Ar]!==Hr[Ar]){De=rr[Ar],Qt=Hr[Ar];break}return De<Qt?-1:Qt<De?1:0};function R(C,S,T,B,se){if(C.length===0)return-1;if(typeof T=="string"?(B=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),T=+T,ie(T)&&(T=se?0:C.length-1),T<0&&(T=C.length+T),T>=C.length){if(se)return-1;T=C.length-1}else if(T<0)if(se)T=0;else return-1;if(typeof S=="string"&&(S=u.from(S,B)),u.isBuffer(S))return S.length===0?-1:L(C,S,T,B,se);if(typeof S=="number")return S=S&255,typeof Uint8Array.prototype.indexOf=="function"?se?Uint8Array.prototype.indexOf.call(C,S,T):Uint8Array.prototype.lastIndexOf.call(C,S,T):L(C,[S],T,B,se);throw new TypeError("val must be string, number or Buffer")}function L(C,S,T,B,se){var Ne=1,De=C.length,Qt=S.length;if(B!==void 0&&(B=String(B).toLowerCase(),B==="ucs2"||B==="ucs-2"||B==="utf16le"||B==="utf-16le")){if(C.length<2||S.length<2)return-1;Ne=2,De/=2,Qt/=2,T/=2}function fr(Zo,aa){return Ne===1?Zo[aa]:Zo.readUInt16BE(aa*Ne)}var rr;if(se){var Hr=-1;for(rr=T;rr<De;rr++)if(fr(C,rr)===fr(S,Hr===-1?0:rr-Hr)){if(Hr===-1&&(Hr=rr),rr-Hr+1===Qt)return Hr*Ne}else Hr!==-1&&(rr-=rr-Hr),Hr=-1}else for(T+Qt>De&&(T=De-Qt),rr=T;rr>=0;rr--){for(var Ar=!0,Li=0;Li<Qt;Li++)if(fr(C,rr+Li)!==fr(S,Li)){Ar=!1;break}if(Ar)return rr}return-1}u.prototype.includes=function(S,T,B){return this.indexOf(S,T,B)!==-1},u.prototype.indexOf=function(S,T,B){return R(this,S,T,B,!0)},u.prototype.lastIndexOf=function(S,T,B){return R(this,S,T,B,!1)};function D(C,S,T,B){T=Number(T)||0;var se=C.length-T;B?(B=Number(B),B>se&&(B=se)):B=se;var Ne=S.length;B>Ne/2&&(B=Ne/2);for(var De=0;De<B;++De){var Qt=parseInt(S.substr(De*2,2),16);if(ie(Qt))return De;C[T+De]=Qt}return De}function ne(C,S,T,B){return Ae(Xt(S,C.length-T),C,T,B)}function Y(C,S,T,B){return Ae(Qe(S),C,T,B)}function ae(C,S,T,B){return Y(C,S,T,B)}function Ce(C,S,T,B){return Ae(jt(S),C,T,B)}function Fe(C,S,T,B){return Ae(Ot(S,C.length-T),C,T,B)}u.prototype.write=function(S,T,B,se){if(T===void 0)se="utf8",B=this.length,T=0;else if(B===void 0&&typeof T=="string")se=T,B=this.length,T=0;else if(isFinite(T))T=T>>>0,isFinite(B)?(B=B>>>0,se===void 0&&(se="utf8")):(se=B,B=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ne=this.length-T;if((B===void 0||B>Ne)&&(B=Ne),S.length>0&&(B<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");se||(se="utf8");for(var De=!1;;)switch(se){case"hex":return D(this,S,T,B);case"utf8":case"utf-8":return ne(this,S,T,B);case"ascii":return Y(this,S,T,B);case"latin1":case"binary":return ae(this,S,T,B);case"base64":return Ce(this,S,T,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fe(this,S,T,B);default:if(De)throw new TypeError("Unknown encoding: "+se);se=(""+se).toLowerCase(),De=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ie(C,S,T){return S===0&&T===C.length?t.fromByteArray(C):t.fromByteArray(C.slice(S,T))}function je(C,S,T){T=Math.min(C.length,T);for(var B=[],se=S;se<T;){var Ne=C[se],De=null,Qt=Ne>239?4:Ne>223?3:Ne>191?2:1;if(se+Qt<=T){var fr,rr,Hr,Ar;switch(Qt){case 1:Ne<128&&(De=Ne);break;case 2:fr=C[se+1],(fr&192)===128&&(Ar=(Ne&31)<<6|fr&63,Ar>127&&(De=Ar));break;case 3:fr=C[se+1],rr=C[se+2],(fr&192)===128&&(rr&192)===128&&(Ar=(Ne&15)<<12|(fr&63)<<6|rr&63,Ar>2047&&(Ar<55296||Ar>57343)&&(De=Ar));break;case 4:fr=C[se+1],rr=C[se+2],Hr=C[se+3],(fr&192)===128&&(rr&192)===128&&(Hr&192)===128&&(Ar=(Ne&15)<<18|(fr&63)<<12|(rr&63)<<6|Hr&63,Ar>65535&&Ar<1114112&&(De=Ar))}}De===null?(De=65533,Qt=1):De>65535&&(De-=65536,B.push(De>>>10&1023|55296),De=56320|De&1023),B.push(De),se+=Qt}return mt(B)}var Ke=4096;function mt(C){var S=C.length;if(S<=Ke)return String.fromCharCode.apply(String,C);for(var T="",B=0;B<S;)T+=String.fromCharCode.apply(String,C.slice(B,B+=Ke));return T}function lt(C,S,T){var B="";T=Math.min(C.length,T);for(var se=S;se<T;++se)B+=String.fromCharCode(C[se]&127);return B}function Ue(C,S,T){var B="";T=Math.min(C.length,T);for(var se=S;se<T;++se)B+=String.fromCharCode(C[se]);return B}function Ye(C,S,T){var B=C.length;(!S||S<0)&&(S=0),(!T||T<0||T>B)&&(T=B);for(var se="",Ne=S;Ne<T;++Ne)se+=Yt(C[Ne]);return se}function It(C,S,T){for(var B=C.slice(S,T),se="",Ne=0;Ne<B.length;Ne+=2)se+=String.fromCharCode(B[Ne]+B[Ne+1]*256);return se}u.prototype.slice=function(S,T){var B=this.length;S=~~S,T=T===void 0?B:~~T,S<0?(S+=B,S<0&&(S=0)):S>B&&(S=B),T<0?(T+=B,T<0&&(T=0)):T>B&&(T=B),T<S&&(T=S);var se=this.subarray(S,T);return se.__proto__=u.prototype,se};function Ze(C,S,T){if(C%1!==0||C<0)throw new RangeError("offset is not uint");if(C+S>T)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function(S,T,B){S=S>>>0,T=T>>>0,B||Ze(S,T,this.length);for(var se=this[S],Ne=1,De=0;++De<T&&(Ne*=256);)se+=this[S+De]*Ne;return se},u.prototype.readUIntBE=function(S,T,B){S=S>>>0,T=T>>>0,B||Ze(S,T,this.length);for(var se=this[S+--T],Ne=1;T>0&&(Ne*=256);)se+=this[S+--T]*Ne;return se},u.prototype.readUInt8=function(S,T){return S=S>>>0,T||Ze(S,1,this.length),this[S]},u.prototype.readUInt16LE=function(S,T){return S=S>>>0,T||Ze(S,2,this.length),this[S]|this[S+1]<<8},u.prototype.readUInt16BE=function(S,T){return S=S>>>0,T||Ze(S,2,this.length),this[S]<<8|this[S+1]},u.prototype.readUInt32LE=function(S,T){return S=S>>>0,T||Ze(S,4,this.length),(this[S]|this[S+1]<<8|this[S+2]<<16)+this[S+3]*16777216},u.prototype.readUInt32BE=function(S,T){return S=S>>>0,T||Ze(S,4,this.length),this[S]*16777216+(this[S+1]<<16|this[S+2]<<8|this[S+3])},u.prototype.readIntLE=function(S,T,B){S=S>>>0,T=T>>>0,B||Ze(S,T,this.length);for(var se=this[S],Ne=1,De=0;++De<T&&(Ne*=256);)se+=this[S+De]*Ne;return Ne*=128,se>=Ne&&(se-=Math.pow(2,8*T)),se},u.prototype.readIntBE=function(S,T,B){S=S>>>0,T=T>>>0,B||Ze(S,T,this.length);for(var se=T,Ne=1,De=this[S+--se];se>0&&(Ne*=256);)De+=this[S+--se]*Ne;return Ne*=128,De>=Ne&&(De-=Math.pow(2,8*T)),De},u.prototype.readInt8=function(S,T){return S=S>>>0,T||Ze(S,1,this.length),this[S]&128?(255-this[S]+1)*-1:this[S]},u.prototype.readInt16LE=function(S,T){S=S>>>0,T||Ze(S,2,this.length);var B=this[S]|this[S+1]<<8;return B&32768?B|4294901760:B},u.prototype.readInt16BE=function(S,T){S=S>>>0,T||Ze(S,2,this.length);var B=this[S+1]|this[S]<<8;return B&32768?B|4294901760:B},u.prototype.readInt32LE=function(S,T){return S=S>>>0,T||Ze(S,4,this.length),this[S]|this[S+1]<<8|this[S+2]<<16|this[S+3]<<24},u.prototype.readInt32BE=function(S,T){return S=S>>>0,T||Ze(S,4,this.length),this[S]<<24|this[S+1]<<16|this[S+2]<<8|this[S+3]},u.prototype.readFloatLE=function(S,T){return S=S>>>0,T||Ze(S,4,this.length),r.read(this,S,!0,23,4)},u.prototype.readFloatBE=function(S,T){return S=S>>>0,T||Ze(S,4,this.length),r.read(this,S,!1,23,4)},u.prototype.readDoubleLE=function(S,T){return S=S>>>0,T||Ze(S,8,this.length),r.read(this,S,!0,52,8)},u.prototype.readDoubleBE=function(S,T){return S=S>>>0,T||Ze(S,8,this.length),r.read(this,S,!1,52,8)};function Ee(C,S,T,B,se,Ne){if(!u.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(S>se||S<Ne)throw new RangeError('"value" argument is out of bounds');if(T+B>C.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(S,T,B,se){if(S=+S,T=T>>>0,B=B>>>0,!se){var Ne=Math.pow(2,8*B)-1;Ee(this,S,T,B,Ne,0)}var De=1,Qt=0;for(this[T]=S&255;++Qt<B&&(De*=256);)this[T+Qt]=S/De&255;return T+B},u.prototype.writeUIntBE=function(S,T,B,se){if(S=+S,T=T>>>0,B=B>>>0,!se){var Ne=Math.pow(2,8*B)-1;Ee(this,S,T,B,Ne,0)}var De=B-1,Qt=1;for(this[T+De]=S&255;--De>=0&&(Qt*=256);)this[T+De]=S/Qt&255;return T+B},u.prototype.writeUInt8=function(S,T,B){return S=+S,T=T>>>0,B||Ee(this,S,T,1,255,0),this[T]=S&255,T+1},u.prototype.writeUInt16LE=function(S,T,B){return S=+S,T=T>>>0,B||Ee(this,S,T,2,65535,0),this[T]=S&255,this[T+1]=S>>>8,T+2},u.prototype.writeUInt16BE=function(S,T,B){return S=+S,T=T>>>0,B||Ee(this,S,T,2,65535,0),this[T]=S>>>8,this[T+1]=S&255,T+2},u.prototype.writeUInt32LE=function(S,T,B){return S=+S,T=T>>>0,B||Ee(this,S,T,4,4294967295,0),this[T+3]=S>>>24,this[T+2]=S>>>16,this[T+1]=S>>>8,this[T]=S&255,T+4},u.prototype.writeUInt32BE=function(S,T,B){return S=+S,T=T>>>0,B||Ee(this,S,T,4,4294967295,0),this[T]=S>>>24,this[T+1]=S>>>16,this[T+2]=S>>>8,this[T+3]=S&255,T+4},u.prototype.writeIntLE=function(S,T,B,se){if(S=+S,T=T>>>0,!se){var Ne=Math.pow(2,8*B-1);Ee(this,S,T,B,Ne-1,-Ne)}var De=0,Qt=1,fr=0;for(this[T]=S&255;++De<B&&(Qt*=256);)S<0&&fr===0&&this[T+De-1]!==0&&(fr=1),this[T+De]=(S/Qt>>0)-fr&255;return T+B},u.prototype.writeIntBE=function(S,T,B,se){if(S=+S,T=T>>>0,!se){var Ne=Math.pow(2,8*B-1);Ee(this,S,T,B,Ne-1,-Ne)}var De=B-1,Qt=1,fr=0;for(this[T+De]=S&255;--De>=0&&(Qt*=256);)S<0&&fr===0&&this[T+De+1]!==0&&(fr=1),this[T+De]=(S/Qt>>0)-fr&255;return T+B},u.prototype.writeInt8=function(S,T,B){return S=+S,T=T>>>0,B||Ee(this,S,T,1,127,-128),S<0&&(S=255+S+1),this[T]=S&255,T+1},u.prototype.writeInt16LE=function(S,T,B){return S=+S,T=T>>>0,B||Ee(this,S,T,2,32767,-32768),this[T]=S&255,this[T+1]=S>>>8,T+2},u.prototype.writeInt16BE=function(S,T,B){return S=+S,T=T>>>0,B||Ee(this,S,T,2,32767,-32768),this[T]=S>>>8,this[T+1]=S&255,T+2},u.prototype.writeInt32LE=function(S,T,B){return S=+S,T=T>>>0,B||Ee(this,S,T,4,2147483647,-2147483648),this[T]=S&255,this[T+1]=S>>>8,this[T+2]=S>>>16,this[T+3]=S>>>24,T+4},u.prototype.writeInt32BE=function(S,T,B){return S=+S,T=T>>>0,B||Ee(this,S,T,4,2147483647,-2147483648),S<0&&(S=4294967295+S+1),this[T]=S>>>24,this[T+1]=S>>>16,this[T+2]=S>>>8,this[T+3]=S&255,T+4};function tt(C,S,T,B,se,Ne){if(T+B>C.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function ct(C,S,T,B,se){return S=+S,T=T>>>0,se||tt(C,S,T,4),r.write(C,S,T,B,23,4),T+4}u.prototype.writeFloatLE=function(S,T,B){return ct(this,S,T,!0,B)},u.prototype.writeFloatBE=function(S,T,B){return ct(this,S,T,!1,B)};function rt(C,S,T,B,se){return S=+S,T=T>>>0,se||tt(C,S,T,8),r.write(C,S,T,B,52,8),T+8}u.prototype.writeDoubleLE=function(S,T,B){return rt(this,S,T,!0,B)},u.prototype.writeDoubleBE=function(S,T,B){return rt(this,S,T,!1,B)},u.prototype.copy=function(S,T,B,se){if(!u.isBuffer(S))throw new TypeError("argument should be a Buffer");if(B||(B=0),!se&&se!==0&&(se=this.length),T>=S.length&&(T=S.length),T||(T=0),se>0&&se<B&&(se=B),se===B||S.length===0||this.length===0)return 0;if(T<0)throw new RangeError("targetStart out of bounds");if(B<0||B>=this.length)throw new RangeError("Index out of range");if(se<0)throw new RangeError("sourceEnd out of bounds");se>this.length&&(se=this.length),S.length-T<se-B&&(se=S.length-T+B);var Ne=se-B;if(this===S&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(T,B,se);else if(this===S&&B<T&&T<se)for(var De=Ne-1;De>=0;--De)S[De+T]=this[De+B];else Uint8Array.prototype.set.call(S,this.subarray(B,se),T);return Ne},u.prototype.fill=function(S,T,B,se){if(typeof S=="string"){if(typeof T=="string"?(se=T,T=0,B=this.length):typeof B=="string"&&(se=B,B=this.length),se!==void 0&&typeof se!="string")throw new TypeError("encoding must be a string");if(typeof se=="string"&&!u.isEncoding(se))throw new TypeError("Unknown encoding: "+se);if(S.length===1){var Ne=S.charCodeAt(0);(se==="utf8"&&Ne<128||se==="latin1")&&(S=Ne)}}else typeof S=="number"&&(S=S&255);if(T<0||this.length<T||this.length<B)throw new RangeError("Out of range index");if(B<=T)return this;T=T>>>0,B=B===void 0?this.length:B>>>0,S||(S=0);var De;if(typeof S=="number")for(De=T;De<B;++De)this[De]=S;else{var Qt=u.isBuffer(S)?S:u.from(S,se),fr=Qt.length;if(fr===0)throw new TypeError('The value "'+S+'" is invalid for argument "value"');for(De=0;De<B-T;++De)this[De+T]=Qt[De%fr]}return this};var yt=/[^+/0-9A-Za-z-_]/g;function Tt(C){if(C=C.split("=")[0],C=C.trim().replace(yt,""),C.length<2)return"";for(;C.length%4!==0;)C=C+"=";return C}function Yt(C){return C<16?"0"+C.toString(16):C.toString(16)}function Xt(C,S){S=S||1/0;for(var T,B=C.length,se=null,Ne=[],De=0;De<B;++De){if(T=C.charCodeAt(De),T>55295&&T<57344){if(!se){if(T>56319){(S-=3)>-1&&Ne.push(239,191,189);continue}else if(De+1===B){(S-=3)>-1&&Ne.push(239,191,189);continue}se=T;continue}if(T<56320){(S-=3)>-1&&Ne.push(239,191,189),se=T;continue}T=(se-55296<<10|T-56320)+65536}else se&&(S-=3)>-1&&Ne.push(239,191,189);if(se=null,T<128){if((S-=1)<0)break;Ne.push(T)}else if(T<2048){if((S-=2)<0)break;Ne.push(T>>6|192,T&63|128)}else if(T<65536){if((S-=3)<0)break;Ne.push(T>>12|224,T>>6&63|128,T&63|128)}else if(T<1114112){if((S-=4)<0)break;Ne.push(T>>18|240,T>>12&63|128,T>>6&63|128,T&63|128)}else throw new Error("Invalid code point")}return Ne}function Qe(C){for(var S=[],T=0;T<C.length;++T)S.push(C.charCodeAt(T)&255);return S}function Ot(C,S){for(var T,B,se,Ne=[],De=0;De<C.length&&!((S-=2)<0);++De)T=C.charCodeAt(De),B=T>>8,se=T%256,Ne.push(se),Ne.push(B);return Ne}function jt(C){return t.toByteArray(Tt(C))}function Ae(C,S,T,B){for(var se=0;se<B&&!(se+T>=S.length||se>=C.length);++se)S[se+T]=C[se];return se}function G(C,S){return C instanceof S||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===S.name}function ie(C){return C!==C}})(nM);var Go=$r,yn=TH,aM=nM.Buffer;Lr.__TYPEDARRAY_POOL||(Lr.__TYPEDARRAY_POOL={UINT8:yn([32,0]),UINT16:yn([32,0]),UINT32:yn([32,0]),BIGUINT64:yn([32,0]),INT8:yn([32,0]),INT16:yn([32,0]),INT32:yn([32,0]),BIGINT64:yn([32,0]),FLOAT:yn([32,0]),DOUBLE:yn([32,0]),DATA:yn([32,0]),UINT8C:yn([32,0]),BUFFER:yn([32,0])});var PH=typeof Uint8ClampedArray<"u",LH=typeof BigUint64Array<"u",DH=typeof BigInt64Array<"u",Vr=Lr.__TYPEDARRAY_POOL;Vr.UINT8C||(Vr.UINT8C=yn([32,0]));Vr.BIGUINT64||(Vr.BIGUINT64=yn([32,0]));Vr.BIGINT64||(Vr.BIGINT64=yn([32,0]));Vr.BUFFER||(Vr.BUFFER=yn([32,0]));var Am=Vr.DATA,Tm=Vr.BUFFER;dr.free=function(t){if(aM.isBuffer(t))Tm[Go.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=Go.log2(r)|0;Am[n].push(t)}};function oM(e){if(e){var t=e.length||e.byteLength,r=Go.log2(t);Am[r].push(e)}}function BH(e){oM(e.buffer)}dr.freeUint8=dr.freeUint16=dr.freeUint32=dr.freeBigUint64=dr.freeInt8=dr.freeInt16=dr.freeInt32=dr.freeBigInt64=dr.freeFloat32=dr.freeFloat=dr.freeFloat64=dr.freeDouble=dr.freeUint8Clamped=dr.freeDataView=BH;dr.freeArrayBuffer=oM;dr.freeBuffer=function(t){Tm[Go.log2(t.length)].push(t)};dr.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Vn(t);switch(r){case"uint8":return Nw(t);case"uint16":return uM(t);case"uint32":return lM(t);case"int8":return fM(t);case"int16":return sM(t);case"int32":return cM(t);case"float":case"float32":return hM(t);case"double":case"float64":return dM(t);case"uint8_clamped":return pM(t);case"bigint64":return mM(t);case"biguint64":return vM(t);case"buffer":return yM(t);case"data":case"dataview":return gM(t);default:return null}return null};function Vn(t){var t=Go.nextPow2(t),r=Go.log2(t),n=Am[r];return n.length>0?n.pop():new ArrayBuffer(t)}dr.mallocArrayBuffer=Vn;function Nw(e){return new Uint8Array(Vn(e),0,e)}dr.mallocUint8=Nw;function uM(e){return new Uint16Array(Vn(2*e),0,e)}dr.mallocUint16=uM;function lM(e){return new Uint32Array(Vn(4*e),0,e)}dr.mallocUint32=lM;function fM(e){return new Int8Array(Vn(e),0,e)}dr.mallocInt8=fM;function sM(e){return new Int16Array(Vn(2*e),0,e)}dr.mallocInt16=sM;function cM(e){return new Int32Array(Vn(4*e),0,e)}dr.mallocInt32=cM;function hM(e){return new Float32Array(Vn(4*e),0,e)}dr.mallocFloat32=dr.mallocFloat=hM;function dM(e){return new Float64Array(Vn(8*e),0,e)}dr.mallocFloat64=dr.mallocDouble=dM;function pM(e){return PH?new Uint8ClampedArray(Vn(e),0,e):Nw(e)}dr.mallocUint8Clamped=pM;function vM(e){return LH?new BigUint64Array(Vn(8*e),0,e):null}dr.mallocBigUint64=vM;function mM(e){return DH?new BigInt64Array(Vn(8*e),0,e):null}dr.mallocBigInt64=mM;function gM(e){return new DataView(Vn(e),0,e)}dr.mallocDataView=gM;function yM(e){e=Go.nextPow2(e);var t=Go.log2(e),r=Tm[t];return r.length>0?r.pop():new aM(e)}dr.mallocBuffer=yM;dr.clearCache=function(){for(var t=0;t<32;++t)Vr.UINT8[t].length=0,Vr.UINT16[t].length=0,Vr.UINT32[t].length=0,Vr.INT8[t].length=0,Vr.INT16[t].length=0,Vr.INT32[t].length=0,Vr.FLOAT[t].length=0,Vr.DOUBLE[t].length=0,Vr.BIGUINT64[t].length=0,Vr.BIGINT64[t].length=0,Vr.UINT8C[t].length=0,Am[t].length=0,Tm[t].length=0};var xM=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},$H=xM,zH=_M,Hc=96;function z2(e,t){var r=$H(getComputedStyle(e).getPropertyValue(t));return r[0]*_M(r[1],e)}function UH(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=z2(r,"font-size")/128;return t.removeChild(r),n}function _M(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 UH(e,t);case"em":return z2(t,"font-size");case"rem":return z2(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 Hc;case"cm":return Hc/2.54;case"mm":return Hc/25.4;case"pt":return Hc/72;case"pc":return Hc/6}return 1}var jH=Cm,GH=Cm.canvas=document.createElement("canvas"),p0=GH.getContext("2d"),wM=$v([32,126]);Cm.createPairs=$v;Cm.ascii=wM;function Cm(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=$v(t):Array.isArray(t)?n=t:(t.o?n=$v(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=wM),p0.font=i+"px "+e;for(var u=0;u<n.length;u++){var l=n[u],s=p0.measureText(l[0]).width+p0.measureText(l[1]).width,c=p0.measureText(l).width;if(Math.abs(s-c)>i*a){var v=(c-s)/i;r[l]=v*1e3}}return r}function $v(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),u=n+a;t.push(u)}return t}var HH=_o;_o.canvas=document.createElement("canvas");_o.cache={};function _o(u,t){t||(t={}),(typeof u=="string"||Array.isArray(u))&&(t.family=u);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||"",u=[a,i,n].join(" ")+"px "+r,l=t.origin||"top";if(_o.cache[r]&&n<=_o.cache[r].em)return M5(_o.cache[r],l);var s=t.canvas||_o.canvas,c=s.getContext("2d"),v={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"},x=Math.ceil(n*1.5);s.height=x,s.width=x*.5,c.font=u;var y="H",g={top:0};c.clearRect(0,0,x,x),c.textBaseline="top",c.fillStyle="black",c.fillText(y,0,0);var k=Hi(c.getImageData(0,0,x,x));c.clearRect(0,0,x,x),c.textBaseline="bottom",c.fillText(y,0,x);var N=Hi(c.getImageData(0,0,x,x));g.lineHeight=g.bottom=x-N+k,c.clearRect(0,0,x,x),c.textBaseline="alphabetic",c.fillText(y,0,x);var b=Hi(c.getImageData(0,0,x,x)),w=x-b-1+k;g.baseline=g.alphabetic=w,c.clearRect(0,0,x,x),c.textBaseline="middle",c.fillText(y,0,x*.5);var A=Hi(c.getImageData(0,0,x,x));g.median=g.middle=x-A-1+k-x*.5,c.clearRect(0,0,x,x),c.textBaseline="hanging",c.fillText(y,0,x*.5);var M=Hi(c.getImageData(0,0,x,x));g.hanging=x-M-1+k-x*.5,c.clearRect(0,0,x,x),c.textBaseline="ideographic",c.fillText(y,0,x);var R=Hi(c.getImageData(0,0,x,x));if(g.ideographic=x-R-1+k,v.upper&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(v.upper,0,0),g.upper=Hi(c.getImageData(0,0,x,x)),g.capHeight=g.baseline-g.upper),v.lower&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(v.lower,0,0),g.lower=Hi(c.getImageData(0,0,x,x)),g.xHeight=g.baseline-g.lower),v.tittle&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(v.tittle,0,0),g.tittle=Hi(c.getImageData(0,0,x,x))),v.ascent&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(v.ascent,0,0),g.ascent=Hi(c.getImageData(0,0,x,x))),v.descent&&(c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(v.descent,0,0),g.descent=F5(c.getImageData(0,0,x,x))),v.overshoot){c.clearRect(0,0,x,x),c.textBaseline="top",c.fillText(v.overshoot,0,0);var L=F5(c.getImageData(0,0,x,x));g.overshoot=L-w}for(var D in g)g[D]/=n;return g.em=n,_o.cache[r]=g,M5(g,l)}function M5(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 Hi(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 F5(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 af=pH,WH=Xo,VH=$2,qH=gH,YH=HO,q1=wm,XH=bH,vo=dr,QH=_m,ZH=FO,KH=xM,JH=zH,eW=jH,tW=tl,rW=HH,nW=hd,iW=$r,N5=iW.nextPow2,R5=new YH,D0=!1;if(document.body){var Y1=document.body.appendChild(document.createElement("div"));Y1.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(Y1).fontStretch&&(D0=!0),document.body.removeChild(Y1)}var yr=function(t){aW(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=qH(t),this.shader=R5.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||VH({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(),R5.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(ZH(t)?t:{})};yr.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:`
1059
- precision highp float;
1060
- attribute float width, charOffset, char;
1061
- attribute vec2 position;
1062
- uniform float fontSize, charStep, em, align, baseline;
1063
- uniform vec4 viewport;
1064
- uniform vec4 color;
1065
- uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;
1066
- varying vec2 charCoord, charId;
1067
- varying float charWidth;
1068
- varying vec4 fontColor;
1069
- void main () {
1070
- vec2 offset = floor(em * (vec2(align + charOffset, baseline)
1071
- + vec2(positionOffset.x, -positionOffset.y)))
1072
- / (viewport.zw * scale.xy);
1073
-
1074
- vec2 position = (position + translate) * scale;
1075
- position += offset * scale;
1076
-
1077
- charCoord = position * viewport.zw + viewport.xy;
1078
-
1079
- gl_Position = vec4(position * 2. - 1., 0, 1);
1080
-
1081
- gl_PointSize = charStep;
1082
-
1083
- charId.x = mod(char, atlasDim.x);
1084
- charId.y = floor(char / atlasDim.x);
1085
-
1086
- charWidth = width * em;
1087
-
1088
- fontColor = color / 255.;
1089
- }`,frag:`
1090
- precision highp float;
1091
- uniform float fontSize, charStep, opacity;
1092
- uniform vec2 atlasSize;
1093
- uniform vec4 viewport;
1094
- uniform sampler2D atlas;
1095
- varying vec4 fontColor;
1096
- varying vec2 charCoord, charId;
1097
- varying float charWidth;
1098
-
1099
- float lightness(vec4 color) {
1100
- return color.r * 0.299 + color.g * 0.587 + color.b * 0.114;
1101
- }
1102
-
1103
- void main () {
1104
- vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;
1105
- float halfCharStep = floor(charStep * .5 + .5);
1106
-
1107
- // invert y and shift by 1px (FF expecially needs that)
1108
- uv.y = charStep - uv.y;
1109
-
1110
- // ignore points outside of character bounding box
1111
- float halfCharWidth = ceil(charWidth * .5);
1112
- if (floor(uv.x) > halfCharStep + halfCharWidth ||
1113
- floor(uv.x) < halfCharStep - halfCharWidth) return;
1114
-
1115
- uv += charId * charStep;
1116
- uv = uv / atlasSize;
1117
-
1118
- vec4 color = fontColor;
1119
- vec4 mask = texture2D(atlas, uv);
1120
-
1121
- float maskY = lightness(mask);
1122
- // float colorY = lightness(color);
1123
- color.a *= maskY;
1124
- color.a *= opacity;
1125
-
1126
- // color.a += .1;
1127
-
1128
- // antialiasing, see yiq color space y-channel formula
1129
- // color.rgb += (1. - color.rgb) * (1. - mask.rgb);
1130
-
1131
- gl_FragColor = color;
1132
- }`}),n={};return{regl:t,draw:r,atlas:n}};yr.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=WH(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(rt){return parseFloat(rt)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=QH(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=nW(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=yr.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(rt,yt){if(typeof rt=="string")try{rt=af.parse(rt)}catch{rt=af.parse(yr.baseFontSize+"px "+rt)}else rt=af.parse(af.stringify(rt));var Tt=af.stringify({size:yr.baseFontSize,family:rt.family,stretch:D0?rt.stretch:void 0,variant:rt.variant,weight:rt.weight,style:rt.style}),Yt=KH(rt.size),Xt=Math.round(Yt[0]*JH(Yt[1]));if(Xt!==r.fontSize[yt]&&(i=!0,r.fontSize[yt]=Xt),(!r.font[yt]||Tt!=r.font[yt].baseString)&&(n=!0,r.font[yt]=yr.fonts[Tt],!r.font[yt])){var Qe=rt.family.join(", "),Ot=[rt.style];rt.style!=rt.variant&&Ot.push(rt.variant),rt.variant!=rt.weight&&Ot.push(rt.weight),D0&&rt.weight!=rt.stretch&&Ot.push(rt.stretch),r.font[yt]={baseString:Tt,family:Qe,weight:rt.weight,stretch:rt.stretch,style:rt.style,variant:rt.variant,width:{},kerning:{},metrics:rW(Qe,{origin:"top",fontSize:yr.baseFontSize,fontStyle:Ot.join(" ")})},yr.fonts[Tt]=r.font[yt]}}),(n||i)&&this.font.forEach(function(rt,yt){var Tt=af.stringify({size:r.fontSize[yt],family:rt.family,stretch:D0?rt.stretch:void 0,variant:rt.variant,weight:rt.weight,style:rt.style});if(r.fontAtlas[yt]=r.shader.atlas[Tt],!r.fontAtlas[yt]){var Yt=rt.metrics;r.shader.atlas[Tt]=r.fontAtlas[yt]={fontString:Tt,step:Math.ceil(r.fontSize[yt]*Yt.bottom*.5)*2,em:r.fontSize[yt],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),u=0;u<a.length;u++)a[u]=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(rt,yt){yr.atlasContext.font=rt.baseString;for(var Tt=r.fontAtlas[yt],Yt=0;Yt<r.text.length;Yt++){var Xt=r.text.charAt(Yt);if(Tt.ids[Xt]==null&&(Tt.ids[Xt]=Tt.chars.length,Tt.chars.push(Xt),l.push(Xt)),rt.width[Xt]==null&&(rt.width[Xt]=yr.atlasContext.measureText(Xt).width/yr.baseFontSize,r.kerning)){var Qe=[];for(var Ot in rt.width)Qe.push(Ot+Xt,Xt+Ot);tW(rt.kerning,eW(rt.family,{pairs:Qe}))}}})}if(t.position)if(t.position.length>2){for(var c=!t.position[0].length,v=vo.mallocFloat(this.count*2),x=0,y=0;x<this.counts.length;x++){var g=this.counts[x];if(c)for(var k=0;k<g;k++)v[y++]=t.position[x*2],v[y++]=t.position[x*2+1];else for(var N=0;N<g;N++)v[y++]=t.position[x][0],v[y++]=t.position[x][1]}this.position.call?this.position({type:"float",data:v}):this.position=this.regl.buffer({type:"float",data:v}),vo.freeFloat(v)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var b=vo.mallocUint8(this.count),w=vo.mallocFloat(this.count*2);this.textWidth=[];for(var A=0,M=0;A<this.counts.length;A++){for(var R=this.counts[A],L=this.font[A]||this.font[0],D=this.fontAtlas[A]||this.fontAtlas[0],ne=0;ne<R;ne++){var Y=this.text.charAt(M),ae=this.text.charAt(M-1);if(b[M]=D.ids[Y],w[M*2]=L.width[Y],ne){var Ce=w[M*2-2],Fe=w[M*2],Ie=w[M*2-1],je=Ie+Ce*.5+Fe*.5;if(this.kerning){var Ke=L.kerning[ae+Y];Ke&&(je+=Ke*.001)}w[M*2+1]=je}else w[M*2+1]=w[M*2]*.5;M++}this.textWidth.push(w.length?w[M*2-2]*.5+w[M*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:b,type:"uint8",usage:"stream"}),this.sizeBuffer({data:w,type:"float",usage:"stream"}),vo.freeUint8(b),vo.freeFloat(w),l.length&&this.font.forEach(function(rt,yt){var Tt=r.fontAtlas[yt],Yt=Tt.step,Xt=Math.floor(yr.maxAtlasSize/Yt),Qe=Math.min(Xt,Tt.chars.length),Ot=Math.ceil(Tt.chars.length/Qe),jt=N5(Qe*Yt),Ae=N5(Ot*Yt);Tt.width=jt,Tt.height=Ae,Tt.rows=Ot,Tt.cols=Qe,Tt.em&&Tt.texture({data:XH({canvas:yr.atlasCanvas,font:Tt.fontString,chars:Tt.chars,shape:[jt,Ae],step:[Yt,Yt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(rt,yt){var Tt=Array.isArray(r.align)?r.align.length>1?r.align[yt]:r.align[0]:r.align;if(typeof Tt=="number")return Tt;switch(Tt){case"right":case"end":return-rt;case"center":case"centre":case"middle":return-rt*.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(rt,yt){var Tt=(r.font[yt]||r.font[0]).metrics,Yt=0;return Yt+=Tt.bottom*.5,typeof rt=="number"?Yt+=rt-Tt.baseline:Yt+=-Tt[rt],Yt*=-1,Yt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=q1(t.color,"uint8");else{var mt;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var lt=t.color.length;mt=vo.mallocUint8(lt);for(var Ue=(t.color.subarray||t.color.slice).bind(t.color),Ye=0;Ye<lt;Ye+=4)mt.set(q1(Ue(Ye,Ye+4),"uint8"),Ye)}else{var It=t.color.length;mt=vo.mallocUint8(It*4);for(var Ze=0;Ze<It;Ze++)mt.set(q1(t.color[Ze]||0,"uint8"),Ze*4)}this.color=mt}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var Ee=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(Ee){var tt=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(tt);for(var ct=0;ct<this.batch.length;ct++)this.batch[ct]={count:this.counts.length>1?this.counts[ct]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[ct]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(ct*4,ct*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[ct]:this.opacity,baseline:this.baselineOffset[ct]!=null?this.baselineOffset[ct]:this.baselineOffset[0],align:this.align?this.alignOffset[ct]!=null?this.alignOffset[ct]:this.alignOffset[0]:0,atlas:this.fontAtlas[ct]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(ct*2,ct*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=[]}};yr.prototype.destroy=function(){};yr.prototype.kerning=!0;yr.prototype.position={constant:new Float32Array(2)};yr.prototype.translate=null;yr.prototype.scale=null;yr.prototype.font=null;yr.prototype.text="";yr.prototype.positionOffset=[0,0];yr.prototype.opacity=1;yr.prototype.color=new Uint8Array([0,0,0,255]);yr.prototype.alignOffset=[0,0];yr.maxAtlasSize=1024;yr.atlasCanvas=document.createElement("canvas");yr.atlasContext=yr.atlasCanvas.getContext("2d",{alpha:!1});yr.baseFontSize=64;yr.fonts={};function aW(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var uY=yr;function oW(e,t){return e.parent===t.parent?1:2}function uW(e){return e.reduce(lW,0)/e.length}function lW(e,t){return e+t.x}function fW(e){return 1+e.reduce(sW,0)}function sW(e,t){return Math.max(e,t.y)}function cW(e){for(var t;t=e.children;)e=t[0];return e}function hW(e){for(var t;t=e.children;)e=t[t.length-1];return e}function dW(){var e=oW,t=1,r=1,n=!1;function i(a){var u,l=0;a.eachAfter(function(y){var g=y.children;g?(y.x=uW(g),y.y=fW(g)):(y.x=u?l+=e(y,u):0,y.y=0,u=y)});var s=cW(a),c=hW(a),v=s.x-e(s,c)/2,x=c.x+e(c,s)/2;return a.eachAfter(n?function(y){y.x=(y.x-a.x)*t,y.y=(a.y-y.y)*r}:function(y){y.x=(y.x-v)/(x-v)*t,y.y=(1-(a.y?y.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 pW(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 vW(){return this.eachAfter(pW)}function mW(e){var t=this,r,n=[t],i,a,u;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,u=i.length;a<u;++a)n.push(i[a]);while(n.length);return this}function gW(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 yW(e){for(var t=this,r=[t],n=[],i,a,u;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,u=i.length;a<u;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function xW(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 _W(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function wW(e){for(var t=this,r=bW(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 bW(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 SW(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function EW(){var e=[];return this.each(function(t){e.push(t)}),e}function AW(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function TW(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function Rw(e,t){var r=new Xf(e),n=+e.value&&(r.value=e.value),i,a=[r],u,l,s,c;for(t==null&&(t=kW);i=a.pop();)if(n&&(i.value=+i.data.value),(l=t(i.data))&&(c=l.length))for(i.children=new Array(c),s=c-1;s>=0;--s)a.push(u=i.children[s]=new Xf(l[s])),u.parent=i,u.depth=i.depth+1;return r.eachBefore(bM)}function CW(){return Rw(this).eachBefore(OW)}function kW(e){return e.children}function OW(e){e.data=e.data.data}function bM(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Xf(e){this.data=e,this.depth=this.height=0,this.parent=null}Xf.prototype=Rw.prototype={constructor:Xf,count:vW,each:mW,eachAfter:yW,eachBefore:gW,sum:xW,sort:_W,path:wW,ancestors:SW,descendants:EW,leaves:AW,links:TW,copy:CW};var MW=Array.prototype.slice;function FW(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 SM(e){for(var t=0,r=(e=FW(MW.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&EM(a,i)?++t:(a=RW(n=NW(n,i)),t=0);return a}function NW(e,t){var r,n;if(X1(t,e))return[t];for(r=0;r<e.length;++r)if(v0(t,e[r])&&X1(Jc(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(v0(Jc(e[r],e[n]),t)&&v0(Jc(e[r],t),e[n])&&v0(Jc(e[n],t),e[r])&&X1(AM(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function v0(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 EM(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 X1(e,t){for(var r=0;r<t.length;++r)if(!EM(e,t[r]))return!1;return!0}function RW(e){switch(e.length){case 1:return IW(e[0]);case 2:return Jc(e[0],e[1]);case 3:return AM(e[0],e[1],e[2])}}function IW(e){return{x:e.x,y:e.y,r:e.r}}function Jc(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,u=t.y,l=t.r,s=a-r,c=u-n,v=l-i,x=Math.sqrt(s*s+c*c);return{x:(r+a+s/x*v)/2,y:(n+u+c/x*v)/2,r:(x+i+l)/2}}function AM(e,t,r){var n=e.x,i=e.y,a=e.r,u=t.x,l=t.y,s=t.r,c=r.x,v=r.y,x=r.r,y=n-u,g=n-c,k=i-l,N=i-v,b=s-a,w=x-a,A=n*n+i*i-a*a,M=A-u*u-l*l+s*s,R=A-c*c-v*v+x*x,L=g*k-y*N,D=(k*R-N*M)/(L*2)-n,ne=(N*b-k*w)/L,Y=(g*M-y*R)/(L*2)-i,ae=(y*w-g*b)/L,Ce=ne*ne+ae*ae-1,Fe=2*(a+D*ne+Y*ae),Ie=D*D+Y*Y-a*a,je=-(Ce?(Fe+Math.sqrt(Fe*Fe-4*Ce*Ie))/(2*Ce):Ie/Fe);return{x:n+D+ne*je,y:i+Y+ae*je,r:je}}function I5(e,t,r){var n=e.x-t.x,i,a,u=e.y-t.y,l,s,c=n*n+u*u;c?(a=t.r+r.r,a*=a,s=e.r+r.r,s*=s,a>s?(i=(c+s-a)/(2*c),l=Math.sqrt(Math.max(0,s/c-i*i)),r.x=e.x-i*n-l*u,r.y=e.y-i*u+l*n):(i=(c+a-s)/(2*c),l=Math.sqrt(Math.max(0,a/c-i*i)),r.x=t.x+i*n-l*u,r.y=t.y+i*u+l*n)):(r.x=t.x+r.r,r.y=t.y)}function P5(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 L5(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 m0(e){this._=e,this.next=null,this.previous=null}function TM(e){if(!(i=e.length))return 0;var t,r,n,i,a,u,l,s,c,v,x;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;I5(r,t,n=e[2]),t=new m0(t),r=new m0(r),n=new m0(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<i;++l){I5(t._,r._,n=e[l]),n=new m0(n),s=r.next,c=t.previous,v=r._.r,x=t._.r;do if(v<=x){if(P5(s._,n._)){r=s,t.next=r,r.previous=t,--l;continue e}v+=s._.r,s=s.next}else{if(P5(c._,n._)){t=c,t.next=r,r.previous=t,--l;continue e}x+=c._.r,c=c.previous}while(s!==c.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=L5(t);(n=n.next)!==r;)(u=L5(n))<a&&(t=n,a=u);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=SM(t),l=0;l<i;++l)t=e[l],t.x-=n.x,t.y-=n.y;return n.r}function PW(e){return TM(e),e}function LW(e){return e==null?null:zv(e)}function zv(e){if(typeof e!="function")throw new Error;return e}function Mu(){return 0}function sf(e){return function(){return e}}function DW(e){return Math.sqrt(e.value)}function BW(){var e=null,t=1,r=1,n=Mu;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(D5(e)).eachAfter(Q1(n,.5)).eachBefore(B5(1)):a.eachBefore(D5(DW)).eachAfter(Q1(Mu,1)).eachAfter(Q1(n,a.r/Math.min(t,r))).eachBefore(B5(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=LW(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:sf(+a),i):n},i}function D5(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Q1(e,t){return function(r){if(n=r.children){var n,i,a=n.length,u=e(r)*t||0,l;if(u)for(i=0;i<a;++i)n[i].r+=u;if(l=TM(n),u)for(i=0;i<a;++i)n[i].r-=u;r.r=l+u}}}function B5(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 CM(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 pd(e,t,r,n,i){for(var a=e.children,u,l=-1,s=a.length,c=e.value&&(n-t)/e.value;++l<s;)u=a[l],u.y0=r,u.y1=i,u.x0=t,u.x1=t+=u.value*c}function $W(){var e=1,t=1,r=0,n=!1;function i(u){var l=u.height+1;return u.x0=u.y0=r,u.x1=e,u.y1=t/l,u.eachBefore(a(t,l)),n&&u.eachBefore(CM),u}function a(u,l){return function(s){s.children&&pd(s,s.x0,u*(s.depth+1)/l,s.x1,u*(s.depth+2)/l);var c=s.x0,v=s.y0,x=s.x1-r,y=s.y1-r;x<c&&(c=x=(c+x)/2),y<v&&(v=y=(v+y)/2),s.x0=c,s.y0=v,s.x1=x,s.y1=y}}return i.round=function(u){return arguments.length?(n=!!u,i):n},i.size=function(u){return arguments.length?(e=+u[0],t=+u[1],i):[e,t]},i.padding=function(u){return arguments.length?(r=+u,i):r},i}var $5="$",zW={depth:-1},z5={};function UW(e){return e.id}function jW(e){return e.parentId}function GW(){var e=UW,t=jW;function r(n){var i,a,u=n.length,l,s,c,v=new Array(u),x,y,g={};for(a=0;a<u;++a)i=n[a],c=v[a]=new Xf(i),(x=e(i,a,n))!=null&&(x+="")&&(y=$5+(c.id=x),g[y]=y in g?z5:c);for(a=0;a<u;++a)if(c=v[a],x=t(n[a],a,n),x==null||!(x+="")){if(l)throw new Error("multiple roots");l=c}else{if(s=g[$5+x],!s)throw new Error("missing: "+x);if(s===z5)throw new Error("ambiguous: "+x);s.children?s.children.push(c):s.children=[c],c.parent=s}if(!l)throw new Error("no root");if(l.parent=zW,l.eachBefore(function(k){k.depth=k.parent.depth+1,--u}).eachBefore(bM),l.parent=null,u>0)throw new Error("cycle");return l}return r.id=function(n){return arguments.length?(e=zv(n),r):e},r.parentId=function(n){return arguments.length?(t=zv(n),r):t},r}function HW(e,t){return e.parent===t.parent?1:2}function Z1(e){var t=e.children;return t?t[0]:e.t}function K1(e){var t=e.children;return t?t[t.length-1]:e.t}function WW(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 VW(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 qW(e,t,r){return e.a.parent===t.parent?e.a:r}function B0(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}B0.prototype=Object.create(Xf.prototype);function YW(e){for(var t=new B0(e,0),r,n=[t],i,a,u,l;r=n.pop();)if(a=r._.children)for(r.children=new Array(l=a.length),u=l-1;u>=0;--u)n.push(i=r.children[u]=new B0(a[u],u)),i.parent=r;return(t.parent=new B0(null,0)).children=[t],t}function XW(){var e=HW,t=1,r=1,n=null;function i(c){var v=YW(c);if(v.eachAfter(a),v.parent.m=-v.z,v.eachBefore(u),n)c.eachBefore(s);else{var x=c,y=c,g=c;c.eachBefore(function(A){A.x<x.x&&(x=A),A.x>y.x&&(y=A),A.depth>g.depth&&(g=A)});var k=x===y?1:e(x,y)/2,N=k-x.x,b=t/(y.x+k+N),w=r/(g.depth||1);c.eachBefore(function(A){A.x=(A.x+N)*b,A.y=A.depth*w})}return c}function a(c){var v=c.children,x=c.parent.children,y=c.i?x[c.i-1]:null;if(v){VW(c);var g=(v[0].z+v[v.length-1].z)/2;y?(c.z=y.z+e(c._,y._),c.m=c.z-g):c.z=g}else y&&(c.z=y.z+e(c._,y._));c.parent.A=l(c,y,c.parent.A||x[0])}function u(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function l(c,v,x){if(v){for(var y=c,g=c,k=v,N=y.parent.children[0],b=y.m,w=g.m,A=k.m,M=N.m,R;k=K1(k),y=Z1(y),k&&y;)N=Z1(N),g=K1(g),g.a=c,R=k.z+A-y.z-b+e(k._,y._),R>0&&(WW(qW(k,c,x),c,R),b+=R,w+=R),A+=k.m,b+=y.m,M+=N.m,w+=g.m;k&&!K1(g)&&(g.t=k,g.m+=A-w),y&&!Z1(N)&&(N.t=y,N.m+=b-M,x=c)}return x}function s(c){c.x*=t,c.y=c.depth*r}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(n=!1,t=+c[0],r=+c[1],i):n?null:[t,r]},i.nodeSize=function(c){return arguments.length?(n=!0,t=+c[0],r=+c[1],i):n?[t,r]:null},i}function km(e,t,r,n,i){for(var a=e.children,u,l=-1,s=a.length,c=e.value&&(i-r)/e.value;++l<s;)u=a[l],u.x0=t,u.x1=n,u.y0=r,u.y1=r+=u.value*c}var kM=(1+Math.sqrt(5))/2;function OM(e,t,r,n,i,a){for(var u=[],l=t.children,s,c,v=0,x=0,y=l.length,g,k,N=t.value,b,w,A,M,R,L,D;v<y;){g=i-r,k=a-n;do b=l[x++].value;while(!b&&x<y);for(w=A=b,L=Math.max(k/g,g/k)/(N*e),D=b*b*L,R=Math.max(A/D,D/w);x<y;++x){if(b+=c=l[x].value,c<w&&(w=c),c>A&&(A=c),D=b*b*L,M=Math.max(A/D,D/w),M>R){b-=c;break}R=M}u.push(s={value:b,dice:g<k,children:l.slice(v,x)}),s.dice?pd(s,r,n,i,N?n+=k*b/N:a):km(s,r,n,N?r+=g*b/N:i,a),N-=b,v=x}return u}const MM=function e(t){function r(n,i,a,u,l){OM(t,n,i,a,u,l)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(kM);function QW(){var e=MM,t=!1,r=1,n=1,i=[0],a=Mu,u=Mu,l=Mu,s=Mu,c=Mu;function v(y){return y.x0=y.y0=0,y.x1=r,y.y1=n,y.eachBefore(x),i=[0],t&&y.eachBefore(CM),y}function x(y){var g=i[y.depth],k=y.x0+g,N=y.y0+g,b=y.x1-g,w=y.y1-g;b<k&&(k=b=(k+b)/2),w<N&&(N=w=(N+w)/2),y.x0=k,y.y0=N,y.x1=b,y.y1=w,y.children&&(g=i[y.depth+1]=a(y)/2,k+=c(y)-g,N+=u(y)-g,b-=l(y)-g,w-=s(y)-g,b<k&&(k=b=(k+b)/2),w<N&&(N=w=(N+w)/2),e(y,k,N,b,w))}return v.round=function(y){return arguments.length?(t=!!y,v):t},v.size=function(y){return arguments.length?(r=+y[0],n=+y[1],v):[r,n]},v.tile=function(y){return arguments.length?(e=zv(y),v):e},v.padding=function(y){return arguments.length?v.paddingInner(y).paddingOuter(y):v.paddingInner()},v.paddingInner=function(y){return arguments.length?(a=typeof y=="function"?y:sf(+y),v):a},v.paddingOuter=function(y){return arguments.length?v.paddingTop(y).paddingRight(y).paddingBottom(y).paddingLeft(y):v.paddingTop()},v.paddingTop=function(y){return arguments.length?(u=typeof y=="function"?y:sf(+y),v):u},v.paddingRight=function(y){return arguments.length?(l=typeof y=="function"?y:sf(+y),v):l},v.paddingBottom=function(y){return arguments.length?(s=typeof y=="function"?y:sf(+y),v):s},v.paddingLeft=function(y){return arguments.length?(c=typeof y=="function"?y:sf(+y),v):c},v}function ZW(e,t,r,n,i){var a=e.children,u,l=a.length,s,c=new Array(l+1);for(c[0]=s=u=0;u<l;++u)c[u+1]=s+=a[u].value;v(0,l,e.value,t,r,n,i);function v(x,y,g,k,N,b,w){if(x>=y-1){var A=a[x];A.x0=k,A.y0=N,A.x1=b,A.y1=w;return}for(var M=c[x],R=g/2+M,L=x+1,D=y-1;L<D;){var ne=L+D>>>1;c[ne]<R?L=ne+1:D=ne}R-c[L-1]<c[L]-R&&x+1<L&&--L;var Y=c[L]-M,ae=g-Y;if(b-k>w-N){var Ce=(k*ae+b*Y)/g;v(x,L,Y,k,N,Ce,w),v(L,y,ae,Ce,N,b,w)}else{var Fe=(N*ae+w*Y)/g;v(x,L,Y,k,N,b,Fe),v(L,y,ae,k,Fe,b,w)}}}function KW(e,t,r,n,i){(e.depth&1?km:pd)(e,t,r,n,i)}const JW=function e(t){function r(n,i,a,u,l){if((s=n._squarify)&&s.ratio===t)for(var s,c,v,x,y=-1,g,k=s.length,N=n.value;++y<k;){for(c=s[y],v=c.children,x=c.value=0,g=v.length;x<g;++x)c.value+=v[x].value;c.dice?pd(c,i,a,u,a+=(l-a)*c.value/N):km(c,i,a,i+=(u-i)*c.value/N,l),N-=c.value}else n._squarify=s=OM(t,n,i,a,u,l),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(kM),eV=Object.freeze(Object.defineProperty({__proto__:null,cluster:dW,hierarchy:Rw,pack:BW,packEnclose:SM,packSiblings:PW,partition:$W,stratify:GW,tree:XW,treemap:QW,treemapBinary:ZW,treemapDice:pd,treemapResquarify:JW,treemapSlice:km,treemapSliceDice:KW,treemapSquarify:MM},Symbol.toStringTag,{value:"Module"})),lY=el(eV);function us(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function vd(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Qo(){}var Ku=.7,Qf=1/Ku,Pf="\\s*([+-]?\\d+)\\s*",Xh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ea="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tV=/^#([0-9a-f]{3,8})$/,rV=new RegExp(`^rgb\\(${Pf},${Pf},${Pf}\\)$`),nV=new RegExp(`^rgb\\(${ea},${ea},${ea}\\)$`),iV=new RegExp(`^rgba\\(${Pf},${Pf},${Pf},${Xh}\\)$`),aV=new RegExp(`^rgba\\(${ea},${ea},${ea},${Xh}\\)$`),oV=new RegExp(`^hsl\\(${Xh},${ea},${ea}\\)$`),uV=new RegExp(`^hsla\\(${Xh},${ea},${ea},${Xh}\\)$`),U5={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};us(Qo,Qh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:j5,formatHex:j5,formatHex8:lV,formatHsl:fV,formatRgb:G5,toString:G5});function j5(){return this.rgb().formatHex()}function lV(){return this.rgb().formatHex8()}function fV(){return FM(this).formatHsl()}function G5(){return this.rgb().formatRgb()}function Qh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=tV.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?H5(t):r===3?new hn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?g0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?g0(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=rV.exec(e))?new hn(t[1],t[2],t[3],1):(t=nV.exec(e))?new hn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=iV.exec(e))?g0(t[1],t[2],t[3],t[4]):(t=aV.exec(e))?g0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=oV.exec(e))?q5(t[1],t[2]/100,t[3]/100,1):(t=uV.exec(e))?q5(t[1],t[2]/100,t[3]/100,t[4]):U5.hasOwnProperty(e)?H5(U5[e]):e==="transparent"?new hn(NaN,NaN,NaN,0):null}function H5(e){return new hn(e>>16&255,e>>8&255,e&255,1)}function g0(e,t,r,n){return n<=0&&(e=t=r=NaN),new hn(e,t,r,n)}function Iw(e){return e instanceof Qo||(e=Qh(e)),e?(e=e.rgb(),new hn(e.r,e.g,e.b,e.opacity)):new hn}function Uv(e,t,r,n){return arguments.length===1?Iw(e):new hn(e,t,r,n??1)}function hn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}us(hn,Uv,vd(Qo,{brighter(e){return e=e==null?Qf:Math.pow(Qf,e),new hn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new hn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new hn(ju(this.r),ju(this.g),ju(this.b),jv(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:W5,formatHex:W5,formatHex8:sV,formatRgb:V5,toString:V5}));function W5(){return`#${Bu(this.r)}${Bu(this.g)}${Bu(this.b)}`}function sV(){return`#${Bu(this.r)}${Bu(this.g)}${Bu(this.b)}${Bu((isNaN(this.opacity)?1:this.opacity)*255)}`}function V5(){const e=jv(this.opacity);return`${e===1?"rgb(":"rgba("}${ju(this.r)}, ${ju(this.g)}, ${ju(this.b)}${e===1?")":`, ${e})`}`}function jv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ju(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bu(e){return e=ju(e),(e<16?"0":"")+e.toString(16)}function q5(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ni(e,t,r,n)}function FM(e){if(e instanceof Ni)return new Ni(e.h,e.s,e.l,e.opacity);if(e instanceof Qo||(e=Qh(e)),!e)return new Ni;if(e instanceof Ni)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),u=NaN,l=a-i,s=(a+i)/2;return l?(t===a?u=(r-n)/l+(r<n)*6:r===a?u=(n-t)/l+2:u=(t-r)/l+4,l/=s<.5?a+i:2-a-i,u*=60):l=s>0&&s<1?0:u,new Ni(u,l,s,e.opacity)}function U2(e,t,r,n){return arguments.length===1?FM(e):new Ni(e,t,r,n??1)}function Ni(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}us(Ni,U2,vd(Qo,{brighter(e){return e=e==null?Qf:Math.pow(Qf,e),new Ni(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new Ni(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 hn(J1(e>=240?e-240:e+120,i,n),J1(e,i,n),J1(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ni(Y5(this.h),y0(this.s),y0(this.l),jv(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=jv(this.opacity);return`${e===1?"hsl(":"hsla("}${Y5(this.h)}, ${y0(this.s)*100}%, ${y0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Y5(e){return e=(e||0)%360,e<0?e+360:e}function y0(e){return Math.max(0,Math.min(1,e||0))}function J1(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 NM=Math.PI/180,RM=180/Math.PI,Gv=18,IM=.96422,PM=1,LM=.82521,DM=4/29,Lf=6/29,BM=3*Lf*Lf,cV=Lf*Lf*Lf;function $M(e){if(e instanceof ta)return new ta(e.l,e.a,e.b,e.opacity);if(e instanceof Fa)return zM(e);e instanceof hn||(e=Iw(e));var t=nx(e.r),r=nx(e.g),n=nx(e.b),i=ex((.2225045*t+.7168786*r+.0606169*n)/PM),a,u;return t===r&&r===n?a=u=i:(a=ex((.4360747*t+.3850649*r+.1430804*n)/IM),u=ex((.0139322*t+.0971045*r+.7141733*n)/LM)),new ta(116*i-16,500*(a-i),200*(i-u),e.opacity)}function j2(e,t,r,n){return arguments.length===1?$M(e):new ta(e,t,r,n??1)}function ta(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}us(ta,j2,vd(Qo,{brighter(e){return new ta(this.l+Gv*(e??1),this.a,this.b,this.opacity)},darker(e){return new ta(this.l-Gv*(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=IM*tx(t),e=PM*tx(e),r=LM*tx(r),new hn(rx(3.1338561*t-1.6168667*e-.4906146*r),rx(-.9787684*t+1.9161415*e+.033454*r),rx(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function ex(e){return e>cV?Math.pow(e,1/3):e/BM+DM}function tx(e){return e>Lf?e*e*e:BM*(e-DM)}function rx(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nx(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hV(e){if(e instanceof Fa)return new Fa(e.h,e.c,e.l,e.opacity);if(e instanceof ta||(e=$M(e)),e.a===0&&e.b===0)return new Fa(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*RM;return new Fa(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function G2(e,t,r,n){return arguments.length===1?hV(e):new Fa(e,t,r,n??1)}function Fa(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function zM(e){if(isNaN(e.h))return new ta(e.l,0,0,e.opacity);var t=e.h*NM;return new ta(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}us(Fa,G2,vd(Qo,{brighter(e){return new Fa(this.h,this.c,this.l+Gv*(e??1),this.opacity)},darker(e){return new Fa(this.h,this.c,this.l-Gv*(e??1),this.opacity)},rgb(){return zM(this).rgb()}}));var UM=-.14861,Pw=1.78277,Lw=-.29227,Om=-.90649,Zh=1.97294,X5=Zh*Om,Q5=Zh*Pw,Z5=Pw*Lw-Om*UM;function dV(e){if(e instanceof Gu)return new Gu(e.h,e.s,e.l,e.opacity);e instanceof hn||(e=Iw(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(Z5*n+X5*t-Q5*r)/(Z5+X5-Q5),a=n-i,u=(Zh*(r-i)-Lw*a)/Om,l=Math.sqrt(u*u+a*a)/(Zh*i*(1-i)),s=l?Math.atan2(u,a)*RM-120:NaN;return new Gu(s<0?s+360:s,l,i,e.opacity)}function H2(e,t,r,n){return arguments.length===1?dV(e):new Gu(e,t,r,n??1)}function Gu(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}us(Gu,H2,vd(Qo,{brighter(e){return e=e==null?Qf:Math.pow(Qf,e),new Gu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new Gu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*NM,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new hn(255*(t+r*(UM*n+Pw*i)),255*(t+r*(Lw*n+Om*i)),255*(t+r*(Zh*n)),this.opacity)}}));function jM(e,t,r,n,i){var a=e*e,u=a*e;return((1-3*e+3*a-u)*t+(4-6*a+3*u)*r+(1+3*e+3*a-3*u)*n+u*i)/6}function GM(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],u=n>0?e[n-1]:2*i-a,l=n<t-1?e[n+2]:2*a-i;return jM((r-n/t)*t,u,i,a,l)}}function HM(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],u=e[(n+1)%t],l=e[(n+2)%t];return jM((r-n/t)*t,i,a,u,l)}}const Mm=e=>()=>e;function WM(e,t){return function(r){return e+r*t}}function pV(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 Fm(e,t){var r=t-e;return r?WM(e,r>180||r<-180?r-360*Math.round(r/360):r):Mm(isNaN(e)?t:e)}function vV(e){return(e=+e)==1?dn:function(t,r){return r-t?pV(t,r,e):Mm(isNaN(t)?r:t)}}function dn(e,t){var r=t-e;return r?WM(e,r):Mm(isNaN(e)?t:e)}const W2=function e(t){var r=vV(t);function n(i,a){var u=r((i=Uv(i)).r,(a=Uv(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),c=dn(i.opacity,a.opacity);return function(v){return i.r=u(v),i.g=l(v),i.b=s(v),i.opacity=c(v),i+""}}return n.gamma=e,n}(1);function VM(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),u,l;for(u=0;u<r;++u)l=Uv(t[u]),n[u]=l.r||0,i[u]=l.g||0,a[u]=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 mV=VM(GM),gV=VM(HM);function Dw(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 qM(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function yV(e,t){return(qM(t)?Dw:YM)(e,t)}function YM(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),u;for(u=0;u<n;++u)i[u]=Nm(e[u],t[u]);for(;u<r;++u)a[u]=t[u];return function(l){for(u=0;u<n;++u)a[u]=i[u](l);return a}}function XM(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Vi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function QM(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]=Nm(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var V2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ix=new RegExp(V2.source,"g");function xV(e){return function(){return e}}function _V(e){return function(t){return e(t)+""}}function ZM(e,t){var r=V2.lastIndex=ix.lastIndex=0,n,i,a,u=-1,l=[],s=[];for(e=e+"",t=t+"";(n=V2.exec(e))&&(i=ix.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[u]?l[u]+=a:l[++u]=a),(n=n[0])===(i=i[0])?l[u]?l[u]+=i:l[++u]=i:(l[++u]=null,s.push({i:u,x:Vi(n,i)})),r=ix.lastIndex;return r<t.length&&(a=t.slice(r),l[u]?l[u]+=a:l[++u]=a),l.length<2?s[0]?_V(s[0].x):xV(t):(t=s.length,function(c){for(var v=0,x;v<t;++v)l[(x=s[v]).i]=x.x(c);return l.join("")})}function Nm(e,t){var r=typeof t,n;return t==null||r==="boolean"?Mm(t):(r==="number"?Vi:r==="string"?(n=Qh(t))?(t=n,W2):ZM:t instanceof Qh?W2:t instanceof Date?XM:qM(t)?Dw:Array.isArray(t)?YM:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?QM:Vi)(e,t)}function wV(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function bV(e,t){var r=Fm(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function SV(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var K5=180/Math.PI,q2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function KM(e,t,r,n,i,a){var u,l,s;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(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,u=-u),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*K5,skewX:Math.atan(s)*K5,scaleX:u,scaleY:l}}var x0;function EV(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?q2:KM(t.a,t.b,t.c,t.d,t.e,t.f)}function AV(e){return e==null||(x0||(x0=document.createElementNS("http://www.w3.org/2000/svg","g")),x0.setAttribute("transform",e),!(e=x0.transform.baseVal.consolidate()))?q2:(e=e.matrix,KM(e.a,e.b,e.c,e.d,e.e,e.f))}function JM(e,t,r,n){function i(c){return c.length?c.pop()+" ":""}function a(c,v,x,y,g,k){if(c!==x||v!==y){var N=g.push("translate(",null,t,null,r);k.push({i:N-4,x:Vi(c,x)},{i:N-2,x:Vi(v,y)})}else(x||y)&&g.push("translate("+x+t+y+r)}function u(c,v,x,y){c!==v?(c-v>180?v+=360:v-c>180&&(c+=360),y.push({i:x.push(i(x)+"rotate(",null,n)-2,x:Vi(c,v)})):v&&x.push(i(x)+"rotate("+v+n)}function l(c,v,x,y){c!==v?y.push({i:x.push(i(x)+"skewX(",null,n)-2,x:Vi(c,v)}):v&&x.push(i(x)+"skewX("+v+n)}function s(c,v,x,y,g,k){if(c!==x||v!==y){var N=g.push(i(g)+"scale(",null,",",null,")");k.push({i:N-4,x:Vi(c,x)},{i:N-2,x:Vi(v,y)})}else(x!==1||y!==1)&&g.push(i(g)+"scale("+x+","+y+")")}return function(c,v){var x=[],y=[];return c=e(c),v=e(v),a(c.translateX,c.translateY,v.translateX,v.translateY,x,y),u(c.rotate,v.rotate,x,y),l(c.skewX,v.skewX,x,y),s(c.scaleX,c.scaleY,v.scaleX,v.scaleY,x,y),c=v=null,function(g){for(var k=-1,N=y.length,b;++k<N;)x[(b=y[k]).i]=b.x(g);return x.join("")}}}var TV=JM(EV,"px, ","px)","deg)"),CV=JM(AV,", ",")",")"),kV=1e-12;function J5(e){return((e=Math.exp(e))+1/e)/2}function OV(e){return((e=Math.exp(e))-1/e)/2}function MV(e){return((e=Math.exp(2*e))-1)/(e+1)}const FV=function e(t,r,n){function i(a,u){var l=a[0],s=a[1],c=a[2],v=u[0],x=u[1],y=u[2],g=v-l,k=x-s,N=g*g+k*k,b,w;if(N<kV)w=Math.log(y/c)/t,b=function(ne){return[l+ne*g,s+ne*k,c*Math.exp(t*ne*w)]};else{var A=Math.sqrt(N),M=(y*y-c*c+n*N)/(2*c*r*A),R=(y*y-c*c-n*N)/(2*y*r*A),L=Math.log(Math.sqrt(M*M+1)-M),D=Math.log(Math.sqrt(R*R+1)-R);w=(D-L)/t,b=function(ne){var Y=ne*w,ae=J5(L),Ce=c/(r*A)*(ae*MV(t*Y+L)-OV(L));return[l+Ce*g,s+Ce*k,c*ae/J5(t*Y+L)]}}return b.duration=w*1e3*t/Math.SQRT2,b}return i.rho=function(a){var u=Math.max(.001,+a),l=u*u,s=l*l;return e(u,l,s)},i}(Math.SQRT2,2,4);function eF(e){return function(t,r){var n=e((t=U2(t)).h,(r=U2(r)).h),i=dn(t.s,r.s),a=dn(t.l,r.l),u=dn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.s=i(l),t.l=a(l),t.opacity=u(l),t+""}}}const NV=eF(Fm);var RV=eF(dn);function IV(e,t){var r=dn((e=j2(e)).l,(t=j2(t)).l),n=dn(e.a,t.a),i=dn(e.b,t.b),a=dn(e.opacity,t.opacity);return function(u){return e.l=r(u),e.a=n(u),e.b=i(u),e.opacity=a(u),e+""}}function tF(e){return function(t,r){var n=e((t=G2(t)).h,(r=G2(r)).h),i=dn(t.c,r.c),a=dn(t.l,r.l),u=dn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=u(l),t+""}}}const PV=tF(Fm);var LV=tF(dn);function rF(e){return function t(r){r=+r;function n(i,a){var u=e((i=H2(i)).h,(a=H2(a)).h),l=dn(i.s,a.s),s=dn(i.l,a.l),c=dn(i.opacity,a.opacity);return function(v){return i.h=u(v),i.s=l(v),i.l=s(Math.pow(v,r)),i.opacity=c(v),i+""}}return n.gamma=t,n}(1)}const DV=rF(Fm);var BV=rF(dn);function $V(e,t){t===void 0&&(t=e,e=Nm);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(u){var l=Math.max(0,Math.min(n-1,Math.floor(u*=n)));return a[l](u-l)}}function zV(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const UV=Object.freeze(Object.defineProperty({__proto__:null,interpolate:Nm,interpolateArray:yV,interpolateBasis:GM,interpolateBasisClosed:HM,interpolateCubehelix:DV,interpolateCubehelixLong:BV,interpolateDate:XM,interpolateDiscrete:wV,interpolateHcl:PV,interpolateHclLong:LV,interpolateHsl:NV,interpolateHslLong:RV,interpolateHue:bV,interpolateLab:IV,interpolateNumber:Vi,interpolateNumberArray:Dw,interpolateObject:QM,interpolateRgb:W2,interpolateRgbBasis:mV,interpolateRgbBasisClosed:gV,interpolateRound:SV,interpolateString:ZM,interpolateTransformCss:TV,interpolateTransformSvg:CV,interpolateZoom:FV,piecewise:$V,quantize:zV},Symbol.toStringTag,{value:"Module"})),fY=el(UV);var jV="Expected a function",nF="__lodash_hash_undefined__",iF=1/0,GV=9007199254740991,HV="[object Function]",WV="[object GeneratorFunction]",VV="[object Symbol]",qV=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YV=/^\w*$/,XV=/^\./,QV=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ZV=/[\\^$.*+?()[\]{}|]/g,KV=/\\(\\)?/g,JV=/^\[object .+?Constructor\]$/,eq=/^(?:0|[1-9]\d*)$/,tq=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr,rq=typeof self=="object"&&self&&self.Object===Object&&self,Bw=tq||rq||Function("return this")();function nq(e,t){return e==null?void 0:e[t]}function iq(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var aq=Array.prototype,oq=Function.prototype,aF=Object.prototype,ax=Bw["__core-js_shared__"],eT=function(){var e=/[^.]+$/.exec(ax&&ax.keys&&ax.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),oF=oq.toString,Rm=aF.hasOwnProperty,uF=aF.toString,uq=RegExp("^"+oF.call(Rm).replace(ZV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tT=Bw.Symbol,lq=aq.splice,fq=lF(Bw,"Map"),Kh=lF(Object,"create"),rT=tT?tT.prototype:void 0,nT=rT?rT.toString:void 0;function Ju(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 sq(){this.__data__=Kh?Kh(null):{}}function cq(e){return this.has(e)&&delete this.__data__[e]}function hq(e){var t=this.__data__;if(Kh){var r=t[e];return r===nF?void 0:r}return Rm.call(t,e)?t[e]:void 0}function dq(e){var t=this.__data__;return Kh?t[e]!==void 0:Rm.call(t,e)}function pq(e,t){var r=this.__data__;return r[e]=Kh&&t===void 0?nF:t,this}Ju.prototype.clear=sq;Ju.prototype.delete=cq;Ju.prototype.get=hq;Ju.prototype.has=dq;Ju.prototype.set=pq;function ls(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 vq(){this.__data__=[]}function mq(e){var t=this.__data__,r=Im(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():lq.call(t,r,1),!0}function gq(e){var t=this.__data__,r=Im(t,e);return r<0?void 0:t[r][1]}function yq(e){return Im(this.__data__,e)>-1}function xq(e,t){var r=this.__data__,n=Im(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}ls.prototype.clear=vq;ls.prototype.delete=mq;ls.prototype.get=gq;ls.prototype.has=yq;ls.prototype.set=xq;function hl(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 _q(){this.__data__={hash:new Ju,map:new(fq||ls),string:new Ju}}function wq(e){return Pm(this,e).delete(e)}function bq(e){return Pm(this,e).get(e)}function Sq(e){return Pm(this,e).has(e)}function Eq(e,t){return Pm(this,e).set(e,t),this}hl.prototype.clear=_q;hl.prototype.delete=wq;hl.prototype.get=bq;hl.prototype.has=Sq;hl.prototype.set=Eq;function Aq(e,t,r){var n=e[t];(!(Rm.call(e,t)&&fF(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Im(e,t){for(var r=e.length;r--;)if(fF(e[r][0],t))return r;return-1}function Tq(e){if(!Hv(e)||Rq(e))return!1;var t=Dq(e)||iq(e)?uq:JV;return t.test(Lq(e))}function Cq(e,t,r,n){if(!Hv(e))return e;t=Fq(t,e)?[t]:Oq(t);for(var i=-1,a=t.length,u=a-1,l=e;l!=null&&++i<a;){var s=Pq(t[i]),c=r;if(i!=u){var v=l[s];c=n?n(v,s,l):void 0,c===void 0&&(c=Hv(v)?v:Mq(t[i+1])?[]:{})}Aq(l,s,c),l=l[s]}return e}function kq(e){if(typeof e=="string")return e;if(zw(e))return nT?nT.call(e):"";var t=e+"";return t=="0"&&1/e==-iF?"-0":t}function Oq(e){return sF(e)?e:Iq(e)}function Pm(e,t){var r=e.__data__;return Nq(t)?r[typeof t=="string"?"string":"hash"]:r.map}function lF(e,t){var r=nq(e,t);return Tq(r)?r:void 0}function Mq(e,t){return t=t??GV,!!t&&(typeof e=="number"||eq.test(e))&&e>-1&&e%1==0&&e<t}function Fq(e,t){if(sF(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||zw(e)?!0:YV.test(e)||!qV.test(e)||t!=null&&e in Object(t)}function Nq(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Rq(e){return!!eT&&eT in e}var Iq=$w(function(e){e=$q(e);var t=[];return XV.test(e)&&t.push(""),e.replace(QV,function(r,n,i,a){t.push(i?a.replace(KV,"$1"):n||r)}),t});function Pq(e){if(typeof e=="string"||zw(e))return e;var t=e+"";return t=="0"&&1/e==-iF?"-0":t}function Lq(e){if(e!=null){try{return oF.call(e)}catch{}try{return e+""}catch{}}return""}function $w(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(jV);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 u=e.apply(this,n);return r.cache=a.set(i,u),u};return r.cache=new($w.Cache||hl),r}$w.Cache=hl;function fF(e,t){return e===t||e!==e&&t!==t}var sF=Array.isArray;function Dq(e){var t=Hv(e)?uF.call(e):"";return t==HV||t==WV}function Hv(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Bq(e){return!!e&&typeof e=="object"}function zw(e){return typeof e=="symbol"||Bq(e)&&uF.call(e)==VV}function $q(e){return e==null?"":kq(e)}function zq(e,t,r){return e==null?e:Cq(e,t,r)}var sY=zq;export{bh as A,lr as B,Uw as C,Hq as D,y3 as E,vm as F,ka as G,sY as H,Wq as I,Vq as J,Gq as K,jq as L,zp as R,Yq as a,Jq as b,eY as c,iA as d,F2 as e,Xq as f,Qq as g,Zq as h,Pv as i,hz as j,rY as k,wm as l,Kq as m,tY as n,N2 as o,AO as p,$2 as q,qq as r,nY as s,TA as t,iY as u,aY as v,oY as w,uY as x,lY as y,fY as z};
1133
- //# sourceMappingURL=vendor-26ef4017.js.map